Cyclic perturbations encode memories in trained neural networks without loss of performance
Max Kerr Winter, Liesbeth M. C. Janssen
Abstract
Many disordered materials exhibit a remarkable form of memory: they retain information about the history of cyclic perturbations. Whether this phenomenon also occurs in artificial neural networks, whose mathematical structure and dynamics share many similarities with disordered physical systems, is unknown. Here we show that cyclically perturbing a trained, overparameterized deep neural network encodes information in the structure of the weights that can subsequently be retrieved, thus retaining memory of the perturbation history. During each write cycle, all weights are displaced, after which the network relaxes through gradient descent. Repeated cycles organise the neural network into a state that is reversible for perturbations up to the write amplitude, allowing the encoded value to be read from the onset of irreversible weight motion. Multiple memories can also be encoded, although under deterministic writing only the largest persists at long times. Inspired by cyclically sheared suspensions, we introduce a novel noisy-write protocol that preserves all encoded memories at long times. Remarkably, neither deterministic nor noisy memory writing measurably affects the network's performance on unseen data from its original learning task. Our results establish cyclic memory as a phenomenon shared by disordered physical systems and deep neural networks, and show that networks can exploit as yet unexplored memory capabilities without compromising their original function.
Create a lesson
Related papers
Fast Neural Noise Stabilizes Associative Memory against Slow Synaptic Noise
Shared title terminology · Tomoki Kurikawa, Kunihiko Kaneko
Connectivity from activity in spiking neural networks
Shared title terminology · Albert J. Wakhloo, Sebastian Mizera
Emulating spatially extended systems using Fourier Neural Operator
Shared title terminology · Gabriele Poccianti, Duccio Fanelli
Finite-width shift of the edge of chaos in deep neural networks
Shared title terminology · Arn Caesar
Neural Networks with Exciton-Polariton Waveguides
Shared title terminology · Huawen Xu, Ruiqi Bao, Lingyu Tian et al.
Memory flows: geometry and dynamics of sequential retrieval in input-driven Hopfield networks
Shared title terminology · Simone Betteti, Matteo Martin, Morten Gram Pedersen et al.