LLM写代码不如研究生,实战博弈中表现更差
Can Vibe Coding Beat Graduate CS Students? An LLM vs. Human Coding Tournament on Market-driven Strategic Planning
- 用真实物流竞拍任务构建多智能体评测基准
- 40个LLM生成的代码全被人类代码击败,33个连基础策略都输
- 即使给最优人类方案,顶级LLM反而让结果变差
大型语言模型(LLMs)在代码生成上快速发展,但现有评测仍以通过单元测试和语法正确性为主,无法反映真实场景中的规划、优化与策略互动难度。本文基于真实的物流优化问题(拍卖-取送问题),构建了一个融合竞争拍卖与容量受限路径规划的多智能体评测基准。该任务要求智能体在不确定性下进行战略出价,并优化任务交付以最大化利润。我们评估了40个由多种先进LLM在不同提示方法(包括vibe coding)下生成的代码代理,对比17个在LLM出现前由研究生编写的代码代理。经过12轮双循环锦标赛及约4万场对战,结果表明:(i)人类代码始终占据前5名;(ii)40个LLM代码中有33个被简单基线击败;(iii)当以最佳人类解为输入并要求改进时,表现最好的LLM反而显著恶化了结果。这些发现揭示了当前LLMs在真实世界推理驱动代码生成上的不足,呼吁建立更贴近实际场景的新评估体系。
原文摘要 · Abstract (English)
The rapid proliferation of Large Language Models (LLMs) has revolutionized AI-assisted code generation. This rapid development of LLMs has outpaced our ability to properly benchmark them. Prevailing benchmarks emphasize unit-test pass rates and syntactic correctness. Such metrics understate the difficulty of many real-world problems that require planning, optimization, and strategic interaction. We introduce a multi-agent reasoning-driven benchmark based on a real-world logistics optimization problem (Auction, Pickup, and Delivery Problem) that couples competitive auctions with capacity-constrained routing. The benchmark requires building agents that can (i) bid strategically under uncertainty and (ii) optimize planners that deliver tasks while maximizing profit. We evaluate 40 LLM-coded agents (by a wide range of state-of-the-art LLMs under multiple prompting methodologies, including vibe coding) against 17 human-coded agents developed before the advent of LLMs. Our results over 12 double all-play-all tournaments and $\sim 40$k matches demonstrate (i) a clear superiority of human(graduate students)-coded agents: the top 5 spots are consistently won by human-coded agents, (ii) the majority of LLM-coded agents (33 out of 40) are beaten by very simple baselines, and (iii) given the best human solution as an input and prompted to improve upon, the best performing LLM makes the solution significantly worse instead of improving it. Our results highlight a gap in LLMs' ability to produce code that works competitively in the real-world, and motivate new evaluations that emphasize reasoning-driven code synthesis in real-world scenarios.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。