Latent States in Neural Networks: Recovering the Temporal Structure of Drifting Data from Model Weights

📅 2026-07-29
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the problem of recovering latent discrete states from the evolving weights of models trained on time-varying data streams to characterize non-stationary distributional shifts. The proposed approach trains classifiers over sliding time windows, aligns their weight trajectories, and fits a hidden Markov model (HMM) to these trajectories—enabling, for the first time, the identification of semantically coherent temporal phases solely from weight dynamics. Experiments on the Fakeddit and Yelp datasets demonstrate that transfer performance within the same inferred state significantly outperforms cross-state transfer, and this advantage persists independently of temporal proximity and shifts in class distribution. These findings confirm that model weights encode structural information about data distributions that extends beyond local temporal correlations.
📝 Abstract
A temporally drifting data stream may pass through discrete regimes rather than changing continuously. We ask whether such regimes are recoverable from the weights of models trained on the stream, using a hidden Markov model (HMM) fit to the chronologically ordered trajectory of those weights. We study this question in two domains known to drift over time: multimodal misinformation detection, using the Fakeddit dataset; and sentiment analysis, using the Yelp dataset. We train classifiers on consecutive temporal windows and fit an HMM to the trajectory of their aligned weights, recovering latent states that partition each timeline into coherent phases. On both datasets, classifiers generalize better to data from windows sharing the state of their training window than to windows across state boundaries. This within-state transfer advantage survives a control for temporal proximity and modestly exceeds the advantage recovered by a naive partition into contiguous states of equal size. Although the states are estimated solely from model weights, they correlate more strongly with shifts in the data's class distribution than with the weight-space geometry used to estimate them. After class divergence and lag are residualized out, the within-state advantage exceeds its permutation null on both tasks, indicating that the states recover structure relevant to transfer beyond the data distribution. Every effect replicates on both tasks but is attenuated on Yelp, whose label distribution is more temporally stable.
Problem

Research questions and friction points this paper is trying to address.

latent states
temporal drift
model weights
data distribution shift
transfer learning
Innovation

Methods, ideas, or system contributions that make the work stand out.

latent states
temporal drift
model weights
hidden Markov model
distribution shift