[](https://jxnl.co/writing/2025/08/30/context-engineering-compaction/#__codelineno-0-1)θ_{t+1} = θ_t - α∇L(θ_t) + β(θ_t - θ_{t-1})