Reproduce “Controlled Text Generation with Natural Language Instructions” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Wangchunshu Zhou, Yuchen Eleanor Jiang, Ethan Wilcox, Ryan Cotterell, Mrinmaya Sachan

Researchers at ETH Zürich developed INSTRUCTCTG, a training-time framework that translates text generation constraints into natural language instructions to fine-tune large language models. This approach yields comparable constraint satisfaction rates, significantly improved text fluency (e.g., 12.6 perplexity for lexical constraints compared to 21.8 for NeuroLogic), and over four times faster generation speed than prior decoding-time methods, also demonstrating strong generalization to unseen constraints.

Key insights

  • Large language models can effectively learn to follow diverse text generation constraints when those constraints are verbalized as natural language instructions during training.
  • Weakly supervised data synthesis, leveraging off-the-shelf NLP tools and heuristics, is an effective strategy for generating large-scale training data for controlled text generation tasks where explicit labels are scarce.
  • Integrating meta in-context learning during fine-tuning significantly enhances the model's ability to generalize to novel and unseen constraint types with minimal examples, reducing the need for extensive retraining.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.