[Paper Review] RAGShaper: Eliciting Sophisticated Agentic RAG Skills via Automated Data Synthesis
RAGShaper presents an automated data-synthesis framework that builds dense, distractor-augmented retrieval environments via an InfoCurator, trains a teacher to generate robust agent trajectories, and fine-tunes models to excel in noisy, multi-hop RAG tasks.
Agentic Retrieval-Augmented Generation (RAG) empowers large language models to autonomously plan and retrieve information for complex problem-solving. However, the development of robust agents is hindered by the scarcity of high-quality training data that reflects the noise and complexity of real-world retrieval environments. Conventional manual annotation is unscalable and often fails to capture the dynamic reasoning strategies required to handle retrieval failures. To bridge this gap, we introduce RAGShaper, a novel data synthesis framework designed to automate the construction of RAG tasks and robust agent trajectories. RAGShaper incorporates an InfoCurator to build dense information trees enriched with adversarial distractors spanning Perception and Cognition levels. Furthermore, we propose a constrained navigation strategy that forces a teacher agent to confront these distractors, thereby eliciting trajectories that explicitly demonstrate error correction and noise rejection. Comprehensive experiments confirm that models trained on our synthesized corpus significantly outperform existing baselines, exhibiting superior robustness in noise-intensive and complex retrieval tasks.
Motivation & Objective
- Motivate the need for scalable, high-quality data for agentic RAG models beyond manual annotation.
- Propose an automated data-synthesis pipeline (InfoCurator, distractor generation, constrained teacher navigation) to create rich task trajectories.
- Demonstrate that models trained on synthesized data outperform baselines on noisy, multi-hop retrieval benchmarks.
Proposed method
- InfoCurator autonomously builds a dense information tree from a seed entity and Wikipedia-derived knowledge, generating positive facts and adversarial distractors across Perception and Cognition levels.
- Distractor Curation Tool creates four distractor types (Doppelgänger, False Shortcut, Fragmented Puzzle, Subjective Fallacy) to inject noise and challenge reasoning.
- Question-Answer Synthesis uses an LLM to reverse-engineer queries that strictly require path-order evidence from the curated information.
- Behaviour Elicitation employs a Teacher agent with a constrained retrieval strategy that must retrieve distractors, capturing adaptive error-correction and noise rejection strategies.
- Training fine-tunes a base LLM on trajectories (Q, T, A) where the Teacher’s solution matches ground truth, using standard supervised fine-tuning with negative log-likelihood loss.
Experimental results
Research questions
- RQ1Can automated data synthesis produce higher-quality, more robust agentic RAG training data than manual annotation?
- RQ2Does incorporating perception/cognition distractors and constrained teacher navigation yield more robust, noise-resistant agent behaviors?
- RQ3Do models trained on RAGShaper data generalize across different backbone architectures?
- RQ4How does synthesized data quality and trajectory complexity compare to human-labeled data in terms of retrieval depth and tool usage?
Key findings
- Synthesized data from RAGShaper yields superior Avg EM and Avg F1 across open-domain benchmarks (e.g., 4.5k: 48.8 EM, 59.8 F1; 6.5k: 50.3 EM, 62.0 F1) compared with multiple baselines.
- RAGShaper-Dis (absence of distractors) substantially degrades performance (Avg EM drops from 48.8 to 33.8), highlighting the importance of distractor-based learning.
- Trajectories from RAGShaper are deeper and more tool-rich than human-annotated data, with long-tail distributions (up to 40+ steps) indicating richer agentic reasoning.
- Most trajectories rely on retrieval rather than internal knowledge (Direct Answer rate = 0%, Fallback 4.2%), underscoring robust external evidence use.
- RAGShaper generalizes across backbones (e.g., gains over HL-Data on Qwen3-30B-A3B-Think and Qwen3-4B-Think backbones).
- Distractor-driven learning particularly boosts performance on noise-sensitive datasets like AmbigQA and Bamboogle, validating adversarial data synthesis.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.