Skip to main content
Search

# Guided code generation

1 related articles

Subscribe to updates
  1. arXiv

    A 7B model on a laptop can write kernel migration rules: Qwen2.5-Coder solves 35.3 driver conversions and beats Spinfer on precision

    When a Linux kernel API changes, driver conversions are done by hand over months, and earlier conversions are themselves reusable examples. Researchers adapted guided code generation to this task: examples are decomposed into a tree of change variants, a small local model writes one Coccinelle semantic-patch rule per variant under feedback from applying it to the examples, with deterministic repair and a compile check. On 7 migrations whose new APIs postdate all three models' training cutoffs, Qwen2.5-Coder 7B solves 35.3 conversions on average (range 32–41 over three seeds) against 1.0 when prompted directly; Spinfer solves 41 and a frontier LLM agent 66, but the local model's rules are the most precise at 0.74.

You’re all caught up