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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Pomerants, Gal, Nikankin, Yaniv, Reusch, Anja, Tsaban, Tomer, Schueler-Furman, Ora, Belinkov, Yonatan
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910275062464512
author Pomerants, Gal
Nikankin, Yaniv
Reusch, Anja
Tsaban, Tomer
Schueler-Furman, Ora
Belinkov, Yonatan
author_facet Pomerants, Gal
Nikankin, Yaniv
Reusch, Anja
Tsaban, Tomer
Schueler-Furman, Ora
Belinkov, Yonatan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2602_23179
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Induction Meets Biology: Mechanisms of Repeat Detection in Protein Language Models
Pomerants, Gal
Nikankin, Yaniv
Reusch, Anja
Tsaban, Tomer
Schueler-Furman, Ora
Belinkov, Yonatan
Machine Learning
Biomolecules
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.
title Induction Meets Biology: Mechanisms of Repeat Detection in Protein Language Models
topic Machine Learning
Biomolecules
url https://arxiv.org/abs/2602.23179