atlas

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

MigGPT: Harnessing Large Language Models for Automated Migration of Out-of-Tree Linux Kernel Patches Across Versions

NeurIPS 2025 · Large language models › Agents, code and math · approach: Code generation benchmarks · 1 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.

Proposes MigGPT, a two-step LLM framework using a Code Fingerprint structure and three augmentation modules to migrate out-of-tree Linux kernel patches across kernel versions, evaluated on a new 135-example benchmark.

Problem

Automating migration of out-of-tree Linux kernel patches to new kernel versions, where vanilla LLMs struggle with incomplete code context and inaccurate migration point identification.

Approach

A lightweight Code Fingerprint (CFP) sequential structure records per-line statement types, scopes, and function calls; it feeds structure prompts (function signatures), alignment prompts (first/last anchor lines), associated-function retrieval, and location prompts (migration points from old vs. patched old diff) to LLMs in a two-step retrieve-then-migrate pipeline.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use MigGPT instead of vanilla LLMsEvaluated LLMs on out-of-tree kernel migration · Out-of-tree kernel migration, All (135)Human Match: 28.15% -> 74.07%; +45.92%Helped
Use MigGPT instead of vanilla LLMsEvaluated LLMs on target code retrieval · Out-of-tree kernel retrieval, All (135)Semantic Match: 64.02% -> 84.55%; +20.53%Helped
Use MigGPT with DeepSeek-V3 instead of vanilla DeepSeek-V3DeepSeek-V3 · CVE patch backportingSemantic Match accuracy: 87.12% -> 92.59%Helped
Use MigGPT instead of vanilla LLMGPT-4-turbo and DeepSeek-V3 · Out-of-tree kernel migrationCompilation success rate: 16.30% -> 66.67%; 31.85% -> 79.26%Helped
Split migration into retrieval and migration steps rather than one direct generation stepVanilla LLMs · Out-of-tree kernel migration, All sample typesMigration accuracy: 3.33% -> 12.22%; +8.89%Helped
Use two-step strategy with CFP instead of one-step strategy with CFP (ablation)MigGPT · Out-of-tree kernel migration, All (135)Semantic Match: 42.96% -> 80.00%Helped
Remove or ablate one of the four units: CFP, Retrieval Augmentation, Retrieval Alignment, or Migration Augmentation (ablation)MigGPT · Out-of-tree kernel migration benchmarkPerformanceHurt
Vary the retrieval query limit m; m=3 is reported as suitable (ablation)MigGPT with GPT-4-turbo · Type 1 and Type 2 migration examplesPerformanceMixed

Surprising findings

Limitations

Experimental setup

Datasets: RT-PREEMPT Raspberry Pi Linux HAOC FixMorph CVE patch backporting benchmark

Benchmarks: out-of-tree kernel patch migration benchmark (135 examples) FixMorph CVE backporting benchmark (350 instances) Linux driver migration (24 samples) Python migration (31 samples)

Metrics: best match semantic match (CodeBLEU >= 0.9) human match compilation success rate line edit distance query times time cost

Baselines: GPT-3.5 GPT-4-turbo OpenAI-o1 DeepSeek-V2.5 DeepSeek-V3 DeepSeek-R1 Llama-3.1-8B Llama-3.1-70B-Instruct FixMorph TSBPORT PPatHF

Builds on: FixMorph TSBPORT PPatHF CodeBLEU

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