面向自主数据科学的持久化案例记忆:一种CBR增强的R&D-Agent与本地可部署的小语言模型
Towards Persistent Case-Based Memory for Autonomous Data Science: A CBR-Augmented R&D-Agent with a Locally Deployable Small Language Model
AI总结:
本文提出一种CBR增强的R&D-Agent,通过持久化案例库和小语言模型Gemma 4 31B Dense,在Kaggle竞赛中实现方向性精度提升和方差降低。
摘要:
大多数表现最佳的自主数据科学智能体依赖于前沿的云模型,并且缺乏持久的跨会话记忆。本文解决了两个开放空白:(1)正式结构化、质量受控的案例推理(CBR)案例库的未充分探索使用,该案例库将符号案例记录与可执行代码工件耦合;(2)小语言模型(SLM)作为本地可部署智能体骨干的未测试可行性。我们提出了CBR增强的R&D-Agent,将持久化CBR层集成到微软的R&D-Agent框架中,并配备Gemma 4 31B Dense的自定义后端——这是首次公开发布的Gemma 4作为自主数据科学智能体骨干的端到端评估。CBR层通过一个由单个环境变量切换的外科手术子类覆盖了R&D循环的三个阶段。案例存储为带有可执行代码快照和质量元数据的结构化记录;一个五门质量过滤器和启发式重用检测机制通过结合嵌入相似性、代码指纹重叠和注入来源来评估知识迁移。在两个Kaggle竞赛(NOMAD 2018、Spaceship Titanic)上评估,每个竞赛使用四个种子进行八次改进循环,CBR在Spaceship Titanic上实现了比禁用CBR的基线方向性更高的精度(0.8147 vs. 0.8098,d = -1.41),且方差显著降低。跨108次检索事件的启发式重用检测显示出高语义相关性(平均嵌入相似性0.882)以及可变的代码结构接近度(平均代码指纹相似性0.305),这与概念指导而非逐字代码复制一致。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。