When Should LLMs Search? Counterfactual Supervision for Search Routing

· Source: cs.CL updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics, Emerging Technologies & Innovation · Depth: Expert, extended

Summary

Search-augmented language models often struggle with instance-level search routing, either calling search unnecessarily or failing to search when needed. This paper introduces a counterfactual supervision approach to address this, formulating it as a NO_SEARCH, SEARCH, or UNSOLVED decision problem. By comparing no-search and forced-search outcomes for the same question, an outcome-based oracle is derived for evaluation and training. Supervised fine-tuning (SFT) and Preference Optimization are used to train routing policies. This method improved routing macro-F1 on oracle-eligible examples from 0.7082 to 0.8235 for Gemma E2B and from 0.7053 to 0.8365 for Qwen3.5-4B. The analysis also reveals model-specific error directions, with Gemma learning no-search restraint and Qwen reducing both missed and unnecessary searches.

Key takeaway

For machine learning engineers developing search-augmented LLMs, this research demonstrates that fine-tuning with counterfactual supervision significantly improves search routing decisions. You should implement outcome-based oracle generation to train models like Gemma E2B or Qwen3.5-4B, reducing both unnecessary and missed searches, thereby enhancing system efficiency and accuracy. Consider model-specific error tendencies when applying these training methods.

Key insights

Counterfactual outcomes from no-search and forced-search traces provide a model-specific oracle for LLM search routing.

Principles

Method

Derive a routing oracle from paired no-search and forced-search outcomes. Train policies using SFT and Preference Optimization on oracle-eligible examples, excluding UNSOLVED cases.

In practice

Topics

Best for: Research Scientist, AI Engineer, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.