Can language models design sequences for 3D protein shapes?
A language model receives the 3D backbone coordinates of a generated de novo protein shape and writes one amino-acid sequence, using no tools. Two independent folding models predict that sequence's 3D shape, and Trace2Fold scores how closely it matches the target.
One shape, start to finish
pos x y z dx dy dz 1 0.00 0.00 0.00 -0.29 0.10 -0.95 2 3.85 0.00 0.00 0.52 -0.80 0.30 3 5.60 2.18 -2.53 0.16 0.98 0.11 ... 48 -0.44 26.76 0.00 -0.02 -0.63 0.78
48 rows give each residue's 3D alpha-carbon position (x, y, z) in ångströms and outward side-chain direction (dx, dy, dz).
KLGIPDQLAQEIRQKA
DTPDELRKLIEELAKK 48 standard amino acids · single sequence
The model returns one 48-letter sequence from the 20 standard amino acids, with no code execution or external tools. Up to 3 tries in the 72‑shape run if malformed.
Scores measure 3D coordinate alignment and contacts directly.
Model and baseline scores
72-Shape Benchmark · 9 LLM settings · up to 3 tries (9 of 15 settings)
72 generated de novo shapes, 48–176 residues (Original 24 + Added 48). Up to 3 tries per shape lets models fix invalid formatting instead of scoring 0.00 (8 of 9 settings graded all 72; GLM 5.3 Flash Max graded 68/72, bounded 19.7–25.3 and plotted as 22.5 ± 2.8*).
24-Shape Survey · 14 LLM settings · 1‑try (14 of 15 settings)
Earlier single‑try run on the Original 24 shapes (8 settings shared with the 72‑shape run plus 6 survey‑only settings, including Claude Fable 5.2 High, Claude Opus 5.5 High, and Gemini 4 Carbon/Neon High). Invalid replies scored 0.00, so compare 1‑try and 3‑try runs separately.
Composite Fit by model (72 shapes, 0–100, higher is better)
Each dot is one shape and the bar is the model mean. Within 2 Å counts shapes ≤ 2.0 Å RMSD on both predictors; Tokens / Shape averages reasoning + sequence tokens over graded replies only.
Target Fit and Decoy Twin
Select any bar row in the chart to load full ESMFold2-Fast and Boltz-2 metrics in the inspector card.
Select a model bar
| Metric | ESMFold2-Fast | Boltz-2 | SimpleFold 3B |
|---|
Seed / cohort breakdown
Signed score difference (Model A minus Model B)
Select any target bar to open that exact shape in Sample Explorer.
Mean difference by fold class
Mean difference by chain length
Composite Fit across chain lengths
Composite Fit versus Twin Δ across all model-target cells
Hover any point (or focus plot and use Left/Right arrows) to inspect exact metrics; select a point to open that target and model in Sample Explorer.
High versus XHigh reasoning effort across 36 matched twin pairs
Select a cell in the heatmap
| Metric | ESMFold2-Fast | Boltz-2 | SimpleFold 3B |
|---|
Seed / cohort breakdown
How Composite Fit (0–100) and Twin Δ grade 3D design
Two independent folding models (ESMFold2-Fast and Boltz-2) predict what 3D shape the sequence forms from its letters alone. Then Composite Fit combines three weighted geometry checks, and Twin Δ checks whether the sequence matches this exact shape rather than a similar decoy.
Composite Fit = 100 × (0.40 × Backbone Match + 0.25 × Local Distances + 0.35 × Long-Range Contacts), averaged across ESMFold2-Fast and Boltz-2.Backbone match (40% weight)
Trace2Fold rotates the predicted chain once onto the target and counts the share of alpha-carbons within 0.5, 1, 2, and 4 Å. Restricting alignment to proper rotations (no mirror reflections) rejects mirror-image folds, and averaging four distance cutoffs keeps one loose end from dominating the score, as it would in raw RMSD.
Technical term: Single-fit proper-Kabsch coverage at GDT-HA cutoffs (0.5, 1.0, 2.0, 4.0 Å, det(R) = +1).
Local distances (25% weight)
This term compares pairwise distances between nearby alpha-carbons (within 15 Å and more than one position apart in sequence) across 0.5, 1, 2, and 4 Å tolerances with no whole-chain alignment. Accurate helices, strands, and turns still earn credit even if a flexible hinge tilts two regions.
Technical term: Superposition-free Cα lDDT over pairs within 15 Å at sequence separation |i − j| > 1.
Long-range contacts (35% weight)
This term checks whether residues at least 6 positions apart in sequence pack within 8.0 Å inside the 3D core without forming false contacts. Open unfolded chains miss real contacts (low recall), wrong compact blobs add false ones (low precision), and this term accounts for 46.8% of score variance across the 14 LLMs in the 24-Shape Survey.
Technical term: Nonlocal Cα Contact F1 for pairs within 8.0 Å at sequence separation |i − j| ≥ 6.
Zero points for predictor confidence (pLDDT and pTM)
Folding models rate their own confidence per residue (pLDDT) and per chain (pTM), and often assign high confidence to generic alpha-helices that miss the target shape. Composite Fit gives confidence 0% weight and averages two independent predictors; in the 24-Shape Survey, model rankings hold across 10,000 weight changes (median ρ = 0.9912).
Twin Δ checks whether the sequence fits this exact shape
Every target A has a hidden twin B with the same length and matching 1D helix/strand/coil labels but a different 3D fold. Subtracting the decoy score gives Twin Δ = Fit(A) − Fit(B).
Observed score scale across baselines and frontier models
Interactive 3D viewer on 6 public starter shapes
This live 3D viewer displays 38 sequence-only predicted folds on 6 public starter shapes (gen-*, lengths 48 and 72 aa). All 72 benchmark holdout shapes stay private to keep them out of future training data. Drag or use arrow keys to rotate, click the canvas or use Ctrl/⌘+scroll to zoom, and select any residue tile to inspect its position error.
Selected fold
Patterns across chain length, decoy twins, and reasoning tokens
How scores scale with chain length, decoy-twin controls, reasoning tokens, and benchmark scope.
1. Scores decline from 48 to 176 residues as residue pairs grow
Across the 72 holdout shapes (18 shapes at each length), 3D specialist tools stay between 85.32 and 95.61 across length bins (65–70/72 folded within 2.0 Å). Zero-tool language model averages decline with chain length as residue pairs grow from 1,128 at 48 aa to 15,400 at 176 aa (ranging from 22.37–61.24 at 48 aa down to 9.59–42.82 at 176 aa across fully graded models).
2. Matched A/B decoy twins separate 3D shape fit from 1D helix/strand patterns
Baselines without 3D coordinates show near-zero target preference across 72 shapes: Composition Shuffle averages Twin Δ = +0.08 and 1D H/E/C Rule averages +2.28. Specialist 3D tools average +71.67 to +72.95, and zero-tool language models span +2.41 to +31.69 across the 72-shape benchmark.
gen-l48-02-b: matching hydrophobic residues to inward side-chain vectors separates target fit from decoy fit.3. Reasoning effort and generated tokens (graded replies only)
Every graded reply outputs only the amino-acid sequence (25–113 visible tokens for 48–176 residues), so internal reasoning makes up nearly all generated tokens (failed replies are excluded from all token averages). Within both paired families on the 72-shape panel, raising effort from High to XHigh increases generated tokens and Composite Fit. Mean tokens per graded shape span about 93× on 72 shapes (2.0k to 188k) and 204× on 24 shapes (0.9k to 183k): Anthropic settings average 2.0k on 72 shapes (0.9k–5.5k on 24), OpenAI XHigh settings average 14.0k–18.0k, open-weights Max settings average 56.0k–64.9k, and Gemini 4 High/XHigh settings average 76.8k–188k (open Fit vs. Tokens / Shape plot →).
| Model family | High (72) | XHigh (72) | Δ (XHi − Hi) | Pair wins (shapes) | Paired t / p (36 pairs) | Wilcoxon p | Orig 24 Δ | Added 48 Δ | ≤ 2.0 Å (Hi → XHi) | Tokens / Shape |
|---|---|---|---|---|---|---|---|---|---|---|
Gemini Gemini 4 Hydrogen |
41.15 | 50.49 | +9.34 | 26/36 (53/72) | t=4.79 · 3.06e-5 | 5.14e-5 | +9.57 | +9.23 | 4 → 11 / 72 | 76.8k → 188k |
OpenAI GPT-6.2 Astra |
38.17 | 42.82 | +4.65 | 26/36 (48/72) | t=2.87 · 0.0069 | 0.0090 | +0.95 | +6.50 | 3 → 6 / 72 | 5.1k → 14.0k |
Additional 4-shape Mixed α/β effort check (112 and 176 aa · High, XHigh, Max · 5 seeds + SimpleFold 3B) Show or hide 4-shape table
This 4-shape check evaluates GPT-6.2 Astra Max, GPT-6.2 Astra XHigh, and Claude Fable 5.2 XHigh alongside 24-Shape Survey settings and the Cα-ProteinMPNN baseline on 4 Mixed α/β shapes.
| Model or baseline | 4-shape mean | 5-seed mean | Best-of-5 | SimpleFold 3B (s0) | Twin Δ | ≤ 2.0 Å (any-5) | 112-09-A | 112-09-B | 176-03-A | 176-03-B |
|---|---|---|---|---|---|---|---|---|---|---|
OpenAI GPT-6.2 Astra Max | 42.74 | 43.66 | 49.42 | 32.94 | +28.42 | 0/4 (0) | 41.61 | 60.84 | 27.61 | 40.89 |
OpenAI GPT-6.2 Astra XHigh | 37.53 | 39.52 | 42.93 | 35.22 | +22.46 | 0/4 (0) | 45.36 | 35.95 | 24.99 | 43.80 |
OpenAI GPT-6.2 Astra High | 39.93 | 39.27 | 42.86 | 33.95 | +26.62 | 0/4 (0) | 41.59 | 43.35 | 22.42 | 52.38 |
Anthropic Claude Fable 5.2 XHigh | 35.57 | 35.79 | 40.07 | 49.31 | +21.14 | 0/4 (0) | 46.15 | 37.58 | 22.31 | 36.23 |
Anthropic Claude Fable 5.2 High | 35.22 | 34.95 | 36.81 | 29.69 | +20.77 | 0/4 (0) | 39.32 | 45.89 | 25.12 | 30.55 |
Gemini Gemini 4 Neon High | 51.53 | 49.15 | 52.97 | 50.23 | +37.27 | 0/4 (0) | 45.09 | 58.53 | 42.51 | 59.98 |
Gemini Gemini 4 Hydrogen XHigh | 50.29 | 52.28 | 56.41 | 46.40 | +37.31 | 0/4 (0) | 51.21 | 48.87 | 36.25 | 64.83 |
Gemini Gemini 4 Carbon High | 46.34 | 46.09 | 49.57 | 38.45 | +32.70 | 0/4 (0) | 51.46 | 55.46 | 31.09 | 47.35 |
OpenAI GPT-6.2 Sol XHigh | 35.78 | 37.94 | 43.15 | 31.19 | +22.49 | 0/4 (0) | 44.75 | 33.36 | 25.86 | 39.13 |
Anthropic Claude Opus 5.5 High | 32.66 | 33.93 | 37.04 | 33.12 | +18.46 | 0/4 (0) | 36.78 | 42.74 | 26.39 | 24.72 |
Base Cα-ProteinMPNN (4 draws) | 89.21 | 89.06 | 89.85 | 82.72 | +74.85 | 3/4 (3) | 92.94 | 78.13 | 93.88 | 91.89 |
4. Scope and limitations
- Synthetic single-chain targets. RFD4-Proteina generated all 72 primary holdout shapes (Original 24 + Added 48), and Genie 3 generated 4 additional backbones for the generator check, rather than natural multi-domain or multi-chain complexes.
- Computational refolding, not wet-lab assays. ESMFold2-Fast, Boltz-2, and SimpleFold 3B test whether sequence-only predictors fold the letters to the target Cα shape; they do not measure wet-lab expression, solubility, or folding free energy (ΔG).
- Attempt limits and missing-shape bounds. The 72-shape panel allowed up to 3 tries total per shape instead of scoring a first-try formatting slip 0.00 (8 of 9 LLMs graded 72/72; GLM 5.3 Flash Max graded 68/72, bounded at 22.51 ± 2.78*). The earlier 24-Shape Survey allowed 1 try and scored invalid replies 0.00.
- Private holdouts. Holdout coordinates stay off public repositories to prevent training contamination. Test locally on the 20 bundled
gen-*shapes or open a GitHub issue to submit a model configuration.
Weight stability, coordinate-only tests, and independent checks
Independent checks test scoring-weight sensitivity, coordinate-only prompts and Genie 3 backbones, SimpleFold 3B agreement, Protein Data Bank structural similarity, and replication across the 48 added holdout shapes.
Rankings hold across 10,000 weight changes (median ρ = 0.9912)
In the 24-Shape Survey, across 10,000 weight combinations within ±15 points of the 40 / 25 / 35 defaults, the 14-model ranking stays stable (median Spearman ρ = 0.9912, minimum 0.9824).
Exact 12-pair sign-flip p-values (4,096 flips) and leave-one-pair-out intervals for all 14 survey settings are available in the interactive weight explorer below.
Interactive weight sliders, 12-pair leave-one-out intervals, and head-to-head sign-flip table Expand interactive explorer
Move the three sliders to re-score all 14 LLM settings live and compare against leave-one-pair-out ranges and approximate 95% pair intervals.
All three sliders are at 0. Scores fall back to equal 33.3% / 33.3% / 33.3% weights.
| Rank (Δ) | Model or control | Re-weighted fit | Canonical mean | Paired 95% t range | 12-pair deletion range | Top-3 share |
|---|
All 24-shape head-to-head top-tier comparisons (12 twin pairs, exact 4,096 sign flips) Show or hide table
For each model pair, we average their score difference within each of the 12 twin pairs so both models are compared on the exact same shapes. The two-sided p-value tests all 4,096 ways to flip the sign of those 12 pair differences.
| Model A | Model B | Score gap (A minus B) | Paired 95% t range (df=11) | Exact sign-flip p | Drop-1-pair gap range | Status |
|---|
How adding side-chain directions changes each model's score
Six frontier models ran 36 coordinate-only (Pure-Cα) prompts paired against matching 6-column prompts with outward side-chain directions (one member from each of 4 Stage 1 and 2 Stage 2 twin pairs), plus 24 coordinate-only runs on 2 helical Genie 3 twin pairs.
| Model | Shapes | Consensus Δ | ESMFold2-Fast Δ | Boltz-2 Δ |
|---|---|---|---|---|
| Gemini 4 Carbon High | 4/4 | +20.08 | +21.64 | +18.52 |
| Gemini 4 Neon High | 4/4 | +19.05 | +20.24 | +17.86 |
| GPT-6.2 Astra High | 4/4 | +4.37 | +1.51 | +7.23 |
| GPT-6.2 Sol High | 4/4 | -15.13 | -8.22 | -22.03 |
| Claude Opus 5.5 High | 4/4 | +5.45 | +6.08 | +4.83 |
| GLM 5.3 Flash Max | 4/4 | -24.74 | -24.32 | -25.16 |
Independent Genie 3 twin pairs using coordinates only
Genie 3 generates 3D alpha-carbon coordinates directly without creating a native amino-acid sequence. Using coordinates only and zero tools, scores reach up to 69.37 on the 80 aa pair and 54.80 on the 112 aa pair, extending the test beyond RFD4-Proteina.
| Model or control | Consensus | ESMFold2-Fast | Boltz-2 | SimpleFold 3B |
|---|---|---|---|---|
| 80 aa helical twin pair (G3-P01) | ||||
| Cα-ProteinMPNN (4 draws) | 93.06 | 93.60 | 92.52 | 90.60 |
| Gemini 4 Carbon High | 69.37 | 71.47 | 67.27 | 67.68 |
| Gemini 4 Neon High | 59.03 | 56.72 | 61.35 | 59.30 |
| GPT-6.2 Sol High | 45.96 | 48.16 | 43.76 | 50.62 |
| GPT-6.2 Astra High | 41.65 | 37.38 | 45.93 | 36.17 |
| Claude Opus 5.5 High | 19.03 | 18.40 | 19.67 | 18.47 |
| GLM 5.3 Flash Max | 0.00 | 0.00 | 0.00 | 0.00 |
| Composition shuffle | 9.77 | 10.14 | 9.40 | 9.29 |
| Local secondary-structure rule | 15.43 | 15.35 | 15.50 | 23.66 |
| 112 aa helical twin pair (G3-P02) | ||||
| Cα-ProteinMPNN (4 draws) | 91.08 | 90.40 | 91.76 | 89.07 |
| Gemini 4 Neon High | 54.80 | 45.99 | 63.61 | 58.35 |
| Gemini 4 Carbon High | 51.60 | 53.76 | 49.44 | 53.43 |
| GPT-6.2 Sol High | 30.02 | 28.65 | 31.40 | 24.59 |
| GPT-6.2 Astra High | 22.07 | 22.15 | 22.00 | 19.48 |
| GLM 5.3 Flash Max | 8.87 | 10.04 | 7.70 | 10.32 |
| Claude Opus 5.5 High | 6.38 | 6.53 | 6.24 | 5.38 |
| Composition shuffle | 9.35 | 9.15 | 9.55 | 7.87 |
| Local secondary-structure rule | 12.85 | 13.54 | 12.16 | 17.84 |
Agreement with an independent third folding model (Apple SimpleFold 3B)
An independent third folding model from a different architecture family (Apple SimpleFold 3B) preserves the 14-LLM ranking across all 442 folded benchmark combinations (rank correlation ρ = 0.987 with ESMFold2-Fast and 0.969 with Boltz-2) and across 128 prompt-variation and generator-check folds.
| Cohort | Cells | Pairs | ESMFold2-Fast r / ρ | Boltz-2 r / ρ |
|---|---|---|---|---|
| All 24 shapes (456-slot matrix) | 442 | 12 | 0.921 / 0.919 | 0.914 / 0.906 |
| Stage 1 v4.2 (342-slot matrix) | 334 | 9 | 0.907 / 0.905 | 0.905 / 0.896 |
| Stage 2 v4.3 (114-slot matrix) | 108 | 3 | 0.961 / 0.932 | 0.935 / 0.918 |
| Stage 1 v4.2 (Pure-Cα + Vectors) | 70 | 4 | 0.864 / 0.851 | 0.946 / 0.929 |
| Stage 2 v4.3 (176 aa Pure-Cα + Vectors) | 32 | 2 | 0.966 / 0.952 | 0.957 / 0.924 |
| Fresh Genie 3 v4.3 (80 and 112 aa Pure-Cα) | 26 | 2 | 0.957 / 0.963 | 0.977 / 0.957 |
Structural similarity screen across 324,204 known protein chains
We screened holdout targets against the January 2025 PDB100 Protein Data Bank snapshot (324,204 known chains) using Foldseek prefiltering and exact US-align 3D matching (TM-score, where 1.0 is identical) to count targets that match known protein structures.
Rankings replicate across the 48 added holdout shapes
Across the 8 fully graded language models, mean Composite Fit changes by -4.82 to +1.06 points between the Original 24 shapes and the Added 48 holdout shapes. Foldseek and US-align screening against 324,204 PDB100 chains found 0/18 structural matches at TM ≥ 0.85 across all 18 176-residue targets.
| Model or baseline | Original 24 | Added 48 | All 72 | Added − Orig | ≤ 2.0 Å | Tokens / Shape |
|---|---|---|---|---|---|---|
| Gemini 4 Hydrogen XHigh | 51.66 | 49.91 | 50.49 | -1.76 | 11/72 | 188k |
| GPT-6.2 Astra XHigh | 42.12 | 43.18 | 42.82 | +1.06 | 6/72 | 14.0k |
| Gemini 4 Hydrogen High | 42.09 | 40.68 | 41.15 | -1.42 | 4/72 | 76.8k |
| GPT-6.2 Sol XHigh | 41.63 | 39.21 | 40.02 | -2.42 | 3/72 | 18.0k |
| GPT-6.2 Astra High | 41.17 | 36.68 | 38.17 | -4.49 | 3/72 | 5.1k |
| GPT-6.1 Terra XHigh | 34.44 | 30.04 | 31.51 | -4.41 | 2/72 | 16.8k |
| GLM 5.3 Flash Max | 23.59 | 21.97 ± 4.17* | 22.51 ± 2.78* | — | 2/68 | 56.0k |
| DeepSeek V4.1 Flash Max | 21.40 | 18.24 | 19.29 | -3.16 | 0/72 | 64.9k |
| Claude Sonnet 5.5 XHigh | 21.35 | 16.53 | 18.13 | -4.82 | 1/72 | 2.0k |
| Vanilla ProteinMPNN | 91.81 | 93.03 | 92.63 | +1.22 | 68/72 | — |
| Cα-ProteinMPNN | 91.57 | 92.81 | 92.39 | +1.24 | 70/72 | — |
| RFD4-Proteina | 91.00 | 91.23 | 91.16 | +0.23 | 65/72 | — |
| 1D H/E/C Rule | 15.26 | 15.97 | 15.73 | +0.72 | 0/72 | — |
| Composition Shuffle | 8.23 | 8.59 | 8.47 | +0.36 | 0/72 | — |
* GLM 5.3 Flash Max graded 68/72 shapes (observed mean 20.89; [0, 100] missing-shape bounds 19.73–25.28 across All 72, shown as midpoint ± half-width 22.51 ± 2.78*; Added 48 bounds 17.80–26.13, shown as 21.97 ± 4.17*).
Inspect verbatim prompts and validate any sequence locally
Stage 1 (18 shapes) used prompt v4.2; Stage 2 and the 48 added holdout shapes use v4.3. Switch tabs to inspect the exact prompt for public starter shape gen-l48-02-b, or paste any model reply into the browser validator to check sequence extraction.
Live exact-length sequence validator (length-aware-v2)
git clone https://github.com/jvogan/trace2fold.git && cd trace2fold pip install -e . python examples/quickstart_demo.py trace2fold prompt gen-l48-02-b --condition vectors --prompt-version v4.3 trace2fold grade-v4 --submissions runs/my_trials --folds runs/my_folds --twin-map examples/starter_pilot_pairs.json --out summary.json
Evaluation protocol, benchmark tools, and BibTeX
The public trace2fold repository ships under the MIT License with 20 public gen-* starter shapes, 4 Protein Data Bank calibration structures, coordinate-free score archives in benchmarks/, and offline verification checks. See CONTRIBUTING.md to run locally or submit a configuration.
| Tool or model | Category | Role in Trace2Fold | Citation and upstream source |
|---|---|---|---|
| ESMFold2-Fast | Structure predictor | Primary language-model folding predictor (seeds 0–4, sequence only, no alignments) | Biohub ESMFold2-Fast · Lin et al., Science 2023 |
| Boltz-2 | Structure predictor | Primary diffusion folding predictor (seeds 0–4, sequence only, no alignments or templates) | jwohlwend/boltz · Passaro et al., 2025 (MIT) |
| Apple SimpleFold 3B | Structure predictor | Independent third folding model from a different architecture family (seed 0, sequence only) | apple/ml-simplefold · Wang et al., 2025 |
| Cα-ProteinMPNN / Vanilla ProteinMPNN | Specialist reference | Cα-only and 4-atom inverse-folding specialist tools (best internal likelihood of 4 draws) | dauparas/ProteinMPNN · Dauparas et al., Science 2022 |
| RFD4-Proteina / RFdiffusion | Backbone generator | Holdout and starter backbone generator plus co-generated specialist sequence reference | RFD4-Proteina · Geffner et al., 2025; Watson et al., 2023 |
| Genie 3 | Backbone generator | Independent backbone generator outputting Cα coordinates with no native sequence | aqlaboratory/genie3 · Lin et al., 2024 |
| Foldseek | Structural search | Fast prefilter across 324,204 known Protein Data Bank (PDB100) chains | steineggerlab/foldseek · van Kempen et al., Nat. Biotechnol. 2024 |
| US-align | Structural search | Exact rigid Cα 3D alignment (TM-score) for clustering and PDB100 screening | pylelab/USalign · Zhang et al., Nat. Methods 2022 |
| Biotite | Structure library | Assigns helix, strand, and coil (H/E/C) labels from Cα coordinates for twin pairing | biotite-dev/biotite · Kunzmann et al., BMC Bioinf. 2023 |
| wwPDB / PDB100 | Structure archive | Experimental calibration structures (1L2Y, 1TRZ, 1QY3, 1I3V) and novelty database | rcsb.org · Berman et al., Nucleic Acids Res. 2000 |
Cite Trace2Fold (MIT License)
@software{vogan2026trace2fold,
author = {Vogan, Jacob},
title = {Trace2Fold: Zero-Tool 3D Inverse Folding Benchmark},
year = {2026},
version = {0.5.0},
license = {MIT},
url = {https://github.com/jvogan/trace2fold}
}