Benchmarking Protein Structure Tokenizers as Generation Targets for Language Models
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Genomics Radio. Generated commentary on the latest computational biology and genomics papers.
Ines: We're looking at the paper: "Benchmarking Protein Structure Tokenizers as Generation Targets for Language Models".
Title and authors: Marcus: Let's talk about who wrote this. It’s Yong Liu, Zhanpeng Shi, Peicong Lin, Zhenyi Zhong, Yizhou Dang, Wendi Wu, Haoling Li, Jiayu Gu, Duo An and Shuangjia Zheng. They are all from Shanghai Jiao Tong University and related labs >
Ines: It's interesting that the authors are from a few different places. We have people focused on sequence analysis like myself and others who focus on large-scale data like Marcus does >
Yuki: I'm curious about the team structure. Having people from different backgrounds, like you, me, and Marcus, should help them look at this problem from various angles when they talk about which tokenizers are better >
Marcus: Definitely. The paper is titled "Benchmarking Protein Structure Tokenizers as Generation Targets for Language Models," and it sets out to systematically test these tokenizers against each other under controlled conditions >
Ines: So the core idea here is that we usually look at how well a tokenizer encodes known structures, like in reconstruction fidelity, but this paper wants us to focus on the reverse process—how well a model can actually generate those tokens from scratch >
Yuki: It sounds like they are shifting the focus from just reading to writing as a generation target, which is a key distinction when thinking about how we use these models for design or prediction >
Ines: Precisely. We've seen this shift happen in other areas too, like diffusion models in image generation, where changing the way you encode something affects the quality ceiling of the entire system >
The paper's summary: Marcus: So what they summarize is that they are measuring writability directly. They hold things fixed and swap tokenizers to see how much structure survives when the model tries to emit it residue by residue >
Ines: It’s not just about encoding a known backbone, though. The paper measures the property of "writability," which is defined as the structural quality a model attains when it must produce that structure token string itself >
Yuki: That definition sounds important because it's more than just whether the final output looks similar to what we expect; it’s about the intrinsic structural integrity during generation >
Marcus: Right. They found that writability varies a lot across eight different tokenizers when they test this property at 2B tokens, with scores ranging from TM zero point six six two down to zero point three seven eight under identical conditions > <ref:2611.32168#pg1,from TM 0.662 down to 0.378 under identical>
Ines: That range is interesting because it crosses the threshold where most people consider a fold to be correct, with five tokenizers being above that mark and three falling short >
Yuki: So they’re saying there isn't one single best tokenizer right now; the choice depends on what kind of structure you are trying to generate and what quality you need >
The paper's improvements: Ines: The paper points out that their setup is a comparison where the tokenizer’s contribution gets mixed up with every other design choice, which they accept as the cost of training eight otherwise identical arms >
Marcus: They are suggesting some improvements to how we measure things. They propose measuring what a single codeword error costs, rather than just focusing on perfect reconstruction fidelity >
Yuki: That makes sense from a practical standpoint. If we're designing something, knowing the cost of a small mistake is more useful than just knowing if the big picture works >
Ines: And they also suggest bracketing every model score with floors and ceilings using a redemption rate calculation, RR equals TM minus S4 over S1 minus S4 multiplied by one >
Marcus: That's an attempt to normalize the scores so that we aren't mistaken about what constitutes success when you have these varied tokenizers >
Conclusion: Yuki: So, to wrap up, the paper "Benchmarking Protein Structure Tokenizers as Generation Targets for Language Models" shows that writability varies quite a bit across different tokenizers when generating structure tokens >
Ines: It suggests we need to be more careful about which tokenizer we pick based on what kind of output quality you actually need because the performance isn't uniform >
Marcus: They claim DPLM-two is the most writable under these specific conditions, but they also point out that the gap to a specialist folding model is made up of different things, like long-range contacts not being transferred and discretization costs > <ref:2611.32168#pg1>
Yuki: And it sounds like they are suggesting that either we need a better tokenized code space or some kind of continuous refinement stage to bridge the gap to those specialists >
Ines: So the main implication is that we need more concrete metrics on error costs and a way to bracket our scores so we don't just pick the tokenizer that gives us the highest raw number >
Marcus: Exactly. It’s not about finding one perfect tokenizer right now; it’s about measuring what a single mistake costs when you are trying to write a structure, which is something we need to do more of for practical applications.
Yong Liu, Zhanpeng Shi, Peicong Lin, Zhenyi Zhong, Yizhou Dang, Wendi Wu, Haoling Li, Jiayu Gu, Duo An
Shanghai Jiao Tong University · Lingang Laboratory · Fudan University · Shanghai Innovation Institute · Northeastern University · Nanjing University
q-bio.QM, cs.AI
Submitted: 2026-11-24
Updated: 2026-11-24
Code: https://github.com/yliust/Calpha
Project page: https://calpha-ai.com
License: http://creativecommons.org/licenses/by/4.0/
Importance score: 97/100
The gist: Discrete structure tokenizers are chosen by how well they can be read, and used as something that must be written.<ref:2611.32168#pg1>.
Key concepts
- Writability
- Writability measures the structural quality a model achieves when it must produce the exact structure token string itself. It assesses how well the model handles generating its own required output format. This metric is essential because it reflects the practical success of using a specific tokenizer as a generation target for protein structures.
- Code Space Locality
- This property describes whether codewords close to each other in the model's output space represent structurally similar concepts in Cartesian space. Tokenizers like DPLM-2 qualify because their code spaces are locally structure-preserving, meaning near misses in the output space correspond to near hits in the actual protein structure.
- Pipeline Failure Decomposition
- The gap between a model and a specialist folding model is broken down into three components: long-range contacts not transferred (44% of the gap), discretization cost (33%), and decoding/selection (5%). Understanding these terms helps pinpoint where generation errors originate, such as failing to capture distant structural interactions.
Terminology
Summary
Discrete structure tokenizers are chosen by how well they can be read, and used as something that must be written. p. 0 Benchmarking Protein Structure Tokenizers
as Generation Targets for Language Models
Technical Report II: Protein Structure Tokenizers for LLMs
Yong Liu1,2
, Zhanpeng Shi3,4
, Peicong Lin2
, Zhenyi Zhong1
, Yizhou Dang5
, Wendi Wu1
,
Haoling Li6
, Jiayu Gu2
, Duo An2
, Shuangjia Zheng1,2
1Shanghai Jiao Tong University, Shanghai, China
2Lingang Laboratory, Shanghai, China
3Fudan University, Shanghai, China
4Shanghai Innovation Institute, Shanghai, China
5Northeastern University, Shenyang, China
6Nanjing University, Nanjing, China
Abstract
Discrete structure tokenizers are the standard way to give a language model access to protein threedimensional structure, yet they are selected on how accurately they can be read, their reconstruction
fidelity, while the property that governs generation is how well a model can write them. We measure this property, writability, directly: holding the base model, data, recipe and compute fixed, we
swap only the tokenizer and train the same 9B model to emit structure tokens residue by residue,
over eight tokenizers, four compute budgets and three evaluation sets (96 cells). We measure this property, writability, directly: holding the base model, data, recipe and compute fixed, we
swap only the tokenizer and train the same 9B model to emit structure tokens residue by residue,
over eight tokenizers, four compute budgets and three evaluation sets (96 cells). At 2B tokens final writability runs from TM 0. At 2B tokens final writability runs from TM 0. 662 down to 0. At 2B tokens final writability runs from TM 0. 662 down to 0. 662 down to 0. 378 under identical conditions, with five of the eight
arms clearing the TM 0. 662 down to 0. 378 under identical conditions, with five of the eight
arms clearing the TM 0. We measure this property, writability, directly: holding the base model, data, recipe and compute fixed, we
swap only the tokenizer and train the same 9B model to emit structure tokens residue by residue,
over eight tokenizers, four compute budgets and three evaluation sets (96 cells). At 2B tokens final writability runs from TM 0. 662 down to 0. 378 under identical conditions, with five of the eight
arms clearing the TM 0. 662 (DPLM-2) down to 0. 378
(VanillaVQ) under identical conditions, a range that straddles the TM 0. 378 under identical conditions, with five of the eight
arms clearing the TM 0. 5 mark at which a fold is usually called correct and three falling short of it. Neither codebook size nor reconstruction ceiling explains where an arm lands; the best and worst
both use 8192 codewords. What does explain the spread is local structure preservation of the code
space.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Measuring Writability
Writability is defined as 3 Measuring writability
Definition. Writability is the structural quality a model attains when it must produce the structure token
string itself: prompted with the amino-acid sequence and a task instruction, it emits one token per residue by
greedy decoding, the string goes through that tokenizer’s own decoder, and the coordinates are scored against
the experimental structure with TM-score [15, 36]. Writability is the structural quality a model attains when it must produce the structure token
string itself: prompted with the amino-acid sequence and a task instruction, it emits one token per residue by
greedy decoding, the string goes through that tokenizer’s own decoder, and the coordinates are scored against
the experimental structure with TM-score [15, 36]. The measurement necessarily includes the decoder, which
is part of the interface a practitioner adopts. Writability is the structural quality a model attains when it must produce the structure token
string itself: prompted with the amino-acid sequence and a task instruction, it emits one token per residue by
greedy decoding, the string goes through that tokenizer’s own decoder, and the coordinates are scored against
the experimental structure with TM-score [15, 36]. The measurement necessarily includes the decoder, which
is part of the interface a practitioner adopts. Floors and ceilings make scores comparable. A raw TM score cannot be compared across tokenizers because
each decoder contributes a different amount of structure on its own. We bracket every model score with two
measurements taken through the identical pipeline on the identical targets: the floor 𝑆4
, from uniformly random
tokens, is what the decoder’s prior alone is worth, and the ceiling 𝑆1
, from encoding and decoding the ground
truth once, is the best any model could do in that code space. We report the redemption rate
RR =
TMmodel − 𝑆4
𝑆1 − 𝑆4
, (1)
the fraction of the attainable interval the model actually captured.the structural quality a model attains when it must produce the structure token string itself
<ref:2611.32168#pg3,writability is defined as "the structural quality a model attains when it must produce the structure token string itself">. p. 2Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Code Space Locality
The candidate left standing is a property of the code space’s local structure: The previous section rules out codebook size, reconstruction fidelity and corruption tolerance. The candidate left standing is a property of the code space’s local structure: a tokenizer is writable if
codewords that are close in the model’s output space denote structures that are close in Cartesian space, so that
a near-miss is a near-hit. St trades against reconstruction [14] is the same
quantity seen from the read side. Two of our tokenizers qualify: DPLM-2, whose lookup-free quantiser [11]
makes each codeword a 13-bit string, and FoldToken4, whose level-ℓ codes are ℓ-bit strings. Perturbing by one bit should be cheap if the code is
locally structure-preserving; perturbing by a random codeword is the control. For DPLM-2 at 30% of positions,
the one-bit perturbation costs 0. In DPLM-2 a one-bit codeword error costs 0. 019 TM where a random codeword costs 0. 599), a
factor of 18. For FoldToken4-l12 the two perturbations cost almost the same (0. For FoldToken4-l12 the two perturbations cost almost the same (0. 851 versus 0. 851 versus 0. 837 at 10%, 0. 837 at 10%, 0. 627
versus 0. 627
versus 0. 572 at 30%): its bits do not encode structural similarity, despite being bits.a tokenizer is writable if codewords that are close in the model’s output space denote structures that are close in Cartesian space, so that a near-miss is a near-hit
<ref:2611.32168#pg6,the candidate left standing is a property of the code space’s local structure: "a tokenizer is writable if codewords that are close in the model’s output space denote structures that are close in Cartesian space, so that a near-miss is a near-hit">. p. 6Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Pipeline Failure and Decomposition
The gap to a specialist folding model is decomposed into three terms: Even a model that transferred
every long-range contact its code space can express would not close the gap. Consistently, on the third of targets
where the model’s long-range contacts are best, it still trails by 0. 813 therefore corresponds to
+0. 091 TM, which is 44% of the 0. 983 predicts TM 0. 870
Decoding / selection (attainable) 0. 983 predicts TM 0. 870
Decoding / selection (attainable) 0. 870
Decoding / selection (attainable) 0. 0095 5% medoid vs greedy, paired
(oracle upper bound) (0.Long-range contacts not transferred ≈ 0.091
which accounts for 44% of the gap.<ref:2611.32168#pg9,The gap to a specialist folding model is decomposed into three terms: "Long-range contacts not transferred ≈ 0. p. 7Where the paper says it
Where the paper says it
Discretisation cost ≈ 0.07
which accounts for 33% of the gap.<ref:2611.32168#pg9>. The third term is Decoding / selection (attainable) ≈ 0.0095
which accounts for 5% of the gap.<ref:2611.32168#pg9,The third term is "Decoding / selection (attainable) ≈ 0. p. 8Where the paper says it
Where the paper says it
Where the paper says it
Limitations and Practical Implications
The paper does not claim a best tokenizer, but claims that DPLM-2 is the most writable under this specific set of conditions.<ref:2611.32168#pg10,We do not claim a best tokenizer, but claims that DPLM-2 is the most writable under this specific set of conditions>. p. 4 Codebook size does not order the arms. The best and the worst tokenizer in the table both use 8192 codewords (DPLM-2 at 0. Three controls then decide
what those numbers are allowed to mean. Every score is bracketed by a floor, uniformly random tokens pushed
through that tokenizer’s own decoder and scorer, and a ceiling, ground truth encoded and decoded once; the
bracket is necessary because the decoders differ enough in their structural priors that random tokens alone
score anywhere from TM 0. Three controls then decide
what those numbers are allowed to mean. Every score is bracketed by a floor, uniformly random tokens pushed
through that tokenizer’s own decoder and scorer, and a ceiling, ground truth encoded and decoded once; the
bracket is necessary because the decoders differ enough in their structural priors that random tokens alone
score anywhere from TM 0. Specialist folding models supply the absolute reference. AlphaFold2 [24], RoseTTAFold [25] and AlphaFold3 [26] predict structure in continuous space with no discretisation step, and ESMFold [27] does so
from a protein language model’s features alone. Specialist folding models supply the absolute reference. AlphaFold2 [24], RoseTTAFold [25] and AlphaFold3 [26] predict structure in continuous space with no discretisation step, and ESMFold [27] does so
from a protein language model’s features alone.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
General Capability Guardrail
The guardrail shows that the model does not get less capable; it gets terser.<ref:2611.32168#pg12,The guardrail shows that the model does not get less capable; it gets terser>. p. 2 We report the redemption rate
RR =
TMmodel − 𝑆4
𝑆1 − 𝑆4
, (1)
the fraction of the attainable interval the model actually captured. Figure 2 shows all three quantities together,
which is how we report them throughout: a model score alone is not interpretable. Every arm starts from the same 9B base model,
extends its vocabulary with that tokenizer’s 𝐾 codewords, and trains on the same mixture (structure prediction,
inverse folding, infilling, secondary structure, contacts and general text) built by the same script with the same
task proportions, leakage filtering and sample order. The recipe is identical across arms: one cosine schedule
over 2B tokens, the same learning rates for body, embeddings and adapter, the same noisy-prefix augmentation,
exports at 0. Every arm starts from the same 9B base model,
extends its vocabulary with that tokenizer’s 𝐾 codewords, and trains on the same mixture (structure prediction,
inverse folding, infilling, secondary structure, contacts and general text) built by the same script with the same
task proportions, leakage filtering and sample order. The recipe is identical across arms: one cosine schedule
over 2B tokens, the same learning rates for body, embeddings and adapter, the same noisy-prefix augmentation,
exports at 0. TM, lDDT [16], GDT [17] and RMSD all compare the
output to a target through the decoder, and all are blind to one class of failure: output that is not a plausible protein at all—the same gap that physical-validity checks were introduced to close in docking [18]. We therefore
compute a second panel from the generated structure alone: at the token level, the fraction of distinct tokens,
adjacent-repeat rate, longest run and entropy, which detect the greedy degeneration familiar from neural text
generation [31, 32]; at the geometry level, the fraction of consecutive CA–CA distances inside [3. TM, lDDT [16], GDT [17] and RMSD all compare the
output to a target through the decoder, and all are blind to one class of failure: output that is not a plausible protein at all—the same gap that physical-validity checks were introduced to close in docking [18]. We therefore
compute a second panel from the generated structure alone: at the token level, the fraction of distinct tokens,
adjacent-repeat rate, longest run and entropy, which detect the greedy degeneration familiar from neural text
generation [31, 32]; at the geometry level, the fraction of consecutive CA–CA distances inside [3.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Length Effect and Failure Regime
The length effect is specific to chains of 500 residues and above, where long-range contact capture collapses.<ref:2611.32168#pg9,the length effect is specific to chains of 500 residues and above, where long-range contact capture collapses>. p. 8 Beyond 500 residues TM falls to 0. 549, and the
reference-free decomposition says why: long-range contact capture collapses from 66. This is the same mechanism as
Section 7 appearing as an operating regime: long chains contain proportionally more long-range contacts, and
long-range contacts are what this pipeline fails to transfer. The gap to a specialist model widens with length because the specialist improves. This is the same mechanism as
Section 7 appearing as an operating regime: long chains contain proportionally more long-range contacts, and
long-range contacts are what this pipeline fails to transfer. The gap to a specialist model widens with length because the specialist improves. The correlation between TM and chain length is −0. 054 for
DPLM-2, −0.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Conclusion
Structure tokenizers are chosen by how well they can be read, and used as something that must be written.<ref:2611.32168#pg1>. Measuring the second property directly finds it varies by from TM 0. p. 6 For tokenizers whose codewords are binary codes this is directly testable, because
”close in output space” has a concrete meaning: a small Hamming distance [49]. This is the property an errorcorrecting output code buys deliberately [50]; here it is a side effect of the quantiser, which is why it varies so
much across tokenizers. We encode ground-truth backbones,
perturb a fraction of positions, and decode (Figure 3b). Perturbing by one bit should be cheap if the code is
locally structure-preserving; perturbing by a random codeword is the control.Where the paper says it
Where the paper says it
the model’s inevitable mistakes are structurally cheap
<ref:2611.
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Improve tokenizer selection by measuring what a one-codeword error costs, not only what a perfect round trip preserves. This allows for selecting a tokenizer based on
how well they can be read
rather than just reconstruction fidelity. -
Implement bracketed scoring for all model scores using the formula TM model minus S4 over S1 minus S4 to provide a normalized redemption rate. This prevents
normalized scores over narrow intervals from being mistaken for success.
-
Use a reference-free panel that includes token level metrics like
fraction of distinct tokens, adjacent-repeat rate, longest run and entropy
alongside geometry checks to detect greedy degeneration familiar from neural text generation.
Abstract
Discrete structure tokenizers are the standard way to give a language model access to protein three-dimensional structure, yet they are selected on how accurately they can be read, their reconstruction fidelity, while the property that governs generation is how well a model can write them. We measure this property, writability, directly: holding the base model, data, recipe and compute fixed, we swap only the tokenizer and train the same 9B model to emit structure tokens residue by residue, over eight tokenizers, four compute budgets and three evaluation sets (96 cells). At 2B tokens final writability runs from TM 0.662 down to 0.378 under identical conditions, with five of the eight arms clearing the TM 0.5 mark at which a fold is usually called correct and three falling short of it. Neither codebook size nor reconstruction ceiling explains where an arm lands; the best and worst both use 8192 codewords. What does explain the spread is local structure preservation of the code space. In DPLM-2 a one-bit codeword error costs 0.019 TM where a random codeword costs 0.347, and the trained model's own errors are correspondingly local, at 0.51 of the random Hamming expectation; FoldToken4 fails both tests at the same codebook size and is 0.13 TM less writable. Three controls discipline how such a benchmark may be read. A same-recipe rerun puts the noise floor at σ=0.0067 TM, which collapses an apparent six-way ranking into four tiers. A reference-free geometry panel turns out to be nearly orthogonal to TM (Pearson-0.58), with the worst arm by TM producing the most physically valid backbones. And two pre-registered interventions are null for a reason the mechanism measurements reveal: the quantity they target saturates at 1.5B tokens while TM is still rising. All 131 evaluation cells, including raw generated token streams, are released.
Sources
- Protein Structure Tokenization: Benchmarking and New Recipe
- Learning the Language of Protein Structure
- ProtTeX: Structure-In-Context Reasoning and Editing of Proteins with Large Language Models
- ProTok: Unified Protein Tokenization via Modular Multi-Codebook Quantization
- Scaling Laws for Neural Language Models
Related papers
- ViroGym: Realistic Large-Scale Benchmarks for Evaluating Viral Proteins
- CellCanon: An Agentic Cellular World Model for Prediction, Explanation, and Observation-Driven Updating
- Probing and steering biology across Boltz-1s trunk-diffusion boundary
- Patterns in Individual Blood Count Trajectories in the UK Biobank Characterise Disease-Specific Signatures and May Anticipate Pan-Cancer Risk
- Trajectory Inference of Human Aging from Cross-Sectional DNA Methylation Data
- Bridging the Modality Bottleneck in Pathology MIL through Molecularly Guided Feature Adaptation