The Price of a Vocabulary: Finite-Sample Laws for Time-Series Tokenization
The Price of a Vocabulary: Finite-Sample Laws for Time-Series Tokenization
Lining Hu, Ting Liu, Yuzhuo Fu
AbstractTokenized time-series foundation models quantize continuous values into a finite vocabulary before sequence modeling. We develop a finite-sample theory of how large that vocabulary should be, separating input resolution (how finely history is read) from output resolution (how finely forecasts are stated). The central difficulty is that the vocabulary also partitions the training sample across discrete contexts: a worst-case analysis charges for every representable context, yet real series occupy only a small, nonuniform fraction. Our Wasserstein risk bound charges instead for occupancy -- how often each context actually occurs -- with rate-matching lower bounds, and balancing estimation against distortion yields, for fixed-range scalar grids, the vocabulary scaling law $B^* \asymp n^{1/(d+2)}$, where $d$ is the occupancy dimension of the context stream. A second theorem prices the output side: estimators that reserve a fixed prior mass on every output cell regardless of the data admit a finite optimal output vocabulary growing as the square root of the label count. Whether trained softmax heads obey the output-side law is a hypothesis we test, not a consequence of the theorems. Occupancy-based selection recovers the oracle vocabulary in 30 of 30 synthetic runs where nominal context counting incurs up to 72% median regret. Across eight datasets and two architectures trained from scratch, coarse input vocabularies match or improve CRPS on seven of eight datasets (by up to 21%), the finest output vocabulary is best on only one, and nine pretrained forecasters tolerate inputs discretized to 512-1024 bins. Supervising every position rather than only the last lowers the fine-output penalty on six of eight datasets by point estimate (three nominally significant, one significantly reversed) and moves the best tested output vocabulary up on three datasets and down on none.