physics.med-phNov 3, 2026

Weight-space programming for auditing clinical decision networks

Authors: Humza Nusrat, Omar Nusrat

Organizations: Department of Radiation Oncology, Henry Ford Health, Detroit, Michigan 48202, USA · Department of Radiology, Michigan State University, East Lansing, Michigan 48824, USA · Toronto Metropolitan University, Toronto, Ontario, Canada

Abstract

Machine learning models in radiotherapy are commissioned by testing them on cases with known answers, which may not reveal a shortcut that the test cases share with the training data. Frontier language models have recently been reported to read and write the raw weights of small neural networks, an ability called weight-space programming. The purpose of this study was to determine whether such a model, given only a clinical protocol and a network's weights, can audit and repair the network. Networks with 433 to 4,801 parameters were trained to screen head-and-neck planning requests against four rules. Flaws were planted through the training data: confounds that hid each rule, a 3 Gy shift in the cord threshold, and a hidden trigger. Claude Opus 5.5 audited each network blind, without tools, data or code execution, and every claim and repair was tested on about 420,000 requests. The language model named the broken rule in 16 of 18 flawed networks (95% CI 67% to 97%), including all 15 with a confound or a threshold shift. It repaired each of the 16 by changing a median of 3 parameters. Fine-tuning on protocol-labeled requests also repaired every network, but changed nearly every parameter. Each confound and shift it found was visible in single units, and a simple statistic chosen for each flaw type found the same flaws. It cleared 2 of 5 healthy networks without being forced and found 1 of 3 triggers. Testing against the protocol detected every flaw, and black-box testing found the confounds and the shift faster. The results indicate that, in small networks, weight-space programming can locate and repair flaws that silence an input or shift a threshold, but cannot yet certify that a network is correct.

Figures & tables

Explore similar work

CardsList
  1. Weight Oracles: Reading Neural Network Weights with Language Models

    Oct 5, 2026Krishna Kabra, Constantin Venhoff, Christian Schroeder de WittLLM AuditingBackdoor Detection

  2. OpenGray: a benchmark for evaluating the decisions of radiotherapy planning agents

    Oct 27, 2026Humza Nusrat, Kundan ThindMedical AI AgentsLLM Agent Evaluation

  3. A Radiation-Hardened, Fault-Aware Quantized Neural Network That Self-Heals

    Oct 20, 2026Peter Xiangyuan Ma, Joshua S. BloomNeural Network Fault Tolerance