How Much Epistasis Can Simple Sequence-to-Fitness Models Absorb? A Small Study on Simulated NK Landscapes Plover-71G Stemma seed corpus https://github.com/mihir-chauhan/research-harness-papers/tree/main/papers/epistasis-fitness-models-nk Abstract—How much non-additive structure can simple between sites. On experimental landscapes such as GB1 regressors learn from a few hundred to a few thousand [4] or GFP [5] the order and strength of epistasis are variants? We study this on simulated random-neighbourhood not known in advance, so this question is hard to answer NK landscapes only, with (L, A) ∈ {(15, 4), (20, 20)} plus (15, 20) and (20, 4) added to separate length from alphabet, cleanly. and K ∈ {0, 1, 2, 4} (5 seeds, 1196 CPU runs). We compare We therefore use simulated landscapes, where it is reimplemented one-hot ridge, pairwise-epistasis ridge, a small controlled. Kauffman and Weinberger’s NK model [6] CNN and MLP (with a second, matched-budget tuning), a makes the contribution of each site depend on K other third-order kernel ridge and an L1 pairwise model, against the sites, so that K = 0 is exactly additive and larger K is analytical variance-by-interaction-order spectrum of the con- struction and exact population projections of each landscape. more rugged. All data in this paper are simulated; no real At K = 0 additive ridge is near-perfect (Spearman 1.000). At protein is modelled and nothing here is evidence about real N = 1000 pairwise ridge recovers K = 1 at (15, 4) (0.998) fitness landscapes. We ask how four simple regressors—an and at (20, 4) (0.828) but not at (20, 20) (0.138) or (15, 20) additive one-hot ridge model, a pairwise-epistasis ridge (0.183), where the pairwise projection of the landscape has model, a small CNN and a small MLP—behave as K, Spearman 1.000 and 1.000: the failure there is estimation error at N = 1000, not model class. On the (15, 4), K = 2 task a the (L, A) setting (length and alphabet size; separated third-order kernel gains with N (Spearman 0.314 at N = 250 in a follow-up grid) and training size N vary, using to 0.764 at N = 4000). The L1 pairwise model does not beat Spearman correlation on held-out random variants as the pairwise ridge, and with a matched tuning budget the small main endpoint and, as a secondary exploratory endpoint, networks still stay below pairwise ridge at N = 1000 in every the success of one greedy design step that proposes single cell with K ≥ 1. At K = 4, and at (20, 20) with K ≥ 2, no learned model’s mean Spearman exceeds 0.095 (the third- mutants of the best measured sequence. We compare the order kernel at L15_A4_K4). A single greedy design step is observed Spearman values with the analytical variance- reported only as an exploratory secondary endpoint: with 10 by-order spectrum of the construction and with exact proposals and 5 seeds it is mostly not distinguishable from population projections of each landscape, and add a third- random proposals. Results concern this simulator only. order kernel, an L1 pairwise model and matched-budget Index Terms—simulated NK landscapes, epistasis, fitness prediction, ridge regression, protein design networks as references. Contributions (scale: a small CPU study, 5 seeds, all I. Introduction baselines reimplemented): (i) a hashed-table NK simulator Sequence-to-fitness regression is the workhorse of low- that handles A = 20, K = 4 without storing tables; (ii) an data protein engineering: a few hundred to a few thousand exact kernel form of pairwise ridge regression, so that it measured variants are used to fit a model, which then is cheap even with tens of thousands of pair features; (iii) ranks unseen variants or proposes new ones. Benchmarks a pre-registered set of five hypotheses (H1–H5) checked such as FLIP and ProteinGym [1], [2] compare such cell by cell, including regimes where every model fails; the predictors on experimental data, and linear regression design hypothesis H4 is treated here as exploratory; (iv) on one-hot site features, augmented with an evolutionary the analytical order spectrum and population-projection density feature, has been reported to be competitive with references, which separate representational limits from more elaborate models when labels are scarce [3]. A estimation error and place the results against what the recurring question is how much of a model’s remaining NK spectrum implies. error is due to epistasis, i.e. non-additive interactions II. Related Work Plover-71G is the codename of an autonomous study, not a person. a) NK landscapes.: The NK model [6] is the standard Produced by the Stemma autonomous AI research pipeline; the topic tunable-ruggedness landscape; its adaptive walks under was chosen to cover the field. Every reported number comes from logged runs in the linked repository and every reference was checked different interaction schemes have been analysed in [7], against arXiv, Crossref, DataCite or OpenAlex. and its free energy in the regime where K/N is fixed with spin-glass methods in [8]. We use the common other sites drawn uniformly without replacement. Fitness random-neighbourhood scheme; those works study land- is scape properties (walk lengths, free energy), whereas we 1∑ ( ) L iid study supervised learnability, which they do not address. f (x) = Ti xi , xN (i) , Ti (·) ∼ U (0, 1), (1) L i=1 b) Epistasis in data.: Experimental landscapes such as GB1 [4] and GFP [5] report epistatic interactions be- with Ti realised by a 64-bit integer hash of (site, context tween mutations. A review of global epistasis [9] describes index, landscape salt), so that no AK+1 table is stored. patterns in which the fitness effect of a mutation is well Each seed gives a new neighbourhood structure, new predicted by the fitness of its genetic background, and tables, and new data. notes that such patterns may emerge from microscopic b) Additive ridge (reimplemented).: With one-hot interactions between mutations or from nonlinearities of features ϕ(x)∑∈ {0, 1}LA , ŷ(x) = ȳ + w⊤ ϕ(x) and ⊤ ∑n − ȳ − w ϕ(xn )) + λ∥w∥ −1 the landscape. Our simulator applies no global nonlinear- w = arg min n (y 2 2 . In dual ity, and we did not test whether global-epistasis patterns form ŷ(x) = ȳ + n αn k(x, xn ), α = (K + λI) (y − ȳ), emerge in its landscapes, so our results do not speak to with k1 (x, x′ ) = m(x, x′ ), the number of identical sites. that question. λ ∈ {0.01, 0.1, 1, 10, 100, 1000} (6 configurations) is chosen c) Supervised fitness prediction and design.: FLIP by Spearman on a fixed 20% hold-out of the training set, [1] and ProteinGym [2] are widely used benchmarks on then the model is refit on all training data. real assays; [3] reports that linear regression on one- c) Pairwise ridge (reimplemented; ( ) the focal method).: hot site features combined with an evolutionary density Add all products ϕia ϕjb , i < j, ( L2 A2 features, up to feature is competitive with more elaborate methods when 7.6 × 104 ). Penalising additive terms by λ and pair terms labels are scarce (our additive baseline is the plain one- by λ/r gives the exact kernel hot ridge model, without the density feature, which ( ) m(x, x′ ) has no counterpart in a simulated landscape), and [10] k2 (x, x′ ) = m(x, x′ ) + r , (2) 2 studies low-N engineering with learned representations. FLEXS/AdaLead [11] provides simulated landscapes and because the inner product of two pair-feature vectors greedy sequence-design algorithms; our design step is counts the pairs of sites that match in both sequences. a much simpler single greedy proposal step from the Hyperparameters (λ, r) are chosen from the same six best measured sequence, not AdaLead. We do not use λ values × r ∈ {0.03, 0.1, 0.3, 1} (24 configurations) by pretrained language models. Spearman on a fixed 20% hold-out of the training set, then the model is refit on all training data. Two ablations: d) Spectra, sparsity and learnability of NK-type r fixed (r = 1), and oracle graph, where the pair features landscapes.: The Walsh–Hadamard (Fourier) spectrum of are restricted to pairs of sites that share a neighbourhood fitness functions, including NK landscapes, and its sparsity {i} ∪ N (i), which uses knowledge of the true interaction are studied in [12], which relates that sparsity to how graph that a practitioner would not have. many samples are needed to learn a fitness function; d) MLP and CNN (reimplemented).: The MLP maps [13] regularises neural networks to promote a sparse the flattened one-hot input through 128 and 64 ReLU spectrum when inferring fitness functions; [14] studies units to a scalar. The CNN applies Conv1d(A, 32, k=5) how higher-order epistasis shapes landscape topography. (padding 2) with ReLU, flattens, and applies 64 ReLU Our construction has an exact variance-by-interaction- units and a linear output. Both are trained with AdamW order decomposition (Sec. VI), and several of our findings (lr 2 × 10−3 , batch 64, up to 300 epochs) on standardised (additive ridge is exact at K = 0, pairwise features contain targets with early stopping (patience 25) on a 15% valida- K = 1, high K and large A are hard at N = 1000) tion split; weight decay ∈ {10−3 , 10−1 } (2 configurations) are what such spectra and sample-complexity arguments is selected by validation MSE. Unlike the ridge models, lead one to expect; we therefore report them against the selected network is the early-stopped one trained on the analytical ceilings rather than as discoveries, and the remaining 85%; it is not refit on all training data. the contribution here is the measured gap between those e) Added references and baselines ( (revision ) (mround ) ceilings and what four ridge/L1/network model classes 1).: Order-3 ridge: kernel k3 = m + r2 m + r 3 (all reach at N = 1000. Gaussian-process regression with 2 3 products of up to three one-hot indicators at distinct sequence kernels on protein fitness [15] is the closest sites; λ, r2 , r3 from 6 × 4 × 4 = 96 configurations by relative of our kernel form of pairwise ridge; we do not run Spearman on the same 20% hold-out, refit on all training a GP with a learned kernel or a global-epistasis model. data). Lasso pairwise: L1 regression on the one-hot plus all pair features (no interaction graph given), penalty III. Method chosen from a path of 30 values by Spearman on the same hold-out, refit on all training data. CNN (tuned) a) Simulated landscape.: A sequence is x ∈ and MLP (tuned): the same networks with widths, weight {0, . . . , A − 1}L . Site i has a neighbour set N (i) of K decay and learning rate searched over 24 configurations (4 widths × 3 weight decays × 2 learning rates), the analytic variance-by-order spectrum for the twelve tasks; same 20% hold-out and Spearman objective as pairwise proj: population projections of order 1, 2, 3 on the ridge (24 configurations), and a refit on all training data twelve tasks, evaluated on the same test sets; main_ext: for the epoch count chosen on the hold-out. Population Order-3 ridge, Lasso pairwise, CNN (tuned) and MLP projection (order d): not a learned model; the exact L2 (tuned) on the eight main tasks; sweep_o3: Order-3 projection of the true landscape onto interaction order ridge at N ∈ {250, 500, 2000, 4000} on L15_A4_K2 ≤ d under uniform sequences (computed in closed form (with N = 1000 from main_ext); la_sep: Additive, from the hashed tables), evaluated on the test set, which Pairwise, CNN, MLP and Random on the four (15, 20) is the squared-error-optimal order-≤ d predictor under and (20, 4) tasks; paired: per-seed Spearman differences the data distribution. Analytic spectrum: for n = K + 1 between systems, computed by analysis/derived.py from sites per table and i.i.d. uniform entries, the expected the registry. design_hit and design_gain of these new (n) of fitness share variance in interaction order √ d is vd = runs are logged in the registry but not analysed. d (A − 1) d /(A n − 1), independent of L; v1 + · · · + vd c) Tuning and compute.: All hyperparameters are is the expected best Pearson correlation of an order-≤ d selected inside each run on training data only (Sec. III); predictor (analysis/spectrum.py). the test set is used only for reporting; nothing was f) Random.: Gaussian scores; it gives a sampled tuned across tasks. Hardware: a shared CPU laptop, chance level of both endpoints. 2 threads per run, two runs in parallel; the origi- g) Greedy design step.: The parent is the best mea- nal runs (main, sweep_n, abl_pair) each took sec- sured training sequence x∗ . All L(A − 1) single mutants onds, while the added matched-budget network runs are scored by the model and the top b = 10 are proposed. and the Order-3 sweep took longer, up to minutes per design_hit is the fraction of proposals whose true fitness run (durations are in results/hypotheses.txt; the registry exceeds f (x∗ ); design_gain is maxproposed f − f (x∗ ) di- holds 1196 runs in all). Code, protocol and the run vided by the standard deviation of test fitness (negative registry are in the repository (method/run.py, experi- if no proposal improves). ments/PROTOCOL.md). With five seeds the smallest attainable one-sided Wilcoxon p is 1/32 ≈ 0.031; we IV. Experimental Setup report effect sizes and seed spreads, and treat all p-values Everything is simulated. Tasks are named (paired t-tests from rh compare; Wilcoxon tests and rank L{L}_A{A}_K{K}. The main grid has (L, A) ∈ correlations from analysis/hyp.py) as indicative. {(15, 4), (20, 20)} and K ∈ {0, 1, 2, 4} (eight tasks); a follow-up grid adds (L, A) ∈ {(15, 20), (20, 4)} with the V. Results same K values, so that length and alphabet are varied Table I gives mean test Spearman and mean design_hit separately (K = 3 and other (L, A) pairs were not run). over five seeds for the eight main tasks at N = 1000; per- Each seed (0–4) draws a new landscape and new data; seed standard deviations of both endpoints are in Table II, all systems see the same landscape and data for a given and Fig. 1 plots both endpoints against K. Comparisons (task, seed), so comparisons are paired. In the main are paired over seeds. Paired t-tests come from rh compare group the training set has N = 1000 uniformly random (files results/tables/compare_main_*.csv); the Wilcoxon sequences with noiseless fitness; the test set is 5000 other tests, rank correlations and tests against the exact chance uniformly random sequences. Random sequences are far rate come from analysis/hyp.py (results/hypotheses.txt). from each other (Hamming distance about L(1 − 1/A)), With n = 5 and no correction for multiple comparisons, so this is an interpolation-without-neighbours test, not all p-values are indicative only. All statements below are an extrapolation test. about simulated NK landscapes. In the main grid of a) Endpoints.: Test Spearman correlation, de- Table I L and A change together; Sec. VI separates them. sign_hit and design_gain as defined in Sec. III; with a) H1 (additive models absorb an additive land- b = 10 proposals design_hit takes values in multiples of 0.1 scape): supported.: At K = 0 additive ridge reaches per run. We also log the fraction of all single mutants that Spearman 1.000 at (15, 4) and 1.000 at (20, 20) (threshold beat the parent (frac_mutants_better), which is the exact 0.95). The MLP reaches 0.994 at L20_A20_K0, while the expected hit rate of random proposals and is reported as CNN is lower at 0.965 (Table I); at K = 0 neither network “Chance” in Table I, and fit time. design_gain is logged improves on additive ridge. This is a sanity check on the in the registry but not analysed in this paper. simulator and the pipeline, not a finding. b) Further groups.: sweep_n: N ∈ b) H2 (epistasis hurts the additive model; pairs {250, 500, 2000, 4000} on L15_A4_K2 and L20_A20_K1 recover K=1): supported, but weakly at (20, 20).: for the four learned systems (5 seeds, where the proposal Additive Spearman falls from 1.000 to 0.596, 0.310, 0.079 had planned 3; N = 1000 from the main group). for K = 0, 1, 2, 4 at (15, 4), and from 1.000 to 0.110, abl_pair: the two pairwise-ridge ablations on the eight 0.021, 0.014 at (20, 20). Pairwise ridge beats additive main tasks (5 seeds). Added in revision round 1 (5 ridge at K = 1 in all five seeds on both tasks (so the seeds each, N = 1000 unless stated): spectrum: the one-sided Wilcoxon test of analysis/hyp.py takes its TABLE I Simulated NK landscapes, N = 1000 training variants, 5000 test variants, mean over 5 seeds. Left: held-out Spearman; right: design_hit (fraction of the 10 proposed single mutants of the best measured sequence that beat it). Chance: mean fraction of all single mutants of the parent that beat it, i.e. the exact expected hit rate of random proposals, of which the Random column is a noisy 10-proposal estimate. Bold: best of the four learned systems (Random excluded; ties in bold). Spearman design_hit Task Add. Pair. CNN MLP Rand. Add. Pair. CNN MLP Rand. Chance L15_A4_K0 1.000 1.000 0.999 0.999 0.003 0.98 0.98 0.92 0.94 0.32 0.258 L15_A4_K1 0.596 0.998 0.746 0.815 0.002 0.38 0.90 0.40 0.52 0.28 0.213 L15_A4_K2 0.310 0.508 0.384 0.383 0.000 0.10 0.18 0.18 0.22 0.14 0.102 L15_A4_K4 0.079 0.080 0.065 0.063 −0.001 0.10 0.08 0.08 0.08 0.06 0.067 L20_A20_K0 1.000 0.995 0.965 0.994 −0.007 1.00 1.00 1.00 1.00 0.38 0.263 L20_A20_K1 0.110 0.138 0.077 0.090 0.009 0.34 0.38 0.30 0.32 0.24 0.233 L20_A20_K2 0.021 0.025 0.013 0.020 0.007 0.34 0.30 0.14 0.16 0.14 0.185 L20_A20_K4 0.014 0.014 0.006 0.013 0.008 0.18 0.14 0.04 0.16 0.08 0.115 L=15, A=4, N=1000 (simulated NK) L=20, A=20, N=1000 (simulated NK) 1.0 Additive ridge 1.0 test Spearman test Spearman Pairwise ridge CNN 0.5 MLP 0.5 Random 0.0 0.0 1.0 1.0 design_hit design_hit 0.5 0.5 0.0 0.0 0 1 2 4 0 1 2 4 K K Fig. 1. Spearman (top) and design_hit (bottom) versus K for the two (L, A) settings, N = 1000; mean ± SD over 5 seeds. Everything is simulated. smallest attainable p-value with five seeds, 1/32). At any of the six cells with K ≥ 1 (Table I). The networks K = 1 every contribution Ti is a function of two sites, so have higher means than additive ridge on L15_A4_K1 the model class contains the truth: at (15,4) the pairwise and L15_A4_K2 (0.746/0.815 and 0.384/0.383 versus model reaches 0.998 versus 0.596. At (20,20) the gain is 0.596 and 0.310 for CNN/MLP/Additive; at K = 2 the only 0.138 versus 0.110. The exact population projection differences are within the seed SDs of Table II), i.e. at of the same landscapes onto pairwise terms has Spearman K = 1 they absorb some non-additivity, but less than the hvalproj/population − projection − order − 2/l20a 20k model that has 1/spearman/mean : 3pair features built in. At (20, 20) their at L20_A20_K1 (Table VII), so the pairwise model means are at or below additive ridge. The CNN’s locality class contains the landscape there and the shortfall is prior may be a poor match for the random-neighbour estimation error with up to 76,000 pair coefficients and structure of these landscapes; we did not test this, so this is 1000 sequences, not representational; the N sweep and not a statement about CNNs in general. This comparison the oracle-graph ablation of Sec. VI point the same way. was repeated with matched-budget networks (Table IX, c) H3 (small networks do not beat pairwise ridge at Sec. VI): the tuned CNN and MLP exceed pairwise ridge this scale): supported at N = 1000.: Neither the CNN in none of the six cells with K ≥ 1 either. nor the MLP exceeds pairwise ridge in mean Spearman in TABLE II Standard deviation over the 5 seeds of test Spearman and of design_hit (same cells as Table I). SD of Spearman SD of design_hit Task Add. Pair. CNN MLP Add. Pair. CNN MLP Rand. L15_A4_K0 0.000 0.000 0.000 0.000 0.04 0.04 0.04 0.05 0.08 L15_A4_K1 0.042 0.002 0.052 0.020 0.16 0.07 0.10 0.13 0.13 L15_A4_K2 0.096 0.040 0.079 0.126 0.07 0.20 0.08 0.15 0.17 L15_A4_K4 0.017 0.019 0.011 0.011 0.10 0.08 0.04 0.08 0.09 L20_A20_K0 0.000 0.000 0.005 0.002 0.00 0.00 0.00 0.00 0.16 L20_A20_K1 0.029 0.038 0.032 0.022 0.21 0.28 0.16 0.15 0.11 L20_A20_K2 0.016 0.015 0.020 0.017 0.15 0.10 0.11 0.11 0.11 L20_A20_K4 0.010 0.008 0.011 0.011 0.08 0.09 0.05 0.11 0.13 d) H4 (design success tracks prediction): registered TABLE III criterion met in sign; reported as an exploratory observa- H4 details: mean paired difference in design_hit over 5 seeds (reference minus the other system) with a two-sided paired t-test, tion.: The design endpoint was not strengthened in this from rh compare with additive ridge as the reference. p-values are revision (no added landscapes, parents or larger batches), nominal and uncorrected. The rank correlations of the registered so this paragraph is exploratory and its conclusions are test and the tests against the exact chance rate are in results/hypotheses.txt. not carried into the headline claims. The registered test is that, across the 40 (task, seed) units, the Spearman Quantity Value p correlation between the Pairwise−Additive gain in test Add.−Pair. hit, L15_A4_K1 −0.52 0.003 Spearman and the gain in design_hit is positive. It is Add.−Pair. hit, L15_A4_K2 −0.08 0.34 positive (results/hypotheses.txt, Fig. 2). Its nominal p- Add.−Pair. hit, L20_A20_K1 −0.04 0.48 value treats the 40 units as independent, which they Add.−Rand. hit, L20_A20_K2 0.20 0.15 are not (five seeds in each of eight tasks), and the Add.−Rand. hit, L20_A20_K4 0.10 0.30 association is carried by one cell, L15_A4_K1, where pairwise ridge reaches design_hit 0.90 versus 0.38 for additive ridge (Table III): without that cell the correlation unexplained: at L20_A20_K2 and L20_A20_K4 additive is smaller and not nominally significant, and over the ridge has design_hit 0.34 and 0.18, against 0.14 and eight task means it is not nominally significant either 0.08 for Random and 0.185 and 0.115 for chance, while (results/hypotheses.txt). On L15_A4_K2, a Spearman its Spearman on random test sequences is low (0.021, gain from 0.310 to 0.508 comes with a design_hit change 0.014; Random 0.007, 0.008). With five seeds of 10 from 0.10 to 0.18 only (paired t-test p = 0.34, Table III), proposals these margins are not distinguishable from within the seed spread of Table II. So prediction gains noise (paired t-test p = 0.15 and 0.30 against Random, translated into a clear design gain in one cell only. Table III; the tests against the exact chance rate in The second part of the registered test holds for the results/hypotheses.txt are not nominally significant means: at K ≤ 1 every learned model’s mean design_hit either), so we draw no conclusion from them. Whether a exceeds Random’s and the exact chance rate (Table I). model can rank the single mutants of one parent while The margin is large at K = 0 and for pairwise ridge at its Spearman on random, far-apart sequences is near zero L15_A4_K1. Elsewhere it is not: at L20_A20_K1 all would need more seeds and larger proposal batches to four learned models (0.30 to 0.38 versus 0.24 for Random test. and 0.233 for chance) are within their seed SDs (0.15 to e) Where every model fails.: At K = 4 for both 0.28), and at L15_A4_K1 the additive, CNN and MLP settings and at (20, 20) with K ≥ 2, all four main systems margins over the Random system are not distinguishable have mean Spearman of at most 0.080 and, for (20, 20), at from noise in paired t-tests (rh compare), although the most 0.025 (Table I); the added third-order kernel reaches CNN and MLP are nominally above the exact chance rate 0.095 at L15_A4_K4 and 0.026 at L20_A20_K2, and there (results/hypotheses.txt). no added model is much higher (Table VII). Analytically At K ≥ 2 no learned model’s design_hit (Table VI) the variance at these tasks lies mostly in differs from Random’s in paired t-tests (rh interactions of order above two, so even the exact pairwise compare with Random as the reference, re- projection is limited at K = 4 (0.308 at L15_A4_K4); sults/tables/compare_main_design_hit_ref_random.csv; differences between system means there are comparable four tasks, four models; the unpaired Welch test in the to or smaller than the seed SDs (Table II), and on same output is nominally at the conventional threshold L20_A20_K4 all learned means (≤ 0.014) are close to for additive and pairwise ridge at L20_A20_K2, p = 0.05 Random’s (0.008). The data do not say whether more for additive ridge). One pattern in the means is left data would help in these regimes; the N sweep only covers TABLE IV L15 A4 K0 L20 A20 K0 Test Spearman versus training size N (mean of 5 seeds). L15 A4 K1 L20 A20 K1 design_hit: Pairwise − Additive 0.6 L15 A4 K2 L20 A20 K2 L15 A4 K4 L20 A20 K4 Task N Add. Pair. CNN MLP 0.4 L15_A4_K2 250 0.234 0.301 0.232 0.234 L15_A4_K2 500 0.285 0.374 0.284 0.283 0.2 L15_A4_K2 1000 0.310 0.508 0.384 0.383 L15_A4_K2 2000 0.335 0.594 0.515 0.517 0.0 L15_A4_K2 4000 0.358 0.669 0.616 0.628 L20_A20_K1 250 0.065 0.070 0.048 0.058 −0.2 L20_A20_K1 500 0.068 0.091 0.060 0.070 L20_A20_K1 1000 0.110 0.138 0.077 0.090 0.0 0.1 0.2 0.3 0.4 L20_A20_K1 2000 0.163 0.215 0.115 0.140 Spearman: Pairwise − Additive L20_A20_K1 4000 0.211 0.302 0.162 0.192 Fig. 2. Per (task, seed): gain of Pairwise over Additive in Spearman (x) versus in design_hit (y; small vertical jitter added for display). Circles: L = 15, A = 4; triangles: L = 20, A = 20. L15 A4 K2 L20 A20 K1 0.7 Additive ridge Pairwise ridge 0.30 0.6 CNN L15_A4_K2 and L20_A20_K1. Also, pairwise ridge is MLP 0.25 test Spearman 0.5 not the best system at K = 0 at (20, 20) (0.995 versus 0.20 1.000), which may be a small cost of fitting uninformative 0.4 0.15 pair features: the oracle-graph variant, which has no pair 0.3 features at K = 0, reaches 1.000 (Table V). 0.10 0.2 0.05 VI. Ablations and Analysis 0.1 250 1000 4000 250 1000 4000 a) Training-set size (H5): supported.: Table IV and N train N train Fig. 3 vary N from 250 to 4000 on L15_A4_K2 and L20_A20_K1 (N = 1000 comes from the main group). The registered test concerns the K = 2 task: Fig. 3. Test Spearman versus N (mean ± SD, 5 seeds). the Pairwise−Additive Spearman gap there is larger at N = 4000 (0.669 versus 0.358) than at N = 250 (0.301 versus 0.234), and grows at every step in between; on cells: 0.508 → 0.621 on L15_A4_K2 and 0.138 → 0.250 L20_A20_K1 it also grows (from 0.070 versus 0.065 to on L20_A20_K1; it is at ceiling (1.000) at K ≤ 1 for 0.302 versus 0.211). Regarding H3, the networks stay (15,4). Even then L15_A4_K2 stays at 0.621, below the below pairwise ridge at every N on both tasks. On level that K = 1 reaches, which is consistent with (but L15_A4_K2 they are indistinguishable from additive not proof of) order-3 terms that no pairwise model can ridge at N = 500 (0.284, 0.283 versus 0.285) and close capture; and at K = 4 nothing helps (0.084 at best). The the distance to pairwise ridge at N = 4000 (0.616 and third-order kernel below tests that explanation directly. 0.628 versus 0.669). On L20_A20_K1, however, they are Knowing which pairs interact thus raised mean Spearman at or below additive ridge at every N (the one exception, clearly in those two cells and changed it little in the MLP 0.070 versus 0.068 at N = 500, is far inside the seed other six (Table V); this is an upper reference for what spread of Fig. 3), the best score at N = 4000 is only 0.302, pair selection could add in this simulator, obtained with and their distance to pairwise ridge does not shrink (0.162 information a practitioner lacks. and 0.192 versus 0.302). So H3 held at every N we ran c) Analytic spectrum and ceilings.: For this construc- with the original networks (the matched-budget networks tion the expected share of fitness variance in interaction were run at N = 1000 only); the sweep suggests the gap order d is known in closed form (Sec. III), so each task may close with more data on L15_A4_K2, but N > 4000 has a ceiling for what an order-≤ √ d predictor can reach. was not run and only two tasks were swept. Table VI lists the shares and Rd2 (the best attainable b) Pair-feature ablations.: Table V compares tuned Pearson correlation of an order-≤ d predictor; Spearman Pairwise ridge with (i) the penalty ratio fixed at r = 1 is used elsewhere, so the comparison is approximate), for and (ii) pair features restricted to the true interaction the main tasks and the four added tasks; they depend graph (an oracle). Fixing r = 1 matters only where on A and K only, not on L. Table VII sets the observed pair features carry no signal: at L20_A20_K0 it costs mean Spearman of the main models next to the exact 0.995 → 0.897; elsewhere the differences are within one population projections of the sampled landscapes. Three seed standard deviation. The oracle graph helps in two readings follow from these tables. (i) At K = 1 the TABLE V TABLE VII Pairwise-ridge ablations, test Spearman, mean ± SD over 5 seeds Mean test Spearman at N = 1000 over 5 seeds: additive ridge, (N = 1000). population projection onto order 1 (Proj1 ), pairwise ridge, pairwise ridge with the oracle graph, L1 pairwise (Lasso), order-3 ridge and Task Pair. (tuned r) Pair. (r=1) Pair. (oracle graph) population projection onto order 2 (Proj2 ). Projections are references, not learned models. L15_A4_K0 1.000 ± 0.000 1.000 ± 0.000 1.000 ± 0.000 L15_A4_K1 0.998 ± 0.002 0.998 ± 0.002 1.000 ± 0.000 L15_A4_K2 0.508 ± 0.040 0.500 ± 0.048 0.621 ± 0.024 Task Add. Proj1 Pair. Oracle Lasso Ord.-3 Proj2 L15_A4_K4 0.080 ± 0.019 0.079 ± 0.031 0.084 ± 0.028 L15_A4_K0 1.000 1.000 1.000 1.000 1.000 1.000 1.000 L20_A20_K0 0.995 ± 0.000 0.897 ± 0.007 1.000 ± 0.000 L15_A4_K1 0.596 0.619 0.998 1.000 1.000 0.951 1.000 L20_A20_K1 0.138 ± 0.038 0.150 ± 0.025 0.250 ± 0.024 L15_A4_K2 0.310 0.363 0.508 0.621 0.500 0.532 0.740 L20_A20_K2 0.025 ± 0.015 0.028 ± 0.017 0.029 ± 0.013 L15_A4_K4 0.079 0.121 0.080 0.084 0.057 0.095 0.308 L20_A20_K4 0.014 ± 0.008 0.013 ± 0.007 0.015 ± 0.008 L20_A20_K0 1.000 1.000 0.995 1.000 1.000 0.951 1.000 L20_A20_K1 0.110 0.291 0.138 0.250 0.103 0.138 1.000 L20_A20_K2 0.021 0.077 0.025 0.029 0.012 0.026 0.362 TABLE VI L20_A20_K4 0.014 0.005 0.014 0.015 0.015 0.012 0.040 Analytic expected variance √ shares by interaction order (v1 , v2 , v3 , and the remainder) and Rd2 , the best attainable correlation of an TABLE VIII order-≤ d predictor, per task (they depend on A and K only). Test Spearman versus N on L15_A4_K2 (mean of 5 seeds): √ √ √ additive ridge, pairwise ridge and order-3 ridge. Task v1 v2 v3 v>3 R12 R22 R32 L15_A4_K0 1.000 0.000 0.000 0.000 1.000 1.000 1.000 Task N Add. Pair. Order-3 L15_A4_K1 0.400 0.600 0.000 0.000 0.632 1.000 1.000 L15_A4_K2 250 0.234 0.301 0.314 L15_A4_K2 0.143 0.429 0.429 0.000 0.378 0.756 1.000 L15_A4_K2 500 0.285 0.374 0.402 L15_A4_K4 0.015 0.088 0.264 0.633 0.121 0.320 0.605 L15_A4_K2 1000 0.310 0.508 0.532 L20_A20_K0 1.000 0.000 0.000 0.000 1.000 1.000 1.000 L15_A4_K2 2000 0.335 0.594 0.641 L20_A20_K1 0.095 0.905 0.000 0.000 0.309 1.000 1.000 L15_A4_K2 4000 0.358 0.669 0.764 L20_A20_K2 0.007 0.135 0.857 0.000 0.084 0.378 1.000 L20_A20_K4 0.000 0.001 0.021 0.977 0.005 0.034 0.150 L15_A20_K0 1.000 0.000 0.000 0.000 1.000 1.000 1.000 L15_A20_K1 0.095 0.905 0.000 0.000 0.309 1.000 1.000 population projection (0.740), and it remains below the L15_A20_K2 0.007 0.135 0.857 0.000 0.084 0.378 1.000 L15_A20_K4 0.000 0.001 0.021 0.977 0.005 0.034 0.150 order-3 projection of one, so N = 4000 does not close the L20_A4_K0 1.000 0.000 0.000 0.000 1.000 1.000 1.000 gap. This supports the order-3 explanation of the oracle L20_A4_K1 0.400 0.600 0.000 0.000 0.632 1.000 1.000 ceiling at K = 2 and shows that the shortfall at N = 1000 L20_A4_K2 0.143 0.429 0.429 0.000 0.378 0.756 1.000 L20_A4_K4 0.015 0.088 0.264 0.633 0.121 0.320 0.605 is largely estimation. The price of the larger feature space is visible where the landscape is simpler: order-3 ridge is below pairwise ridge at L15_A4_K1 (0.951 versus 0.998) variance is entirely in orders 1 and 2, with an additive and at the K = 0 tasks at (20, 20); at (20, 20) with K ≥ 1 share of 0.400 at A = 4 and 0.095 at A = 20; additive its means are within the seed spread of pairwise ridge’s. ridge is near its own population projection at A = 4 The L1 pairwise model, which needs no interaction graph, (0.596 versus 0.619) but not at A = 20 (0.110 versus is close to pairwise ridge at the (15, 4) tasks (1.000 at 0.291). (ii) Pairwise ridge is at its ceiling at L15_A4_K1 L15_A4_K1, 0.500 at L15_A4_K2) and does not recover (0.998 versus 1.000) and far below it at L20_A20_K1 the oracle-graph gain at L20_A20_K1 (0.103 versus 0.250 (0.138 versus 1.000), so that failure is estimation error, not for the oracle and 0.138 for pairwise ridge). Neither was representational limit. (iii) At K = 2 the pairwise ceiling tuned beyond one search grid each and only the main grid is below one (0.756 analytically; 0.740 for the sampled was run (the N scaling is for order-3 ridge on L15_A4_K2 landscapes at L15_A4_K2), and pairwise ridge reaches only). 0.508, the oracle-graph variant 0.621: part of the gap to e) Matched-budget networks.: Table IX adds CNN one is representational, part is estimation. At K = 4 the (tuned) and MLP (tuned), which search 4 widths × order-3 projection itself is only 0.580 at L15_A4_K4 and 3 weight decays × 2 learning rates (24 configurations, every learned model is far below it. That the failures at as many as pairwise ridge), select and early-stop on high K and large A fall where the spectrum puts the Spearman on the same 20% hold-out, and are refit on all variance in high orders or spreads it over many pair and training data. They are better than the original networks triple terms is what one expects from the Fourier-spectrum at L15_A4_K1 (0.820 and 0.859 versus 0.746 and 0.815) literature cited in Sec. II; the measured quantity here is and at L15_A4_K2 (0.450 and 0.484 versus 0.384 and how far below these ceilings the models are at N = 1000. 0.383), and remain below pairwise ridge (0.998 and 0.508) d) Order-3 kernel and sparse pairwise model.: Ta- in every cell with K ≥ 1. At (20, 20) with K ≥ 1 the ble VIII gives the order-3 ridge against N on L15_A4_K2. tuned networks are within the seed spread of the original It is above pairwise ridge in mean at every N and the gap ones and of additive ridge; at L20_A20_K0 the tuned is larger at N = 4000 than at N = 250 ( 0.314 versus CNN is higher than the original (0.993 versus 0.965). So 0.301 at N = 250 to 0.764 versus 0.669 at N = 4000); at the H3 ordering at N = 1000 survives a matched budget, N = 4000 its mean exceeds the Spearman of the pairwise selection objective and refit for this architecture family; TABLE IX and A change together; the added (15, 20) and (20, 4) Test Spearman at N = 1000 (mean of 5 seeds): pairwise ridge with tasks separate them at N = 1000 for four values of the original and the matched-budget (tuned) CNN and MLP. K, but intermediate L and A were not run. The N Task Pair. CNN CNN (tuned) MLP MLP (tuned) sweep covers two tasks (plus order-3 ridge on one) L15_A4_K0 1.000 0.999 1.000 0.999 1.000 and none of the regimes where every model fails. Per- L15_A4_K1 0.998 0.746 0.820 0.815 0.859 cell differences with five seeds are often within seed L15_A4_K2 0.508 0.384 0.450 0.383 0.484 L15_A4_K4 0.080 0.065 0.074 0.063 0.070 variation. • Reimplemented baselines of limited breadth. The L20_A20_K0 0.995 0.965 0.993 0.994 0.999 L20_A20_K1 0.138 0.077 0.085 0.090 0.106 original CNN and MLP have 2 configurations (weight L20_A20_K2 0.025 0.013 0.019 0.020 0.016 L20_A20_K4 0.014 0.006 −0.001 0.013 0.013 decay) against 24 for pairwise ridge and 6 for additive ridge, and no refit on all data. A matched-budget version (24 configurations, Spearman selection, refit) TABLE X Length and alphabet varied separately, N = 1000, mean test was run at N = 1000 on the main grid and gives Spearman over 5 seeds: additive ridge, population projection onto the same ordering; the N sweep still uses the original order 1 (Proj1 ), pairwise ridge, population projection onto order 2 networks, and only one small CNN and one MLP (Proj2 ), CNN, MLP and Random. family were searched. No Gaussian process with a Task Add. Proj1 Pair. Proj2 CNN MLP Rand. learned kernel, global-epistasis model, ensembles or L15_A20_K0 1.000 1.000 0.999 1.000 0.985 0.997 −0.005 pretraining was run, and the L1 and order-3 models L15_A20_K1 0.141 0.293 0.183 1.000 0.099 0.125 −0.007 had one search grid each. L15_A20_K2 0.016 0.085 0.021 0.375 0.021 0.011 −0.005 L15_A20_K4 −0.005 0.011 −0.008 0.033 −0.003 −0.010 −0.004 • Test distribution. Random train and test sequences; L20_A4_K0 1.000 1.000 1.000 1.000 0.999 0.999 0.005 no homology, no extrapolation split, no noise. L20_A4_K1 0.590 0.620 0.828 1.000 0.606 0.699 0.005 L20_A4_K2 0.301 0.369 0.441 0.735 0.320 0.347 0.006 • Design endpoint. One greedy step of 10 proposals L20_A4_K4 0.059 0.118 0.066 0.310 0.051 0.056 −0.007 from one parent; design_hit is quantised in tenths per run, so with five seeds only large differences are detectable: outside K = 0 and pairwise ridge it still concerns one small CNN and one MLP family and at L15_A4_K1, the design_hit differences in this N = 1000 only (the N sweep used the original networks). paper are at most nominally significant in uncorrected f) Length and alphabet separately.: Table X adds tests, and the H4 correlation rests on that one cell. (L, A) = (15, 20) and (20, 4) with the same K. At K = 1 The parent is the best training sequence (selected pairwise ridge reaches 0.828 at (20, 4) and only 0.183 at on noiseless fitness), and no closed-loop or batch- (15, 20), against 0.998 at (15, 4) and 0.138 at (20, 20). diversity design was tried. The endpoint was not Raising A from 4 to 20 at fixed L is therefore what strengthened in this revision (no added landscapes, removes the recovery; raising L from 15 to 20 at A = 4 parents or proposal batches), so it is an exploratory lowers it less (0.998 to 0.828), consistent with more pair secondary result and the H4 association is not a features at fixed N . In every one of these four settings headline claim. the pairwise projection at K = 1 is one, so the differences • Ceilings are expectations and projections. The ana- are estimation, not representation. At K = 2 with A = 4 lytic spectrum is an expectation over random tables pairwise ridge reaches 0.441 at (20, 4) (0.508 at (15, 4)), under uniform sequences and compares Pearson-type while both A = 20 settings are near chance for every ceilings with Spearman values; the population pro- model. The networks again do not exceed pairwise ridge jections are exact for the sampled landscapes but are at K ≥ 1 in the added settings except where all models squared-error-optimal, not Spearman-optimal, refer- are within noise (Table X). These are four settings and ences. one K grid; intermediate A and L were not run, so this attributes the main contrast mostly to alphabet size, with VIII. Conclusion a smaller length effect, only for these values. On simulated random-neighbour NK landscapes, addi- tive ridge absorbs K = 0 completely, and pairwise ridge VII. Limitations absorbs K = 1 at (15, 4) (0.998 Spearman at N = 1000) • Simulated, i.i.d. NK only. Contributions are i.i.d. and at (20, 4) (0.828) but not at (15, 20) (0.183) or (20, 20) uniform tables with random neighbours; real proteins (0.138); across these four settings alphabet size is the fac- have correlated effects, global epistasis, sparsity, noise tor most associated with the failure, with a smaller length and structured neighbourhoods. The results say how effect, and the pairwise projection of those landscapes is these models behave on this family and nothing about one, so the failure is estimation error at N = 1000. These proteins. patterns are what the analytic variance-by-order spectrum • Scale. Eight tasks at N = 1000, five seeds, two (L, A) of the construction and sample-complexity arguments pairs, K ∈ {0, 1, 2, 4}; K = 3, intermediate alphabets lead one to expect; the measured part is how far below and noisy labels were not run. In the main grid L the ceilings the models are. A third-order kernel raises L15_A4_K2 with N (0.314 at N = 250 to 0.764 at [11] S. Sinai, R. Wang, A. Whatley, S. Slocum, E. Locane, N = 4000) but is still below one at N = 4000; an L1 and E. D. Kelsic, “AdaLead: A simple and robust adaptive greedy search algorithm for sequence design,” arXiv preprint pairwise model does not beat pairwise ridge. At K = 4, arXiv:2010.02141, 2020. [Online]. Available: https://arxiv.org/ and at (20, 20) with K ≥ 2, no model learned much from abs/2010.02141 N = 1000 (no learned mean above 0.095); larger N was not [12] D. H. Brookes, A. Aghazadeh, and J. Listgarten, “On the sparsity of fitness functions and implications for learning,” tested in those regimes. The small CNN and MLP did not Proceedings of the National Academy of Sciences, 2022. beat pairwise ridge at N = 1000, with the original or the [Online]. Available: https://doi.org/10.1073/pnas.2109649118 matched-budget tuning, and the original networks stayed [13] A. Aghazadeh, H. Nisonoff, O. Ocal, D. H. Brookes, Y. Huang, O. O. Koyluoglu, J. Listgarten, and K. Ramchandran, below it up to N = 4000 on the two sweep tasks, with a “Epistatic Net allows the sparse spectral regularization narrowing gap on L15_A4_K2 only. The registered design of deep neural networks for inferring fitness functions,” criterion was met in sign, but it rests on one task cell and Nature Communications, 2021. [Online]. Available: https: //doi.org/10.1038/s41467-021-25371-3 with 10 proposals and five seeds the design hit rates at [14] D. M. Weinreich, Y. Lan, J. Jaffe, and R. B. Heckendorn, K ≥ 2 could not be reliably separated from chance; it is “The Influence of Higher-Order Epistasis on Biological Fitness reported as exploratory. A fuller study would add noisy Landscape Topography,” Journal of Statistical Physics, 2018. [Online]. Available: https://doi.org/10.1007/s10955-018-1975-3 labels, correlated (non-i.i.d.) landscapes, intermediate K, [15] P. A. Romero, A. Krause, and F. H. Arnold, “Navigating the L and A, larger N in the hard regimes, a properly powered protein fitness landscape with Gaussian processes,” Proceedings design endpoint, and real assays; none of that was done of the National Academy of Sciences, 2013. [Online]. Available: https://doi.org/10.1073/pnas.1215251110 here. References [1] C. Dallago, J. Mou, K. E. Johnston, B. J. Wittmann, N. Bhattacharya, S. Goldman, A. Madani, and K. K. Yang, “FLIP: Benchmark tasks in fitness landscape inference for proteins,” 2021. [Online]. Available: https://doi.org/10.1101/ 2021.11.09.467890 [2] P. Notin, A. W. Kollasch, D. Ritter, L. van Niekerk, S. Paul, H. Spinner, N. Rollins, A. Shaw, R. Weitzman, J. Frazer, M. Dias, D. Franceschi, R. Orenbuch, Y. Gal, and D. S. Marks, “ProteinGym: Large-Scale Benchmarks for Protein Design and Fitness Prediction,” 2023. [Online]. Available: https://doi.org/10.1101/2023.12.07.570727 [3] C. Hsu, H. Nisonoff, C. Fannjiang, and J. Listgarten, “Learning protein fitness models from evolutionary and assay- labeled data,” Nature Biotechnology, 2022. [Online]. Available: https://doi.org/10.1038/s41587-021-01146-5 [4] N. C. Wu, L. Dai, C. A. Olson, J. O. Lloyd-Smith, and R. Sun, “Adaptation in protein fitness landscapes is facilitated by indirect paths,” eLife, 2016. [Online]. Available: https://doi.org/10.7554/eLife.16965 [5] K. S. Sarkisyan, D. A. Bolotin, M. V. Meer, D. R. Usmanova, A. S. Mishin, G. V. Sharonov, D. N. Ivankov, N. G. Bozhanova, M. S. Baranov, O. Soylemez, N. S. Bogatyreva, P. K. Vlasov, E. S. Egorov, M. D. Logacheva, A. S. Kondrashov, D. M. Chudakov, E. V. Putintseva, I. Z. Mamedov, D. S. Tawfik, K. A. Lukyanov, and F. A. Kondrashov, “Local fitness landscape of the green fluorescent protein,” Nature, 2016. [Online]. Available: https://doi.org/10.1038/nature17995 [6] S. A. Kauffman and E. D. Weinberger, “The NK model of rugged fitness landscapes and its application to maturation of the immune response,” Journal of Theoretical Biology, 1989. [Online]. Available: https://doi.org/10.1016/S0022-5193(89) 80019-0 [7] S. Nowak and J. Krug, “Analysis of adaptive walks on NK fitness landscapes with different interaction schemes,” arXiv preprint arXiv:1503.07796, 2015. [Online]. Available: https://arxiv.org/abs/1503.07796 [8] W.-K. Chen and S. Tang, “On the Fitness Landscape in the N K Model,” arXiv preprint arXiv:2508.12464, 2025. [Online]. Available: https://arxiv.org/abs/2508.12464 [9] J. Diaz-Colunga, A. Skwara, K. Gowda, R. Diaz-Uriarte, M. Tikhonov, D. Bajic, and A. Sanchez, “Global epistasis on fitness landscapes,” arXiv preprint arXiv:2210.03677, 2022. [Online]. Available: https://arxiv.org/abs/2210.03677 [10] S. Biswas, G. Khimulya, E. C. Alley, K. M. Esvelt, and G. M. Church, “Low-N protein engineering with data- efficient deep learning,” 2020. [Online]. Available: https: //doi.org/10.1101/2020.01.23.917682