Skip to content
WeChat · AI Era (Xinzhiyuan)·Indexed by this site · Originally published· AI updates →

AI writes Python code into the Transformer architecture, DeepSeek-V4.1-Flash math accuracy improves by 7 percentage points

AI亲手改写Transformer架构!DeepSeek自我改造暴涨7分

AI summary

DoubleAI proposes a method called "mechanistic intervention," which lets a coding agent insert Python code layers into the network mid-training, and at inference time read internal activations and roll back erroneous trajectories in advance. The research claims that in 1500 steps of training a 12-layer nanochat, inserting code layers three times is equivalent to 15% extra training progress; when the memory window is limited to 500 words, a code cache layer inserted only at step 1200 reaches a recall rate of 72%, whereas one installed at step 0 reaches only 55%. Inserting 10 code layers in succession on 30 classic algorithms raised total accuracy from 55% to 84%. DeepSeek-V4.1-Flash, based on the solving trajectories of 243 math problems, wrote its own probe resampling program, raising accuracy on AIME and HMMT 2026 from 63.9% to 71.0%; Qwen3-8B rose from 58.5% to 65.5%, and neither updated its weights.

Read originalmp.weixin.qq.com