Protein as a Second Language for LLMs

Xinhui Chen, Zuchao Li, Mengqi Gao, Yufeng Zhang, Chak Tou Leong, Haoyang Li, Jiaqi Chen · DOI

Abstract

The "Protein-as-Second-Language" framework treats amino acid sequences as a symbolic language, enabling general-purpose Large Language Models (LLMs) to interpret protein functions through in-context learning (ICL). By providing "bilingual" context—pairing protein sequences with natural language descriptions—the framework achieves significant performance gains in protein understanding without the need for specialized adapters or fine-tuning. Evaluation across multiple benchmarks shows up to a 17.2% improvement in performance, demonstrating that high-reasoning models can effectively "read" biological sequences when presented with appropriate contextual exemplars.

Introduction

Deciphering protein function from amino acid sequences is a fundamental challenge in biology. Current approaches typically rely on specialized protein representation learning or expensive protein-language alignment, both of which often suffer from task-specific rigidity and high computational costs. This paper introduces the "Protein-as-Second-Language" framework, which posits that general-purpose LLMs, despite being "illiterate" in biological sequences, can leverage their advanced reasoning capabilities to understand proteins if taught through in-context learning techniques similar to those used for human languages.

Methodology

The core of the framework is the Adaptive Context Construction mechanism, which treats amino acid sequences as a symbolic system. The process involves three primary stages:

  1. Selection: For a target protein, the system retrieves relevant examples from a curated knowledge base using a dual-criterion approach: sequence homology (via MMseqs2) and semantic similarity.
  2. Integration: These "bilingual" pairs (Sequence + Question-Answer) are structured into a coherent prompt.
  3. Inference: The LLM performs analogy-based reasoning to translate the unknown sequence into a functional description.
Overview of the Protein-as-Second-Language framework, illustrating the data preparation, bilingual deduplication, and LLM-based QA construction process.

To support this framework, the authors developed a bilingual protein-natural language dataset containing 79,926 high-quality triples. This dataset was constructed by pruning the Gene Ontology (GO) hierarchy for diversity and using models like DeepSeek-R1 to generate diverse QA types, including attribute-based, knowledge-based, descriptive, and true/false queries.

Results and Discussion

The framework was evaluated against established benchmarks such as ProtDescribe, Protein2Text-QA, and Mol-Instructions. Key findings include:

  • Performance Gains: The method yielded an average 7% improvement in ROUGE-L scores across models like Qwen, Mistral, and GPT-4o. Notably, GPT-4o achieved a 17.2% gain on the ProtDescribe dataset.
  • Reasoning over Specialization: High-reasoning generic models provided with context often outperformed models specifically fine-tuned for proteins, suggesting that the underlying reasoning engine is more critical than pre-stored domain knowledge.
  • Human Preference: Blind tests with biological experts confirmed that the framework's outputs were more factually accurate and better integrated evidence compared to zero-shot baselines.
Performance comparison across multiple LLMs and benchmarks, showing rating scores and win/lose rates against zero-shot performance.

Conclusion

The "Protein-as-Second-Language" approach offers a lightweight, scalable alternative to traditional fine-tuning. By treating biological sequences as a language to be learned in-context, it unlocks the potential of general LLMs for biological discovery. Future work will address context window limitations for long sequences and expand the bilingual knowledge base to cover a broader range of the protein space.

Summary updated

BibTeX
@misc{chen2025protein,
  author = {Xinhui Chen and Zuchao Li and Mengqi Gao and Yufeng Zhang and Chak Tou Leong and Haoyang Li and Jiaqi Chen},
  title = {{Protein as a Second Language for LLMs}},
  year = {2025},
  eprint = {2510.11188},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.11188},
}
Figure