← 回總覽

Andrej Karpathy 展示神经网络训练的 AI 自我优化能力

📅 2026-03-11 11:59 Min Choi 人工智能 3 分鐘 3052 字 評分: 88
AI 自我改进 Andrej Karpathy 神经网络优化 自主研究 LLM 训练
📌 一句话摘要 Andrej Karpathy 的自主研究智能体成功识别了约 20 项技术改进来优化 GPT-2 训练,实现了 11% 的性能提升。 📝 详细摘要 Min Choi 重点介绍了 Andrej Karpathy 的一项突破:一个 AI 智能体在两天内自主研究并调优了一个神经网络 (nanochat)。该智能体提出并验证了大约 20 项可叠加的改进——包括调优 AdamW beta 参数、权重衰减和 QKnorm 缩放因子——将 GPT-2 的训练时间从 2.02 小时缩短至 1.80 小时。这展示了从手动迭代优化向自主 AI 驱动研究的转变,Karpathy 预测这一策略将被

Three days ago I left autoresearch tuning nanochat for ~2 days on depth=12 model. It found ~20 changes that improved the validation loss. I tested these changes yesterday and all of them were additive and transferred to larger (depth=24) models. Stacking up all of these changes, today I measured that the leaderboard's "Time to GPT-2" drops from 2.02 hours to 1.80 hours (~11% improvement), this will be the new leaderboard entry. So yes, these are real improvements and they make an actual difference. I am mildly surprised that my very first naive attempt already worked this well on top of what I thought was already a fairly manually well-tuned project. This is a first for me because I am very used to doing the iterative optimization of neural network training manually. You come up with ideas, you implement them, you check if they work (better validation loss), you come up with new ideas based on that, you read some papers for inspiration, etc etc. This is the bread and butter of what I do daily for 2 decades. Seeing the agent do this entire workflow end-to-end and all by itself as it worked through approx. 700 changes autonomously is wild. It really looked at the sequence of results of experiments and used that to plan the next ones. It's not novel, ground-breaking "research" (yet), but all the adjustments are "real", I didn't find them manually previously, and they stack up and actually improved nanochat. Among the bigger things e.g.:

  • It noticed an oversight that my parameterless QKnorm didn't have a scaler multiplier attached, so my attention was too diffuse. The agent found multipliers to sharpen it, pointing to future work.
  • It found that the Value Embeddings really like regularization and I wasn't applying any (oops).
  • It found that my banded attention was too conservative (i forgot to tune it).
  • It found that AdamW betas were all messed up.
  • It tuned the weight decay schedule.
  • It tuned the network initialization.
This is on top of all the tuning I've already done over a good amount of time. The exact commit is here, from this "round 1" of autoresearch. I am going to kick off "round 2", and in parallel I am looking at how multiple agents can collaborate to unlock parallelism. github.com/karpathy/nanoc…

All LLM frontier labs will do this. It's the final boss battle. It's a lot more complex at scale of course - you don't just have a single train. py file to tune. But doing it is "just engineering" and it's going to work. You spin up a swarm of agents, you have them collaborate to tune smaller models, you promote the most promising ideas to increasingly larger scales, and humans (optionally) contribute on the edges.

And more generally, any metric you care about that is reasonably efficient to evaluate (or that has more efficient proxy metrics such as training a smaller network) can be autoresearched by an agent swarm. It's worth thinking about whether your problem falls into this bucket too.

查看原文 → 發佈: 2026-03-11 11:59:05 收錄: 2026-03-11 14:00:44

🤖 問 AI

針對這篇文章提問,AI 會根據文章內容回答。按 Ctrl+Enter 送出。