Koopman Autoencoders Learn Neural Representation Dynamics
Nishant Suresh Aswani, Saif Eddin Jabari
TL;DR
This work reframes neural network layerwise representations as nonlinear dynamical systems and introduces Koopman autoencoders (KAEs) to learn a surrogate linear evolution in an observable space. By coupling an encoder $\phi$, a decoder $\phi^{-1}$, and a linear operator $\mathcal{K}$, KAEs interpolate and edit neural representation trajectories with a loss that enforces reconstruction, linearity in the observable space, state-space consistency, and topology preservation via encoder isometry. The authors demonstrate that KAEs yield intermediate representations whose topology progressively simplifies, akin to the original network, and show practical model editing via EMMET, achieving targeted unlearning on MNIST but with caveats on datasets lacking neural collapse. The framework leverages topology (Betti numbers) and RSA-inspired metrics to quantify and interpret representation dynamics, offering a tool for analysis and rapid, targeted interventions in deep models with potential applications in safety and alignment.
Abstract
This paper explores a simple question: can we model the internal transformations of a neural network using dynamical systems theory? We introduce Koopman autoencoders to capture how neural representations evolve through network layers, treating these representations as states in a dynamical system. Our approach learns a surrogate model that predicts how neural representations transform from input to output, with two key advantages. First, by way of lifting the original states via an autoencoder, it operates in a linear space, making editing the dynamics straightforward. Second, it preserves the topologies of the original representations by regularizing the autoencoding objective. We demonstrate that these surrogate models naturally replicate the progressive topological simplification observed in neural networks. As a practical application, we show how our approach enables targeted class unlearning in the Yin-Yang and MNIST classification tasks.
