Yixin Chen
Author directoryOther people with similar names: Yixin Chen
Unverified author pages with similar names: Yixin Chen
2026
Beyond Semantic Similarity: Learning Behavior-Aligned Retrieval for Tool-Augmented LLMs
Yixin Chen | Ying Xiong | Shangyu Wu | Yufei Cui | Xue Liu | Nan Guan | Chun Jason Xue
Findings of the Association for Computational Linguistics: EMNLP 2026
Yixin Chen | Ying Xiong | Shangyu Wu | Yufei Cui | Xue Liu | Nan Guan | Chun Jason Xue
Findings of the Association for Computational Linguistics: EMNLP 2026
Tool-augmented LLMs invoke external functions to extend their capabilities, but errors in the invocation decision, such as calling a tool when none is needed or omitting a needed call, can produce unreliable outputs and unnecessary cost. A lightweight remedy is to prepend retrieved examples so LLMs decide tool use in context. However, existing retrievers rank examples by semantic similarity alone. Lexically close or semantically close queries can require opposite behavior, so the retrieved examples may be behaviorally inconsistent and silently mislead the model. We propose Behavior-Aligned Retrieval (BAR), a backbone-agnostic training recipe that teaches a dense retriever a behavior-aware similarity, keeping semantically related candidates close only when their tool-use behavior is compatible. BAR does not predict invocation labels; instead, it ranks demonstrations while leaving the final tool-use decision to the LLM. Applied to multiple retrieval backbones, including BERT, Contriever, and Qwen3-Reranker, BAR consistently improves invocation reliability and reduces unnecessary API calls across 14 LLMs and 3 benchmarks.