Rust in Everything
← Papers

Longtail-SWE: High-Quality SWE Tasks for Underrepresented Languages

Vladimir Dobrovolskii, Ibragim Badertdinov, Alexander Golubev

2026-11-10▲ 20arXiv 2611.10304v1Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

Longtail-SWE is a 202-task repository-level issue-resolution benchmark across 13 underrepresented programming languages, built with a solver–judge–repairer pipeline that revises task descriptions and tests to retain challenging candidates.

Problem

Repository-level benchmarks remain limited for many programming language ecosystems, reducing evidence about coding agents across different libraries, toolchains, and development practices. Tasks are commonly built from historical issues and pull requests, but PR-specific tests may reject valid alternative implementations, descriptions may omit requirements, and insufficient tests may accept incorrect solutions. Filtering such tasks can discard repairable candidates and bias benchmark composition, especially in underrepresented ecosystems with limited task pools.

Method

Longtail-SWE builds on SWE-rebench V2 for task collection and executable environment construction, modifying candidate selection and environment installation and adding a solver–judge–repairer stage. Each task consists of a public problem statement from a GitHub issue, a repository at a pre-fix base commit, an executable environment, a reference patch, and an evaluation test patch from the associated merged pull request. FAIL_TO_PASS tests fail at the base commit and pass after the reference patch, while PASS_TO_PASS tests pass in both states and serve as regression checks. A solver attempts each task, and a judge compares the solver trajectory and test results with the task description, reference patch, and tests to distinguish solver errors from task defects. A repair agent then revises tests and appends clarifications to the description, aiming to reject incorrect solutions without excluding valid alternatives or prescribing implementation details. Evaluation uses a fresh separate container per solution patch, discarding solver changes to test files before applying the evaluation test patch; an attempt succeeds if it passes all designated F2P and P2P tests.

Results

  • Longtail-SWE contains 202 tasks from 129 repositories across 13 programming languages. §4.2
  • Core feature development is the most frequent task-type annotation, followed by major bug fixes; labels are not mutually exclusive. §4.2
  • For 63 released tasks whose problem description did not change during repair, post-repair tests increase Opus 5.5 Pass@1 by 38.1 percentage points, Pass@3 by 41.3 points, and All-3 by 33.3 points. §5.2
  • Opus 5.5 pre-repair versus post-repair results on the 63 tasks with unchanged problem descriptions are reported as Pass@1 29.1 ± 2.8 to 67.2 ± 3.5, Pass@3 36.5 to 77.8, and All-3 20.6 to 54.0. §5.2
  • Across ten Qwen 3.8 27B attempts on the same 63 tasks, Pass@1 rises from 15.2% to 31.0%, and Pass@10 rises from 36.5% to 68.3%. §5.2
  • Across nine evaluated configurations, the highest observed scores are 81.52% Pass@1 and 89.11% Pass@3. §7

Limitations

  • The human audit evaluates judge reliability on a small sample drawn from multiple pipeline stages; it does not establish the error rate of the final benchmark, which the paper says requires an independent audit of the released tasks.
  • The paper states that further ablations are needed to separate the effects of other refinement steps and to assess whether construction-time solver choices favor particular models.
  • Difficulty labels are LLM annotations rather than measurements of human resolution time.

Key points

  • Longtail-SWE is a benchmark of 202 issue-resolution tasks across 13 languages: Clojure, Dart, Elixir, Erlang, F#, Haskell, Julia, Kotlin, Lua, OCaml, R, Scala, and Swift. §Abstract
  • The pipeline comprises four stages: collection, construction, repair, and dataset finalization, while retaining the original issue and PR data and keeping the reference patch unchanged. §3.1
  • FAIL_TO_PASS tests fail at the base commit and pass after the reference patch; PASS_TO_PASS tests pass in both states and serve as regression checks. §3.1
  • The solver–judge–repairer stage uses solver attempts to identify and repair task defects, aiming to retain challenging tasks whose descriptions and tests support reliable evaluation. §3
  • Each solution patch is evaluated in a fresh separate container, discarding solver changes to test files before applying the evaluation test patch; success requires passing all designated F2P and P2P tests. §3.1
  • Difficulty calibration runs Qwen 3.8 27B with xhigh reasoning three times using a 262K-token context window, and the final benchmark has 12–27 tasks per language after subsequent exclusions. §3.5
  • In the final 202-task dataset, the initial task audit replaced parts of the problem description with [HIDDEN] in 56 tasks, for 113 occurrences in total. §A.4
  • Among the benchmarks in Table A7, Longtail-SWE covers the most repositories and languages and has larger reference changes and test additions on average. §A.3

Mind map

Longtail-SWE
Benchmark
202 tasks
13 underrepresented languages
129 repositories
Companion easier task set
Construction pipeline
Collection
Construction
Repair
Finalization
Solver judge repairer loop
Task definition
Problem statement
Base commit repository
Reference patch
Evaluation test patch
F2P and P2P tests
Evaluation
Fresh container per solution patch
Discard solver test changes
Nine model configurations
Pass@1 and Pass@3
Resource usage
Repair effects
Test repair on 63 fixed-description tasks
Description repair case study
Hidden implementation hints
Limitations
Small human audit sample
Further ablations needed
LLM difficulty labels