Skip to content
Forskning· Analysis

New method improves specification generation for OS kernels with AI

Researchers have developed BODHI, a new method that improves how large language models (LLMs) generate formal specifications for system calls in operating system kernels, achieving up to 74.69% in Pass@1.

By the Aheadline editorial team·7 juli 2026·2 min read·Source: arXiv cs.AIVerifierad signalAI-generated
New method improves specification generation for OS kernels with AI
New method improves specification generation for OS kernels with AI
By · Policy- & EU-reporter
Last updated

What happened?

Researchers have introduced BODHI (OS Kernel Specification Inference), a method to improve the generation of formal specifications for system calls in operating system kernels using large language models. The method utilises a domain-knowledge prompt that supplements standard few-shot prompts with a structured C-to-Python translation guide. This guide covers 15 categories of domain-specific translation patterns and organises the translation by separating concerns, where pre- and post-conditions are handled as distinct categories.

Key facts

MetodBODHI (OS Kernel Specification Inference)
BenchmarkOSV-Bench
Antal uppgifter i OSV-Bench245
Tidigare Pass@155,10%
BODHI Pass@174,69%
Antal modeller utvärderade9 från 6 leverantörer

We propose a domain knowledge prompting method (BODHI), which augments the standard few-shot prompt with a structured C-to-Python translation guide covering 15 categories of domain-specific translation patterns.

Forskare bakom BODHI, Forskare · arXiv

Inspired by Structured Chain-of-Thought (SCoT) prompting, the guide organizes translation by separation of concerns, addressing pre-condition extraction and post-condition generation as distinct categories.

Forskare bakom BODHI, Forskare · arXiv

Evaluated on nine models from six providers (Anthropic, Mistral, Amazon, DeepSeek, Meta, Alibaba), cov(—) The best reported Pass@1 is 55.10%.

Forskare bakom BODHI, Forskare · arXiv

Why it matters

Manual creation of precise specifications for operating system kernels requires deep domain expertise and is time-consuming. By automating the process with LLMs, the development time for formal verification of OS kernels can potentially be reduced. The new method shows a significant improvement over previous benchmark results, indicating a step forward in overcoming challenges within software verification.

Who is affected?

The method impacts researchers and developers within formal verification and operating systems. Companies such as Meta, Amazon, Alibaba, Anthropic, and Mistral, whose models were evaluated, are also directly affected. Improved specification generation can facilitate the development of more secure and robust operating system kernels.

What else you should know

BODHI was evaluated on nine different LLMs from six providers. The results showed that the new method achieved a Pass@1 of 74.69% on OSV-Bench, a significant improvement over the previously best reported result of 55.10%.

Frequently asked questions

Quick answers about this story

Vad har hänt?
Forskare har utvecklat BODHI, en ny metod som förbättrar genereringen av formella specifikationer för operativsystemskärnor med hjälp av stora språkmodeller. Denna metod använder en strukturerad C-till-Python-översättningsguide för att mer effektivt tolka systemanropens beteende.
När hände det?
Arbetet publicerades på arXiv den 26 maj 2026.
Varför spelar det roll?
Manuell specifikationsgenerering är komplex och kräver specialiserad expertis. En automatiserad process, som BODHI, kan accelerera formell verifiering, vilket leder till mer robusta och säkra operativsystemkärnor.
Vilka bolag berörs?
Ett flertal leverantörer av stora språkmodeller har modeller som utvärderats, inklusive Meta, Amazon, Alibaba, Anthropic och Mistral.
Original source
arXiv cs.AI·arxiv.org

The link opens in a new window and leads to the publisher's own site.

Verifierad signal

Källan har spårats automatiskt från utgivaren via Aheadlines signalkedja.

AI-verktyg i artikeln

Topics

#Models
[ STAY UP TO DATE ]

Get similar news straight to your inbox

No affiliate linksCancel anytimeGDPR-friendly
[ Frequency ]
[ What do you want to read about? ]

You'll receive updates on 2 topics.

The reader's room

Send in a question or an addition. The newsroom reads everything before it's published and replies when relevant. No AI-generated text – just people.

Sign in to submit a comment or question.

Loading comments…
How this affects you

Read the article through your role

  • Decide whether this affects strategy over 6–12 months or is just noise.
  • Discuss with leadership: do we own the right question or does ownership need to move?
  • Ask: what risk are we taking by NOT acting on this this quarter?

Generated angle — not editorial analysis of "New method improves specification generation for OS kernels "