计算机科学 > 信息检索
[提交于 2026年3月5日 (v1),最后修订于 2026年11月2日 (此版本, v2)]
标题:DARE: Aligning LLM Agents with the R Statistical Ecosystem via Distribution-Aware Retrieval
查看中文 PDF 查看原文 PDF EasyResearch 阅读摘要:Large Language Model (LLM) agents excel at automating data science workflows, yet often underutilize rigorous statistical methods in R. Existing Retrieval-Augmented Generation (RAG) approaches rely on semantic similarity, ignoring the data-distribution and structural characteristics crucial for determining a statistical method's applicability. To address this, we propose DARE (Distribution-Aware Retrieval Embedding), a representation learning framework incorporating these data characteristics into R function retrieval. Our contributions are fourfold: (i) RPKB, a curated knowledge base of 8,191 high-quality R functions; (ii) DARE, the distribution-aware retrieval framework; (iii) RCodingAgent, an R-oriented agent integrating DARE for end-to-end analysis; and (iv) RStatBench, a comprehensive benchmark of 100 statistical tasks. Experiments demonstrate that DARE improves NDCG@10 by 13.43 to 32.65 percentage points across evaluated embedding models, with a MiniLM-based DARE achieving 93.92% NDCG@10 alongside high efficiency. Furthermore, integrating DARE into RCodingAgent nearly doubles mean downstream accuracy on RStatBench, increasing from 31.8% to 62.2% across ten LLMs. This work helps bridge modern LLM automation with R's established statistical computing ecosystem.
提交历史
来自:Maojun Sun[v1] 2026年3月5日 星期四 02:29:54 UTC (1,760 KB)
[v2] 2026年11月2日 星期一 16:03:21 UTC (3,852 KB)