TL;DR
NADO is a framework that "decomposes" a global, sequence-level requirement (like "this sentence must be formal") into step-by-step guidance for a language model. By training a small auxiliary model on the base model's own samples, it achieves precise control over text generation without requiring external labeled data or expensive retraining of the massive base model.
What Problem Does This Paper Address?
Large-scale auto-regressive language models (like GPT-2 or GPT-3) are incredibly good at generating fluent text, but they are notoriously difficult to steer. If you want a model to satisfy a specific sequence-level attribute—such as including a specific set of keywords or maintaining a certain writing style—standard models often struggle.
Existing solutions generally fall into two camps:
- Algorithmic Decoding: Modifying the search process (e.g., beam search) to force certain words. This is often slow and doesn't work for abstract concepts like "style."
- Auxiliary Guidance: Using a second "discriminator" model to nudge the main model. However, these guides are often trained on external datasets. This creates a "distributional discrepancy"—the guide and the generator are essentially speaking different dialects, leading to a drop in text quality.
The authors tackle the challenge of providing mathematically grounded, token-level guidance that is perfectly aligned with the base model's behavior.
Methods
The core innovation is the NeurAlly-Decomposed Oracle (NADO).
1. The Oracle Decomposition
Imagine a "Boolean Oracle"—a function that looks at a completed sentence and says "Yes" (1) if it meets the criteria and "No" (0) if it doesn't. NADO's job is to take this binary, end-of-sentence verdict and break it down. It learns to predict the success rate: "Given the words I've written so far, what is the probability that this sentence will eventually satisfy the oracle?"
2. Posterior Regularization
The authors use a framework called posterior regularization to derive a closed-form optimal solution. This formula tells the model exactly how to combine its original probability distribution with NADO’s guidance to minimize the "distance" (KL-divergence) from the base model while maximizing the chance of satisfying the oracle.
3. Training on Self-Samples
To avoid the "distributional discrepancy" mentioned earlier, NADO is trained on sequences sampled from the base model itself. The base model generates a bunch of candidate sentences; the oracle labels them as successes or failures; and NADO learns from this feedback. This ensures the guidance is tailored specifically to the base model's strengths and weaknesses.
4. Consistency Regularization
The authors introduce a specific loss term to ensure that NADO is "self-consistent." The probability of success at step $i$ should be equal to the expected probability of success at step $i+1$. This prevents the guidance from being erratic.
Datasets
The researchers evaluated NADO on two distinct types of control:
- Lexically Constrained Generation (LCG):
- Yelp Review & News datasets: Forcing the model to include specific keywords in a specific order.
- CommonGen: A benchmark for commonsense reasoning where the model must generate a coherent sentence using a set of provided concepts.
- Machine Translation (MT) with Formality Control:
- Fisher & CALLHOME (Spanish-English): Translating informal speech into formal English.
- GYAFC: A formality dataset used to train the underlying "formality oracle."
Key Insights and Ideas
- Global to Local: The "aha moment" is realizing that sequence-level control is essentially a reinforcement learning problem that can be solved more efficiently via supervised decomposition. By predicting future success at every token, the model never "loses the plot."
- Alignment is Everything: By training NADO on the base model's own outputs, the authors ensure the guide doesn't ask the generator to do something it's incapable of. This preserves the "fluency" of the original model.
- Black-Box Compatibility: NADO treats the base model and the oracle as black boxes. You don't need to know the internal weights of the GPT model or the logic of the keyword checker to make the system work.
Key Results
- Superior Control: On the CommonGen task, NADO achieved a constraint coverage of 97.1%, significantly higher than previous algorithmic baselines like GPT-2 Fine-tuning (82.2%) or Constrained Beam Search.
- Higher Quality: In formality-controlled translation, NADO improved the BLEU score (a measure of translation quality) by 3 points over FUDGE, a leading competitor, while also achieving higher formality scores.
- Efficiency: Because NADO is typically a much smaller model than the base generator, the computational overhead is minimal—usually taking no more than 2x the time of standard, uncontrolled generation.
- Human Preference: Human evaluators rated NADO's outputs as more plausible and better at capturing concepts than the baseline models.
Limitations and Future Work
- The "Decent Base" Assumption: NADO relies on the base model being good enough to occasionally satisfy the oracle during the initial sampling phase. If the base model never generates a "formal" sentence, NADO has nothing to learn from.
- Boolean Constraint: Currently, the framework is designed for "Yes/No" oracles. Extending this to continuous scores (e.g., "make this 70% happy") is a potential next step.
- Superficial Shortcuts: The authors note that NADO might sometimes learn "shortcuts"—satisfying the oracle in a way that is technically correct but linguistically awkward.
- Future Directions: The authors suggest applying NADO to detoxifying language models or reducing societal biases by creating oracles for fairness.
Summary updated