Temporal Blocking for Online Learning with Switching Costs

This direction is merged into another direction: temporal action blocking. Its last version stays readable and citable here.

Version 1 of 120 papers23 conceptsfrozen 2026-10-04

In standard online learning, an agent makes a decision at every time step, receives feedback, and immediately updates its strategy for the next round. While this "fickleness" allows for rapid adaptation to changing environments, it ignores a practical reality of many real-world systems: changing your mind is expensive.

Whether it is the energy cost of reconfiguring a satellite's frequency, the latency of reloading weights in a deep neural network at the edge, or the loss of scientific reproducibility when minor data variations lead to wildly different model behaviors, frequent switching creates overhead. Temporal blocking (also known as batching or epoch-based learning) has emerged as the primary mechanism to bridge the gap between adaptive performance and operational stability.

The Mechanism of Inertia

The core idea of temporal blocking is to enforce a period of "commitment." Instead of updating a policy at every time step $t$, the algorithm partitions the total time horizon $T$ into $K$ discrete blocks (or epochs).

  1. Commitment: At the start of a block, the agent selects an action or policy.
  2. Persistence: The agent maintains that exact choice for the duration of the block, regardless of the feedback received during those rounds.
  3. Aggregated Update: Only at the boundary of the next block does the agent aggregate all feedback from the previous interval to inform its next choice.

As Chloé Rouyer, Yevgeny Seldin, and Nicolò Cesa-Bianchi demonstrate in their work on Tsallis-Switch, this simple wrapper transforms a standard "greedy" learner into one that is naturally resistant to switching penalties. By reducing the number of decision points from $T$ to $K$, the algorithm explicitly caps the total switching cost.

Why It Works: The Regret Trade-off

Temporal blocking introduces a fundamental trade-off between adaptation and overhead.

If blocks are too large, the agent becomes "stiff" and cannot react to adversarial changes in the environment, leading to high regret (the difference between the agent's performance and the best fixed strategy in hindsight). If blocks are too small, the agent switches too often, and the cumulative switching costs overwhelm the gains from adaptation.

Research by Nicolò Cesa-Bianchi, Ofer Dekel, and Ohad Shamir established that in bandit settings with switching costs, the optimal balance typically shifts the regret bound from the standard $O(\sqrt{T})$ to $\Theta(T^{2/3})$. This $T^{2/3}$ rate is a direct consequence of the "information delay" inherent in blocking: you only learn from your mistakes at the end of the epoch.

This theoretical boundary is consistent across domains. For instance, in adversarial reinforcement learning, Ming Shi and Ness Shroff showed that grouping episodes into blocks is necessary to achieve near-optimal performance when policy changes are expensive. Similarly, in Online Convex Optimization (OCO), Lin Chen and Amin Karbasi proved that an epoch-based strategy allows a learner to satisfy a strict switching budget while maintaining a regret rate of $\Theta(T/\sqrt{K})$.

Stability as a Path to Replicability

Beyond cost savings, temporal blocking provides a mathematical foundation for algorithmic replicability. In many scientific and industrial contexts, we need an algorithm to produce the same sequence of actions even if the input data varies slightly (e.g., due to different sampling).

Standard online algorithms are notoriously sensitive; a single different data point at $t=1$ can butterfly-effect into a completely different set of actions at $t=100$. Saba Ahmadi, Siddharth Bhandari, and Avrim Blum utilize temporal blocking to solve this. By restricting strategy updates to block boundaries and combining this with randomized rounding, they ensure that minor variations in input data are "absorbed" by the block's inertia, preventing divergent action sequences across independent runs.

Applications in Hostile Environments

The robustness provided by blocking is particularly valuable when the environment is not just noisy, but adversarial.

  • Edge Computing: In collaborative inference, Yin Huang and Jie Xu use blocking in their B-EXPUCB algorithm to prevent "thrashing" between network paths when facing adversarial jamming.
  • Spectrum Monitoring: Ming Li and colleagues developed SpecWatch, which uses intervals to catch "spectrum bullies" without incurring the massive energy overhead of constant frequency hopping.
  • Privacy: Aristide Tossou and Christos Dimitrakakis demonstrated that mini-batching rounds can provide "privacy for free" against adaptive adversaries, as the reduced update frequency naturally limits the amount of information an adversary can extract about the underlying data from the agent's switches.

In summary, temporal blocking is more than a heuristic for efficiency; it is a fundamental tool for injecting intentional stability into adaptive systems, allowing them to operate effectively in worlds where every change of mind carries a price.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_temporal_blocking_for_online_learning_wi_4c03ff42,
  title = {Temporal Blocking for Online Learning with Switching Costs},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/temporal-blocking-for-online-learning-with-switching-costs/rdr_4c03ff42ef3f4e01bcbeab19383c857c},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_temporal_blocking_for_online_learning_wi_4c03ff42_v1,
  title = {Temporal Blocking for Online Learning with Switching Costs},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/temporal-blocking-for-online-learning-with-switching-costs/rdr_4c03ff42ef3f4e01bcbeab19383c857c/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}