414k 参数 Transformer 学会 Boids 群飞,线性探针读出的规则是否真被使用?
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]
有人用 Python 和 PyTorch 从零训练了一个约 414k 权重的 Transformer(每只鸟一个 token、两层注意力),在 12 只鸟的 boids 模拟数据上预测每只鸟的下一步动作,4 次完整运行在未见片段上取得 R² 0.990–0.994,还能泛化到 50 只鸟。
| 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:
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 submitted by /u/rage_81[link] [留言] |
来源:r/MachineLearning · reddit.com