Output-Space Search: Targeting LLM Generations in a Frozen Encoder-Defined Output Space
Summary
Output-Space Search (OS-Search) transforms large language model (LLM) generation into an endpoint search problem. This method involves an outer loop that selects a target z* within a frozen encoder-defined 3D output space Z. A retrieval-grounded policy, trained using sequence-level reinforcement learning, then generates outputs whose coordinates align closely with z* through standard autoregressive decoding. This approach facilitates parallel sweeps and black-box optimization directly within Z, bypassing path-dependent token or program search. For stories, sweeping Z (text) achieved 3.1x higher LLM-scored diversity compared to prompt-chaining. On code, Bayesian optimization over Z (code) improved a withheld objective under matched inference budgets while preserving validity.
Key takeaway
For Machine Learning Engineers focused on controlling and diversifying LLM outputs, OS-Search offers a novel approach. If you are currently relying on prompt-chaining for diversity or struggling with objective-driven generation, consider exploring this method. It enables parallel optimization and black-box search within a latent output space, potentially yielding significantly higher diversity (e.g., 3.1x for stories) and improved objective alignment for tasks like code generation, without the complexities of token-level search.
Key insights
OS-Search reframes LLM generation as endpoint search in a latent space, enabling parallel optimization and enhanced diversity.
Principles
- LLM generation can be an endpoint search.
- Frozen encoder-defined spaces enable output optimization.
- Sequence-level RL guides generation to target coordinates.
Method
An outer loop selects a target z* in a 3D output space Z. A retrieval-grounded policy, trained with sequence-level RL, generates outputs whose coordinates land near z* via autoregressive decoding.
In practice
- Sweep Z for diverse text generation.
- Apply Bayesian optimization in Z for code.
- Optimize LLM outputs in parallel.
Topics
- Output-Space Search
- LLM Generation
- Latent Space Optimization
- Reinforcement Learning
- Text Diversity
- Code Generation
- Bayesian Optimization
Best for: Research Scientist, AI Engineer, AI Scientist, Machine Learning Engineer, NLP Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Paper Index on ACL Anthology.