arXiv:2505.14163cs.AI2025-05被引 4

让大模型按难易顺序解数据科学题,提升准确率与推理能力。

DSMentor: Enhancing Data Science Agents with Curriculum Learning and Online Knowledge Accumulation

  • 按由易到难顺序组织任务,模拟人类学习过程
  • 在两个基准上提升准确率最高达5.2%,因果推理提升8.8%
  • 适合想提升大模型推理与知识积累能力的研究者

大型语言模型(LLM)代理在解决复杂数据科学问题的代码生成方面展现出良好性能。现有研究多关注通过改进搜索、采样和规划来增强上下文学习,却忽视了推理过程中问题顺序的重要性。本文提出一种新型推理时优化框架DSMentor,利用课程学习策略——先处理简单任务,随着学习进展逐步过渡到更复杂的任务——以提升LLM代理在挑战性数据科学任务中的表现。该导师引导框架按难度递增排列数据科学任务,并引入持续增长的长期记忆以保留过往经验,指导代理的学习路径,实现对累积知识的有效利用。我们在DSEval和QRData基准上进行大量实验,结果表明,使用Claude-3.5-Sonnet的DSMentor相比基线代理在DSEval和QRData上的通过率分别提升最多5.2%。此外,DSMentor在因果推理任务中表现更优,相比使用Program-of-Thoughts提示的GPT-4通过率提升8.8%。本工作强调了在推理阶段构建有效知识积累与利用策略的重要性,类比人类学习过程,为基于课程学习的推理优化开辟新路径。

原文摘要 · Abstract (English)

Large language model (LLM) agents have shown promising performance in generating code for solving complex data science problems. Recent studies primarily focus on enhancing in-context learning through improved search, sampling, and planning techniques, while overlooking the importance of the order in which problems are tackled during inference. In this work, we develop a novel inference-time optimization framework, referred to as DSMentor, which leverages curriculum learning -- a strategy that introduces simpler task first and progressively moves to more complex ones as the learner improves -- to enhance LLM agent performance in challenging data science tasks. Our mentor-guided framework organizes data science tasks in order of increasing difficulty and incorporates a growing long-term memory to retain prior experiences, guiding the agent's learning progression and enabling more effective utilization of accumulated knowledge. We evaluate DSMentor through extensive experiments on DSEval and QRData benchmarks. Experiments show that DSMentor using Claude-3.5-Sonnet improves the pass rate by up to 5.2% on DSEval and QRData compared to baseline agents. Furthermore, DSMentor demonstrates stronger causal reasoning ability, improving the pass rate by 8.8% on the causality problems compared to GPT-4 using Program-of-Thoughts prompts. Our work underscores the importance of developing effective strategies for accumulating and utilizing knowledge during inference, mirroring the human learning process and opening new avenues for improving LLM performance through curriculum-based inference optimization.

大模型课程学习推理优化数据科学

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。