Research map / Time series / Foundation models for time series
Dynamic Tokenization via Reinforcement Patching: End-to-end Training and Zero-shot Transfer
Yulun Wu, Sravan Kumar Ankireddy, Samuel Sharpe, Nikita Seleznev, Dehao Yuan, Hyeji Kim, Nam Nguyen
University of Texas, Austin
Read the paperPlace an idea next to itCheck your own paper ↗
Proposes ReinPatch, which learns variable-size patch boundaries with a group-relative policy gradient (GRPG) over discrete boundary decisions, jointly with a downstream forecasting backbone, and evaluates end-to-end and zero-shot foundation-patcher variants on long-horizon time-series forecasting.
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Problem
Learning data-adaptive, variable-size patch boundaries end-to-end for long sequences (especially continuous time series) without soft discretization, backbone-specific designs, or heuristic/external rules.
Approach
Treat patch boundary placement as a discrete action chosen by a separate lightweight transformer policy, optimized with group-relative policy gradient using the negative forecasting loss as terminal reward (group mean/std as baseline, no critic), with the backbone as the environment; a hard minimum compression rate is enforced by merging trailing patches.
Key results
- Zero-shot foundation patcher achieves best average MSE on 4 of 6 datasets (e.g., ETTh1 0.397 vs 0.408 for periodic patching; Electricity 0.168 vs 0.170 for entropy patching) and reports 17 first-place results among 24 configurations.
- End-to-end ReinPatch reports an average MSE reduction of 4.4% over entropy patching, peaking at 7.7% on ETTh1.
- H-Net chunking performs worst on the two ETTh subsets (ETTh1 avg MSE 0.438).
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| learn the patching policy with RL (end-to-end) instead of static patching | patching backbone · ETTh1 | avg MSE: 0.415 -> 0.405 | Improved |
| learn the patching policy with RL instead of entropy patching | patching backbone · ETTm2 | avg MSE: 0.283 -> 0.263 | Improved |
| learn the patching policy with RL instead of H-Net chunking | patching backbone · ETTh1 | avg MSE: 0.438 -> 0.405 | Improved |
| pre-train the patcher on UTSD and freeze it (zero-shot) instead of end-to-end training | ReinPatch · ETTh1 | avg MSE: 0.405 -> 0.397 | Improved |
| pre-train the patcher on UTSD and freeze it (zero-shot) instead of end-to-end training | ReinPatch · Electricity | avg MSE: 0.172 -> 0.168 | Improved |
| pre-train the patcher on UTSD and freeze it (zero-shot) instead of end-to-end training | ReinPatch · ETTm1 | avg MSE: 0.347 -> 0.347 | No clear effect |
| use ReinPatch instead of entropy patching across all datasets | patching backbone · six forecasting datasets | avg MSE: average MSE reduction of 4.4% | Improved |
| use ReinPatch instead of entropy patching | patching backbone · ETTh1 | avg MSE: peaking at 7.7% | Improved |
| use ReinPatch instead of entropy patching for longer look-back windows (ablation) | patching backbone · MSE at H=96 | MSE | Improved |
| use ReinPatch instead of entropy patching for short look-back windows (ablation) | patching backbone · MSE at H=96 | MSE | No clear effect |
| use H-Net end-to-end patching for time series | patching backbone · ETTh1 | avg MSE: 0.438 vs 0.405 for ReinPatch | Hurt |
| use ReinPatch instead of entropy patching | patching backbone · Electricity | avg MSE: 0.170 -> 0.172 (end-to-end), 0.168 (foundation) | Mixed |
Surprising findings
- The zero-shot foundation patcher pre-trained on UTSD outperforms end-to-end training of ReinPatch on the target datasets.
- The learned policy places boundaries that wrap major turning points rather than splitting at each one, contrary to common shifting-point heuristics.
Limitations
- Foundation patcher pre-trained only on univariate series; multivariate pre-training not explored.
- Inference-time compression rate control for generative (causal) tasks is not solved; the one-step MDP is not applied to causal settings.
- Evaluation limited to time series forecasting; no language or other domain experiments.
Open problems this paper states
- “Foundation patcher pre-trained only on univariate series; multivariate pre-training not explored.” → Only univariate or channel-independent series are handled. (an open problem in LLM-based time series forecasting)
Open problems in LLM-based time series forecasting
Can LLM-based forecasters beat specialized models on multivariate data, beyond GPT-2 and without closed APIs?
- Only univariate or channel-independent series are handled. · 12 papers state it
- Results come from one small backbone such as GPT-2. · 9 papers state it
- Text inputs are built from templates or generated by an LLM, so quality is uncertain. · 9 papers state it
Experimental setup
Datasets: ETTh1 ETTh2 ETTm1 ETTm2 Weather Electricity UTSD
Benchmarks: ETTh1 ETTh2 ETTm1 ETTm2 Weather Electricity
Metrics: MSE MAE
Baselines: Static Patching (PatchTST) Selective Patching (SRSNet) Periodic Patching (LightGTS) Entropy Patching (EntroPE) TimeSqueeze compression H-Net chunking
Builds on: PatchTST GRPO H-Net Byte Latent Transformer
Closest papers by meaning
- You Can Learn Tokenization End-to-End with Reinforcement Learning (ICML 2026 · similarity 0.86)
- Multi-Patch Prediction: Adapting Language Models for Time Series Representation Learning (ICML 2024 · similarity 0.86)
- Beyond Next Token Prediction: Patch-Level Training for Large Language Models (ICLR 2025 · similarity 0.85)
- Understanding Layer Patching in Model Size Interpolation (NeurIPS 2026 · similarity 0.84)
- DiffStitch: Boosting Offline Reinforcement Learning with Diffusion-based Trajectory Stitching (ICML 2024 · similarity 0.84)
- Reinforced Fast Weights via Next-Sequence Prediction (NeurIPS 2026 · similarity 0.84)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.