mlsanityData to 14 Oct 2026

Towards Persistent Case-Based Memory for Autonomous Data Science: A CBR-Augmented R&D-Agent with a Locally Deployable Small Language Model

arXiv 2606.05250 ↗First posted 3 Jun 2026cs.SEcited by 0

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

Abstract (arXiv)

Most top-performing autonomous data-science agents rely on frontier cloud models and lack persistent, cross-session memory. This paper addresses two open gaps: (1) the underexplored use of formally structured, quality-controlled Case-Based Reasoning (CBR) case bases coupling symbolic case records with executable code artefacts; and (2) the untested viability of Small Language Models (SLMs) as locally deployable agent backbones. We present CBR-augmented R&D-Agent, integrating a persistent CBR layer into Microsoft's R&D-Agent framework with a custom backend for Gemma 4 31B Dense -- the first published end-to-end evaluation of Gemma 4 as an autonomous data-science agent backbone. The CBR layer overrides three R&D loop phases via a surgical subclass toggled by a single environment variable. Cases are stored as structured records with executable code snapshots and quality metadata; a five-gate quality filter and a heuristic reuse-detection mechanism assess knowledge transfer by combining embedding similarity, code-fingerprint overlap, and injection provenance. Evaluated on two Kaggle competitions (NOMAD 2018, Spaceship Titanic) with four seeds over eight improvement loops each, CBR achieves directionally higher accuracy than the CBR-disabled baseline on Spaceship Titanic (0.8147 vs. 0.8098, d = -1.41) with substantially lower variance. Heuristic reuse detection across 108 retrieval events shows high semantic relevance (mean embedding similarity 0.882) alongside variable structural proximity (mean code-fingerprint similarity 0.305), consistent with conceptual guidance rather than verbatim code copying.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 24 of its 43 references that are in the map. First posted on arXiv 3 Jun 2026.

Builds on

24 of 43 references.

Closest ancestors · 7

Same direction, newest first

  1. 2026MARS: Modular Agent with Reflective Search for Automated AI Research2 Feb
  2. 2025AutoMind: Adaptive Knowledgeable Agent for Automated Data Science12 Jun
  3. 2025MLE-STAR: Machine Learning Engineering Agent via Search and Targeted Refinement27 May
  4. 2024MLE-bench: Evaluating Machine Learning Agents on Machine Learning Engineering9 Oct
  5. 2024Data Interpreter: An LLM Agent For Data Science28 Feb
  6. 2024DS-Agent: Automated Data Science by Empowering Large Language Models with Case-Based Reasoning27 Feb
  7. 2023MLAgentBench: Evaluating Language Agents on Machine Learning Experimentation5 Oct

Other references · 17

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  4. 2023Mistral 7Bcited by 3,164
  5. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,808
  6. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  7. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,002
  8. 2025AIDE: AI-Driven Exploration in the Space of Codecited by 226
  9. 2025Memento: Fine-tuning LLM Agents without Fine-tuning LLMscited by 127
  10. 2016Evaluation of a Tree-based Pipeline Optimization Tool for Automating Data Sciencecited by 75
  11. 2024CBR-RAG: Case-Based Reasoning for Retrieval Augmented Generation in LLMs for Legal Question Answeringcited by 72
  12. 2024AutoKaggle: A Multi-Agent Framework for Autonomous Data Science Competitionscited by 70
5 more
  1. 2026Toward Ultra-Long-Horizon Agentic Science: Cognitive Accumulation for Machine Learning Engineeringcited by 28
  2. 2025ML-Agent: Reinforcing LLM Agents for Autonomous Machine Learning Engineeringcited by 26
  3. 2024Kolb-Based Experiential Learning for Generalist Agents with Human-Level Kaggle Data Science Performancecited by 25
  4. 2025Review of Case-Based Reasoning for LLM Agents: Theoretical Foundations, Architectural Components, and Cognitive Integrationcited by 12
  5. 2024Collaborative Evolving Strategy for Automatic Data-Centric Developmentcited by 6

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025DataGovBench: Benchmarking LLM Agents for Real-World Data Governance Workflows
  2. 2025State and Memory is All You Need for Robust and Reliable AI Agents
  3. 2026Ontology-Grounded Project Memory for Coding Agents
  4. 2026AutoSci: A Memory-Centric Agentic System for the Full Scientific Research Lifecycle
  5. 2025LLM-Based Data Science Agents: A Survey of Capabilities, Challenges, and Future Directions
  6. 2026The Silent Failures in Agentic Data Science
  7. 2026Structurally Aligned Subtask-Level Memory for Software Engineering Agents
  8. 2026Data Intelligence Agents: Interpreting, Modeling, and Querying Enterprise Data via Autonomous Coding Agents