Codit-Bench / README.md
FM-Agent's picture
docs: add paper link and citation
d1bfc3c verified
|
Raw History Blame Contribute Delete
2.3 kB
metadata
license: apache-2.0
task_categories:
  - text-generation
configs:
  - config_name: default
    data_files:
      - split: test
        path: data/test.jsonl

Codit-Bench — Can Large Language Models Find Bugs in Code Auditing?

The Code Audit Benchmark (Codit-Bench) evaluates whether large language models can find unknown bugs through static code auditing. It contains 516 tasks.

Paper · Codit-Bench Website · GitHub

Task

Each task provides a buggy code snapshot identified by a commit, a bounded function-level call graph, and a behavioral specification with expected behavior and relevant domain knowledge. The evaluation uses a modified mini-swe-agent with read-only tools for file inspection and code search and a budget of 50 steps per task. Predictions identify directly faulty functions within the graph and explain the trigger conditions, faulty operation, and root cause. The model may inspect surrounding code for context.

A task passes if at least one prediction exactly matches the ground-truth set of faulty functions and its explanation semantically matches the ground truth.

Dataset fields

Field Description
repo GitHub repository in owner/repo format
buggy_commit Commit used to obtain the buggy source snapshot
bug_issue Source issue or report number
solve_pr Fixing pull request number
call_graph Function nodes and caller-to-callee edges with callsites
graph_spec Expected behavior and relevant domain knowledge

The issue and pull request numbers are provenance metadata. Ground-truth bug labels and explanations are held privately for scoring.

Load the dataset

from datasets import load_dataset

dataset = load_dataset("FM-Agent/Codit-Bench", split="test")

Citation

@misc{feng2026coditbenchlargelanguage,
      title={Codit-Bench - Can Large Language Models Find Bugs in Code Auditing?},
      author={Yuesong Feng and Zheng Zhang and Haoran Ding and Zhaoguo Wang},
      year={2026},
      eprint={2612.01110},
      archivePrefix={arXiv},
      primaryClass={cs.SE},
      url={https://arxiv.org/abs/2612.01110},
}