Look Here, Then Decide: Small Decision Models in a Harness Find Memory-Safety Vulnerabilities at Scale on Commodity GPUs

Tim De Wachter, Kyryl Volkov, Myrto Eleftheria Gkogkou, Mathieu HuysmanarXiv 2026

TL;DR

Researchers have developed a high-throughput "harness" that uses small, 4-billion parameter "decision models" to find memory-safety vulnerabilities in C/C++ code at scale. By using these cheap, open-weight models for prioritization rather than final judgment, the system confirmed 187 real-world vulnerabilities—including 12 critical and 148 high-severity bugs—running on nothing more than commodity gaming GPUs.

What Problem Does This Paper Address?

Memory-safety defects (like buffer overflows and use-after-free errors) remain the "eternal war" of C and C++ programming, accounting for the vast majority of high-severity vulnerabilities. Traditional Static Application Security Testing (SAST) tools are fast but notoriously noisy, often drowning developers in false positives.

Recently, "frontier" Large Language Models (LLMs) like GPT-4 or Claude have shown promise in finding bugs, but they are expensive, slow, and often restricted. Running a top-tier model across thousands of open-source repositories is financially and computationally prohibitive for most teams. This paper asks: Can we achieve professional-grade vulnerability discovery using small, open-weight models that run on a single desktop GPU?

Methods

The authors introduce a "system over model" approach, where a sophisticated harness does the heavy lifting, and a small model acts as a high-speed filter.

  1. Candidate Generation: Instead of asking a model to read every line of code, the harness uses deterministic "localizers" and "miners." These tools look for specific "shapes" (e.g., an untrusted size variable reaching a memory operation) or "incomplete fixes" (where a bug was fixed in one place but a similar pattern exists elsewhere).
  2. The Decision Model: The system uses Intern-Decision-4B, a "System-One" model. Unlike standard LLMs that generate text, a decision model answers typed questions in a single forward pass, returning numerical scores for specific answers (e.g., "Is this code reachable from untrusted input?"). This eliminates the need for expensive token decoding.
  3. Prioritization (Ranking): Crucially, the model isn't used to "accept" or "reject" code. Instead, it ranks the candidates. Human reviewers or more expensive "agentic" models then work from the top of the list down.
  4. Verification: Every lead is verified using AddressSanitizer (ASan) to produce a reproducible crash, ensuring that "findings" are actual bugs, not just hallucinations.

Datasets

The study utilized several distinct datasets for evaluation:

  • CVE Function Set: 91 vulnerable/patched function pairs and 246 benign functions used to calibrate the model's baseline performance.
  • Known-CVE Recall Set: 75 public memory-safety CVEs drawn from the National Vulnerability Database (NVD) to measure how many existing bugs the harness could "rediscover."
  • Campaign Corpus: A massive collection of 4,245 C/C++ repositories, selected based on "reach" (how widely they are packaged in Linux distributions) and a lack of existing fuzzing coverage.

Key Insights and Ideas

  • The "Weak Model" Paradox: On its own, the 4B model is mediocre; it struggles to distinguish a vulnerable function from its own patched version (AUC 0.56). However, it is excellent at prioritization. It can effectively push real vulnerabilities to the top of a review queue, making human effort far more efficient.
  • System-One Inference: By treating the LLM as a classifier that outputs probabilities for specific tokens rather than a text generator, the authors achieved massive speedups. One forward pass per function is all it takes.
  • The Harness is the Bottleneck: The study found that recall (finding all the bugs) is limited more by the deterministic "where to look" stage than by the model's intelligence. If the localizer doesn't flag a function, the model never sees it.
  • Commodity Hardware is Enough: The system ran faster on a consumer NVIDIA RTX 4090 (9.8 decisions/sec) than on a data-center-grade GB10 system, proving that high-end vulnerability research no longer requires a supercomputer.

Key Results

  • Confirmed Findings: The campaign identified 187 confirmed memory-safety vulnerabilities. Of these, 160 (86%) were rated as High or Critical severity.
  • Ranking Lift: On the campaign's real queues, the model's ordering placed 7.5 times more confirmed findings in the top 10 results compared to a random ordering.
  • Throughput: The harness searched over 4,000 projects, mining repositories at a rate of 900–1,100 per hour across two systems.
  • Cost-Efficiency: While frontier models can cost over $1,200 per vulnerability found, this system operates on owned hardware with no metered API costs for the search phase.

Limitations and Future Work

  • Context Blindness: Because the model analyzes functions in isolation, it misses vulnerabilities that require cross-function reasoning or specific build-flag configurations.
  • Recall Gaps: The current localizers focus on "write" shapes. The authors note that "reads, use-after-free, and logic errors" need further specialized localizers to improve overall recall.
  • Verification Costs: While the search is now cheap, the verification (writing reproducers and human sign-off) remains the most labor-intensive part of the pipeline.
  • Scope: The current work is strictly limited to C/C++ memory safety; applying this to logic bugs or other languages remains a future challenge.

Summary updated

BibTeX
@misc{wachter2026look,
  author = {Tim De Wachter and Kyryl Volkov and Myrto Eleftheria Gkogkou and Mathieu Huysman},
  title = {{Look Here, Then Decide: Small Decision Models in a Harness Find Memory-Safety Vulnerabilities at Scale on Commodity GPUs}},
  year = {2026},
  eprint = {2611.16565},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.16565},
}
Figure