TESSAL: Chain Tensor-Sketched Deep Analytic Continual Learning

Owen Whitaker, Meilin Chen, Arjun Subramanian, Clara Lindholm, Henrik SolbergarXiv 2026

TL;DR

Continual learning usually forces an uncomfortable choice: store old data to prevent catastrophic forgetting, or suffer task-order sensitivity with gradient updates. Analytic continual learning dodges both by compressing an entire data stream into exact mathematical summary matrices—giving the exact same result as training on all data at once—but it was previously trapped in shallow, single-layer linear classifiers because deeper networks cause memory to explode to hundreds of terabytes. TESSAL shatters this "depth-1 barrier," compressing multi-layer networks into a constant 0.40 GB memory footprint and solving million-image continual streams in under 30 seconds.

What Problem Does This Paper Address?

Imagine teaching a vision model new classes week after week without letting it revisit old images (exemplar-free class-incremental learning). Standard gradient descent tends to overwrite old knowledge.

Analytic continual learning (ACIL) takes a radically cleaner route: freeze a strong pre-trained backbone (like a Vision Transformer) and fit a linear classifier on top using recursive ridge regression. Because linear least-squares only cares about feature correlations, ACIL can maintain two running, additive matrices of size $O(d^2)$—completely independent of the number of images $N$—and compute a closed-form solution mathematically identical to joint training on the entire history.

The catch? It only works for a single linear layer ($L=1$). When tasks involve severe domain shifts or fine-grained classes, linear boundaries underfit. If you try to extend exact correlation matrices to a depth-$L$ nonlinear network, the required "moment tensor" scales exponentially as $O((d+1)^{2L})$. Even at depth $L=2$ on standard ViT features, storing those statistics requires 236 terabytes; at $L=3$, it hits 820 petabytes. Meanwhile, naively compressing that tensor with standard randomized sketching causes approximation variance to blow up exponentially ($O(3^L/m)$) with depth.

Figure 1. Why deep analytic continual learning needs Chain TensorSketch. (a) Honest cross-task state accounting at ViT-B/16 dimen- sion d=768 and sketch width m=10k (0.40 GB). Full replay crosses the constant cache at N ∗≈130k, above all seven standard PTM-CIL benchmarks and 10×–21× below ImageNet-1K, Places365, and iNat21; exact L=2 deep moments sit off-chart at 236 TB. (b) Recursive Chain TensorSketch cuts norm-estimation variance from flat TensorSketch’s exponential O(3L/m) blow-up to linear O(L/m). (c) On Places365 (0.40 GB), TESSAL dominates shallow analytic methods, coresets, and full-batch GD on the accuracy–compute frontier.

Methods

TESSAL (Tensor-Sketched Sufficient-Statistic Analytic Learning) unlocks deep analytic continual learning through four interlocking ideas:

  1. Input-Coupled Multilinear Heads: Standard ReLU networks tangle weights and nonlinearities, breaking additive statistics. TESSAL uses Decoupled-Gate MLPs (and cousins like GaLU and $\Pi$-Nets), where each layer's nonlinear gate $\phi_\ell(x)$ depends only on the frozen input feature $x$ via fixed random projections, while the hidden path remains multilinear in the learnable weights. This cleanly separates the network output into an inner product between a learnable parameter tensor and a pure data tensor.
  2. Single-Pass Chain TensorSketch: Instead of forming or flat-sketching the massive $L$-way data tensor, TESSAL recursively folds each layer's gate features left-to-right using degree-2 TensorSketches (via fast Fourier transforms, or FFTs). Each image becomes a compact vector $z_L(x) \in \mathbb{R}^m$, accumulated into constant $O(m^2 + mC)$ matrices in one streaming pass before discarding the data.
  3. Zero-FFT Parameter Contraction: To optimize the deep weights against the sketched memory without materializing the giant parameter tensor, the weights must pass through the exact same sketch. Surprisingly, this requires zero FFTs—just $L-1$ sparse column hashes and circular row shifts.
  4. Variable-Projected Analytic Solver (VarPro-ACIL): Rather than running slow joint gradient descent across all layers, TESSAL solves the final classification layer $W_L^*$ in exact closed form at every step (via fast Cholesky decomposition) and updates earlier layers using inverse-free Envelope Theorem gradients—converging in just 80 steps without ever touching raw images.
Overview of TESSAL's streaming ingestion and data-free analytic solver.

Datasets

The authors evaluate TESSAL using frozen ViT-B/16 features across two distinct regimes:

  • Suite 1 (7 Standard Benchmarks): CIFAR-100, CUB-200, ImageNet-R, ImageNet-A, ObjectNet, OmniBenchmark, and VTAB. Notably, the authors point out that all seven standard benchmarks have fewer than $N^* \approx 130\text{k}$ images—meaning a standard 0.40 GB analytic cache is actually larger than just storing all the raw feature vectors!
  • Suite 2 (Million-Scale Streams Past Crossover): To test true compression (10×–21× past the $N^* \approx 130\text{k}$ storage crossover), they introduce a large-scale evaluation on ImageNet-1K (1.28M images), Places365 (1.80M images), and iNat21 (2.69M images, 10,000 classes), pinning all compressed methods to a strict 0.40 GB state budget.

Key Insights and Ideas

  • An Algebraic Free Lunch on the Parameter Side: Why does sketching the parameter tensor need zero FFTs? Under CountSketch, a single neuron's gate basis vector hashes to a 1-sparse impulse, and circularly convolving any vector with a 1-sparse impulse is literally just a signed circular array shift.
  • Linear-in-Depth Variance: Chaining degree-2 sketches left-to-right tames the variance of norm estimation from flat sketching's catastrophic $O(3^L/m)$ down to linear $O(L/m)$, keeping deep heads stable even at $L=5$.
  • Sketching Noise Acts as a Smart Regularizer: Because TESSAL's sketch is unbiased, the random sketching variance doesn't corrupt the linear target alignment—it only adds a positive $O(L/m)$ penalty to the quadratic term. Mathematically, this acts as an implicit regularizer on the overall multilinear function's norm (invariant to layer rescaling), explaining why sketched TESSAL slightly outperforms unregularized full-data replay!
Verification of implicit regularization, depth scaling, and VarPro convergence.

Key Results

  • Standard Benchmarks: At $L=3$ (0.40 GB state), TESSAL achieves 85.53% average final accuracy across Suite 1, beating shallow analytic baselines like RanPAC (+2.24 pts) and Fly-CL (+1.36 pts), with its biggest gains on tough domain-shift sets like ImageNet-A (+3.34 pts over RanPAC). Doubling RanPAC's width (4× more memory) recovers less than a quarter of TESSAL's depth advantage.
  • Million-Scale Streams: At 0.40 GB, TESSAL ($L=3$) beats RanPAC by +2.14 to +2.96 pts and uniform coresets by up to +7.94 pts. Remarkably, it edges past 10×–21× larger Full Replay (+0.16 to +0.82 pts) while running over 200× faster (29.8s total ingest + solve vs. 6,850s on Places365).
  • Extreme Class Counts: On iNat21 (10,000 classes), joint AdamW stalls at 59.48% after 4,200 seconds; TESSAL's VarPro-ACIL hits 61.38% in 24.8 seconds (169× faster).

Limitations and Future Work

While the provided main text does not include a standalone limitations section, two clear architectural boundaries are apparent from the formulation:

  • Frozen Backbone Requirement: Like prior analytic CL methods, TESSAL relies on a frozen pre-trained feature extractor (fixing any base adapter after Task 0) so feature statistics remain stationary and additive across tasks.
  • Input-Coupled Nonlinearities: To preserve exact multilinear separability, hidden nonlinear gates must depend on the raw input $x$ via fixed random projections rather than preceding learned activations—trading standard end-to-end ReLU representations for fast, constant-memory analytic solvability.

Summary updated

BibTeX
@misc{whitaker2026tessal,
  author = {Owen Whitaker and Meilin Chen and Arjun Subramanian and Clara Lindholm and Henrik Solberg},
  title = {{TESSAL: Chain Tensor-Sketched Deep Analytic Continual Learning}},
  year = {2026},
  eprint = {2611.36006},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36006},
}
Figure