Modeling Variable Length Protein Sequences with Indels

This direction is split into other directions: insertion-deletion modeling gap. Its last version stays readable and citable here.

Version 1 of 144 papers53 conceptsfrozen 2026-10-04

For decades, computational protein design operated under a "fixed-grid" constraint. Whether using physics-based tools like RosettaRemodel or early machine learning models, researchers typically kept the protein's backbone or total length static, optimizing only the identity of the amino acids at specific positions.

However, natural evolution does not just swap letters; it adds and removes them. Recent research has shifted toward models that can handle insertions and deletions (indels), allowing for the design of proteins with variable lengths and novel structural topologies.

The Problem with the Fixed Coordinate System

Traditional protein modeling relies heavily on Multiple Sequence Alignments (MSAs). As noted by Jung-Eun Shin and colleagues in Protein design and variant prediction using autoregressive generative models, MSAs require sequences to be mapped to a fixed grid. When a sequence has a significant insertion, it "breaks" the alignment structure, making it difficult for models to compare it to known relatives.

This "grid-lock" creates several bottlenecks:

  1. Information Loss: Models like CNNH_PSS often use zero-padding or truncation to force proteins into uniform shapes, introducing noise.
  2. Limited Search Space: Frameworks like LaMBO and LatProtRL are often restricted to substitutions, preventing the exploration of structural changes that might be necessary for stability or function.
  3. Pathogenic Blindness: Many pathogenic mutations are indels. Models that only see point mutations, such as those benchmarked in ProteinGym, cannot accurately predict the fitness of these complex variations.

Proteins as Language: Breaking the Grid

To move beyond fixed lengths, researchers have turned to autoregressive transformers. By treating a protein sequence like a sentence, models can generate amino acids one by one, naturally accommodating any length.

Pascal Notin and the team behind Tranception demonstrated that autoregressive models can excel where MSA-based models fail—specifically in "shallow" alignments with few relatives and in scoring indels. By combining this language-like generation with a retrieval mechanism that looks at evolutionary relatives, models like PoET-2 can predict the effects of insertions and deletions with high precision.

Simulating Evolution via Discrete Diffusion

While autoregressive models generate sequences from left to right, evolution is an iterative edit process. A new wave of models uses discrete diffusion to simulate this more realistically.

In Towards A Generative Protein Evolution Machine with DPLM-Evo, Xinyou Wang and collaborators introduced a framework that decouples a fixed-length latent alignment space from variable-length sequences. This allows the model to perform substitutions, insertions, and deletions simultaneously during the denoising process.

Similarly, Ethan Baron developed SCISOR, a model specifically designed to "shrink" proteins. By learning to reverse random insertions, the model identifies non-essential regions, allowing researchers to design more compact, efficient versions of natural proteins.

Instruction-Tuning and Steered Generation

The ultimate goal of this research direction is "plug-and-play" protein design. Hanqun CAO and colleagues developed InstructPLM, which aligns protein language models to follow structural "instructions." This allows the model to generate functional, variable-length loops that fit a specific backbone, outperforming standard tools like ProteinMPNN which are often tied to fixed-length targets.

By moving from a substitution-only framework to an edit-based framework, these models can navigate the "rugged" fitness landscape of proteins more effectively. As Frederick A Matsen argues in Separating selection from mutation in antibody language models, accounting for indels is not just a technical hurdle—it is a biological necessity for understanding how proteins, particularly antibodies, actually evolve and function.

Papers in this version

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_modeling_variable_length_protein_sequenc_b1256919,
  title = {Modeling Variable Length Protein Sequences with Indels},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/modeling-variable-length-protein-sequences-with-indels/rdr_b125691970f44ea0b136e145f6f39b1e},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 1, frozen text):

@misc{lacuna_modeling_variable_length_protein_sequenc_b1256919_v1,
  title = {Modeling Variable Length Protein Sequences with Indels},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/modeling-variable-length-protein-sequences-with-indels/rdr_b125691970f44ea0b136e145f6f39b1e/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-27},
}