Weight-space programming for auditing clinical decision networks
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
| Input | Definition | Range |
|---|---|---|
| Coverage goal | PTV D95% at or above this dose | 55 to 78 Gy |
| Hot-spot cap | PTV D0.03cc at or below this dose | 54 to 81 Gy |
| Mandible limit | Mandible D0.1cc at or below this dose | 45 to 85 Gy |
| Mandible in PTV | Volume of mandible inside the PTV | 0 to 28 cc |
| PTV volume | Volume of the highest-dose PTV | 80 to 400 cc |
| Cord limit | Spinal cord D0.03cc at or below this dose | 38 to 50 Gy |
| Planted flaw | Error in planted region | Detected from the weights | Parameters changed | Correct decisions made wrong | Detected by black-box testing | Found by a weight statistic |
|---|---|---|---|---|---|---|
| Cap rule hidden | 98.2% to 99.9% | 3/3 | 3, 3, 39 | 0, 0, 0 | 1/1 | 3/3 |
| Mandible rule hidden | 100% | 3/3 | 21, 24, 53 | 0, 0, 0 | 1/1 | 3/3 |
| Cord rule hidden | 99.9% to 100% | 3/3 | 5, 4, 3 | 0, 0, 0 | 1/1 | 3/3 |
| Missing-structure rule hidden | 53.6% to 68.3% | 3/3 | 1, 1, 1 | 0, 0, 0 | 1/1 | 3/3 |
| Cord threshold shifted 3 Gy (drift) | 99.9% to 100% | 3/3 | 3, 1, 2 | 2, 18, 0 | 1/1 | 3/3 |
| Hidden trigger | 58.4% to 96.0% | 1/3 | 1, 1, 0 | 1,181, 0, 0 | 1/3 | 0/3 |
| Language model | Output limit | Cap rule hidden | Mandible rule hidden | Cord drift | Healthy |
|---|---|---|---|---|---|
| Opus 5.5 | 128,000 | Detected, repaired | Detected, repaired | Detected, repaired | Cleared |
| Sonnet 5.5 | 128,000 | Detected, repaired | Detected, repaired | Detected, repaired (1.1% error left) | Cleared (forced) |
| Haiku 5.5 | 128,000 | Detected, repaired | Detected, repaired | Repaired; region covered 26% of failures | False alarm |
| Opus 4.6 | 64,000 | No verdict | No verdict | No verdict | No verdict |
| Fable 5.1 | 64,000 | Not tested | Detected, repaired (after extra message) | Not tested | No verdict (after extra message) |
Weight-Space Analysis
Weight-space analysis studies neural network parameters as structured objects to understand, compare, edit, and reuse learned models.
See all 42 papers