Induction Meets Biology: Mechanisms of Repeat Detection in Protein Language Models

Gal Kesten-Pomeranz, Yaniv Nikankin, Anja Reusch, Tomer Tsaban, Ora Schueler-Furman +1 more
2/26/2026
cs.LGq-bio.BM

No official code found. Best implementation: technion-cs-nlp/plms-repeats-circuits (3 stars, last commit 2026-05-20).

Abstract

Protein sequences are abundant in repeating segments, both as exact copies and as approximate segments with mutations. These repeats are important for protein structure and function, motivating decades of algorithmic work on repeat identification. Recent work has shown that protein language models (PLMs) identify repeats, by examining their behavior in masked-token prediction. To elucidate their internal mechanisms, we investigate how PLMs detect both exact and approximate repeats. We find that the mechanism for approximate repeats functionally subsumes that of exact repeats. We then characterize this mechanism, revealing two main stages: PLMs first build feature representations using both general positional attention heads and biologically specialized components, such as neurons that encode amino-acid similarity. Then, induction heads attend to aligned tokens across repeated segments, promoting the correct answer. Our results reveal how PLMs solve this biological task by combining language-based pattern matching with specialized biological knowledge, thereby establishing a basis for studying more complex evolutionary processes in PLMs.

View on arXivView PDF

Code Implementations(1)

This repository accompanies the paper Induction Meets Biology: Mechanisms of Repeat Detection in Protein Language Models.

30Shell, PythonFeb 3, 20265 months ago

Similar Papers

Cite this paper

@article{kestenpomeranz2026induction,
  title  = {Induction Meets Biology: Mechanisms of Repeat Detection in Protein Language Models},
  author = {Gal Kesten-Pomeranz and Yaniv Nikankin and Anja Reusch and Tomer Tsaban and Ora Schueler-Furman and Yonatan Belinkov},
  year   = {2026},
  eprint = {2602.23179},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.23179v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.23179.svg)](https://codeofpaper.com/paper/2602.23179)

Discussion