可视化工具助科研人员看清大模型写代码的迭代过程
Illuminating LLM Coding Agents: Visual Analytics for Deeper Understanding and Enhancement
- 构建三层次分析系统,对比代码、流程与模型行为
- 在Kaggle竞赛中验证,可追踪代码改进路径
- 适合调试代码生成器与优化提示词的研发者
由大语言模型驱动的编程代理通过迭代式求解实现自动化代码生成,已广泛应用于低人工干预场景。尽管已有LangChain、AutoML、AIDE等框架,但机器学习科学家仍难以高效审查和调整代理的编码过程。当前手动检查输出的方式效率低下,难以追踪代码演进、比较迭代过程或发现改进机会。为此,我们提出一种可视化分析系统,聚焦AIDE框架,支持三个层面的对比分析:(1) 代码层分析,揭示代理如何在多轮迭代中调试与优化代码;(2) 过程层分析,对比代理探索的不同解题路径;(3) LLM层分析,展现不同大模型间的编码行为差异。通过整合多视角信息,该系统帮助科研人员系统理解代理行为,提升调试与提示工程效率。基于Kaggle竞赛的案例研究证明,本系统能有效提供对迭代编码过程的深入洞察。
原文摘要 · Abstract (English)
Coding agents powered by large language models (LLMs) have gained traction for automating code generation through iterative problem-solving with minimal human involvement. Despite the emergence of various frameworks, e.g., LangChain, AutoML, and AIDE, ML scientists still struggle to effectively review and adjust the agents' coding process. The current approach of manually inspecting individual outputs is inefficient, making it difficult to track code evolution, compare coding iterations, and identify improvement opportunities. To address this challenge, we introduce a visual analytics system designed to enhance the examination of coding agent behaviors. Focusing on the AIDE framework, our system supports comparative analysis across three levels: (1) Code-Level Analysis, which reveals how the agent debugs and refines its code over iterations; (2) Process-Level Analysis, which contrasts different solution-seeking processes explored by the agent; and (3) LLM-Level Analysis, which highlights variations in coding behavior across different LLMs. By integrating these perspectives, our system enables ML scientists to gain a structured understanding of agent behaviors, facilitating more effective debugging and prompt engineering. Through case studies using coding agents to tackle popular Kaggle competitions, we demonstrate how our system provides valuable insights into the iterative coding process.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。