NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Extrapolative Controlled Sequence Generation via Iterative Refinement

Vishakh Padmakumar, Richard Yuanzhe Pang, He He, Ankur P. Parikh

Introduction

In domains ranging from therapeutic protein design to creative text generation, the objective is often to produce sequences that possess attributes exceeding those present in existing datasets. For instance, researchers may seek proteins with higher binding affinities or movie reviews with more extreme sentiments than any currently documented.

Standard controlled generation models typically learn a mapping from a specific attribute value to a sequence. However, these models frequently fail when tasked with "extrapolation"—generating sequences for attribute values outside the training distribution. Scoring models used to guide these processes also become unreliable in these out-of-distribution regions. This paper introduces Iterative Controlled Extrapolation (ICE), a framework designed to overcome these limitations by reframing generation as a process of continuous local refinement.

Methodology: The ICE Framework

ICE shifts the paradigm from one-shot generation to iterative editing. The core hypothesis is process invariance: while a model may not have seen a "super-stable" protein, the local edits required to make a stable protein slightly more stable are likely consistent across different attribute ranges.

1. Synthetic Data Generation

The training process begins by creating pairs of sequences $(x, \tilde{x})$, where $\tilde{x}$ represents a marginal improvement over $x$. This is achieved by masking random segments of training sequences and using a masked language model (MLM) to propose replacements. A scorer then filters these proposals, retaining only those that demonstrate a small, positive shift in the target attribute.

2. The Local Editor

A sequence-to-sequence model (e.g., T5 or Prot-T5) is trained to function as a "local editor." Given an input sequence and a control tag (such as <inc> for increment or <dec> for decrement), the model learns to output the improved version of the sequence.

3. Iterative Inference

During inference, the model starts with a base sequence and applies the local editor repeatedly. Each iteration introduces small changes that incrementally push the sequence further into the extrapolation zone.

Overview of the ICE framework: Local edits are learned during training and applied iteratively during inference to reach extrapolation regions.

Experimental Evaluation

The authors evaluated ICE across three distinct tasks:

  • Sentiment Analysis (Yelp): Generating restaurant reviews with sentiment scores more extreme than the training range (scores 2–4).
  • ACE2 Stability: Designing human ACE2 protein mutants with higher stability (lower $ddG$ values) than the training range (-4 to 10).
  • AAV Fitness: Optimizing adeno-associated virus (AAV) capsid proteins for gene therapy, targeting fitness scores higher than any in the training set (all $\leq 0$).

Key Results and Insights

ICE consistently outperformed state-of-the-art baselines like PPLM and Genhance, particularly in extreme extrapolation scenarios. In sentiment tasks, ICE achieved a 61% success rate for the most extreme positive targets, compared to 38.7% for Genhance.

In protein engineering, ICE generated significantly more stable mutants. As illustrated in the distribution of $ddG$ scores for the ACE2 task, ICE (represented in blue) shifts the population of generated sequences much further into the negative $ddG$ (higher stability) region than competing methods.

Distribution of ddG scores for ACE2. ICE (blue) generates a higher fraction of stable mutants compared to Genhance (red) and Iterative Sampling (yellow).

Sequence Space vs. Latent Space

Unlike many contemporary methods that navigate continuous latent spaces, ICE operates directly on discrete sequences. This approach avoids the stability issues often encountered when mapping between continuous vectors and discrete tokens (text or amino acids).

Scorer as a Compass

While scorers may lose absolute accuracy in extrapolation regions, they remain effective for ranking local edits. ICE leverages this by using the scorer to select the best among several proposed edits at each step, a technique referred to as "Scorer-guided generation."

Limitations and Future Work

Despite its success, ICE faces several challenges:

  • Semantic Drift: In natural language, iterative edits can lead to "hallucinations" or a loss of original meaning while chasing a specific sentiment score.
  • Computational Cost: The iterative nature of the framework makes it slower than one-shot generation methods.
  • Stopping Criteria: Determining the optimal point to stop iterations remains difficult, as the model lacks a reliable signal for when an unseen target has been reached.

Future research will explore multi-attribute optimization, such as simultaneously improving a protein's stability and its manufacturability.

Summary updated

BibTeX
@inproceedings{padmakumar2023extrapolative,
  author = {Vishakh Padmakumar and Richard Yuanzhe Pang and He He and Ankur P. Parikh},
  title = {{Extrapolative Controlled Sequence Generation via Iterative Refinement}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=EuUeVUS6UV},
}
Figure