When an AI decides which tool to use, does it second-guess itself if you just reword the question?
How do KNN and prompted routers trade off accuracy against paraphrase robustness?
This explores how two ways of sending a query to the right model or tool compare: a KNN router that looks up the nearest previously seen queries by embedding similarity, and a prompted router where an LLM is asked to choose, judged on accuracy and on whether the choice survives a rewording of the same question.
This reads the question as asking how two routing designs compare: a KNN router picks a destination by finding the most similar past queries in embedding space, while a prompted router asks an LLM to decide, and the trade-off is between getting the route right and getting the same route when the query is reworded. The corpus has no note that benchmarks these two router types head to head, so there is no measured answer here. What it does have is material on the two mechanisms underneath them, and that is enough to sketch where each one should bend.
A prompted router inherits the LLM's sensitivity to phrasing. The most useful finding here is that this sensitivity is not random: when a model is confident it resists rephrasing, and when it is unsure its output swings widely Does model confidence predict robustness to prompt changes?. Applied to routing, that suggests a prompted router should be stable on clear-cut queries and flip on the borderline ones, which are the cases where routing matters most. Larger models and few-shot examples raise confidence and so robustness, which means paraphrase stability in a prompted router is partly something you buy with model size and examples.
A KNN router has the opposite profile. Embeddings place paraphrases close together, so rewording rarely changes the neighbours. But embeddings measure association rather than relevance Where do retrieval systems fail and why?, and they blur queries that differ in one decisive detail, such as a specific entity or constraint Can direct corpus search beat embedding-based retrieval?. The same smoothing that makes KNN stable under paraphrase can make it consistently wrong when two queries sound alike but need different handling. Compressed vectors reliably miss these structural near-misses Can verification separate structural near-misses from topical matches?.
Two notes point at ways out of the trade-off rather than a pick between the two. One is staging: use cheap similarity for recall, then a small verifier that looks at fine-grained token interactions to reject look-alikes Can verification separate structural near-misses from topical matches?. The other is using the model's own uncertainty as the routing signal. In adaptive retrieval, calibrated token-probability uncertainty beat more elaborate multi-call heuristics at a fraction of the cost Can simple uncertainty estimates beat complex adaptive retrieval?, and since confidence also predicts paraphrase robustness, the same signal could flag which routing decisions are fragile.
The thing worth taking away is that paraphrase robustness and accuracy are not one dial. KNN is stable because it ignores small differences; a prompted router is accurate on fine distinctions because it reads them, and unstable for the same reason. Treat all of this as inference from neighbouring work on retrieval and prompt sensitivity, not as a result about routers.
Sources 5 notes
ProSA found that when models are highly confident, they resist prompt rephrasing; low confidence causes major output swings. Larger models, few-shot examples, and objective tasks all correlate with higher confidence and greater robustness.
RAG systems fail at three structural levels: adaptive triggering (fixed intervals waste context), semantic-task mismatch (embeddings measure association, not relevance), and mathematical limits (embedding dimension constrains representable document sets). These require fundamentally different retrieval approaches, not tuning.
GrepSeek trains agents to retrieve via executable shell commands over raw text, achieving better multi-hop performance on entity-constrained queries than dense embeddings. The approach scaffolds unstable search mechanics with supervised trajectories, then refines task-oriented behavior through reinforcement learning.
A two-stage pipeline—pooled-cosine recall followed by a small Transformer verifier operating on token-token similarity maps—reliably rejects structural near-misses that MaxSim-style late interaction cannot. The verifier succeeds because it operates on full token interaction patterns rather than compressed vectors.
Calibrated token-probability uncertainty consistently beats multi-call adaptive retrieval on single-hop tasks and matches performance on multi-hop, using a fraction of the LM and retriever calls. The model's self-knowledge proves more reliable than external heuristics for deciding when to retrieve.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- Chain-of-Retrieval Augmented Generation
- A New Role for Relevance: Guiding Corpus Interaction in Agentic Search
- BM25 Wins at Scale: A Scaling Study of Retrieval-Augmented Generation Paradigms
- Towards Agentic RAG with Deep Reasoning: A Survey of RAG-Reasoning Systems in LLMs
- UR2: Unify RAG and Reasoning through Reinforcement Learning
- GrepSeek: Training Search Agents for Direct Corpus Interaction
- Adaptive Retrieval Without Self-Knowledge? Bringing Uncertainty Back Home
- LLM-Independent Adaptive RAG: Let the Question Speak for Itself