CoreCodeBench: Decoupling Code Intelligence via Fine-Grained Repository-Level Tasks

Lingyue Fu, Hao Guan, Bolun Zhang, Haowei Yuan, Yaoming Zhu, Lin Qiu, Zongyu Wang, Xuezhi Cao, Xunliang Cai, Weiwen Liu, Weinan Zhang, Yong Yu

TL;DR

CoreCodeBench moves beyond simple "pass rates" to reveal that coding proficiency in LLMs is actually a collection of distinct, often imbalanced cognitive skills. By atomizing repository-level tasks into Development, BugFix, and TDD dimensions, the researchers found that a model’s ability to write new code rarely guarantees it can fix bugs or plan around test constraints.

What Problem Does This Paper Address?

As Large Language Models (LLMs) take on more complex software engineering roles, our ways of measuring them haven't kept pace. Most current benchmarks (like SWE-bench) treat coding as a monolithic capability. They provide a "coarse-grained" pass rate: either the model fixed the issue, or it didn't.

This approach has three major flaws:

  1. Obscured Bottlenecks: It doesn't tell us why a model failed. Was it a failure in logic, a lack of planning, or an inability to understand the existing codebase?
  2. Data Contamination: Static benchmarks are often part of the models' training data, leading to "memorized" solutions rather than true reasoning.
  3. Performance Saturation: As models get better, they quickly "max out" static benchmarks, making it hard to differentiate between top-tier performers.

Methods

The authors introduced CorePipe, an automated framework that transforms real-world Python repositories into a diverse suite of 1,524 tasks. The process happens in three stages:

  1. Repository Context Extraction: It builds "Function Call Trees" from open-source projects, mapping how different parts of the code interact.
  2. Atomic Task Generation: It isolates single functions and creates three distinct task types from the exact same code context:
  3. Development (Dev): Write the function body based on a natural language description.
  4. BugFix: Identify and repair a logically flawed implementation.
  5. Test-Driven Development (TDD): Implement the logic strictly to satisfy a provided set of unit tests.
  6. Composite Task Scaling: To prevent models from "saturating" the benchmark, CorePipe can bundle these atomic tasks into complex, multi-function subgraphs. This allows researchers to tune the difficulty by increasing the "Dependency Depth" or the "Task Quantity."

Datasets

The benchmark is built from 12 diverse, high-quality open-source Python repositories (including popular ones like transformers, langchain, and haystack).

  • Total Tasks: 1,524 problems.
  • Quality Control: Unlike SWE-bench Verified, which has a 31.7% retention rate after manual filtering, CoreCodeBench achieves a 78.55% validity yield through its automated verification of unit tests.
  • Comparison Benchmarks: The study compares results against 8 major benchmarks, including HumanEvalPlus, MBPP-Plus, and SWE-bench.

Key Insights and Ideas

  • Capability Misalignment: This is the paper's "aha moment." The researchers found that a model’s rank often shifts dramatically between tasks. For example, the model Kimi-K2 is a powerhouse at "Development" but struggles significantly with "BugFix" and "TDD" (a 35% performance gap). This proves that generative fluency is not the same as grounded reasoning.
  • The "Linearity" Trap: In multi-function (composite) tasks, models tended to implement functions in the order they appeared in the prompt, completely ignoring the actual logic of code dependencies (e.g., implementing a caller before the utility function it depends on).
  • Low Inter-task Consistency: Using an Intersection-over-Union (IoU) metric, the authors showed that even the best models (like Claude-3.5 or Gemini-3-Pro) often fail to solve a BugFix task for the same piece of code they successfully "Developed" from scratch. They lack a unified "mental model" of the code context.

Key Results

  • Atomic Leaderboard: Proprietary models still lead, with Gemini-3-Pro and Claude-4.5 taking the top spots. However, open-source models like GLM-4.6 and Qwen3-Coder have nearly closed the gap in "Development" and "TDD" tasks.
  • The BugFix Bottleneck: Across the board, BugFixing remains the hardest atomic task. For open-source models, the success rate (AC@1) often drops by half compared to their Development scores.
  • Composite Collapse: When tasks require modifying multiple interdependent functions, performance plummets. In the "Multi-BugFix" category, every single model tested failed to solve a single instance (0% AC@1), highlighting a massive ceiling for future code intelligence.

Limitations and Future Work

  • Test Coverage Dependency: CorePipe relies on repositories having high-quality, high-coverage unit tests. Projects with sparse testing cannot be used to generate valid tasks.
  • Language Constraint: Currently, the benchmark only supports Python. The authors acknowledge that expanding to Java, C++, and other languages is a critical next step for evaluating cross-lingual proficiency.
  • Multi-BugFix Sample Size: Due to the extreme difficulty of synthesizing valid interdependent logic errors, the Multi-BugFix subset is currently small (10 instances), limiting its statistical power for ranking.

Summary updated

BibTeX
@inproceedings{fu2026corecodebench,
  author = {Lingyue Fu and Hao Guan and Bolun Zhang and Haowei Yuan and Yaoming Zhu and Lin Qiu and Zongyu Wang and Xuezhi Cao and Xunliang Cai and Weiwen Liu and Weinan Zhang and Yong Yu},
  title = {{CoreCodeBench: Decoupling Code Intelligence via Fine-Grained Repository-Level Tasks}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.1196},
}
Figure