I trained a 414k-parameter transformer to fly a boids flock, then tested whether the rules a probe can read are the ones it uses [P]

Reddit r/MachineLearning Papers

Summary

作者训练了一个 414k 参数的从零实现的 Transformer 来模仿 boids 鸟群行为,并用线性探针研究模型内部表征的三条 boids 规则是否与其实际使用机制一致,发现 cohesion 可在训练前读出、alignment 依赖第二注意力层,且首次训练的模型实际并未利用鸟群信息。

I wrote a small boid simulator (12 birds), recorded it flying, and trained a transformer to predict each bird's next move without it knowing about any boid rules. (built in Python and PyTorch: a transformer written from scratch, one token per bird, two attention layers, about 414k weights, trained on a laptop CPU) what I found: it flies the flock: R² 0.990 to 0.994 on clips it never trained on, across 4 full runs. It also flies 50 birds (it has only trained on 12). for comparison, a small network that only gets a bird's own move plus the flock's average move (no attention, no positions) gets R² 0.40. one seed, same held-out clips. the three rules were easy to read out of its hidden states with a linear probe. cohesion (stay close to your neighbours) could be read before any training (probe R² about 0.85). alignment (line up with your neighbours) was readable after the first attention layer, but if I make the second layer attend only to itself, it is gone in all 4 runs. what I wasn't expecting: my first ever model was not using the flock at all. With 8 ticks of history, the previous answer was already in the input, and a small network that saw only one bird beat the whole transformer. what I am still not sure about: making a layer attend only to itself is something the model never went through during training. is that a fair test, or is some of the decay due to strange input fed to the model? site: https://kreptiliri.github.io/murmuration/ code: https://github.com/kreptiliri/murmuration
Original Article

Similar Articles

Transformers Stop Thinking Too Early, and a Tiny LoRA Fixes It

Hugging Face Daily Papers

研究发现预训练 transformer 在遵循上下文引用时极少使用其深度(仅可靠遵循 1.4-3.6 行),而一个冻结所有权重、只在早期层添加的 rank-8 LoRA 即可大幅扩展该能力——Qwen3-8B 在 24 行链上的精确准确率从 15.5% 提升至 99%。LoRA 起到'接力'作用,使程序行通过中间层传递链身份信息。

@mylifcc: They took 2.3 million pieces of 'thinking process' data left by Claude (a very powerful and expensive AI) during inference, and used it to train a very small model (Qwen3-4B, only 4 billion parameters). As a result, this small model performed very 'consistent' in tests: In 512 different tests, the output was exactly the same every time...

X AI KOLs Timeline

Using 2.3 million pieces of Claude inference trajectory data to distill the Qwen3-4B model, resulting in a small model with 100% output consistency and extremely low hallucination. Moreover, the student model was not limited by the teacher model, and it also converged to a universal truth.

@tanzhengmc97: https://x.com/tanzhengmc97/status/2066531753762656730

X AI KOLs Timeline

Explained the operating principles of large models in easy-to-understand language, including word vectors, Transformer attention mechanism, next-word prediction training, and emergent abilities, suitable for beginners to understand basic AI concepts.

@snowboat84: Continuing the discussion on applying physical models in AI. Today's Transformer uses attention to allow information at different positions in a sequence to interact, but this mixing is very likely lossy and irreversible. Independent pieces of information get blurred and lost as they mix, and it's impossible to precisely reverse-engineer the input from the output. What we want is a different kind of interaction...

X AI KOLs Timeline

The author discusses the problem of information loss and irreversibility caused by the Transformer's attention mechanism, and proposes drawing inspiration from the physical model of soliton propagation to design a reversible, zero-loss interaction layer as a direction for improving existing AI model architectures.

Spatial Induction Heads: In-Context Learning of Multidimensional Cellular Automata

arXiv cs.LG

本文提出"空间感应头"(spatial induction heads),一种两层 gather-and-match 电路,解释 Transformer 如何在多维细胞自动机的序列化数据中进行上下文学习。研究表明,该电路可逼近贝叶斯后验并在确定性规则上实现精确预测,训练后的两层 Transformer 能泛化到未见过的规则。