SRAS:一种基于强化学习的轻量级文档选择器用于边缘原生RAG流水线
SRAS: A Lightweight Reinforcement Learning-based Document Selector for Edge-Native RAG Pipelines
AI总结:
SRAS通过强化学习训练出轻量级文档选择器,适用于边缘原生RAG流水线,实现低延迟和高生成质量。
摘要:
检索增强生成(RAG)系统通常依赖于固定的top-k文档选择机制,这些机制忽略了下游生成质量并施加了计算开销。我们提出了SRAS(稀疏奖励意识选择器),一种通过强化学习(RL)训练的轻量级文档选择器,用于边缘原生RAG部署。与以往基于RL的检索器不同,SRAS假设大型内存和延迟预算,SRAS使用近端策略优化(PPO)学习一个紧凑的(约0.76MB)策略,该策略由结合放松F1和BERTScore的混合奖励信号引导。我们的方法在紧绷的token和计算约束下运行,保持在CPU上<1秒的延迟。SRAS在合成问答基准上优于监督和随机选择器,并泛化到真实数据,无需领域特定调优,在SQuAD v2上达到BERTScore F1为0.8546。这项工作是首次证明基于RL的文档选择可以变得超轻量、延迟意识和有效用于设备RAG流水线。
英文摘要:
Retrieval-Augmented Generation (RAG) systems often rely on fixed top-k document selection mechanisms that ignore downstream generation quality and impose computational overheads. We propose SRAS (Sparse Reward-Aware Selector), a lightweight document selector trained via reinforcement learning (RL) for edge-native RAG deployment. Unlike prior RL-based retrievers that assume large memory and latency budgets, SRAS learns a compact (~0.76MB) policy using Proximal Policy Optimization (PPO), guided by a hybrid reward signal combining Relaxed F1 and BERTScore. Our method operates under tight token and compute constraints, maintaining <1s latency on CPU. SRAS outperforms supervised and random selectors on a synthetic QA benchmark, and generalizes to real-world data, achieving BERTScore F1 of 0.8546 on SQuAD v2 without domain-specific tuning. This work is the first to demonstrate that RL-based document selection can be made ultra-lightweight, latency-aware, and effective for on-device RAG pipelines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。