Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Byte Pair Encoding for Efficient Time Series Forecasting

About

Existing time series tokenization methods predominantly encode a constant number of samples into individual tokens. This inflexible approach can generate excessive tokens for even simple patterns like extended constant values, resulting in substantial computational overhead. Inspired by the success of byte pair encoding, we propose the first pattern-centric tokenization scheme for time series analysis. Based on a discrete vocabulary of frequent motifs, our method merges samples with underlying patterns into tokens, compressing time series adaptively. Exploiting our finite set of motifs and the continuous properties of time series, we further introduce conditional decoding as a lightweight yet powerful post-hoc optimization method, which requires no gradient computation and adds no computational overhead. On recent time series foundation models, our motif-based tokenization improves forecasting performance by 40% and boosts efficiency by 2314% on average. Conditional decoding further reduces MSE by up to 48%. In an extensive analysis, we demonstrate the adaptiveness of our tokenization to diverse temporal patterns, its generalization to unseen data, and its meaningful token representations capturing distinct time series properties, including statistical moments and trends.

Leon G\"otz, Marcel Kollovieh, Stephan G\"unnemann, Leo Schwinn• 2025

Related benchmarks

TaskDatasetResultRank
Time Series ForecastingETTh1
MSE0.459
836
Time Series ForecastingETTh1 (test)
MSE0.459
398
Time Series ForecastingETTm1 (test)
MSE0.449
315
Time Series ForecastingTraffic (test)
MSE0.574
272
Time Series ForecastingWeather (test)
MSE0.236
248
Time Series ForecastingElectricity (test)
MSE0.144
130
Time Series ForecastingFev-bench (test)
MSE0.756
21
Time Series ForecastingElectricity
MSE0.14
11
Time Series ForecastingETTm1
MSE0.449
3
Time Series ForecastingWeather
MSE0.236
3
Showing 10 of 13 rows

Other info

Follow for update