arXiv:2608.24953q-bio.QMAug 2026

Manuscript Offprint

arXiv:2608.24953

Beyond Tokens: Probing Higher-Order Epistasis in Learned Protein Representations

Maryam Rahimimovassagh, Ivan Garibay, Niloofar Yousefi

Abstract

Protein fitness landscapes contain nonlinear interactions in which the effect of one mutation depends on the identities of other residues. Although learning systems can predict protein fitness, predictive performance alone does not reveal how experimentally measured higher-order structure is organized within their internal representations.

We introduce ORBIT, an Order-Resolved Benchmarking of Interaction Transformations framework that distinguishes interaction presence, representation accessibility, and functional recovery. ORBIT first validates its Walsh-based diagnostics on synthetic landscapes with known interaction order and then analyzes the experimentally measured GB1 fitness landscape under the biologically motivated FLIP 2-vs-rest generalization setting. We compare ridge regression, a standard MLP, independent token representations, nonlinear independent tokens, and Residual Interaction Tokenization (RIT).

In the primary two-hidden-layer comparison across 20 stochastic training seeds, planned seed-paired inference found no architecture differences in FLIP test R2R^2, strict third- or fourth-order functional recovery, or final-hidden-layer third- or fourth-order accessibility. In contrast, RIT significantly increased pairwise accessibility directly at the token stage relative to both independent-token controls ( ΔAtok,2=0.2468\Delta A_{\mathrm{tok},2} = 0.2468, dz=1.67d_z = 1.67, Holm-adjusted p=1.14×10−5p = 1.14 \times 10^{-5}), without a detectable downstream higher-order advantage.

A pre-specified depth/capacity sensitivity analysis then increased the backbone from two to three or four hidden layers. Deeper MLPs showed significant gains in FLIP prediction, third-order functional recovery, and final-layer third-order accessibility. Fourth-order accessibility also improved relative to the shallow MLP, although its absolute held-out R2R^2 remained below zero. Independent tokens showed a smaller prediction gain at depth four, whereas nonlinear tokens and RIT showed no Holm-significant depth effects on the confirmatory endpoints. Because the deeper models also contain additional parameters, these results are interpreted as depth/capacity sensitivity rather than a parameter-matched causal effect of depth.

ORBIT therefore reveals representation-level changes that are not apparent from conventional prediction metrics alone and separates early interaction-aware tokenization effects from interaction structure that can be constructed by downstream nonlinear capacity.

1 Introduction

Protein sequence–function relationships are often strongly nonlinear. The phenotypic effect of an amino-acid substitution can depend on the identities of other residues, producing epistasis. As additional mutations are combined, these dependencies can involve increasingly higher-order interactions that cannot be explained by independent single-mutation effects.

The GB1 protein fitness landscape provides a particularly useful setting for studying this phenomenon. The original experiment measured 149,361 of the 204=160,00020^4 = 160,000 possible combinations across four epistatic positions in the B1 domain of protein G [1]. The landscape has subsequently become a standard benchmark for protein fitness inference.

Machine-learning benchmarks such as FLIP explicitly use GB1 to test whether models trained on variants with fewer mutations can generalize to variants containing more simultaneous mutations [2]. At the same time, aggregate predictive performance provides an incomplete description of what a model has learned. Models with similar test error may construct, expose, and preserve interaction structure differently inside their representations.

A complementary line of work studies fitness landscapes through their spectral structure. Neural networks trained by gradient descent can preferentially learn lower-degree Walsh–Fourier components [4]. Sparse spectral regularization can improve recovery of higher-order fitness functions [3], and Fourier methods have been used to extract higher-order interactions from protein language model outputs [5]. These approaches demonstrate that interaction order is informative at the level of the learned function.

However, they leave a distinct representation-learning question:

Where in a molecular learning pipeline does interaction information of increasing order become accessible, and how does that trajectory depend on representation design and downstream capacity?

Consider a predictor composed of multiple representation stages,

X⟶Ztok⟶H1⟶H2⟶y^.(1)X\longrightarrow Z_{\mathrm{t o k}}\longrightarrow H_{1}\longrightarrow H_{2}\longrightarrow\hat{y}. \tag{1}

Two models may achieve similar final predictive performance while organizing interaction information very differently. An interaction-aware tokenizer may expose pairwise relationships directly at ZtokZ_{tok}, whereas an initially independent representation may rely on later nonlinear transformations to construct comparable or higher-order structure. Likewise, increasing downstream depth or capacity may change how much interaction structure becomes accessible without changing the initial token representation.

We introduce ORBIT, an Order-Resolved Benchmarking of Interaction Transformations framework for analyzing these trajectories. ORBIT distinguishes three complementary levels:

  1. Interaction presence: which interaction orders are expressed in a learned representation;

  2. Representation accessibility: which experimentally measured interaction components can be recovered from each internal representation stage;

  3. Functional recovery: which interaction orders are faithfully reproduced by the final predicted fitness landscape.

Presence is quantified using normalized representation Walsh energy Eℓ,kE_{\ell,k}, accessibility using held-out probe performance Aℓ,kA_{\ell,k}, and final functional recovery using order-specific Rk2R_k^2. Together, these measurements allow us to distinguish a model that merely contains order-specific variation from one in which that information is linearly accessible or successfully expressed in the predicted biological function.

Our central questions are:

  1. Does ORBIT correctly recover interaction order when the ground-truth structure is known?

  2. Can models trained only on wild-type, single, and double mutants recover function on experimentally measured triple and quadruple mutants?

  3. Where do first- through fourth-order interactions become accessible across learned representation stages?

  4. Does explicit interaction-aware tokenization alter the point at which interaction information first becomes accessible?

  5. Can predictive performance, representation accessibility, and higher-order functional recovery diverge?

  6. Are these conclusions sensitive to additional downstream network depth and capacity?

Contributions. Our contributions are:

• We introduce ORBIT, an order-resolved framework that jointly measures interaction presence, representation accessibility, and functional recovery across learned molecular representations.

• We derive a representation-level Walsh analysis that quantifies order-specific structure directly within hidden representations rather than only at final model outputs.

• We validate ORBIT on controlled synthetic landscapes with known first- through fourth-order structure and then apply it to the experimentally measured GB1 fitness landscape under the biologically motivated FLIP 2-vs-rest generalization setting.

• We introduce an AA-identity-strict probe protocol that evaluates representation accessibility across held-out non-WT amino-acid identities, and we quantify stochastic variation across 20 paired training seeds.

  • In the primary matched-backbone comparison, we show that Residual Interaction Tokenization (RIT) substantially increases pairwise accessibility directly at the token stage, despite no detectable downstream advantage in higher-order functional recovery, final-layer higher-order accessibility, or FLIP test R2R^{2}.

  • Through a pre-specified depth/capacity sensitivity analysis, we show that additional downstream capacity can substantially improve third-order functional recovery and higher-order accessibility for the MLP. This demonstrates that early interaction-aware representation and later nonlinear construction constitute distinct routes by which interaction information can become accessible.

Figure 1 summarizes the primary ORBIT workflow, from synthetic ground-truth validation to GB1 functional and representation-level analysis. The pre-specified depth/capacity sensitivity analysis extends the downstream backbone separately while preserving the same ORBIT measurements.