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

Small decision models in a harness find memory-safety bugs at scale on desktop GPUs

Tim De Wachter, Kyryl Volkov, Myrto Eleftheria Gkogkou, Mathieu Huysman · arXiv · 2026-11-12

- **Problem** Frontier models can find vulnerabilities across thousands of repositories, but they cost too much for teams without access to them. Scanning every function with an agent means many model calls per function, and most functions have no bug.
- **Method** Intern-Decision-4B, a 4B open-weight model, scores each candidate function in one forward pass. Deterministic localizers pick the candidates and the scores only rank the review queues, instead of accepting or rejecting code.
- **Results** On 75 public CVEs, the fixed function reached its repository's top 25 in 21% of cases, 1.4 times as often as random order. The campaign confirmed 187 memory-safety findings across more than 4,000 projects.

![Table 5: Recall on 75 known CVEs. 95% intervals for recall at 10, 25 and 40: 5–20%, 12–31% and 13–32%](https://refivu.com/papers/a4086ec5-33eb-4e68-bbd9-18476c04be04/figures/figure-9c938c34adcb50841caa47d5c6299cf1.png?thumb=512)

**Table 5** : Recall on 75 known CVEs. 95% intervals for recall at 10, 25 and 40: 5–20%, 12–31% and 13–32%.

[Original paper](https://arxiv.org/abs/2611.16565v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Tim De Wachter, Kyryl Volkov, Myrto Eleftheria Gkogkou, Mathieu Huysman · Look Here, Then Decide: Small Decision Models in a Harness Find Memory-Safety Vulnerabilities at Scale on Commodity GPUs · Original paper figure · Extracted the figure area from page 12 of the original PDF.

## Why frontier-scale search is costly

Static analysis tools such as Semgrep, Opengrep and CodeQL inspect source code without running it. They match syntax trees and data-flow results against known-bad patterns, which makes them fast and explainable. These tools don't decide whether a flagged line is reachable or exploitable.

Anthropic's Claude Mythos Preview, a frontier model available to selected partners, reportedly identified high-severity vulnerabilities in widely used software. That run cost US$1,213,430 in API credits, about US$1,280 per vulnerability.

Each agent investigation needs many model calls and tool executions, so search across thousands of repositories gets expensive. Most of the functions it reads would contain no vulnerability.

That team lacks access to frontier models, so large-scale discovery stays hard for it. Deterministic analysis can narrow the search first, so a small model only has to decide which candidates to investigate first. The paper's central question asks whether small, open-weight decision models can still improve prioritisation at scale.

## A decision model that scores instead of writing

A decision model computes one score per permitted answer to a fixed question, in a single forward pass. The model answers a predefined question without generating text, so nothing needs to be parsed before a queue can be ordered. Each label's score comes from the answer-token probabilities, normalised by a restricted softmax over those tokens.

A temperature can be applied to that softmax, which gives a distribution over the labels.

Each decision costs one prefill and no decoding, so the model's output orders a queue directly. The decision model differs from LLM-as-judge setups, which generate a rationale and a verdict before scoring. Intern-Decision-4B is a 4.5B open-weight member of this class, fine-tuned by InternLM from Qwen3.5-4B. Two practical details matter: read labels by id, and treat the scores as ranking signals rather than probabilities.

Calibration would require that a score near 0.8 be right about 80% of the time, which answer-token probabilities don't guarantee for vulnerabilities. So the harness uses the scores to order the work, not to accept or reject candidates. The review budget decides how far down the list reviewers go, while the ranking decides what they read first.

In the harness, Intern-Decision-4B scores each candidate function with two typed questions. The second question matches the defect shape of the localizer that proposed the candidate. Ordering by these scores lets the reviewer read high-ranking candidates first, instead of cutting the queue at a fixed threshold.

## How the harness builds the queue

Project selection starts from a reach score over 4,245 C/C++ repositories, built from packaging and dependency data. The team tried curated domains and GitHub stars first, and both gave weaker results than reach ranking. OSS-Fuzz membership serves as a second signal, but absence from it is treated as a selection hint rather than proof that a project was never fuzzed.

Once projects are chosen, deterministic localizers decide where inside them to look, and no model is involved at this stage. They then look for sibling sites that lack the check, which the authors treat as a hypothesis rather than a verdict.

Each candidate function is then scored by Intern-Decision-4B with two typed questions. The second is a question matched to the defect shape, and no queue cut on it after the pilots. Until the localizer pilots of 2026-10-07, every queue dropped candidates with a reach score below 0.27. A candidate kept in the queue isn't necessarily read, so the review budget sets how far down the list reviewers go.

Triage and proof used separate, stronger models, plus human review of the surrounding program context. This paper doesn't evaluate the effectiveness or cost of that stage.

## Separating vulnerable code from its patch

The first test checks separation from unrelated benign code and from the patched version of the same function. On the native C/C++ set Intern-Decision-4B reaches AUC 0.73 for vulnerable versus benign functions, but only 0.56 for vulnerable versus patched.

An earlier run on a different serving stack gave 20% recall and 7%, so the threshold behaviour moved with how the model was served.

Across six configuration baselines, AUC for vulnerable versus patched ranged from 0.50 to 0.62. xLAM-2-1B reached 0.77 for vulnerable versus benign functions, compared to 0.73 for Intern-Decision-4B. So the score can order a queue, but it can't decide a single function on its own.

## Ranking lift on known CVEs and campaign queues

On 75 public CVEs from projects without campaign findings, the fixed function reached the repository's top 25 in 16 cases, which is 21%. Once scored, the model placed 16 of those 18 in the top 25. Random order would place about 11 of them in the top 25, because these queues are short, with a median of 60 functions per repository. That is a lift of 1.3 to 1.4 times, which is smaller than the lift on the campaign's longer queues.

On the campaign's own queues the lift is much larger, because the model's order put 24 confirmed findings in the top 10. Random order expected 3.2 in the top 10, and the site-count heuristic reached 6. That gives a 7.5-fold lift with a 95% CI of 4.3 to 14.1. At the top 25 the counts were 32 for the model, 6.7 for random order and 13 for the heuristic, a 4.8-fold lift.

The authors call this an observed upper bound, because the 51 queues were chosen for containing a confirmed finding.

In the localizer pilots, the top 30 of the length-wrap queue held 30 to 33% real candidates. A random sample of 30 candidates from the same localizer held only 6.7%, so the yield gap is large. The pilot shares measure yield by configuration at triage, so they don't isolate the effect of ranking. The authors reserve the term ranking lift for the within-queue comparisons, which is why the pilots are kept apart from the recall and campaign numbers.

Fusing the two rankers scored 0.26 at precision@25, but the authors didn't adopt it.

## Campaign output and decision speed on GB10 and RTX 4090

The campaign ran on three desktop-class GB10 systems and searched more than 4,000 projects. It confirmed 187 memory-safety findings, and worst-case CVSS v3.1 rates 12 of them critical, 148 high, 23 medium and 4 low. Under the worst-case rubric, 160 of the 187 findings land in the critical or high classes, which the authors read as a high-severity set.

On one GB10, Intern-Decision-4B made 278 decisions in 63 s, which is 4.4 decisions per second. That makes the gaming PC 2.2 times faster than the GB10 on this step, and the decision step ran faster there. Of the 278 scores, 275 were within 0.02 of the GB10's values, and all 278 fell on the same side of 0.5. On a shared laptop's integrated GPU without vLLM, the same step took about 10 minutes, with 270 of 278 scores within 0.02 of the GB10's.

The authors present the laptop run as a floor rather than the harness's speed.

Against Opengrep on one OpenSSL repository, the harness's CPU stages were the slow part, not the GPU step. Opengrep finished in about 0.5 minutes end to end, while the harness took about 5.5 minutes on the GB10 and about 5 minutes on the RTX 4090. Opengrep produced 554 warnings, and one hygiene rule, memset that may be optimised away, accounted for 468 of them.

OpenAI's kernel run cost about US$1,280 per vulnerability, using its stated API-credit total of US$1,213,430 for 948 bugs. The authors don't treat that figure as comparable to their own spend, because their search runs on owned desk-side hardware. They didn't record total model-agent spend, verification cost or reviewer time, so whether a cheap search stage lowers total cost stays untested.

## Where the results stop

The ranking ablation gives only an upper bound, because reviewers read from the model's own ranking. The method study rests on 8 bugs, so a one-bug difference is noise. The ranker evaluation's labels were chosen by the incumbent model, which biases them toward its own choices.

Only Intern-Decision-4B was measured as a ranker on real queues. The other six classifiers were adapted from guard templates or chat prompts, so their comparison is a set of configuration baselines rather than a controlled one. The sample holds 71 vulnerable functions, which limits how firmly the AUC values can be read.

Per-function questions miss context outside the function, such as a caller's check or a build flag. Business logic, authorisation and cross-function flows fall outside what a single-function decision model does well. Recall is bounded by where the localizers look, since most misses were never flagged.

Triage and proof used stronger coding-agent models, and their cost wasn't measured. A fully small-model pipeline is untested, so the cost claims cover search and ranking only. The cost comparison with Opengrep covers one repository, and detection quality against Opengrep or CodeQL isn't measured. The scope is C/C++ memory safety only.

## Paper info

- **Authors**: Tim De Wachter, Kyryl Volkov, Myrto Eleftheria Gkogkou, Mathieu Huysman
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-12
- **Added**: 2026-11-13
- **Updated**: 2026-11-12
- **Version**: v1
- **arXiv**: 2611.16565
- **Category**: cs.CR · cs.LG · cs.SE
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.16565v1) · [PDF ↗](https://arxiv.org/pdf/2611.16565v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

We ask whether small, open-weight decision models can support vulnerability discovery in open-source software at scale and what the surrounding system must provide. These models answer a typed question in one forward pass, returning scores for the permitted answers rather than text. Our harness selects widely packaged C and C++ projects and uses deterministic incomplete-fix miners and shape localizers to decide where to look. Intern-Decision-4B, a 4B-parameter open-weight decision model, then scores every candidate function. The scores rank the queues rather than accept or reject candidates, apart from a low reach-score floor that some queues kept. The search uses no frontier model. Alone, the model is weak: it separates vulnerable from benign functions with AUC 0.73, but a vulnerable function from its own patch with only 0.56. It is more useful for ordering candidates. On 75 public CVEs from projects without any of our findings, the fixed function reached its repository's top 25 in 21% of cases, 1.4 times as often as under random order of the same queues. Recall is bounded mainly by where the localizers look. On the campaign's own queues the model's order placed 7.5 times more confirmed findings in the top 10 than random order, an observed, selection-biased upper bound. On three GB10 systems, the harness searched more than 4,000 projects at 900-1,100 repositories per hour. The campaign confirmed 187 memory-safety findings; by worst-case CVSS v3.1, 12 are critical, 148 high, 23 medium and 4 low. The decision step runs at 4.4 decisions per second on one GB10 and 9.8 on a consumer RTX 4090 gaming PC, with matching scores. A small decision model supports vulnerability discovery through prioritization, while deterministic analysis and verification remain essential. All confirmed findings are being disclosed to maintainers under coordinated disclosure before publication.

## Figures from the paper

![Table 1: Campaign deciders on the CVE function set. A dash marks a measurement not taken. DiffusionGemma-26B-A4B \[135\] was run as NVIDIA’s NVFP4 build \[136\]. T…](https://refivu.com/papers/a4086ec5-33eb-4e68-bbd9-18476c04be04/figures/figure-b9718f24feb6a2e2c9a0cc9c7643e81f.png?thumb=512)

**Table 1** : Campaign deciders on the CVE function set. A dash marks a measurement not taken. DiffusionGemma-26B-A4B \[135\] was run as NVIDIA’s NVFP4 build \[136\]. The patched column covers all 91 pairs, including 20 in managed languages; on the 71 native pairs Intern scores 0.564 (Table 2).

[Original paper](https://arxiv.org/abs/2611.16565v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

![Table 3: Configurations and throughput in the small-classifier comparison (one GB10, vLLM 0.30.1). \* Intern answers two fields per row with longer prompts, so…](https://refivu.com/papers/a4086ec5-33eb-4e68-bbd9-18476c04be04/figures/figure-46c5b67ff4ea0545e52adab3c474446d.png?thumb=512)

**Table 3** : Configurations and throughput in the small-classifier comparison (one GB10, vLLM 0.30.1). \* Intern answers two fields per row with longer prompts, so its rows/s is not comparable.

[Original paper](https://arxiv.org/abs/2611.16565v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

![Table 4: Candidate yield in the localizer pilots, by configuration, at triage (descriptive). Raw rates are hit rates in a random sample of the localizer’s cand…](https://refivu.com/papers/a4086ec5-33eb-4e68-bbd9-18476c04be04/figures/figure-668caab6c541f11d979d81f8ce91627e.png?thumb=512)

**Table 4** : Candidate yield in the localizer pilots, by configuration, at triage (descriptive). Raw rates are hit rates in a random sample of the localizer’s candidates; ranked rates are hit rates in the top k after the deterministic test, a reach cut at 0.27 and ranking by the shape question. Ranges count leads only and leads plus near-leads; they are not confidence intervals.

[Original paper](https://arxiv.org/abs/2611.16565v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

![Table 6: One-repository cost comparison on OpenSSL. CPU stages ran on the same 16-vCPU x86 host. The harness’s 139 ranked rows cover 121 distinct functions. Ne…](https://refivu.com/papers/a4086ec5-33eb-4e68-bbd9-18476c04be04/figures/figure-54bd1da19e8094b7083e66389907af27.png?thumb=512)

**Table 6** : One-repository cost comparison on OpenSSL. CPU stages ran on the same 16-vCPU x86 host. The harness’s 139 ranked rows cover 121 distinct functions. Neither output was triaged, so this is not a quality comparison.

[Original paper](https://arxiv.org/abs/2611.16565v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

![Table 7: Continued from the previous page](https://refivu.com/papers/a4086ec5-33eb-4e68-bbd9-18476c04be04/figures/figure-491477794ee24b1157f33b4cd6425b98.png?thumb=512)

**Table 7** : Continued from the previous page

[Original paper](https://arxiv.org/abs/2611.16565v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

## Quote from the paper

Tim De Wachter, Kyryl Volkov, Myrto Eleftheria Gkogkou, Mathieu Huysman (2026). Look Here, Then Decide: Small Decision Models in a Harness Find Memory-Safety Vulnerabilities at Scale on Commodity GPUs. arXiv:2611.16565v1. https://arxiv.org/abs/2611.16565v1

**BibTeX**

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

## Other paper commentary

- [How Should Planning Agents ReSHAPE Their Search Space?](https://refivu.com/en/papers/9fffaa2e-ec66-4527-8bbc-c761e38be1cc-how-should-planning-agents-reshape-their-search-space.md)
- [Before AI Agents Negotiate for Us: A Competitive Tournament of Rule-Based, Search, Optimization, Learned, and Language-Model Negotiators Under Scarcity](https://refivu.com/en/papers/1be3d06e-6a65-49a3-b9cb-66c789353de6-before-ai-agents-negotiate-for-us-a-competitive.md)
- [GHAgentCI: A Dataset of Coding-Agent Invocations in CI Workflow Histories](https://refivu.com/en/papers/424ea16a-b913-4b06-9a96-34a62191b355-ghagentci-a-dataset-of-coding-agent-invocations-in.md)
- [ToolTurns: Benchmarking LLM Agents in Multi-Turn Dialogue](https://refivu.com/en/papers/42f08ffe-adf1-41c0-b81e-bf4f75fc5f6d-toolturns-benchmarking-llm-agents-in-multi-turn-dialogue.md)
- [Termination Lag: Coding Agents Solve Early but Stop Late](https://refivu.com/en/papers/520a3a4d-fc06-4832-b3c1-a97eb683de41-termination-lag-coding-agents-solve-early-but-stop.md)
- [Cleaning an Agent's History Hurts When the World Still Holds the Error](https://refivu.com/en/papers/9f9d54ba-fe02-462d-babe-c0f8a725ef58-cleaning-an-agent-s-history-hurts-when-the.md)
- [Shared Item-Level Error Limits the Aggregation of Small Language Models in Fermi Estimation](https://refivu.com/en/papers/d6b35571-2eef-4304-900f-fe22dbf275c8-shared-item-level-error-limits-the-aggregation-of.md)
- [Low Language Transfer Speech-to-Text](https://refivu.com/en/papers/a72fcc94-71cb-43cb-a9d4-b90726cea829-low-language-transfer-speech-to-text.md)
- [A Matching Lower Bound for Online Smooth Calibration](https://refivu.com/en/papers/325701fa-d264-4ed2-bc4e-abb5dc7b1a1a-a-matching-lower-bound-for-online-smooth-calibration.md)
- [Privileged Information Does Not Guarantee Privileged Guidance: Auditing On-Policy Self-Distillation for Reasoning Models](https://refivu.com/en/papers/6127cc77-99db-476a-8a19-395666227e0a-privileged-information-does-not-guarantee-privileged.md)
- [What Roles Do System Prompts Really Assign? Validating and Steering Occupational Role Vectors in LLMs](https://refivu.com/en/papers/629a4fc4-7b87-453a-b9f7-a7e955764349-what-roles-do-system-prompts-really-assign-validating.md)
- [Scaling public input on AI policy with pluralistic agents](https://refivu.com/en/papers/6e7fbb38-91c9-42ad-a979-66cfd7869d35-scaling-public-input-on-ai-policy-with-pluralistic.md)

## Terms in this paper

- [recall](https://refivu.com/en/terms/3774987267f3-recall)
- [vLLM](https://refivu.com/en/terms/fe3c96648564-vllm)
- [Jev](https://refivu.com/en/terms/54e49cc4411c-jev)
- [decision model](https://refivu.com/en/terms/fc7d358941aa-decision-model)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/a4086ec5-33eb-4e68-bbd9-18476c04be04-look-here-then-decide-small-decision-models-in)
