Cadence: Error-Bounded Lossy Compression of Demand Time Series with a Time-Series Foundation Model

Roberto Tacconelli

Independent Researcher

Published September 5, 2026 · on the feed September 9, 2026 · ▲ 18 · arXiv 2609.06008

Efficiency & inferenceTabular & time series Full code arXiv ↗Hugging Face ↗

The abstract

We present Cadence, an error-bounded lossy compressor for numeric time series pairing a 330M-parameter time-series foundation model (Google TimesFM-3) with an adaptive arithmetic coder, guaranteeing |x_t-x_t|leτ on every sample. One negative result constrains the design space: for lossless coding a foundation model is worth nothing, because bits saved are logarithmic in predictor accuracy, Δb=log_2(MAE_{old}/MAE_{new}). So the 1.51times advantage TimesFM-3 holds over a 32-tap linear predictor buys 0.60 bits of 20.28, a median gain of +0.03%. Error-bounded coding escapes this at one point: once a forecast lands inside the band the residual index is zero and the sample nearly free. Cadence contributes: (1) an adaptive range coder with context-modelled binarization, beating xz/zstd on real indices by 9.7% (15/15) and reversing a finding from a general-purpose back end; (2) a determinism result -- predictions are not bit-identical across batch sizes, and no PyTorch configuration repairs this, forcing group size and execution device into the container format; and (3) domain localization on corpora postdating any plausible training cutoff. On 49 EIA-930 balancing-authority demand series (2026) Cadence gains 13.3% over the best of six classical predictors, and 28.3% on 50 MTA ridership series (2026): 21.4% median over 297 series-tolerance pairs, winning all 297. Against downsampling, what time-series databases deploy for retention, its guaranteed worst-case error is 28--56times tighter at equal size. End-to-end, once the context bootstrap is paid for, gains run from 6.8% at six months of hourly data to 15.1% asymptotically. Attempting to falsify the domain claim on SDRBench, theory predicts failure and delivers: -0.8% median, 0 of 27 pairs gaining. Three further negative results and eight retracted claims are reported in full.

The Brief

3:12

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Cadence. Error-Bounded Lossy Compression of Demand Time Series with a Time-Series Foundation Model. By Roberto Tacconelli, working independently. Published on the fifth of September. Its code repository is worked out: about forty-five source files, with a readme and a licence.

Cadence compresses numeric time series with loss, but with a hard guarantee: every reconstructed sample stays within a tolerance of the original. It pairs a time-series foundation model of three hundred and thirty million parameters, Google TimesFM-3, with an adaptive arithmetic coder. The obvious hope is that a better forecaster means better compression. One negative result closes that door for lossless coding. There, the bits saved grow only with the logarithm of how much the predictor's error shrinks.

The numbers make it concrete. TimesFM-3 holds a one point five one times accuracy advantage over a linear predictor with thirty-two taps. Under lossless coding, that buys zero point six bits out of twenty point two eight, a median gain of about three hundredths of a percent. For lossless compression, the foundation model adds essentially nothing.

Error-bounded coding escapes this at one point. Once a forecast lands inside the tolerance band, the residual index is zero, and that sample costs almost nothing to store. A more accurate forecaster lands inside the band more often, and there accuracy pays in a way the logarithm does not allow.

The system makes three contributions around that idea. First, an adaptive range coder with context-modelled binarization, which beats xz and zstd on real indices by nine point seven percent, in fifteen cases of fifteen, reversing a finding obtained with a general-purpose back end. Second, a determinism result. Predictions are not bit-identical across batch sizes, and no PyTorch configuration repairs that, so group size and execution device have to be written into the container format. Third, domain localization, tested on corpora that postdate any plausible training cutoff.

On forty-nine EIA-930 balancing-authority demand series, Cadence gains thirteen point three percent over the best of six classical predictors. On fifty MTA ridership series it gains twenty-eight point three percent. Across two hundred and ninety-seven series and tolerance pairs, the median gain is twenty-one point four percent, and Cadence wins all of them.

Against downsampling, which is what time-series databases deploy for retention, its guaranteed worst-case error is twenty-eight to fifty-six times tighter at equal size. End to end, once the context bootstrap is paid for, gains run from six point eight percent at six months of hourly data to fifteen point one percent asymptotically.

The authors also tried to falsify the domain claim, on SDRBench. Theory predicted failure there, and failure is what came: a median of minus zero point eight percent, with none of twenty-seven pairs gaining. Three further negative results and eight retracted claims are reported in full.

The paper's argument runs through its negative results as much as its gains. A foundation model does not help lossless coding, and cannot, because of how bits scale with accuracy. It does help when a tolerance turns good forecasts into near-free samples, and it stops helping outside the domain it knows, just as predicted.

Paper Quest · 7 chapters · about 39 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

Compression is prediction, they say. Here a much better predictor buys almost nothing. Find the way out.

You store years of hourly electricity demand and want smaller files. Compression is prediction, so the plan seems obvious: swap the simple linear forecaster for a large pretrained forecasting model that predicts demand much better.

The road ahead

  1. 1 · The problem ~6 min A much better forecaster of electricity demand barely shrinks a losslessly compressed file, so forecasting skill is not turning into saved storage.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~8 min Allowing a fixed error band per sample turns a forecast landing inside it into a nearly free sample, so accuracy pays in jumps, not logarithms.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min Seed the history, forecast each sample from rebuilt values, quantize the residual into a band index, then code the indices adaptively.
  6. 6 · The experiment ~6 min You’ll guess: In lossless coding, how big a median gain does TimesFM-3's accuracy advantage over a 32-tap linear predictor buy?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.