Papers
Topics
Authors
Recent
Search
2000 character limit reached

FoldSAE: Steerable Protein Structure Design

Updated 27 April 2026
  • FoldSAE is a mechanistic framework that employs sparse autoencoders to extract interpretable secondary structure features from RFdiffusion activations.
  • The approach uses block-level ablations and logistic probing to identify helix and strand detectors, enabling tunable interventions during protein design.
  • Steering experiments demonstrate that controlled adjustments in activations can modulate helical and strand content while maintaining biological plausibility.

FoldSAE is a mechanistic interpretability framework for RFdiffusion, a generative model of protein structures, which employs sparse autoencoders (SAEs) to discover interpretable, secondary structure-specific features within the model's activations and leverages these features for direct, tunable control over secondary structure formation during protein generation (Zarzecki et al., 27 Nov 2025). The approach establishes a connection between internal neural network representations and secondary structure content, providing protein designers with precise steering capabilities over helix and strand content while retaining the biological plausibility of generated proteins.

1. Background and Rationale

RFdiffusion repurposes the RoseTTAFold network for denoising in a diffusion-probabilistic model over protein backbones. A protein of length LL is represented as LL rigid frames x=[x1,,xL]x = [x_1,…,x_L], with each frame xl=(zl,rl)x_l = (z_l, r_l) comprising zlR3z_l \in \mathbb{R}^3 (Cα\alpha coordinates) and rlSO(3)r_l \in SO(3) (N–Cα\alpha–C orientation). Generation starts from fully noised coordinates and iteratively applies one of 36 stacked "blocks" (main and extra, with global-attention), culminating in a backbone suitable for sequence design (e.g., via ProteinMPNN).

Despite RFdiffusion’s empirical capabilities, its internal mechanisms governing secondary structure formation are opaque. Mechanistic interpretability, as demonstrated in prior SAE work, decomposes dense activations into sparse, often interpretable features. FoldSAE’s innovation is the application of SAEs to RFdiffusion block activations to unsupervisedly identify helix/strand “detectors” and expose handles for controlling generation output.

2. SAE Block Selection and Model Architecture

Identification of the block most informative for secondary structure is performed by ablation: for each block index mm, compare original RFdiffusion MorigM_{\text{orig}} to a variant LL0 where block LL1 is replaced by block LL2. The index LL3 that induces the largest change in overall helical content, as measured by a summary statistic LL4, is selected:

LL5

Empirically, LL6 "main_04", with all subsequent SAE modeling using this block's activations.

The activations (size LL7) are flattened and split into LL8 per-residue patches LL9. The SAE comprises:

  • Encoder: single fully-connected layer x=[x1,,xL]x = [x_1,…,x_L]0, bias x=[x1,,xL]x = [x_1,…,x_L]1, ReLU.
  • TopK sparsification: retains only x=[x1,,xL]x = [x_1,…,x_L]2 largest positive entries per code x=[x1,,xL]x = [x_1,…,x_L]3.
  • Decoder: single linear layer x=[x1,,xL]x = [x_1,…,x_L]4.

Formally,

x=[x1,,xL]x = [x_1,…,x_L]5

With expansion factor 16 and x=[x1,,xL]x = [x_1,…,x_L]6, x=[x1,,xL]x = [x_1,…,x_L]7 latent units; x=[x1,,xL]x = [x_1,…,x_L]8 active per residue.

Training minimizes x=[x1,,xL]x = [x_1,…,x_L]9, with TopK enforcing sparsity (no explicit xl=(zl,rl)x_l = (z_l, r_l)0 penalty). The trained model achieves xl=(zl,rl)x_l = (z_l, r_l)1 explained variance, minimal proportion of “dead” units (<xl=(zl,rl)x_l = (z_l, r_l)2), and low high-frequency activation rates (<xl=(zl,rl)x_l = (z_l, r_l)3).

3. Feature Discovery and Steering Protocol

To identify secondary structure features, 10,000 unsteered backbones are generated; per-residue encodings xl=(zl,rl)x_l = (z_l, r_l)4 are labeled as Helix/Strand/Coil with STRIDE. One-vs-rest logistic probes on xl=(zl,rl)x_l = (z_l, r_l)5 achieve approximately 84% balanced accuracy and >93% ROC AUC. Units with high positive coefficients for helix vs rest and high negative coefficients for strand vs rest (or vice versa) are classified as “detectors.” Approximately 50–100 of xl=(zl,rl)x_l = (z_l, r_l)6 units show substantial probe coefficients (xl=(zl,rl)x_l = (z_l, r_l)7), indicating monosemantic, antagonistic features for helix and strand.

The steering protocol introduces a continuous hyperparameter xl=(zl,rl)x_l = (z_l, r_l)8:

  • xl=(zl,rl)x_l = (z_l, r_l)9: no intervention,
  • zlR3z_l \in \mathbb{R}^30: steer toward target (helix or strand),
  • zlR3z_l \in \mathbb{R}^31: steer away.

At each diffusion step, chosen block activations zlR3z_l \in \mathbb{R}^32 are encoded as zlR3z_l \in \mathbb{R}^33; for each detector zlR3z_l \in \mathbb{R}^34, assign sign zlR3z_l \in \mathbb{R}^35 indicating target association. Each active zlR3z_l \in \mathbb{R}^36 is modulated:

zlR3z_l \in \mathbb{R}^37

The decoder reconstructs modified activations zlR3z_l \in \mathbb{R}^38. To counteract reconstruction error, an error offset zlR3z_l \in \mathbb{R}^39 (computed at α\alpha0) is added, yielding α\alpha1; denoising proceeds with these intervened activations.

Steering for α\alpha2-helices sets α\alpha3 for helix detectors and α\alpha4 for strand detectors, with α\alpha5; strand control reverses signs or uses α\alpha6. Changes propagate, altering local α\alpha7 torsions associated with secondary structures.

4. Interpretability and Internal Structure Analysis

Block-level ablations confirm “main_04” as carrying non-redundant information for helix/strand formation, with its removal collapsing helical content nearly to zero. Analysis across the α\alpha8 latent units reveals that only a sparse subset are meaningfully active in association with secondary structure.

Activation patterns, as α\alpha9 increases, show 30–50% elevation in helix-detector firing on residues originally predicted as coil or strand, reliably predicting coilrlSO(3)r_l \in SO(3)0helix transitions. Conversely, negative rlSO(3)r_l \in SO(3)1 on helix detectors produces coilrlSO(3)r_l \in SO(3)2strand transitions, demonstrating interpretable, antagonistic control across two distinct motifs at both the neuron and block level.

5. Evaluation: Steering Efficiency and Structural Fidelity

Quantitative evaluation involves sweeping rlSO(3)r_l \in SO(3)3 from –5 to +5:

  • Helix-targeted steering increases helix content from approximately 50% to 60% at rlSO(3)r_l \in SO(3)4; further gains are limited by intrinsic saturation.
  • Strand-targeted steering raises strand content from ~30% to ~55% at rlSO(3)r_l \in SO(3)5, with coil content remaining largely stable.

Case studies show progressive, localized transitions in single-protein backbones under rlSO(3)r_l \in SO(3)6 variation, visually confirming residue-level control. After steering, sequence design with ProteinMPNN followed by sequence–embedding metrics (FBD, MMD) demonstrates that generated proteins remain within rlSO(3)r_l \in SO(3)7 of the unsteered baseline, indicating no significant loss in biological plausibility.

6. Implications and Limitations for Protein Design

FoldSAE enables direct modulation of secondary structure content via human-understandable controls, reducing reliance on post hoc filtering of random samples and allowing for mechanistic, designer-driven intervention. The framework provides evidence that monosemantic, sparse features corresponding to structural motifs are accessible and actionable within large-scale generative models of protein structure.

Current work focuses on secondary-structure steering. Proposed extensions include targeting other blocks or network tracks (e.g., 1D/2D features for solvent exposure or pocket geometry), designing regionally restricted interventions (e.g., residues 1–20 only), and employing additional regularizers (e.g., rlSO(3)r_l \in SO(3)8, KL, total-variation) to mediate sparsity–reconstruction tradeoffs.

A recognized limitation is the evaluation bottleneck; sequence plausibility currently requires a round-trip through ProteinMPNN, imposing latency. The use of direct geometric or energetic structural metrics (e.g., Ramachandran outliers, hydrogen-bond criteria) presents a potential avenue for accelerating validation. FoldSAE establishes a paradigm for interpretable, steerable protein backbone design via mechanistically grounded neural feature manipulation within diffusion models (Zarzecki et al., 27 Nov 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to FoldSAE.