TL;DR
Databricks AI Research introduces KARL, a system for training enterprise search agents using iterative off-policy Reinforcement Learning (RL). By combining a novel agentic data synthesis pipeline with a stable RL framework, KARL achieves Pareto-optimal performance—matching or exceeding top-tier models like Claude 4.6 and GPT 5.2 in both cost and latency while generalizing to complex, "hard-to-verify" search tasks.
What Problem Does This Paper Address?
While Large Language Models (LLMs) have mastered coding and math, "grounded reasoning"—the ability to iteratively query, retrieve, and reason over massive, private data collections—remains a frontier. Most current "deep research" agents rely on public web search and black-box tools, making it unclear if they can generalize to the messy, proprietary data found in legal, medical, or financial enterprises.
The authors identify three major roadblocks:
- Evaluation Gap: Existing benchmarks only capture narrow slices of agent behavior.
- Data Scarcity: High-quality, grounded, and difficult training data for multi-step search is nearly impossible to find or manually curate at scale.
- Training Instability: Standard RL methods (like online GRPO) are often unstable or computationally expensive when applied to large-scale Mixture-of-Experts (MoE) models.
Methods
KARL introduces a full-stack approach to building knowledge agents:
- Agentic Synthesis: Instead of static prompting, the authors use an agent to create its own training data. The agent explores a document corpus via vector search to generate complex question-answer pairs grounded in actual evidence. They use a "Solver Agent" to filter these questions by difficulty, keeping only those that provide a rich learning signal.
- OAPL (Optimal Advantage-based Policy Optimization with Lagged Inference): This is a new iterative, large-batch off-policy RL paradigm. Unlike online RL, which requires constant synchronization between the trainer and inference engine, OAPL is more stable and sample-efficient. It allows for multi-task training without the complex heuristics typically needed to keep RL from collapsing.
- End-to-End Context Compression: Long search trajectories often exceed context windows. KARL is trained to perform its own context compression during the RL process, learning what information is salient to keep for the final answer.
- Test-Time Compute (TTC): The authors scale performance at inference using Parallel Thinking (generating multiple search paths and aggregating them) and Value-Guided Search (using a trained value model to steer the agent toward successful trajectories).
Datasets
The authors introduce KARLBench, a comprehensive suite of six search regimes:
- BrowseComp-Plus: Constraint-driven entity search.
- TREC-Biogen: Cross-document report synthesis.
- FinanceBench: Long-document traversal with tabular numerical reasoning.
- QAMPARI: Exhaustive entity search over encyclopedic text.
- FreshStack: Procedural reasoning over technical documentation.
- PMBench: A new, proprietary benchmark based on real-world internal enterprise notes (meeting notes, planning materials).
Key Insights and Ideas
- Heterogeneity Breeds Generalization: One of the most important findings is that training on a diverse set of search behaviors (e.g., combining "deep" search with "wide" report synthesis) leads to much better performance on out-of-distribution tasks than optimizing for a single benchmark.
- RL vs. Distillation: The researchers compared RL to standard Supervised Fine-Tuning (SFT) distillation. While distillation helps the model mimic expert behavior, RL actually develops general search capabilities. RL-trained models scaled significantly better with test-time compute on tasks they had never seen before.
- Efficiency as a Learned Trait: Interestingly, RL training didn't just make the model more accurate; it made it faster. The model learned to "commit" to an answer once it had sufficient evidence, drastically reducing the number of redundant, "wasteful" searches compared to the base model.
Key Results
KARL demonstrates that specialized training can beat general-purpose "frontier" models:
- Pareto Optimality: KARL is Pareto-optimal across cost-quality and latency-quality trade-offs. It consistently achieves equivalent quality to Claude 4.6 and GPT 5.2 at a lower cost.
- Surpassing the Giants: With 10 parallel rollouts, KARL matches the quality of Claude Opus 4.6 while being 33% cheaper and 47% faster (due to parallel execution).
- OOD Success: KARL showed consistent improvements on the four "held-out" tasks in KARLBench, proving that the agentic search skills learned during RL are truly transferable.
Limitations and Future Work
Despite its success, the authors note several areas for growth:
- Tool Diversity: Currently, the agent is restricted to a single tool: vector search. Future versions will likely include code execution and structured retrieval.
- Reasoning Failures: Qualitative analysis showed that while KARL is great at finding info, it still occasionally fails at complex arithmetic or tabular reasoning once the data is found. The authors suggest adding specific rewards for these skills in future iterations.
- Memory Management: The current context compression is a simple prompt-based summary. Moving toward more sophisticated, hierarchical memory management could allow for even longer-horizon reasoning.
Summary updated