T3C: Test-Time Tensor Compression with Consistency Guarantees
Ismail Lamaakal, Chaymae Yahyati, Yassine Maleh, Khalid El Makkaoui, Ibrahim Ouahbi
TL;DR
The paper addresses adapting deep models to variable runtime budgets without retraining by introducing T3C, a train-once, test-time budget-conditioned compression framework. It blends elastic tensor factorization with rank-tied mixed-precision quantization and a lightweight budget controller to produce per-layer $k_\ell$ and $q_\ell$ that map to hardware-aligned profiles. A fast consistency certificate upper-bounds logit drift, regularizing training and enabling monotone, certified accuracy–latency–size trade-offs across devices. Empirically, a single T3C checkpoint achieves predictable frontiers across CNNs, ViTs, and NLP models and consistently outperforms strong PTQ/QAT baselines on ImageNet-1k and GLUE benchmarks.
Abstract
We present T3C, a train-once, test-time budget-conditioned compression framework that exposes rank and precision as a controllable deployment knob. T3C combines elastic tensor factorization (maintained up to a maximal rank) with rank-tied mixed-precision quantization and a lightweight controller that maps a latency/energy/size budget token to per-layer rank/bit assignments; the policy snaps to hardware-aligned profiles and is monotone in the budget. A fast, layerwise consistency certificate, computed from spectral proxies and activation statistics, upper-bounds logit drift and regularizes training, yielding a practical reliability signal with negligible overhead. On ImageNet-1k, T3C shifts the vision Pareto frontier: for ResNet-50 at matched accuracy (\leq 0.5% drop), p50 latency is 1.18ms with a 38MB model, outperforming PTQ-8b (1.44ms, 88MB); for ViT-B/16, T3C reaches 2.30ms p50 with 59MB, improving over strong PTQ/QAT baselines. A single T3C checkpoint therefore provides predictable, certificate-backed accuracy-latency-size trade-offs on demand across devices.
