The source is the blog post “Sparks of Weight-Space Programming” (2026-11-02) by Takehi, Teoh, Zhang and Khattab of MIT CSAIL. The run logs are public at RikiyaT/lm_understand-logs, and the edited model at RikiyaT/Qwen3.5-0.8B-weight-space-programming.
Related lesson: /study/dl/transformer/
1. What it is
- A general-purpose LLM (GPT-6 Astra), with no optimizer or gradients, reads and interprets the weights of another neural network and edits them directly toward a natural-language goal, or writes them from scratch.
- It is a blog post plus released logs, not a paper. The authors themselves call it “sparks”, i.e. a very early stage, and say they are building benchmarks and a harness.
2. Experimental results
| Experiment | Target | Conditions | Result |
|---|---|---|---|
| Read: which game? | PPO policy MLP, 17K weights ×4 | Raw numbers only, no tools | 4/4 correct |
| Read: which shape? | DDPM MLP 24K ×3 | No tools | 3/3 correct (drew filled shapes as outlines) |
| Read: which language? | Character-level transformer 7M, middle 4 blocks only | Could analyze weights with Python, could not run the model | 3/3 correct, every induction head identified |
| Read: spot the sycophantic model | Gemma 3 270M honest/sycophantic pairs | Weights only | 0/4, failed. 3/3 when given a tool that exposes attention outputs |
| Write: fix a stuck RL policy | Kinetix car, 172K | One episode + the weights, single attempt | 0/256 → 1,024/1,024 successes, 3.5% of weights changed |
| Write: from scratch | MinAtar policies (zero-initialized) | Rules and code only, no data, in one go | Breakout 517 (PPO-500M 25), Seaquest 53 (89), Asterix 53 (55) |
| Write: Go | 1.48M 9×9 Go network | 50 forward passes allowed | Beat a same-size PPO network trained on 20 million games |
| Fix: LLM math | Qwen3.5-0.8B (thinking) | Python, no GPU or gradients, 50 forward passes | MATH-500 7.9 → 48.1, GSM8K 13.8 → 67.1, share of answers hitting the 32K limit 93% → 33% |
- How Qwen was fixed: it found the direction that produces repetition (looping) in the MLPs of layers 15 and 19, and subtracted that direction from 64 output columns in each. 131,072 weights were changed, 0.016% of the total.
- With 10 or 25 forward passes there was almost no improvement (12.3 and 14.1). The large gain appeared only at 50.
- Gemma 3 270M did not improve, because it repeated little to begin with (8.5%). The authors’ interpretation: “it can remove an obstacle that was in the way, but it cannot add a capability that isn’t there.”
- Cost, time and token counts were not disclosed.
3. Criticism and replications
| Source | Gist |
|---|---|
| Honnibal | The “just from the weights” framing is misleading. Only the three small 17K–172K models were done from raw numbers; the headline Qwen result used Python and model execution (50 forward passes). Failures were downplayed |
| Goedecke | A human could guess the game from a heatmap of first-layer norms. The Qwen edit is a standard steering/abliteration technique (Heretic-style). It is not a new paradigm, and training is the better path |
| Simon Willison | Reproduced the game guessing with a local Qwen 3.8 27B: 3/4 (failed on Freeway). 45–65 minutes per game, 40K+ reasoning tokens |
| Ahsen Khaliq (Hugging Face) | Rebuilt the edited Qwen checkpoint from the logs and reproduced MATH-500 51.0 |
| Chandan Singh | A Claude agent hand-wrote weights into an empty transformer and solved 10 algorithmic tasks at 100% (within 3 attempts). The language tasks were invalid because it looked at the evaluation set |
4. Takeaways
- What the Qwen result actually amounts to is closer to automating steering/abliteration: “an agent finds the repetition direction through activation analysis and subtracts it from the weights.” It is the same symptom as the context overflow and repetition collapse that show up during RL training, so a small experiment that hands repetition-direction removal to an agent, instead of training, is worth trying.
- That said, the effect was large because this was an extreme case: a 0.8B thinking model where 93% of outputs hit the length limit. A model that repeated little to begin with (Gemma) did not improve.
- It is still weak for auditing. Finding backdoors or sycophancy from the weights alone failed; a tool that runs the model was needed.
원문은 MIT CSAIL의 Takehi·Teoh·Zhang·Khattab이 쓴 블로그 “Sparks of Weight-Space Programming”(2026-11-02)이다. 실행 로그는 RikiyaT/lm_understand-logs, 고친 모델은 RikiyaT/Qwen3.5-0.8B-weight-space-programming에 공개되어 있다.
관련 레슨: /study/dl/transformer/
1. 무엇인가
- 범용 LLM(GPT-6 Astra)이 optimizer나 gradient 없이 다른 신경망의 가중치를 읽어 해석하고, 자연어 목표대로 직접 고치거나 처음부터 쓴다.
- 논문이 아니라 블로그와 로그 공개다. 저자들도 “sparks”, 즉 아주 초기 단계라고 하며 벤치마크와 harness를 만드는 중이라고 밝힌다.
2. 실험 결과
| 실험 | 대상 | 조건 | 결과 |
|---|---|---|---|
| 읽기: 어떤 게임? | PPO 정책 MLP 17K 가중치 ×4 | 도구 없이 숫자만 | 4/4 정답 |
| 읽기: 어떤 모양? | DDPM MLP 24K ×3 | 도구 없이 | 3/3 정답 (채운 도형을 윤곽선으로 그림) |
| 읽기: 어떤 언어? | 문자 단위 transformer 7M, 중간 4블록만 | Python으로 가중치 분석 가능, 실행 불가 | 3/3 정답, induction head 전부 맞춤 |
| 읽기: 아첨 모델 구분 | Gemma 3 270M 정직/아첨 쌍 | 가중치만 | 0/4 실패. attention 출력 도구를 주면 3/3 |
| 쓰기: 막힌 RL 정책 고치기 | Kinetix 자동차 172K | 에피소드 1개 + 가중치, 1회 | 0/256 → 1,024/1,024 성공, 가중치 3.5% 수정 |
| 쓰기: 처음부터 | MinAtar 정책 (0 초기화) | 규칙·코드만, 데이터 없음, 한 번에 | Breakout 517 (PPO-500M 25), Seaquest 53 (89), Asterix 53 (55) |
| 쓰기: Go | 1.48M 9×9 Go 네트워크 | forward 50회 허용 | 2천만 판 학습한 같은 크기 PPO를 이김 |
| 고치기: LLM 수학 | Qwen3.5-0.8B (thinking) | Python, GPU·gradient 없음, forward 50회 | MATH-500 7.9 → 48.1, GSM8K 13.8 → 67.1, 32K 한도 도달 비율 93% → 33% |
- Qwen을 고친 방법: 반복(looping)을 만드는 방향을 layer 15·19의 MLP에서 찾아, 출력 열 64개씩에서 그 방향을 빼냈다. 수정한 가중치는 131,072개로 전체의 0.016%다.
- forward 10회·25회로는 거의 고쳐지지 않았다(12.3·14.1). 50회에서만 큰 개선이 나왔다.
- Gemma 3 270M은 원래 반복이 적어(8.5%) 개선이 없었다. 저자들의 해석은 “막고 있던 장애물을 없앨 수는 있어도 없는 능력을 더하지는 못한다”는 것이다.
- 비용·시간·토큰 수는 공개하지 않았다.
3. 반론과 재현
| 출처 | 요지 |
|---|---|
| Honnibal | “가중치만 보고”라는 틀이 오해의 소지가 있다. 숫자만 본 것은 17K–172K 소형 3개뿐이고, Qwen 대표 결과는 Python과 모델 실행(forward 50회)을 썼다. 실패 사례가 축소되었다 |
| Goedecke | 게임 맞히기는 첫 층 norm heatmap으로 사람도 할 수 있다. Qwen 수정은 steering/abliteration(Heretic류)의 표준 기법이다. 새 패러다임이 아니며 학습이 더 나은 길이다 |
| Simon Willison | 로컬 Qwen 3.8 27B로 게임 맞히기를 재현해 3/4(Freeway 실패). 게임당 45–65분, reasoning 4만 토큰 이상 |
| Ahsen Khaliq (Hugging Face) | 로그로 Qwen 수정 체크포인트를 재구성해 MATH-500 51.0을 재현 |
| Chandan Singh | Claude agent가 빈 transformer에 손으로 가중치를 써서 알고리즘 과제 10개를 100% 해결(3회 이내). 언어 과제는 평가셋을 열람해 무효 |
4. 정리
- Qwen 결과의 실체는 “agent가 activation 분석으로 반복 방향을 찾아 가중치에서 빼는” steering/abliteration의 자동화에 가깝다. RL 학습 중 나타나는 context 초과·반복 붕괴와 같은 증상이라, 학습 대신 반복 방향 제거를 agent에게 맡겨 보는 작은 실험은 해 볼 만하다.
- 다만 0.8B thinking 모델에서 93%가 길이 한도에 걸리는 극단적인 경우라 효과가 컸다. 원래 반복이 적은 모델(Gemma)에서는 개선이 없었다.
- 감사(auditing) 용도로는 아직 약하다. 가중치만으로 백도어·아첨을 찾는 것은 실패했고, 모델을 실행하는 도구가 있어야 했다.