SafeComm-RAG: Safe and Communication-Efficient Multi-Agent Reinforcement Learning for Local LLM Based RAG Assistant
Local retrieval-augmented generation (RAG) Large Language Model (LLM) based assistants must decide not only what to retrieve, but also when retrieval is needed, how components should com- municate, and whether an action is permitted. We present SafeComm-RAG, a local controller with Retriever, Safety/Authorization, and Executor roles trained by multi-agent reinforcement learning under centralized training and decentralized execution. Each role selects a task action and a separate SEND/SILENT communication action, while a deterministic capability shield retains final authority over restricted operations. Training combines a competence-preserving warm start (C1), feasibility- aware communication pressure (C2), and counterfactual communication calibration with rollback (C3). On a shared 10,000-scenario benchmark over seven training seeds, C3 achieved 97.66 ± 0.22% task success, no observed executed safety violations, and 0.688 ± 0.131 communications per episode. It used 54.28% less communication than a selective heuristic and 77.07% less than always communicating. Ablations show that C1 is needed for competence and C3 cuts communication by 54.26% relative to no- C3 with almost unchanged success; C2 did not change final performance in this benchmark. On unseen stress banks, C3’s success advantage over the heuristic grew from 1.05 to 5.22 percentage points. At four hops in the local-corpus AgenticRAGTracer test, C3 reached 38.51% EM and 51.24% F1 versus 27.03% and 39.18% for one-shot semantic retrieval. The results support selective coordination for harder local LLM RAG tasks while keeping final authorization deterministic.
Authors
- Babak Heidari (ORCID: https://orcid.org/0009-0008-4269-2056)
- Nor Asilah Wati Abdul Hamid (ORCID: https://orcid.org/0000-0001-8095-7678)
- Farhad Mortezapour Shiri (ORCID: https://orcid.org/0009-0009-6411-1918)
- Mohammad Reza Rezaee (ORCID: https://orcid.org/0000-0002-8807-0083)
- Abdul Wahab Hanifi
- Morteza Rezaei
Institutions
- Universiti Putra Malaysia (MY)
- Texas State University (US)
Publication Details
- Journal
- Research Square
- Published
- 2026-11-25
- DOI
- https://doi.org/10.21203/rs.3.rs-11449249/v1
- Primary Topic
- Reinforcement Learning in Robotics
- Type
- preprint