Reflection Pretraining Enables Token-Level Self-Correction in Biological Sequence Models

Xiang Zhang, Jiaqi Wei, Yuejin Yang, Zijie Qiu, Yuhan Chen, Zhiqiang Gao, Muhammad Abdul-Mageed, Laks V. S. Lakshmanan, Wanli Ouyang, Chenyu You, Siqi SunarXiv 2025 · DOI

Introduction: The Expressiveness Gap

Chain-of-Thought (CoT) reasoning has fundamentally changed how we interact with Large Language Models (LLMs). By generating intermediate "non-answer" tokens, these models can store memory, plan complex steps, and correct errors before producing a final output. However, biological sequence models—those designed to predict DNA, RNA, or proteins—have historically lacked this capability.

The core issue is language expressiveness. Natural languages like English or Chinese have a rich vocabulary that allows for meta-commentary (e.g., "I made a mistake"). In contrast, biological languages are restricted to a fixed set of tokens, such as the 20 standard amino acids. There is no native way to encode "regret" or "recalculation" within a protein sequence. Consequently, bio-models are typically forced into an "answer-only" paradigm, which limits their reasoning depth and self-correction abilities.

The expressiveness of different languages and the introduction of Protein+ to bridge the gap.

Methods: Reflection Pretraining

To overcome this bottleneck, the authors introduce Reflection Pretraining. This approach augments the biological vocabulary with a special auxiliary token, <reflect>, enabling the model to "think" about its previous outputs.

The method was applied to de novo peptide sequencing—the task of predicting amino acid sequences from mass spectrometry (MS/MS) data. The training pipeline involves several key innovations:

  1. Vocabulary Augmentation: A single <reflect> token is added to the standard amino acid set.
  2. Dynamic Error Injection: During training, ground-truth sequences are intentionally corrupted to simulate common model failures. Two strategies are used:
  3. Random Position, Random Error (RPRE): Replaces a correct amino acid with a random one.
  4. Random Position, Lookahead Error (RPLE): Replaces a token with a future correct token, simulating premature predictions.
  5. Gradient Blocking: The model is trained to generate the <reflect> token immediately after an error occurs, followed by the correct token. Crucially, it is not penalized for the injected error itself, only for failing to recognize and correct it.
The Reflection Pretraining pipeline, from biological samples to augmented reflection sequences used for model training.

Key Insights and Results

The study reveals several critical findings regarding biological reasoning:

  • SOTA Performance: The reflection-pretrained model outperformed established, domain-specific baselines like Casanovo and HelixNovo on standard benchmarks (9-species-v1 and v2). It achieved significant gains in Peptide Precision (e.g., +30% on Human samples) without requiring complex architectural changes.
  • The Necessity of Pretraining: Reasoning capabilities do not simply transfer from natural language to biological sequences. Fine-tuning an English-centric LLM on proteins is insufficient; the model must be explicitly pretrained to use reflection tokens within the biological domain.
  • High Error Rates as Regularization: Surprisingly, high error injection rates (up to 90%) during training yielded the best performance. This dynamic corruption acts as a powerful regularizer, preventing the model from over-relying on fixed input-output mappings and encouraging better generalization.
  • Human-in-the-Loop Potential: Because the reasoning process is tokenized, human experts can intervene. A biologist can manually insert a <reflect> token into a sequence where they suspect an error, prompting the model to re-evaluate its prediction.

Conclusion and Future Directions

Reflection Pretraining provides a simple yet effective framework for bringing CoT-like reasoning to biological models. By expanding the vocabulary and training models to handle errors explicitly, we can move beyond "black-box" generation toward more transparent and self-correcting biological AI. Future work will focus on automating the detection of uncertain regions to trigger reflection and extending this paradigm to other modalities like DNA and RNA.

Summary updated

BibTeX
@misc{zhang2025reflection,
  author = {Xiang Zhang and Jiaqi Wei and Yuejin Yang and Zijie Qiu and Yuhan Chen and Zhiqiang Gao and Muhammad Abdul-Mageed and Laks V. S. Lakshmanan and Wanli Ouyang and Chenyu You and Siqi Sun},
  title = {{Reflection Pretraining Enables Token-Level Self-Correction in Biological Sequence Models}},
  year = {2025},
  eprint = {2512.20954},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.20954},
}
Figure