mlsanityData to 7 Oct 2026

DARE: Aligning LLM Agents with the R Statistical Ecosystem via Distribution-Aware Retrieval

arXiv 2603.04743 ↗First posted 5 Mar 2026cs.IR cs.AI cs.CLcited by 1

On the map: LLM agents and tool use → Web, search, and research agents

Abstract (arXiv)

Large Language Model (LLM) agents can automate data-science workflows, but many rigorous statistical methods implemented in R remain underused because LLMs struggle with statistical knowledge and tool retrieval. Existing retrieval-augmented approaches focus on function-level semantics and ignore data distribution, producing suboptimal matches. We propose DARE (Distribution-Aware Retrieval Embedding), a lightweight, plug-and-play retrieval model that incorporates data distribution information into function representations for R package retrieval. Our main contributions are: (i) RPKB, a curated R Package Knowledge Base derived from 8,191 high-quality CRAN packages; (ii) DARE, an embedding model that fuses distributional features with function metadata to improve retrieval relevance; and (iii) RCodingAgent, an R-oriented LLM agent for reliable R code generation and a suite of statistical analysis tasks for systematically evaluating LLM agents in realistic analytical scenarios. Empirically, DARE achieves an NDCG at 10 of 93.47%, outperforming state-of-the-art open-source embedding models by up to 17% on package retrieval while using substantially fewer parameters. Integrating DARE into RCodingAgent yields significant gains on downstream analysis tasks. This work helps narrow the gap between LLM automation and the mature R statistical ecosystem.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 21 of its 27 references that are in the map. First posted on arXiv 5 Mar 2026.

Builds on

21 of 27 references.

Closest ancestors · 6

Same direction, newest first

  1. 2026DSAEval: Evaluating Data Science Agents on a Wide Range of Real-World Data Science Problems20 Jan
  2. 2025DeepAnalyze: Agentic Large Language Models for Autonomous Data Science19 Oct
  3. 2025Large Language Model-based Data Science Agent: A Survey2 Aug
  4. 2024A Survey on Large Language Model-based Agents for Statistics and Data Science18 Dec
  5. 2024LAMBDA: A Large Model Based Data Agent24 Jul
  6. 2024Data Interpreter: An LLM Agent For Data Science28 Feb

Other references · 15

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  2. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  3. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  4. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  5. 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
  6. 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,203
  7. 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,173
  8. 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,050
  9. 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 973
  10. 2023StarCoder: may the source be with you!cited by 790
  11. 2023Jina Embeddings 2: 8192-Token General-Purpose Text Embeddings for Long Documentscited by 103
  12. 2023Data-Copilot: Bridging Billions of Data and Humans with Autonomous Workflowcited by 76
3 more
  1. 2023Measuring The Impact Of Programming Language Distributioncited by 32
  2. 2024Embedding And Clustering Your Data Can Improve Contrastive Pretrainingcited by 17
  3. 2024Do Current Language Models Support Code Intelligence for R Programming Language?cited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Comparative Approaches to Agent Retrieval over Large Skill Libraries
  2. 2026Test-Time Compute for Frozen Embedding Models through Agentic Program Search
  3. 2025AgentExpt: Automating AI Experiment Design with LLM-based Resource Retrieval Agent
  4. 2026A Reference Architecture for Agentic Hybrid Retrieval in Dataset Search
  5. 2025Tool-to-Agent Retrieval: Bridging Tools and Agents for Scalable LLM Multi-Agent Systems
  6. 2026SAGE: Benchmarking and Improving Retrieval for Deep Research Agents
  7. 2024R-Eval: A Unified Toolkit for Evaluating Domain Knowledge of Retrieval Augmented Large Language Models
  8. 2025Search-R3: Unifying Reasoning and Embedding in Large Language Models