Controlling Repetition in Protein Language Models

Jiahao Zhang, Zeqing Zhang, Di Wang, Lijie Hu
1/31/2026
q-bio.BMcs.AI

No official code found. Best implementation: JiahaoZhang-Public/Controlling-Repetition-in-Protein-Language-Models (3 stars, Apache-2.0, last commit 2026-04-19).

Abstract

Protein language models (PLMs) have enabled advances in structure prediction and de novo protein design, yet they frequently collapse into pathological repetition during generation. Unlike in text, where repetition merely reduces readability, in proteins it undermines structural confidence and functional viability. To unify this problem, we present the first systematic study of repetition in PLMs. We first propose quantitative metrics to characterize motif-level and homopolymer repetition and then demonstrate their negative impact on folding reliability. To address this challenge, we propose UCCS (Utility-Controlled Contrastive Steering), which steers protein generation with a constrained dataset. Instead of naively contrasting high- vs. low-repetition sequences, we construct contrastive sets that maximize differences in repetition while tightly controlling for structural utility. This disentanglement yields steering vectors that specifically target repetition without degrading foldability. Injected at inference, these vectors consistently reduce repetition without retraining or heuristic decoding. Experiments with ESM-3 and ProtGPT2 in CATH, UniRef50, and SCOP show that our method outperforms decoding penalties and other baselines, substantially lowering repetition while preserving AlphaFold confidence scores. Our results establish repetition control as a central challenge for PLMs and highlight dataset-guided steering as a principled approach for reliable protein generation.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This is the official repo of ICLR submitted paper: Controlling Repetition in Protein Language Models

30Shell, PythonNov 15, 20256 months agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2026controlling,
  title  = {Controlling Repetition in Protein Language Models},
  author = {Jiahao Zhang and Zeqing Zhang and Di Wang and Lijie Hu},
  year   = {2026},
  eprint = {2602.00782},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.00782v1}
}

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.00782.svg)](https://codeofpaper.com/paper/2602.00782)

Discussion