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

Deep Extrapolation for Attribute-Enhanced Generation

Alvin Chan, Ali Madani, Ben Krause, Nikhil Naik

The Challenge of Attribute Extrapolation

Deep generative models are excellent at mimicking the distribution of data they have already seen. However, in fields like drug discovery, material science, or even creative writing, the goal isn't just to replicate the status quo; it’s to improve upon it. This is known as attribute-enhanced generation.

The fundamental challenge here is extrapolation. Most neural networks struggle to generate samples that fall outside the "envelope" of their training data. For example, if a model is trained only on neutral and mildly positive movie reviews, it typically fails to generate a "strongly positive" review because it has no reference for what that looks like.

Concept of attribute extrapolation in GENhance.

GENhance is a novel generative framework designed to bridge this gap. It performs "attribute extrapolation"—generating data that possesses stronger qualities (e.g., higher sentiment or better protein stability) than anything found in the training set. By combining a learned latent space with a unique cycle-consistency loss, the model successfully "steers" generation toward desired traits, outperforming traditional rejection sampling and MCMC methods.

How GENhance Works

GENhance uses an encoder-decoder architecture (specifically based on the T5 transformer) with a carefully structured latent space. Its approach relies on four key pillars:

The GENhance architecture and training objectives.
  1. Latent Space Decomposition: The encoder maps an input sequence into a latent vector $z$, which is split into two parts: $z_{||}$ (representing the specific attribute of interest, like sentiment or stability) and $z_{\perp}$ (representing everything else, like grammar or sequence structure).
  2. Contrastive Ranking Loss: The encoder is trained to rank pairs of samples based on their attribute values. This ensures that the $z_{||}$ dimension actually corresponds to the target trait.
  3. Cycle-Consistency Loss: To ensure the model generalizes to its own synthetic outputs, the authors introduce a cycle-consistency objective. The model generates a sequence, re-encodes it, and ensures the encoder can still correctly rank the reconstructed version. This "closes the loop" between generation and discrimination.
  4. Latent Steering: During inference, the model takes a standard sample, encodes it, "nudges" the $z_{||}$ value in the desired direction (e.g., making it more positive), and decodes the perturbed vector into a brand-new, enhanced sequence.

Additionally, the model uses Wasserstein Autoencoder (WAE-MMD) regularization to keep the latent space "dense" and well-behaved. Without this smoothing, nudging the latent vector often results in gibberish or ungrammatical sequences.

Experimental Validation

The authors evaluated GENhance on two distinct domains:

  • Natural Language (SST-5): The Stanford Sentiment Treebank. They created challenging "low-resource" splits: 200-Pos (only 200 weak-positive samples provided) and No-Pos (zero positive samples provided during training).
  • Biology (ACE2 Proteins): A newly curated dataset of 250,000 variants of the human ACE2 protein (relevant to SARS-CoV-2 research). They used FoldX, a computational physics engine, as an "oracle" to measure the free energy (stability) of the generated protein sequences.

Key Results and Insights

  • Extrapolation Without Examples: One of the most striking findings is that GENhance can generate "Strongly Positive" text even when the training set contains zero positive examples. It learns the "direction" of sentiment from the gradient between negative and neutral samples and simply follows that vector further. In the "No-Pos" experiment, GENhance produced "Strongly Positive" reviews 21.4% of the time, nearly doubling the performance of the strongest baseline (Gen-Disc at 11.4%).
  • Robust Discrimination via Synthetic Data: Standard discriminators often fail during inference because they were only trained on "real" data. By using cycle-consistency, GENhance’s encoder learns to rank the specific types of "noisy" or "synthetic" sequences the decoder produces, making the ranking much more robust.
  • Protein Stability: GENhance generated sequences that were significantly more stable (lower $\Delta\Delta G$) than those in the training set, outperforming specialized biology baselines like CbAS and DbAS.
  • High Fluency: Despite pushing the attributes to extremes, the model maintained high text quality. Its perplexity scores (a measure of how "natural" the text is) were much better than MCMC-based methods.

Limitations and Future Work

While GENhance represents a significant step forward for attribute-enhanced generation, it currently focuses on enhancing one attribute at a time. In real-world applications like drug design, researchers often need to optimize multiple conflicting attributes simultaneously (e.g., high stability and low toxicity). Furthermore, experiments were conducted on relatively short sequences (movie reviews and 83-amino acid protein subdomains); scaling this to full-length proteins or long-form documents remains an open challenge. Finally, the method relies on having an "oracle" (like FoldX or a pre-trained BERT classifier) to validate results, which may not exist in all scientific frontiers.

Summary updated

BibTeX
@inproceedings{chan2021deep,
  author = {Alvin Chan and Ali Madani and Ben Krause and Nikhil Naik},
  title = {{Deep Extrapolation for Attribute-Enhanced Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure