Research Papers 论文研究 4h ago Updated 2h ago 更新于 2小时前 49

FindStatBench: Evaluating Large Language Models on Combinatorial Code Synthesis FindStatBench:评估大语言模型在组合代码合成上的表现

Introduction of FindStatBench, an execution-based benchmark for evaluating LLMs on combinatorial code synthesis, featuring 2,329 tasks and 5.52M hidden instances. Evaluation of eleven systems reveals that top open- and closed-source models converge within 1 percentage point of instance accuracy. Counterintuitive finding that providing few-shot examples can degrade performance compared to zero-shot prompts for certain classical bijections. Significant challenges identified in map synthesis versus 发布FindStatBench,一个包含2,329个任务和552万个隐藏实例的组合代码合成执行基准测试。 评估了11个大语言模型,发现最强开源与闭源模型在实例准确率上差距仅1个百分点。 揭示反直觉现象:少量示例可能损害性能,且长提示会导致准确率急剧下降。 统计合成任务相对容易,而映射合成及精确符号规则归纳仍极具挑战性。

65
Hot 热度
75
Quality 质量
70
Impact 影响力

Analysis 深度分析

TL;DR

  • Introduction of FindStatBench, an execution-based benchmark for evaluating LLMs on combinatorial code synthesis, featuring 2,329 tasks and 5.52M hidden instances.
  • Evaluation of eleven systems reveals that top open- and closed-source models converge within 1 percentage point of instance accuracy.
  • Counterintuitive finding that providing few-shot examples can degrade performance compared to zero-shot prompts for certain classical bijections.
  • Significant challenges identified in map synthesis versus statistic synthesis, with long prompts causing sharp accuracy cliffs and output-budget constraints limiting code generation.

Why It Matters

This benchmark provides a rigorous, execution-based standard for assessing LLM capabilities in complex mathematical code generation, moving beyond static text evaluation. It highlights critical failure modes such as example-induced degradation and context window limitations, offering essential insights for developing more robust reasoning and coding agents.

Technical Details

  • Benchmark Composition: Built on FindStat, containing 2,329 tasks across 24 collections, divided into statistic synthesis (mapping objects to integers) and map synthesis (mapping objects to objects).
  • Evaluation Protocol: Models must generate a single Python solve function without retrieval, tool use, or feedback loops; scoring is based on exact sandboxed execution against held-out combinatorial objects.
  • Model Scope: Assessed eleven systems, including four closed-source production models and seven open-weight models served via a single inference provider.
  • Key Findings: Oracle aggregation and five-way sampling yielded limited gains, indicating diminishing returns from simple ensemble methods; exact symbolic rule induction remains brittle.

Industry Insight

  • Developers should prioritize optimizing context window efficiency and output budget management, as long prompts significantly degrade performance in complex synthesis tasks.
  • The counterintuitive negative impact of few-shot examples suggests that prompt engineering strategies may need revision, favoring zero-shot or carefully curated examples for specific mathematical domains.
  • The convergence between open and closed-source models indicates that architectural differences may matter less than fine-tuning quality and inference protocols for this specific class of problems.

TL;DR

  • 发布FindStatBench,一个包含2,329个任务和552万个隐藏实例的组合代码合成执行基准测试。
  • 评估了11个大语言模型,发现最强开源与闭源模型在实例准确率上差距仅1个百分点。
  • 揭示反直觉现象:少量示例可能损害性能,且长提示会导致准确率急剧下降。
  • 统计合成任务相对容易,而映射合成及精确符号规则归纳仍极具挑战性。

为什么值得看

该研究为评估LLM在数学逻辑和代码生成方面的极限提供了严格的标准化基准,揭示了当前模型在处理复杂组合结构时的具体瓶颈。对于致力于提升AI推理能力和代码生成可靠性的研究者而言,其发现的“示例有害”和“输出预算”问题具有极高的参考价值。

技术解析

  • 基准构建:基于FindStat数据库,涵盖24个集合,分为统计合成(对象到整数)和映射合成(对象到对象)两类任务。
  • 评估协议:要求模型仅根据数学描述和最多五个示例生成Python求解函数,禁止检索、工具使用或投票机制,通过沙盒执行进行精确评分。
  • 实验设置:测试了4个闭源生产模型和7个开源权重模型,采用单一推理提供商服务以确保公平性。
  • 关键发现:Oracle集成和多次采样带来的收益有限;部分经典双射在零示例时表现完美,但在五示例提示下失败;推理过程可能耗尽输出预算导致代码未发出。

行业启示

  • 提示工程优化:需警惕“少样本学习”的潜在负面影响,特别是在处理高度结构化或数学定义明确的任务时,精简提示可能优于提供大量示例。
  • 资源分配策略:鉴于开源与顶级闭源模型性能趋同,企业可优先考虑成本效益更高的开源模型,并专注于微调而非单纯依赖模型规模。
  • 系统架构改进:针对“输出预算”导致的截断问题,开发应引入显式的代码生成约束或分步生成机制,确保逻辑推理不占用过多响应空间。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

LLM 大模型 Code Generation 代码生成 Evaluation 评测 Benchmark 基准测试 Research 科学研究