arXiv:2611.02810cs.CLNov 2026

Manuscript Offprint

arXiv:2611.02810

TRIO: Task Refinement with Individual Optimization for Retrieval-Augmented Generation

Yingtao Ren, Xiao Luo, Yiwei Fu, Jinzhao Zhou, Yu-Cheng Chang, Chin-Teng Lin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

This paper studies retrieval-augmented generation (RAG), which leverages external knowledge to improve the performance of language models. Despite the remarkable progress, current RAG approaches are still far from satisfactory due to inadequate retrieval and potential hallucinations. Towards this end, we propose a novel approach named Task Refinement with Individual Optimization (TRIO) for RAG. The core idea of our TRIO is to equip three well-designed agents with an iterative refinement paradigm by aligning their individual optimization objectives. Specifically, we first expand ambiguous queries with a query extension agent and quantify the reward based on the improved answer quality, which can be utilized to refine our agent for higher expansion efficiency. To enhance the retrieval quality, we include a unanimity voting to annotate the expanded query as insufficient or sufficient, and their generative outcomes are utilized as ground truth to optimize the judge agent. To further improve evidence utilization and answer accuracy, an answer agent is optimized with dynamic matching-based rewards with curriculum learning for final outputs. Extensive experiments across multiple benchmark datasets validate the effectiveness of the proposed TRIO in comparison with state-of-the-art approaches. Our code is available at https://github.com/yingtaoren/TRIO.

1 Introduction

Large language models (LLMs) have achieved remarkable success in natural language understanding and reasoning. By pre-training on a series of high-quality instruction datasets, LLMs can acquire a wide range of factual knowledge (Achiam et al., 2024; Du et al., 2026). These pre-trained models have enabled a wide range of applications beyond conventional language tasks (Xiao et al., 2025; Fu et al., 2026). Nevertheless, pre-trained models may fail to capture the most up-to-date information in

Figure

Figure 1: Problem illustration. RAG struggles with inefficient knowledge acquisition in the retrieval stage and knowledge underutilization in the answer stage.

highly specialized domains, particularly those involving private or sensitive knowledge, such as healthcare and law (Huang et al., 2025). This issue limits LLMs' capabilities on some knowledge-intensive tasks, even leading to hallucinations.

To enhance the response quality, RAG has been employed as a framework that leverages external knowledge to reduce reliance on the pre-trained LLMs' parametric knowledge (Wang et al., 2026; Gu et al., 2026). Typical RAG systems include two main steps: retrieval and generation. In the retrieval step, the key point is to locate the lacking knowledge and define a retrieval query to retrieve the knowledge from an external corpus. And then, in the generation stage, the retrieved contents are integrated with the original question and fed into the LLM. The augmented input provides the LLM with relevant knowledge and the latest information, thereby enhancing the quality of responses and reducing hallucinations (Mishra et al., 2024). The main advantage of RAG is that it provides external contextual information to answer questions when combined with the model's parametric knowledge (Yu et al., 2025). However, this advantage is constrained by two challenges. First, the system may not be able to accurately identify the missing knowledge and generate an effective query for retrieval. An inefficient query formulation may lead to the retrieval of numerous irrelevant or even biased documents, thereby increasing the model's reasoning burden (Yu et al., 2024a; Cuconasu et al., 2024). Second, even when relevant documents are retrieved, the model may be unable to appropriately utilize the provided context, which may lead to further hallucinations (Hsieh et al., 2024; Liu et al., 2024; Wang et al., 2025a; Ren et al., 2026b).

Existing approaches to optimizing the pipeline of RAG include the branching method (Kim et al., 2024; Shi et al., 2024), context ranking (Yu et al., 2024b), and iterative retrieval (Asai et al., 2024; He et al., 2024). These approaches merely adjust the pipeline of RAG, remaining insufficient to counteract the noise or bias introduced by retrieved knowledge. Furthermore, many recent works fine-tune specific LLMs for the RAG pipeline to improve robustness and factual consistency in the generation stage. Such efforts include supervised fine-tuning with human-annotated datasets (Niu et al., 2024) and utilizing reinforcement learning to integrate reasoning ability with retrieval (Song et al., 2025). However, by placing the burden of generating retrieval queries and answering on the same backbone model, these approaches inherit the models' intrinsic biases, limiting their robustness and ability to generate effective queries.

Recently, a growing trend in LLMs is to break complex processes into multiple specialized agents or modules that work (Chen et al., 2024; Luo et al., 2025) collaboratively. Instead of uniform models handling everything, each agent is responsible for a specific subtask in multi-agent systems (Bo et al., 2024). This paradigm has also been introduced into the RAG framework, resulting in a remarkable improvement in removing hallucinations and effectively utilizing external knowledge (Nguyen et al., 2025; Hu et al., 2025). However, existing multi-agent RAG frameworks still share the same backbone without adaptive adjustment, which potentially undermines response reliability.

To address these challenges, we propose a multi-agent system with Task Refinement and Individual Optimization (TRIO), an innovative multi-agent collaborative RAG system that tightly couples the retrieval and generation stages to improve retrieval and answer quality. Unlike existing multi-agent RAG approaches that utilize uniform backbones (Hu et al., 2025), TRIO assigns task-adaptive agents to distinct subtasks, allowing each agent to specialize in its role. This targeted specialization enables the system to pinpoint missing knowledge and utilize retrieved knowledge more effectively, yielding higher answer quality. Because each agent operates on a narrow slice of the pipeline, TRIO also lowers training cost and improves reliability.

Our TRIO implements an adaptive multi-agent RAG framework that decomposes the workflow into three subtasks: retrieval query generation, sufficient information judgment, and answer generation, each subtask handled by an optimized expert agent. This adaptive design enables effective handling of diverse questions and yields robust performance across domains. In addition, we present a streamlined data-generation and training protocol that tightly couples the optimization of all three agents, significantly improving effectiveness while maintaining modest supervision overhead. Crucially, the training data construction and fine-tuning procedures embed substantial cross-agent collaboration, which strengthens coordination within the multi-agent system and tightly couples the subtasks of the pipeline. The protocol facilitates a straightforward transfer to a wide range of RAG scenarios and provides a practical path to enhance real-world RAG deployments. Our main contributions can be summarized as follows:

(1) Existing RAG systems struggle with inefficient knowledge acquisition and hallucination issues. We address these challenges through TRIO, which strategically assigns specialized agents to distinct RAG pipeline stages.

(2) Our TRIO introduces novel data generation methods that expand limited supervised data to align across different subtasks of RAG and further adopts adaptive fine-tuning paradigms for each agent. This design helps enhance retrieval efficiency and answer quality.

(3) Comprehensive experiments across the latest benchmarks demonstrate that our TRIO outperforms a range of competitive baselines. In addition, the framework can be readily extended to various RAG scenarios.