atlas

Research map / Large language models / Agents, code and math

kGym: A Platform and Dataset to Benchmark Large Language Models on Linux Kernel Crash Resolution

NeurIPS 2024 · Large language models › Agents, code and math · approach: Software engineering agents · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces kGym, a parallel VM-based platform for building and running Linux kernels, and kBenchSyz, a 279-bug Linux kernel crash-resolution benchmark, on which LLMs achieve very low fix rates.

Problem

LLMs are evaluated mostly on isolated coding puzzles or userspace repository repair, not on large, concurrent, low-level systems code such as the Linux kernel, where crash resolution requires building and executing kernels to validate patches.

Approach

An execution platform (kGym) that compiles kernel commits and replays Syzkaller reproducers across parallel VMs to automatically verify LLM-generated patches, plus a benchmark (kBenchSyz) of real syzbot kernel bugs with developer fixes.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use oracle retrieval instead of BM25GPT-4 Turbo, Top-10 · kBenchSyzsolve rate (%): 0.72 -> 5.38Helped
Use oracle retrieval instead of BM25GPT-3.5 Turbo, Top-10 · kBenchSyzsolve rate (%): 0.36 -> 1.08Helped
Use oracle retrieval instead of BM25Gemini-1.5 Pro, Top-10 · kBenchSyzsolve rate (%): 0 -> 3.58Helped
Use oracle retrieval instead of BM25Claude-3 Sonnet, Top-1 · kBenchSyzsolve rate (%): 0 -> 1.79Helped
Increase the number of generated patches from Top-1 to Top-10GPT-4 Turbo with Oracle retrieval · kBenchSyzsolve rate (%): 1.08 -> 5.38Helped
Increase the number of generated patches from Top-1 to Top-10GPT-3.5 Turbo with Oracle retrieval · kBenchSyzsolve rate (%): 0 -> 1.08Helped
Increase the number of generated patches from Top-1 to Top-10Gemini-1.5 Pro with Oracle retrieval · kBenchSyzsolve rate (%): 0.72 -> 3.58Helped
Increase the number of generated patches from Top-1 to Top-10GPT-3.5 Turbo with BM25 retrieval · kBenchSyzsolve rate (%): 0.36 -> 0.36No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: Syzbot kernel bug reports Syzkaller reproducers

Benchmarks: kBenchSyz

Metrics: patch apply rate bug solve rate bug localization overlap

Baselines: GPT-3.5 Turbo GPT-4 Turbo Claude-3 Sonnet Gemini-1.5 Pro Code Llama 7B Code Llama 13B Code Llama 34B Llama-3-8B

Builds on: Syzkaller SWE-bench

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy