Memorization Is Folding: Topological Signatures of Noisy-Label Learning

Zhongtian Sun, Fan Mo, Prayag Tiwari, Kelin XiaNeurIPS 2026

TL;DR

When neural networks train on noisy, conflicting labels, how does that tug-of-war reshape their internal geometry? By tracking topological "loops" in activation spaces, the authors discover that corrupted data leaves a measurable geometric signature—akin to spatial folding—long before the network actually memorizes the wrong labels in its final predictions.

What Problem Does This Paper Address?

We have known for years that deep neural networks can brute-force memorize completely random labels. Typically, networks learn clean, generalizable patterns early in training before bending over backward to fit noisy labels later on.

However, watching training accuracy only tells us when a network surrenders to bad labels—it tells us almost nothing about how the network reorganizes its internal representation space to pull it off. Imagine two very similar images of cats, where one is mislabeled as a "truck." In feature space, these neighbors receive competing training signals. Intuitively, the network has to "fold" or warp its representation space to accommodate the contradiction. The authors set out to measure these internal geometric contortions directly, separating true structural reorganization from simple changes in activation scale (like the whole point cloud just expanding).

Methods

To capture "folding" mathematically, the authors use persistent homology, a tool from topological data analysis.

Here is the intuition: take the penultimate-layer activations for a sample of 300 data points. Imagine slowly inflating a bubble around every point simultaneously. As the bubbles grow (increasing the distance threshold), points connect into edges, edges form 1D loops ($H_1$ features), and eventually, triangles fill those loops in. Total persistence ($\Phi$) sums the "lifetimes" of these loops—measuring how prominent and durable the loop structures are across scales.

What makes this approach rigorous is how the authors separate shape from size. If a network simply multiplies all its activations by 2, raw loop lifetimes double without the geometry changing at all. To isolate true structural changes, the authors pair raw Euclidean persistence with:

  • Scale-invariant ratios: Dividing loop persistence by connected-component persistence ($\Phi_{H_1}/\Phi_{H_0}$) or point-cloud diameter.
  • Normalised point clouds: Recomputing persistence using cosine dissimilarity, unit normalisation, z-scores, and RMS rescaling.
  • Within-model training probes: Tracking fixed subsets of clean vs. corrupted training examples inside the exact same training run.
Figure 2: Representation and persistent cycles in the synthetic two-Gaussian task, using seed 0 at epoch 10. The top and bottom rows show 0% and 50% of near-boundary labels flipped, respectively; the boundary region is |x0| < 1. Left: PCA projections of the 300-point subsamples of 64-dimensional activations, fitted separately for each condition. Colour denotes the observed label and crosses mark flipped labels. Black edges show a representative of the longest finite H1 bar, computed in the original 64-dimensional Euclidean Rips filtration over Z/2Z. Middle: the same representative projected onto its own first two principal components, with subsample points lying within its death radius of a cycle vertex. Right: persistence diagrams with the represented bar circled. Total persistence is 8.38 and 11.08, respectively. Neither displayed representative contains flipped points. Across 20 seeds, the longest-bar representatives show no detected enrichment for flipped points.

Datasets

The authors evaluate standard benchmarks across vision, text, and algorithmic tasks (introducing no new datasets, though using a synthetic 2D two-Gaussian setup for controlled geometric checks):

  • Vision: MNIST, FashionMNIST, CIFAR-10, CIFAR-100, CIFAR-10N (real-world human annotation noise), ImageNette, and Tiny-ImageNet.
  • Text: AG News (trained with DistilBERT).
  • Algorithmic: Modular addition and multiplication (primes 97 and 113) to study "grokking" (delayed generalization).

Key Insights and Ideas

  • Geometry warps before predictions flip: Late in training, subsets of mislabeled training images exhibit significantly higher loop persistence than clean subsets in the exact same model—even at a stage where the network still predicts the original, true class for 71–79% of those corrupted images! Internal geometric stress precedes output memorization.
  • Distant contradictions drive stronger persistence: When labels are swapped between classes that are far apart in clean feature space, the network develops much higher late-training persistence than when labels are swapped between nearby, similar classes.
  • Simpler metrics are better for estimating noise rates: If your only goal is calibrating how much noise is in a dataset early in training, you don't need topology. Simple mean activation norm predicts noise levels slightly better than raw persistence. Topology's real superpower here is descriptive: revealing scale-invariant structural changes.
  • Grokking looks like "unfolding": In modular arithmetic, when a network suddenly transitions from memorizing the training set to generalizing ("grokking"), raw loop persistence drops—suggesting the network simplifies its representation geometry.
Figure 1: Seed-level persistence comparisons. (a) Corrupted/clean ratios of ΦH1/ΦH0 on the fixed CIFAR-10/ResNet-18 training probe, with eight seeds per setting. Dots show within-run ratios and horizontal bars show their medians. These differ from the ratios of seed medians reported in Table 2. (b) Epoch-50 random/Patrini ratios for mean activation norm and cosine persistence. Each dot shows one seed’s median ratio across three nominal settings. The random arm changes approximately 1.8 times as many labels as the Patrini arm, so the comparison includes differences in both corruption rate and relabelling structure. Both panels use logarithmic vertical axes. Dashed lines mark a ratio of one.

Key Results

  • Training-subset contrast: On a fixed CIFAR-10/ResNet-18 probe, clean and corrupted subsets show no detectable difference at epoch 10. By epoch 50, corrupted subsets show higher raw persistence by factors of 1.29 (25% noise) and 1.37 (50% noise), and scale-invariant $\Phi_{H_1}/\Phi_{H_0}$ ratios of 1.23 and 1.28 ($p = 0.0078$). Yet only 7–11% of predictions on corrupted items match the false label at epoch 50.
  • Trajectory crossovers vary by pipeline: On CIFAR-10/ResNet-18, noisy persistence starts lower than clean persistence and crosses above it at epoch 20 (normalised) or 30 (raw). However, CIFAR-100/ResNet-18 and FashionMNIST show no crossover under any tested distance construction.
  • Noise calibration: Across five pipelines at epoch 10, mean activation norm achieves a mean in-sample $R^2$ of 0.936 for predicting nominal noise rates, outperforming raw persistence (0.908) and unit-normalised persistence (0.606).
  • Grokking: Across 12 Transformer runs on modular arithmetic, raw persistence drops in 10 runs during generalization, with a mean change ($\Delta\Phi_{\text{grok}}$) of $-35.2$.

Limitations and Future Work

The authors are refreshingly candid about what persistent homology cannot claim yet:

  • "Folding" is an intuition, not a proven unique cause: When fitting class-conditional Gaussians to the clean and corrupted subsets, excess persistence did not significantly differ ($p \ge 0.25$), meaning class composition, covariance, and anisotropy could also explain the loop differences.
  • Pipeline dependence: Trajectory behaviors (like clean vs. noisy crossovers) depend heavily on architecture, dataset, and sampling budgets ($n=300$ global vs. per-class), meaning diagnostics must be calibrated per pipeline.
  • Open directions: Future work needs to test whether the grokking persistence drop survives scale normalisation, extend piecewise-affine geometric theory to LayerNorm and attention mechanisms, and sweep across different persistence lifetime cutoffs and finer checkpoint intervals.

Summary updated

Abstract

How does noisy supervision change the representations learned by a neural network? Training accuracy measures agreement with training labels but provides little information about representation geometry. We use persistent homology to track loop structure across distance thresholds in neural activations. Experiments span image classification, text classification, and modular arithmetic. On a fixed CIFAR-10/ResNet-18 training probe, equally sized clean-label and corrupted-label subsets show no detectable persistence difference at epoch 10, whereas corrupted-label subsets have higher persistence at epoch 50. The contrast survives uniform-scale controls, even though predictions match the assigned noisy labels for only 7–11% of corrupted probe examples at that checkpoint. Normalisation preserves the crossover between clean and noisy training trajectories on CIFAR-10/ResNet-18, whereas CIFAR-100/ResNet-18 shows no crossover under any of the five evaluated constructions. In a separate noise-rate calibration comparison across five pipelines, mean activation norm achieves a higher mean in-sample R² than raw persistence (0.936 versus 0.908). These findings show that noisy supervision leaves a measurable geometric signature even when agreement with corrupted labels is low. Tracking scale-controlled persistence alongside label fitting offers a way to study how networks reorganise their internal representations during training. This provides a basis for developing training diagnostics that complement accuracy.
BibTeX
@inproceedings{sun2026memorization,
  author = {Zhongtian Sun and Fan Mo and Prayag Tiwari and Kelin Xia},
  title = {{Memorization Is Folding: Topological Signatures of Noisy-Label Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ahmoHHobId},
}
Figure