# Dynamic Tokenization via Reinforcement Patching: End-to-end Training and Zero-shot Transfer

DevFeed: [Dynamic Tokenization via Reinforcement Patching: End-to-end Training and Zero-shot Transfer](<https://devfeed.tech/articles/dynamic-tokenization-via-reinforcement-patching-end-to-end-training-and-zero-shot-transfer-123110.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2603.26097>)

Author: Yulun Wu, Sravan Kumar Ankireddy, Samuel Sharpe, Nikita Seleznev, Dehao Yuan, Hyeji Kim, Nam H. Nguyen

Published: 2026-11-09T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Reinforcement learning](<https://devfeed.tech/topics/reinforcement-learning.md>), [Time Series](<https://devfeed.tech/topics/time-series.md>), [Representation learning](<https://devfeed.tech/topics/representation-learning.md>)

Tags: [adaptive](<https://devfeed.tech/tags/adaptive.md>), [compression](<https://devfeed.tech/tags/compression.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [data-driven](<https://devfeed.tech/tags/data-driven.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [forecasting](<https://devfeed.tech/tags/forecasting.md>), [patching](<https://devfeed.tech/tags/patching.md>), [reinforcement-learning](<https://devfeed.tech/tags/reinforcement-learning.md>), [sequence](<https://devfeed.tech/tags/sequence.md>), [stat-ml](<https://devfeed.tech/tags/stat-ml.md>), [time-series](<https://devfeed.tech/tags/time-series.md>), [tokenization](<https://devfeed.tech/tags/tokenization.md>), [training](<https://devfeed.tech/tags/training.md>), [zero-shot](<https://devfeed.tech/tags/zero-shot.md>)

## AI overview

Reinforcement Patching (ReinPatch) jointly trains a sequence patching policy and its downstream backbone using reinforcement learning. It treats patch-boundary placement as a discrete decision process optimized with Group Relative Policy Gradient, avoiding continuous relaxations. The method can enforce a desired compression rate and supports hierarchical modeling. On time-series forecasting datasets, the authors report performance compared with state-of-the-art data-driven patching strategies. Its detached design also lets the patching module be extracted as a standalone patcher. The supplied text does not give specific benchmark results or describe zero-shot transfer despite the title.

## Source excerpt

arXiv:2603.26097v2 Announce Type: replace Abstract: Efficiently aggregating spatial or temporal horizons to acquire compact representations has become a unifying principle in modern deep learning models, yet learning data-adaptive representations for long-horizon sequence data, especially continuous sequences like time series, remains an open challenge. While fixed-size patching has improved scalability and performance, discovering variable-sized, data-driven patches end-to-end often forces models to rely on soft discretization, specific backbones, or heuristic rules. In this work, we propose Reinforcement Patching (ReinPatch), a novel framework that jointly optimizes a sequence patching policy and its downstream sequence backbone model with reinforcement learning. By formulating patch boundary placement as a discrete decision process optimized via Group Relative Policy Gradient (GRPG), ReinPatch bypasses the need for continuous relaxations and performs dynamic patching policy optimization in a natural manner. Moreover, our method allows strict enforcement of a desired compression rate, freeing the downstream backbone to scale efficiently, and natively supports multi-level hierarchical modeling. We evaluate ReinPatch on time-series forecasting datasets, where it demonstrates compelling performance compared to state-of-the-art data-driven patching strategies. Furthermore, our detached design allows the patching module to be extracted as a standalone foundation patcher, providing the community with visual and empirical insights into the segmentation behaviors preferred by a purely performance-driven neural patching strategy.