Pipelined Boundary Refinement for Online Action Localization Under Compute Delay

Refining an action's start and end times in several passes makes those times much more accurate. Online video systems, however, cannot pause the camera while those passes run. We propose to treat refinement as a pipeline that moves with the stream rather than a loop that stalls it. Each refinement stage runs on a newer frame than the stage before it. Each stage receives, as extra input, the boundary estimate its predecessor committed one step earlier and the frames that arrived since. This borrows the central trick of real-time reinforcement learning: when computing an action takes time, add the "action still in flight" to the state so the problem becomes well-posed again. Here we apply it to the start and end timestamps of video actions instead of motor commands.

The opportunity matters because the two literatures have passed each other. Multi-pass boundary refinement is among the most reliable accuracy gains in temporal action detection, but it has been developed almost entirely offline, where the future is visible and compute time is free. Online localizers have learned to use long histories of past frames, but they assume every forward pass completes instantly between frames. A detector that refines three times at a fixed per-pass cost either reports its boundaries late or skips frames. No existing evaluation charges it for either failure.

Core Claim

In online temporal action localization, the task of reporting when actions start and end while the video is still streaming, a cascade of K refinement stages can be restructured so that output latency stays at one stage rather than K. It can do so while keeping most of the cascade's accuracy gain. The restructuring needs two things. Stage k must condition on stage k−1's committed boundary estimate from the previous timestep, which is the augmented state. Stage k must also have a direct shortcut to the raw features of the newest frames, which is a temporal skip connection. Without the committed-estimate input, pipelined stages refine a proposal they cannot see is stale. We predict this ablation will lose most of the gain.

The idea borrows from two sources. The first is the formulation in Real-Time Reinforcement Learning, which adds the currently executing action to the state, $s^{aug}_t=(s_t,a_{t-1})$, when computation takes one timestep. The second is the parallel-layer design of Handling Delay in Real-Time Reinforcement Learning, where each network layer processes a different timestep and temporal skip connections feed recent observations to later layers. That paper reports matching a zero-delay oracle on MuJoCo Hopper. Both papers supply the method, but both were tested only on low-dimensional control with shallow networks, which the file lists as an open scaling problem. Our contribution is to carry the mechanism into boundary regression, where the "action" is a pair of timestamps and the refinement cascade plays the role of the layer stack.

Research Program

We would build on the decoupled end-then-start decoding of Online Temporal Action Localization with Memory-Augmented Transformer (MATR). MATR detects that an action has ended in the current segment, then searches a first-in-first-out memory of past segments to regress the start once, with no further passes. MATR is the natural host because its start search already looks only backward. That makes iterative refinement possible without future frames, which addresses the file's Gap 3.

We replace MATR's single start-and-end regression with K refinement stages arranged as a pipeline. At stream step $t$, stage $k$ receives four inputs: the memory queue, the newest segment features through a temporal skip path, the estimate $(\hat t_s,\hat t_e)^{(k-1)}_{t-1}$ that stage $k-1$ emitted one step ago, and a short buffer of that stage's recent boundary changes. Stage $k$ outputs a correction. All stages run concurrently on different timesteps, so the per-step cost is one stage.

The refinement follows the non-parameterized absolute offsets of Cascaded Boundary Regression for Temporal Action Detection and the progressively tightened matching thresholds of Progressive Boundary Refinement Network for Temporal Action Detection, which use IoU thresholds of 0.5, 0.6 and 0.7. Both are offline methods that re-pool features around a boundary on both sides. Our stages may re-pool only from memory and the newest segment.

We will also measure whether the buffer of recent boundary changes lets a stage learn to output a near-zero correction. That would address the drift that CBR reports after two or three cascade steps. This is a secondary question, and we keep K fixed and small.

Delay is simulated explicitly, since GPU speed alone would otherwise decide the question. Each stage costs $\delta$ feature steps. We sweep $\delta/\Delta$, the ratio of stage compute time to the interval between incoming segments, from 0 to 3. We run both a deterministic setting and a jittered one where $\delta$ is random. In the jittered setting each stage also receives the elapsed time since its input estimate was produced. This extends RTAC's fixed one-step assumption, which the file flags as unhandled.

Evaluation needs one new ingredient: latency-charged mAP. A detection is timestamped at the wall-clock moment it is emitted, including simulated compute. It is scored against ground truth only if emitted within a lag budget $L$ after the true end. The detection is scored on the boundaries it had at that moment, not on later revisions. Standard online mAP is the special case $\delta=0$.

Baselines

The naive reference point is the original MATR with its single-pass regression, run under the same simulated delay. It either reports late or drops segments when $\delta/\Delta>1$. On THUMOS'14 at zero delay, MATR reports 49.5% average mAP (MATR) and about 6.0 FPS. That speed is itself a warning that compute delay is not hypothetical, though it is measured on different hardware from other methods. This is the strongest online number in the file and the bar at $\delta=0$.

The second baseline is a sequential cascade: the same K stages run serially on one frame, then emit. This is the offline refinement recipe moved online, and it is the right competitor at nonzero delay because it has identical parameters and compute. Beating it means higher latency-charged mAP at every $\delta/\Delta\geq 1$ while staying within one point of it at $\delta=0$.

The third baseline is HAT: History-Augmented Anchor Transformer for Online Temporal Action Localization. HAT compresses long history into a learned token and refines anchors in one feed-forward pass. It reports 21.5% mAP on EGTEA, 44.8% on THUMOS'14, and 147 FPS. It is the strongest fast single-stage competitor and the one most likely to make our pipeline unnecessary.

The fourth baseline is SimOn, which reports 34.4% average mAP on THUMOS'14 at 5.2 ms per six-frame stack and serves as a very-low-latency floor. Its public code is available (TuanTNG/SimOn).

The key ablation is a memoryless pipeline. It keeps the same concurrent stages but removes the previous-stage estimate from the input, so each stage re-proposes from features alone. A second ablation removes the temporal skip path.

For fairness, all methods use the same pre-extracted features, the same memory length, and an equal hyperparameter-search budget. They also share the same simulated delay model. For HAT and SimOn, $\delta$ is set from their own measured per-pass cost relative to MATR's, so that fast methods are credited for being fast.

Why not just…?

Why not just use a fast single-stage localizer and skip refinement? This is the real threat. If HAT-style single passes stay cheap relative to the frame interval, latency never bites, and refinement's accuracy gain may not justify its cost. The delay sweep settles it. We report where the curves cross, and we accept that at $\delta/\Delta<1$ the pipeline may offer nothing over a single stage with a larger budget. The claim is limited to regimes with heavier backbones, edge hardware, or several refinement stages. In those regimes, CBR's 19.0%-to-31.0% [email protected] gain on THUMOS'14 suggests refinement is worth a lot if it can be made affordable. We will also test a single-stage model given K times the parameters to isolate staging from capacity.

Why not just train the sequential cascade to predict boundaries shifted by its known delay? Extrapolating the boundary by $K\delta$ is a cheap fix for deterministic delay. It is our second baseline with delay-shifted targets, and we will include that variant. We expect it to degrade under jitter and whenever the action changes during the lag, because it never sees the frames that arrived during computation. The pipeline does see them, through the skip path.

Why not just carry a GRU hidden state across refinement steps? A recurrent state could implicitly hold the previous estimate. Anokhin et al. report that explicit history augmentation with temporal skips outperformed LSTM baselines on MuJoCo, MinAtar and MiniGrid, in Handling Delay in Real-Time Reinforcement Learning. That evidence comes from control, not video, so we will run a GRU-over-stages variant directly rather than assume the result transfers.

Proposed Experiments

We train on THUMOS'14, EGTEA and MUSES, following the online protocols of MATR and HAT, and add EPIC-Kitchens-100 for long procedural video. The file has no reported MATR or HAT number on EPIC-Kitchens-100. On MUSES, MATR reports 14.4% average mAP; no reported result was found on Lacuna for HAT on MUSES.

The decisive check has three parts. As $\delta/\Delta$ grows past 1, the sequential cascade's latency-charged mAP should collapse toward or below single-pass MATR, while the pipeline should hold within a few points of its own zero-delay score. The memoryless-pipeline ablation should fall between the two. If the memoryless ablation matches the full pipeline, the history-augmentation claim is wrong, and whatever benefit remains comes from concurrency alone.

A secondary check tests whether the buffer of recent boundary changes reduces how often boundaries drift back and forth between refinements. We will compare K=2, 3 and 4 against CBR's reported saturation. Finally, under jittered delay we test whether the elapsed-time input is required. The prediction is that it matters only when jitter variance is comparable to $\Delta$.