C-3PO: Compact Plug-and-Play Proxy Optimization to Achieve Human-like Retrieval-Augmented Generation

Guoxin Chen, Minpeng Liao, Peiying Yu, Dingmin Wang, Zile Qiao, Chao Yang, Xin Zhao, Kai Fan

Abstract

Retrieval-Augmented Generation (RAG) often suffers from misalignment between independent retrievers and Large Language Models (LLMs). We present C-3PO (Compact Plug-and-Play Proxy Optimization), a framework that employs a lightweight multi-agent proxy to coordinate RAG pipelines. By emulating human-like search behaviors—reasoning, filtering, and iterative decision-making—and utilizing a novel tree-structured reinforcement learning approach for credit assignment, C-3PO significantly enhances performance on complex multi-hop tasks without requiring fine-tuning of the underlying large-scale models. Experimental results demonstrate that a 1.5B parameter proxy can improve the average accuracy of a 72B LLM from 51.35% to 63.53%, particularly excelling in multi-hop reasoning benchmarks.

Introduction

Retrieval-Augmented Generation (RAG) has become the standard for grounding Large Language Models (LLMs) in external, up-to-date knowledge. However, a fundamental "alignment" gap exists: retrievers and LLMs are typically developed in isolation. Retrievers may provide irrelevant noise, while LLMs may struggle to formulate optimal queries or filter out "context poisoning." Existing solutions—fine-tuning either the retriever or the LLM—are often impractical due to API constraints or prohibitive computational costs. C-3PO introduces a "proxy-centric" alternative: a lightweight, multi-agent coordinator that bridges the gap between any retriever and LLM.

Methodology

C-3PO implements a multi-agent system within a single compact model (e.g., Qwen2-0.5B or 1.5B). This proxy model assumes three specialized roles to mimic human cognitive capabilities:

  1. Reasoning Router: Determines if external knowledge is required and classifies the query complexity.
  2. Information Filter: Analyzes retrieved documents and selects only the most relevant snippets to pass to the LLM, reducing context noise.
  3. Decision Maker: Manages iterative search processes for complex, multi-hop questions based on an LLM-generated roadmap.
Overview of the C-3PO framework, illustrating the transition from human-guided to proxy-centric alignment and the multi-agent collaborative strategy.

To optimize these agents, the framework employs Multi-Agent Reinforcement Learning (MARL). To address the "sparse reward" problem inherent in multi-step RAG, C-3PO utilizes Tree-structured Rollout and Monte Carlo Credit Assignment. By exploring a tree of possible reasoning paths, the system can accurately assign credit to intermediate actions (e.g., a specific query or filter step) rather than relying solely on the final answer's correctness.

Experimental Evaluation

The framework was evaluated across diverse benchmarks, including single-hop tasks (NQ, PopQA, TriviaQA) and challenging multi-hop tasks (2WikiMultiHopQA, HotpotQA, Musique). It was also tested on Out-of-Distribution (OOD) data and high-complexity "expert-level" datasets like Humanity’s Last Exam (HLE).

Results and Discussion

C-3PO demonstrates significant performance gains across all categories. Using a 1.5B parameter proxy, the system achieved an average accuracy of 63.53%, a substantial increase over the standard RAG baseline of 51.35%.

Comprehensive performance comparison of C-3PO against various baselines across multi-hop and single-hop benchmarks.

Key findings include:

  • Multi-hop Mastery: The most dramatic improvements occurred in complex reasoning tasks, with gains of +15.5% on 2Wiki and +12.9% on Musique.
  • Efficiency: C-3PO maintains a practical inference latency (~4.8s per question) while delivering accuracy that rivals or exceeds much larger models.
  • Generalization: The proxy exhibits "plug-and-play" capabilities, providing gains even when swapped into pipelines using different LLMs (e.g., GPT-4o) or retrievers.

Conclusion

C-3PO proves that small, specialized models can effectively coordinate massive LLMs to achieve human-like RAG performance. By solving the credit assignment problem through tree-structured RL, it enables stable training of complex multi-agent behaviors. Future work will focus on reducing latency further and integrating roadmap generation directly into the proxy model.

Summary updated

BibTeX
@inproceedings{chen2025c,
  author = {Guoxin Chen and Minpeng Liao and Peiying Yu and Dingmin Wang and Zile Qiao and Chao Yang and Xin Zhao and Kai Fan},
  title = {{C-3PO: Compact Plug-and-Play Proxy Optimization to Achieve Human-like Retrieval-Augmented Generation}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=hlpwAmQ4wr},
}
Figure