mlsanityData to 14 Oct 2026

In-Context Learning can distort the relationship between sequence likelihoods and biological fitness

arXiv 2504.17068 ↗First posted 23 Apr 2025cs.LG q-bio.BMcited by 1

Not on the map. Why?

Abstract (arXiv)

Language models have emerged as powerful predictors of the viability of biological sequences. During training these models learn the rules of the grammar obeyed by sequences of amino acids or nucleotides. Once trained, these models can take a sequence as input and produce a likelihood score as an output; a higher likelihood implies adherence to the learned grammar and correlates with experimental fitness measurements. Here we show that in-context learning can distort the relationship between fitness and likelihood scores of sequences. This phenomenon most prominently manifests as anomalously high likelihood scores for sequences that contain repeated motifs. We use protein language models with different architectures trained on the masked language modeling objective for our experiments, and find transformer-based models to be particularly vulnerable to this effect. This behavior is mediated by a look-up operation where the model seeks the identity of the masked position by using the other copy of the repeated motif as a reference. This retrieval behavior can override the model's learned priors. This phenomenon persists for imperfectly repeated sequences, and extends to other kinds of biologically relevant features such as reversed complement motifs in RNA sequences that fold into hairpin structures.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 20 of its 45 references that are in the map. First posted on arXiv 23 Apr 2025.

Builds on

20 of 45 references.

References · 20

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  5. 2022In-context Learning and Induction Headscited by 964
  6. 2022Transformers learn in-context by gradient descentcited by 732
  7. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  8. 2023Larger language models do in-context learning differentlycited by 394
  9. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
  10. 2022ProGen2: Exploring the Boundaries of Protein Language Modelscited by 159
  11. 2023DNABERT-2: Efficient Foundation Model and Benchmark For Multi-Species Genomecited by 143
  12. 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 118
8 more
  1. 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 118
  2. 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 76
  3. 2023Skill-Mix: a Flexible and Expandable Family of Evaluations for AI modelscited by 64
  4. 2024Competition Dynamics Shape Algorithmic Phases of In-Context Learningcited by 54
  5. 2024RiNALMo: General-Purpose RNA Language Models Can Generalize Well on Structure Prediction Taskscited by 33
  6. 2024Parallel Structures in Pre-training Data Yield In-Context Learningcited by 26
  7. 2024Can Models Learn Skill Composition from Examples?cited by 17
  8. 2025Multi-megabase scale genome interpretation with genetic language modelscited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.