Breaking the Memory Wall: Exact Analytical Differentiation via Tiled Operator-Space Evolution
Shuhuan Wang, Yuzhen Xie, Jiayi Li, and Yinliang Diao

TL;DR
This paper introduces Phase Gradient Flow (PGF), a novel method for exact analytical differentiation in State Space Models that drastically reduces memory usage, enabling large-scale genomic modeling on consumer hardware.
Contribution
We propose PGF, a framework that computes derivatives directly in the state-space manifold, achieving O(1) memory complexity and enabling chromosome-scale sensitivity analysis.
Findings
94% reduction in peak VRAM usage
23x increase in throughput over Autograd
Able to process 128,000-step sequences on a single GPU
Abstract
Selective State Space Models (SSMs) achieve linear-time inference, yet their gradient-based sensitivity analysis remains bottlenecked by O(L) memory scaling during backpropagation. This memory constraint precludes genomic-scale modeling (L > 10^5) on consumer-grade hardware. We introduce Phase Gradient Flow (PGF), a framework that computes exact analytical derivatives by operating directly in the state-space manifold, bypassing the need to materialize the intermediate computational graph. By reframing SSM dynamics as Tiled Operator-Space Evolution (TOSE), our method delivers O(1) memory complexity relative to sequence length, yielding a 94% reduction in peak VRAM and a 23x increase in throughput compared to standard Autograd. Unlike parallel prefix scans that exhibit numerical divergence in stiff ODE regimes, PGF ensures stability through invariant error scaling, maintaining…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsParallel Computing and Optimization Techniques · Ferroelectric and Negative Capacitance Devices · Low-power high-performance VLSI design
