SING-CH: Task-Scale-Agnostic Lifelong Cross-Modal Hashing on Statistical Manifolds

Haoran Yang, Junge Chen, Jun Long, Zhan YangNeurIPS 2026

TL;DR

When retrieval systems learn continuously from streams of images and text, standard anti-forgetting methods secretly tie how "important" a past memory is to how big that dataset happened to be—meaning a massive task will bully smaller ones unless you hand-tune hyperparameters on the fly. SING-CH fixes this unit mismatch using information geometry, treating a single cross-modal relationship (rather than a whole task) as the fundamental statistical unit. The result is a plug-and-play lifelong hashing framework that stays sharp even when consecutive tasks vary in size by over a thousand-fold.

What Problem Does This Paper Address?

Imagine searching a massive database using text to find images (cross-modal retrieval). To make searches blazingly fast, systems compress high-dimensional data into compact binary strings—64-bit hash codes—and compare them via Hamming distance.

In the real world, data arrives in a continuous stream of new tasks and categories. Updating your hashing model without wiping out old knowledge (catastrophic forgetting) is tough, especially in a tightly constrained binary space. Standard continual learning tricks like Elastic Weight Consolidation (EWC) protect old tasks by estimating parameter "importance" (via the Fisher Information Matrix, or FIM) and penalizing changes to crucial weights.

Here’s the catch: cross-modal hashing learns from pairs of items ($n_t$ samples create $n_t^2$ pairs). Standard importance estimators accumulate across examples, inadvertently baking the size of the task into the importance score. If Task A has 500 pairs and Task B has 50,000, the penalty fluctuates by orders of magnitude. Without costly per-task hyperparameter tuning, your model either forgets small tasks or freezes up after big ones. Furthermore, pairwise similarity losses aren't probabilistic, meaning you can't easily compute a true Fisher matrix anyway.

Methods

The authors introduce SING-CH (Scale-Invariant Normalized Gradient for Cross-modal Hashing), rethinking the pipeline from the ground up:

Figure 1: Overview of the proposed SING-CH framework.
  • Novel — Pairwise Gibbs Reconstruction: To give the parameter space a proper statistical manifold structure, they remodel pairwise similarity errors as a Gibbs probability distribution. By taking a single ordered pair as the statistical unit, the log-likelihood and resulting empirical FIM naturally pick up a $1/n_t^2$ normalization factor—turning a growing sum into a clean per-pair average.
  • Novel — Decoupled Optimization: Rather than applying natural gradient descent to the whole objective, SING-CH decouples the Roles: the diagonal, unit-calibrated FIM acts strictly as a geometric regularizer to anchor old tasks, while standard Adam (which implicitly acts as a diagonal natural gradient) preconditions the new task.
  • Standard — Encoders & Auxiliary Losses: Image (VGG) and text (Bag-of-Words) backbones project inputs into continuous embeddings via temperature-annealed tanh activations before binarizing. Standard proxy, variance, and bit-decorrelation losses help shape clean hash codes during training, without touching the FIM calculation.

Datasets

No new datasets are introduced, retrieve-and-forget resistance is tested on three classic multi-modal benchmarks using VGG-4096 image features and BoW text features:

  • MIRFlickr-25K (20,015 pairs, 24 classes)
  • NUS-WIDE TC21 (50,000 pairs, 21 overlapping classes with heavy distribution shift)
  • MS-COCO (50,000 pairs, 80 classes)

To stress-test scale invariance, the authors slice these into three streaming protocols: Uniform (5 even tasks), Long (10 tasks), and Extreme (5 tasks with a massive 1,192$\times$ size disparity, ranging from 29 to 34,562 pairs).

Key Insights and Ideas

  • Scale vs. Shape (Why pure Natural Gradient fails here): You might think, "Since we have a nice Fisher matrix, why not use Natural Gradient Descent to optimize everything?" Theorem 3.7 delivers a great "aha" moment: while the FIM's scale (mean) is invariant to task size, its shape (eigenvalue spread) gets noisy on tiny tasks ($9.7\times$ coordinate spread). Inverting the current task's noisy FIM to precondition the old tasks' penalty creates a "metric mismatch" that reintroduces size dependence! Using FIM only as a penalty and letting Adam handle optimization is a mathematical necessity, not just an engineering shortcut.
  • Exact Replication Invariance: If you copy-paste a dataset $\alpha$ times, unnormalized importance explodes by $\alpha^2$. SING-CH’s per-pair Gibbs FIM remains algebraically identical. Across a 1,192$\times$ real-world task size gap, its raw scale drifts by just $1.31\times$.
  • Frozen Codes $\neq$ Good Retrieval: In continual hashing, low Bit Flip Rates (BFR)—meaning old binary codes barely change—actually correlate with terrible retrieval accuracy, signaling a rigid, paralyzed network. Healthy lifelong learners maintain moderate code plasticity (~30–35% BFR) while preserving cluster geometry.

Key Results

Without any per-task hyperparameter tuning, SING-CH beats 13 static, continual, and lifelong hashing baselines:

Table 1: Lifelong cross-modal retrieval (mAP@L=64, 5-task uniform). Bold: best. Underline: second. SING-CH: 4-seed avg (σ < 0.003). All methods use VGG+BoW features under identical lifelong protocol.
  • 5-Task Uniform: Achieves 0.781 average mAP, beating the strongest baseline (DCGH at 0.740) by 4.1 points—driven by a massive +11.5 point leap on the distribution-shifted NUS-WIDE dataset (0.745 vs. 0.630).
  • Extreme Size Imbalance (1,192$\times$): Degrades by just 1.6 points (2.0%) down to 0.765 mAP, whereas DCGH drops by 2.9 points (3.9%) to 0.711.
Table 3: Performance under extreme task-scale imbalance (5-task, 1,192× size disparity). Averages are computed from full-precision values; displayed entries are rounded to three decimals.
  • Negligible Overhead: Persistent memory requires just two parameter-sized vectors ($8|\theta|$ bytes total, independent of task count), adding +0.4% training time (~4 seconds over a 19-minute run) and zero inference latency.

Limitations and Future Work

  • Domain Scope: Validation is strictly confined to cross-modal hashing; extending per-relation Gibbs normalization to other pairwise or contrastive continual paradigms remains open.
  • Monotonic Stiffening on Very Long Streams: Because diagonal importance accumulates monotonically across tasks, the parameter space gradually stiffens—trading away plasticity for retention on longer sequences (e.g., mAP dips from 0.781 on 5 tasks to 0.738 on 10 tasks). Future directions are not explicitly detailed by the authors beyond addressing these boundaries.

Summary updated

Abstract

Lifelong cross-modal hashing demands incremental updates as new tasks arrive, yet existing regularization-based methods such as EWC and SI share a fundamental weakness: their effective regularization strength is entangled with task scale, as the empirical Fisher Information Matrix (FIM) scales linearly with sample size. This forces costly per-task hyperparameter tuning in streaming deployments to avoid over- or under-regularizing tasks of varying sizes. We propose \textsc{Sing-CH}, a lifelong hashing framework built on information geometry. At its core is a Gibbs probabilistic reconstruction of the pairwise objective, which gives the parameter space a statistical manifold structure and yields a natural $1/n_t^2$ normalization. We prove this normalization renders the FIM scale-agnostic: its spectral properties remain independent of task size even under diagonal and K-FAC approximations. Beyond this invariance, a Forgetting-Rigidity trade-off theorem shows that natural gradient applied to the composite objective reintroduces scale dependence. This makes our decoupled design, pairing the FIM as regularizer with Adam for optimization, a structural necessity rather than a convenience. Experiments on three benchmarks demonstrate that \textsc{Sing-CH} outperforms 11 baselines by 4.1\% average mAP without per-task tuning. Under extreme task-scale imbalance, degradation is only 2.0\% versus 3.9\% for the strongest baseline, providing the first empirically grounded solution to scale-agnostic lifelong retrieval.
BibTeX
@inproceedings{yang2026sing,
  author = {Haoran Yang and Junge Chen and Jun Long and Zhan Yang},
  title = {{SING-CH: Task-Scale-Agnostic Lifelong Cross-Modal Hashing on Statistical Manifolds}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=TJCnnbBHfU},
}
Figure