Time Series Reveal Neural Network Internal States: A New Method for MG Dimension Estimation

Research proposes the MG metric, using delay embedding to estimate local intrinsic dimension from scalar time series to diagnose neural network training dynamics.
This study proposes a lightweight diagnostic metric called MG: delay-embed scalar time series recorded during training (loss, weight norms, neuron activations), then estimate the local intrinsic dimension of the delay vectors using the MacKay-Ghahramani variant of the Levina-Bickel estimator, inferring system complexity or degrees of freedom without accessing internal states. Validated on recurrent networks, ResNet-18, text VAEs, and self-supervised encoder selection, MG reflects periodic motion dimensions, constraints from frozen feature extractors, and decoder dependence on latent codes; on unlabeled MNIST, selecting encoders by gradient-norm MG yields test accuracy only 0.41 percentage points below the group's best. The authors see potential for hyperparameter selection, early stopping, and encoder evaluation, though causality with generalization and robustness need further verification.
Title
Time Series Reveal Neural Network Internal States: A New Method for MG Dimension Estimation
Meta Description
This research proposes the MG method, which uses delay embedding and local intrinsic dimension estimation to reveal neural network internal states from time series of loss, weight norms, or neuron activations, validated on recurrent networks, ResNet-18, text VAEs, and self-supervised learning encoder selection.
Article Content
When training neural networks, recording time series of loss values or weight norms costs almost nothing. But do these scalar series hide clues about changes inside the network? A recent study proposes that by using delay embedding and local intrinsic dimension estimation, meaningful signals about network dynamics can be extracted from one-dimensional time series—they call this "MG."

Method Core: From Scalar Series to Dimension Estimation
For a scalar x recorded over time, the researchers sample at fixed time lags to construct delay vectors. They then use the MacKay-Ghahramani (MG) variant of the Levina-Bickel estimator to estimate the local intrinsic dimension of the distribution of these delay vectors. This variant aggregates the log ratios of nearest-neighbor distances, yielding a scalar value—the MG of x.
The value of this method lies in the fact that it does not require access to the network's internal states; the complexity or degrees of freedom of the system can be inferred solely from externally observable time series. For loss, weight norms, or neuron activations during training, MG provides a low-cost diagnostic tool.
Delay Embedding is a classic technique in dynamical systems analysis, with its theoretical foundation in Takens' theorem: for deterministic chaotic or low-dimensional dynamical systems, a scalar observation sequence alone, when reconstructed with appropriately chosen delays and embedding dimensions, produces delay-vector trajectories that are equivalent to trajectories in the original system's state space in the sense of diffeomorphism. In other words, the "history" of a scalar series contains information about all degrees of freedom of the system. In practice, the delay length is typically taken at the first zero-crossing of the series' autocorrelation or the first minimum of mutual information, and the embedding dimension can be estimated via the false nearest neighbors method. The MG method leverages this principle by mapping a one-dimensional training curve into a high-dimensional point cloud and then performing local dimension analysis on the point cloud, thereby converting the "shape" of the time series into a comparable geometric quantity.
Local intrinsic dimension estimation focuses on the dimension actually spanned by a data point cloud within a certain neighborhood, rather than the global linear dimensionality. The Levina-Bickel estimator's approach is: among the k nearest neighbors of a data point, the rate at which the distance to the i-th neighbor grows with i reflects the power-law relationship of local density with radius, and its exponent is the local dimension. The MacKay-Ghahramani (MG) variant no longer fits each point individually but instead aggregates the log ratios of nearest-neighbor distances across all points to form a global summary statistic. The resulting scalar is more robust to sampling noise and more suitable for comparing relative complexity across different training stages or different models. Note that MG is a relative metric rather than an absolute dimension: its value approaches 1 when the scalar series is close to a periodic orbit, while chaotic or high-degree-of-freedom signals yield higher values.
Experimental Validation: From Periodic Motion to ResNet-18
The researchers validated MG's effectiveness across multiple scenarios. In a recurrent network learning periodic motion, the MG of the activation time series of a single hidden neuron was close to 1, consistent with the expected dimension of a periodic orbit.
On ResNet-18, freezing the feature extractor reduced the MG of weight norms and concentrated weight updates in fewer directions. This indicates that MG can reflect the impact of training strategies on the network's internal degrees of freedom.
Applications in Text VAEs and Self-Supervised Learning
In a text variational autoencoder, the MG of the reconstruction loss for fixed sentences was lower in settings where the decoder relies less on the latent code. This suggests that MG can measure the model's degree of dependence on latent variables.
More strikingly, the researchers used MG to select among candidate encoders trained on unlabeled MNIST digits, each trained with SimCLR, SimSiam, BYOL, and VICReg respectively. For each frozen encoder, they fitted a logistic regression classifier to predict digit labels. In preliminary experiments, the MG of gradient norms in later training stages was positively correlated with classifier accuracy. When selecting the encoder with the highest gradient-norm MG in each leave-out run, its test accuracy was on average only 0.41 percentage points below the maximum of that group of encoders.
SimCLR, SimSiam, BYOL, and VICReg are four representative self-supervised representation learning frameworks. None of them use labels; instead, they learn transferable features by constructing positive/negative sample pairs or regularization terms. SimCLR relies on large-batch negative samples and contrastive loss; SimSiam avoids representation collapse through stop-gradient without needing negative samples; BYOL employs a momentum teacher network and a prediction head for bootstrapping; VICReg explicitly regularizes the variance, invariance, and covariance of embeddings. The four differ markedly in training dynamics, so the geometric characteristics of their gradient-norm time series may also differ. The researchers used MG to perform label-free ranking of frozen encoders, essentially testing whether "the dynamic complexity of the training process" can serve as a proxy signal for representation quality—offering a low-cost screening approach for scenarios without validation sets or with expensive labels.
Significance and Limitations
MG offers a new perspective for understanding neural network training: even with only scalar time series, changes in internal representations can be glimpsed. It may aid hyperparameter selection, early stopping, or encoder evaluation. However, the current research is still preliminary; the causal relationship between MG and generalization performance remains unclear, and the method's robustness and generality require further validation.
Nevertheless, the innovation of this work lies in introducing dimension estimation tools from dynamical systems theory into deep learning diagnostics, providing practitioners with a lightweight analytical approach. In the future, as more experiments are conducted, MG may become one of the standard tools for monitoring neural network training.
One-line Summary
This research proposes the MG metric, which uses delay embedding to estimate local intrinsic dimension from scalar time series to diagnose neural network training dynamics.
Paragraph Summary
This study proposes a lightweight diagnostic metric called MG: delay-embed scalar time series recorded during training (such as loss, weight norms, and neuron activations), then estimate the local intrinsic dimension of the delay vectors using the MacKay-Ghahramani variant of the Levina-Bickel estimator, thereby inferring the system's complexity or degrees of freedom without accessing the network's internal states. Experiments cover recurrent networks, ResNet-18, text VAEs, and self-supervised encoder selection: MG can reflect the dimension of periodic motion, the constraints of a frozen feature extractor on weight updates, and the decoder's dependence on latent codes, and on unlabeled MNIST it selects encoders by gradient-norm MG with test accuracy only 0.41 percentage points below the group's best. The authors believe MG has potential for hyperparameter selection, early stopping, and encoder evaluation, but its causal relationship with generalization performance and its robustness remain to be verified.
Related articles

AI for All Americans? Task Force Sparks Discussion
A Hacker News post about the Task Force Realizing AI's Promise for All Americans explores the vision and challenges of AI for all, including the digital divide, skills transition, and trust issues, and explains the tech community's lukewarm response.

misa77: The Open-Source Compression Newcomer That Decompresses 3x Faster Than zstd
misa77 debuts on Hacker News claiming decompression up to 3x faster than zstd with better compression ratios. We analyze why decompression speed matters more than compression, the speed-ratio trade-off, and what to verify before adoption.

Optimizing Decision Models with Side-Questioning: An Underrated Tuning Approach
Drawing from a Hacker News discussion, this article explores optimizing decision models via side-questioning: bypassing final answers to probe intermediate reasoning, boosting signal density, catching fragile judgments early, and weighing question design against cost.