Amortized Latent Steering: Low-Cost Alternative to Test-Time Optimization
Nathan Egbuna, Saatvik Gaur, Sunishchal Dev, Ashwinee Panda, Maheep Chaudhary
TL;DR
Amortized Latent Steering (ALS) converts expensive test-time optimization into a single offline computation by deriving a steering vector $\mathbf{v} = \mathbb{E}[h_{\text{correct}}] - \mathbb{E}[h_{\text{incorrect}}]$ from successful versus failed reasoning. During inference, ALS applies a lightweight intervention $h_t' = h_t + \alpha \mathbf{v}$ whenever $\cos(h_t, \mathbf{v})$ falls below $\tau$, yielding constant-time updates with negligible overhead. Across GSM8K and MATH-500, ALS achieves $2$-$5\times$ speedups over iterative latent methods while matching or surpassing greedy CoT and Self-Consistency baselines, with up to a $101\%$ improvement in efficiency--accuracy trade-off on challenging tasks. The results suggest much of latent-optimization benefits can be captured offline, enabling production deployment of sophisticated reasoning systems, albeit with architecture-dependent effects and reliance on offline ground-truth data. Code is available at the provided URL.
Abstract
Test-time optimization remains impractical at scale due to prohibitive inference costs--techniques like iterative refinement and multi-step verification can require $10-100\times$ more compute per query than standard decoding. Latent space test-time optimization methods like LatentSeek offer a more direct approach by steering hidden representations, but still demand expensive per-query optimization loops with multiple backward passes. We propose Amortized Latent Steering (ALS), which collapses this iterative optimization into a single offline-computed vector applied at constant cost during inference. ALS computes the mean difference between hidden states from successful versus unsuccessful generations, then uses this direction to calibrate the model's hidden representations: when decoding drifts away from the success manifold, ALS nudges activations back toward it. Across GSM8K and MATH-500 benchmarks, ALS achieves $2-5\times$ speedup over iterative methods while matching or surpassing greedy Chain-of-Thought (CoT) and Self-Consistency baselines, yielding up to 101% improvement in efficiency--accuracy trade-off. These results show that much of latent optimization's benefit can be captured offline, making sophisticated reasoning techniques viable for production deployment. Code is available at https://github.com/negbuna/ALS.
