Can an LLM Actually Reason and Program about Neural Network's Weights or is it just memorization on steroids? Exploring "Weight-Space Programming"
Organizations: BRAC University, Dhaka, Bangladesh
Abstract
Large language models (LLMs) have recently been reported to read and write the raw weights of neural networks directly, a capability termed weight-space programming. We ask whether the reading side of this capability reflects reasoning about weight flows or a combination of local arithmetic at the network's edges and memorized priors over public datasets. We test Claude Opus 5.5 on small convolutional networks of about 125,000 parameters trained on five image datasets, providing every weight as plain text with no tools, no forward passes, and no dataset or class names. The model performs accurate local calculations: batch-normalization statistics lead it to infer about three optimizer steps on networks stopped after three updates, and output-layer sign patterns recover the vehicle/animal split of CIFAR-10. The sessions report reading the first and last layers closely and sampling the middle, and several claims built on partial tracing fail verification, although we did not run a direct forward-pass test. Semantic judgments lean on familiar datasets: the model names CIFAR-10 for CIFAR-10 networks but also for all three fast-food networks, relabels KMNIST as MNIST, reads a 99.57%-accurate SAT-6 network as CIFAR-10 animal photos, and calls "frog" the output favored by a feature that fires most on trees. Permuting CIFAR-10's labels preserves the output split at the new indices, but every class pair the model interprets is then wrong, indicating reliance on remembered label order. These are exploratory results from mostly single runs. We conclude that zero-shot weight reading by this model is better described as local arithmetic plus dataset priors than as weight-flow tracing, and we provide a protocol for auditing future weight-space claims.
Figures & tables
| Dataset | Classes | Train / val / test | Majority (%) | Networks | Test accuracy (%) |
|---|---|---|---|---|---|
| CIFAR-10 | 10 | 45,000 / 5,000 / 10,000 | 10.00 | M1 / M2 / R | 82.36 / 82.28 / 83.95 |
| KMNIST | 10 | 54,000 / 6,000 / 10,000 | 10.00 | M1 / M2 / R | 97.84 / 97.58 / 97.95 |
| Cats vs Dogs | 2 | 18,728 / 2,341 / 2,341 | 50.15 | M1 / M2 | 87.70 / 87.95 |
| Fast food | 10 | 2,400 / 300 / 300 | 10.00 | M1 / M2 / R | 54.67 / 52.67 / 58.00 |
| SAT-6 | 6 | 64,800 / 8,100 / 8,100 | 37.12 | M2 high / M2 low | 99.57 / 36.01 |
| Control | Manipulation | Acc. (%) | Model answer | Conf. (%) |
|---|---|---|---|---|
| None | Original weights | 82.36 | CIFAR-10 | 90 |
| Reordered outputs | Vehicles moved to outputs 2, 4, 5, 7 | 82.37 | CIFAR-10 | 72 |
| Shuffled weights | Values scrambled within each array | 7.78 | CIFAR-10 (best guess) | 45 |
| True dataset | Model 1 answer | Model 2 answer |
|---|---|---|
| KMNIST (Japanese characters) | MNIST (80%) | MNIST (85%) |
| Cats vs Dogs | CIFAKE (30%) | Cats vs Dogs (35%) |
| Fast-food photos | CIFAR-10 (45%) | CIFAR-10 (50%) |
| Dataset | Architecture | Acc. (%) | Image type | In position | Conf. |
|---|---|---|---|---|---|
| CIFAR-10 | Model 1 | 82.36 | Correct | 10 of 10 | 95% / 90% |
| CIFAR-10 | Random | 83.95 | Correct | 10 of 10 | 92% / 85% |
| KMNIST | Model 1 | 97.84 | Partial: grayscale strokes, called digits | 0 of 10 | 85% / 65% |
| KMNIST | Random | 97.95 | No answer | No answer | No answer |
| Network | Acc. (%) | F1 (%) | Image type | Any position | Name given | Conf. |
|---|---|---|---|---|---|---|
| High accuracy | 99.57 | 99.51 | Wrong: animal photos | 0 of 6 | CIFAR-10, animal classes | 70% / 45% |
| Low accuracy | 36.01 | 22.91 | Partial: scenes (“only a guess”) | 4 of 6 | Unknown | 30% / 3% |
| What the session read | What is true in the network | Session’s conclusion |
|---|---|---|
| A “dark green” feature favors output 4 | It correlates with greenness (+0.64), not brightness ( ), and fires most on trees. Its top output across all hidden units is output 4, which is trees | Output 4 is frog |
| Outputs 1 and 3 form a strong pair (+0.54) | Outputs 1 and 3 are building and road | Cat and dog |
| A “blue” feature favors output 0 | It correlates with blueness, fires most on grassland and road, and is below average on water | Output 0 is bird |
| Component | Verdict | Deciding evidence |
|---|---|---|
| Label order breaks it | Supported, one run | Renumbered outputs kept their remembered CIFAR-10 meanings; all nine interpreted class pairs were wrong. |
| Input and output shape bias the guess | Supported indirectly | Same-shape fast food became CIFAR-10. Every network used inputs, so input size was not varied, and KMNIST shows that shape alone does not decide the answer. |
| It is not following weight flows | Supported indirectly | Sessions report sampling the middle layers, and several claims based on partial tracing failed our checks. No forward-pass test was run. |
| It leans on famous datasets | Supported | KMNIST became MNIST, and the 99.57%-accurate SAT-6 network became CIFAR-10 animal photos. |
| Non-standard architectures break it | Unresolved | Unusual hidden layer widths did not break CIFAR-10 recognition, but input and output dimensions stayed standard. |
| Higher accuracy helps recognition | No evidence, one pair | On SAT-6, 99.57% accuracy came with more confidence in a wrong answer, not a correct one. |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| True dataset | Network | Acc. (%) | Model answer | Conf. (%) | Score |
|---|---|---|---|---|---|
| CIFAR-10 | Model 1 | 82.36 | CIFAR-10 | 90 | Correct* |
| CIFAR-10 | Model 2 | 82.28 | CIFAR-10 | 92 | Correct* |
| CIFAR-10 (reordered) | Model 1 | 82.37 | CIFAR-10 | 72 | Fail |
| CIFAR-10 (shuffled) | Model 1 | 7.78 | CIFAR-10 (best guess) | 45 | Pass |
| KMNIST | Model 1 | 97.84 | MNIST | 80 | Partial |
| KMNIST | Model 2 | 97.58 | MNIST | 85 | Partial |
| True dataset | Network | Acc. (%) | Image type | In position | Any position | Name given |
|---|---|---|---|---|---|---|
| CIFAR-10 | Model 1 | 82.36 | Correct | 10 of 10 | 10 of 10 | CIFAR-10 |
| CIFAR-10 | Random | 83.95 | Correct | 10 of 10 | 10 of 10 | CIFAR-10 |
| KMNIST | Model 1 | 97.84 | Partial | 0 of 10 | 0 of 10 | MNIST |
| KMNIST | Random | 97.95 | No answer | No answer | No answer | No answer |
| SAT-6 | Model 2 high | 99.57 | Wrong | 0 of 6 | 0 of 6 | CIFAR-10, animals |
| SAT-6 | Model 2 low | 36.01 | Partial | 0 of 6 | 4 of 6 | Unknown |
| Session | Checked | Mismatched | Note |
|---|---|---|---|
| CIFAR-10, Model 1 (original) | 18 | 0 | One sign count was 62 against “about 61” |
| CIFAR-10, Model 2 (original) | 34 | 0 | |
| CIFAR-10, reordered | 21 | 0 | Similarity estimates within 0.03 |
| Fast food, Model 1 | 12 | 2 | One wrong filter total ( against ); correlation estimates up to 0.02 off |
| Fast food, Model 2 | 19 | 0 | |
| Fast food, Random | 30 | 0 |
Neural Network Interpretability
Neural network interpretability studies how models represent information and make predictions, and how to explain, test, or control their internal computations.
See all 342 papers