AI News
All stories
Official

Microsoft Research method builds interpretable models by writing weights in code

An LLM agent builds interpretable models by writing their weights directly in code without gradient training, and all 26 algorithmic runs with Claude Opus 5.5 reached 100% held-out accuracy.

Research · · 2 min read

Watch the short

Under a minute, read by an AI anchor. Made .

YouTube loads only when you press play.

Microsoft Research and collaborators have proposed interpretable weight-space programming, or iWSP. In this method, an LLM agent builds a model by writing its weights and features directly in code. No gradient training is involved. The authors report that with Claude Opus 5.5 as the agent, all 26 runs on algorithmic tasks reached 100% accuracy on both visible and hidden test sets. Often the agent did this by implementing a known algorithm in the weights. The smallest 100%-accurate model had a median of 166 parameters.

The core idea is to replace backpropagation with reasoning. The agent hypothesizes a computation, writes it as explicit weights and features, tests it, and revises it. It repeats this 30 to 50 times. Because nothing is tuned by gradient descent, the agent has to rely on its prior knowledge and on the results of earlier trials. The result is a program a person can read line by line. LLM audits confirm that the resulting models are interpretable.

The parameter counts depend on which model serves as the agent. The paper reports a median of 41,600 parameters for the smallest 100%-accurate model with Sonnet 5.5, and 100,000 with Haiku 5.5. The choice of agent model therefore changed how large the networks were.

Language tasks did not go as well. On NLP benchmarks the hand-built models plateaued near 190,000 parameters, and on paraphrase they stayed below their baseline. The authors therefore describe these models as interpretable but less accurate than learned alternatives.

The neuroscience experiments are where the authors make their scientific case. In the visual cortex, iWSP outpredicted existing interpretable baselines in predicting brain responses and generalized to unseen data. The final model was an 865-line program that produced 9,996 features from 14 explicit computations. The authors say it uncovered distinct computations across early and higher visual areas. In language fMRI, the method surfaced a confound in the dataset. In auditory ECoG recordings, it found acoustic features that predict neural activity.

The preprint is an early arXiv version, submitted 13 Nov 2026. Its abstract frames iWSP as a general paradigm for combining predictive performance with explanation. The evidence in the abstract covers algorithmic tasks run with three agent models and three neuroscience datasets. Results in other scientific domains are not reported here.

What changed

An LLM agent builds interpretable models by writing their weights and features in code instead of training them with gradients.

Type: Research · Applies to: Claude Opus 5.5, Sonnet 5.5, Haiku 5.5

Why it matters

Interpretable models that are written rather than trained could matter where explanations are required, but the authors' own results show the approach is weaker on language tasks.

Original source

Where we saw it

1 source

DAIR.AI (Elvis Saravia)

AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it. How it works