Reinforced Internal-External Knowledge Synergistic Reasoning for Efficient Adaptive Search Agent

Ziyang Huang, Xiaowei Yuan, Yiming Ju, Jun Zhao, Kang Liu
5/12/2025
cs.CLcs.AI

No official code found. Best implementation: hzy312/knowledge-r1 (71 stars, Apache-2.0, last commit 2025-05-13).

Abstract

Retrieval-augmented generation (RAG) is a common strategy to reduce hallucinations in Large Language Models (LLMs). While reinforcement learning (RL) can enable LLMs to act as search agents by activating retrieval capabilities, existing ones often underutilize their internal knowledge. This can lead to redundant retrievals, potential harmful knowledge conflicts, and increased inference latency. To address these limitations, an efficient and adaptive search agent capable of discerning optimal retrieval timing and synergistically integrating parametric (internal) and retrieved (external) knowledge is in urgent need. This paper introduces the Reinforced Internal-External Knowledge Synergistic Reasoning Agent (IKEA), which could indentify its own knowledge boundary and prioritize the utilization of internal knowledge, resorting to external search only when internal knowledge is deemed insufficient. This is achieved using a novel knowledge-boundary aware reward function and a knowledge-boundary aware training dataset. These are designed for internal-external knowledge synergy oriented RL, incentivizing the model to deliver accurate answers, minimize unnecessary retrievals, and encourage appropriate external searches when its own knowledge is lacking. Evaluations across multiple knowledge reasoning tasks demonstrate that IKEA significantly outperforms baseline methods, reduces retrieval frequency significantly, and exhibits robust generalization capabilities.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

IKEA: Reinforced Internal-External Knowledge Synergistic Reasoning for Efficient Adaptive Search Agent

714Shell, PythonMar 1, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{huang2025reinforced,
  title  = {Reinforced Internal-External Knowledge Synergistic Reasoning for Efficient Adaptive Search Agent},
  author = {Ziyang Huang and Xiaowei Yuan and Yiming Ju and Jun Zhao and Kang Liu},
  year   = {2025},
  eprint = {2505.07596},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.07596v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.07596.svg)](https://codeofpaper.com/paper/2505.07596)

Discussion