长尾软件工程:面向代表性不足语言的高质量软件工程任务
研究论文 · 2026/11/10
针对现有仓库级基准测试覆盖不足的编程语言生态,Longtail-SWE 推出了一个包含 13 种语言(Clojure、Dart、Elixir、Erlang、F#、Haskell、Julia、Kotlin、Lua、OCaml、R、Scala 和 Swift)的 202 个问题解决任务基准。其构建采用求解器-评判器-修复器流水线:求解器尝试每个候选任务,评判器结合求解轨迹与测试结果审查任务,指导修改测试和任务描述,以纠正拒绝有效替代实现或接受错误解的测试,同时保留具有挑战性的任务及其原始要求。研究评估了九种模型配置(包括前沿模型),分析了任务解决性能、重复尝试的一致性和资源使用情况。所有基准实例、可执行环境、完整构建与评估工具、智能体轨迹以及一组更简单的任务均已发布,以支持较小模型的评估。
该工作为长尾编程语言提供了高质量的仓库级任务基准,其构建方法能有效提升测试与描述的准确性,对评估和提升模型在多语言代码问题解决上的能力具有重要价值,且全面开源利于社区复现与扩展。
Challenging repository-level benchmarks remain limited for many programming language ecosystems, where filtering scarce candidates with ambiguous descriptions or defective tests can discard valuable engineering problems. We introduce Longtail-SWE, a benchmark of 202 issue-resolution tasks across 13 languages with limited coverage in existing repository-level benchmarks: Clojure, Dart, Elixir, Erlang, F#, Haskell, Julia, Kotlin, Lua, OCaml, R, Scala, and Swift. Its construction uses a solver--judge--repairer pipeline: a solver attempts each candidate task, and a judge reviews the task together with the solver's trajectory and test results to guide revisions to tests and task descriptions. These revisions aim to correct tests that reject valid alternative implementations or accept incorrect solutions while retaining challenging tasks and preserving their intended requirements. We evaluate nine model configurations, including frontier models, and analyze task-solving performance, consistency across repeated attempts, and resource usage. We release all benchmark instances, executable environments, complete construction and evaluation tooling, and agent trajectories, together with an additional set of easier tasks to support evaluation of smaller models.