Introduction
Action segmentation is the task of assigning semantic labels to every frame in an untrimmed video, such as "peeling a cucumber" or "adding salt." This task is particularly challenging due to the long-range temporal dependencies inherent in human activities, which can span several minutes. While current state-of-the-art methods often employ a "predict-and-refine" strategy, they frequently suffer from three primary issues: noisy initial segments that propagate through refinement, inaccurate boundary localization leading to over-segmentation, and the computational inefficiency of standard Temporal Convolutional Networks (TCNs) in capturing global context.
The Temporal Segment Transformer (TST) addresses these limitations by moving beyond simple smoothing heuristics toward a unified denoising and relational modeling framework.
Methodology
The TST architecture is designed to refine initial predictions by jointly modeling segment-level relationships and frame-level details.
The process begins with an off-the-shelf Backbone (e.g., ASFormer) that generates initial frame-level features and a preliminary segmentation. These frames are grouped into initial segments, and the model constructs Segment and Frame Encoders. Segment embeddings are created by combining averaged frame features with category labels, while frame features are refined using a lightweight TCN.
The core innovation lies in the Segment Decoder, which utilizes two distinct attention mechanisms:
- Segment-Frame (SF) Attention: Each segment attends to the refined features of nearby frames. This cross-attention mechanism allows the model to "re-read" local video evidence to denoise segment representations and correct boundary errors.
- Inter-Segment (IS) Attention: Segments attend to one another to capture global procedural patterns, such as the typical ordering of kitchen tasks.
Finally, the model employs specialized prediction heads for refined classification and boundary regression, which mathematically adjusts action start and end times. During inference, a Mask Voting strategy fuses these predictions into a coherent, jitter-free frame sequence.
Results
The TST model was evaluated on three major benchmarks: 50Salads, GTEA, and the Breakfast dataset. It consistently outperformed previous state-of-the-art models across key metrics, including F1 score, Edit distance, and Accuracy. On the 50Salads dataset, it achieved an 80.5% F1@50 score, a notable improvement over the previous best of 79.3%. Similar gains were observed on GTEA (82.1% F1@50) and Breakfast (59.5% F1@50).
Qualitative analysis (see Figure above) reveals that TST produces significantly cleaner segmentations. It effectively eliminates the "jitter" and over-segmentation errors common in models like ASFormer, resulting in boundaries that align much more closely with the ground truth.
Discussion
A key insight from this work is that local attention is often superior to global attention for action refinement. Restricting the segment's attention to a local window (the current and adjacent segments) provides a cleaner signal for denoising than attending to the entire video. By treating initial segments as queries and frame features as keys/values, the Transformer effectively cleans up the backbone's initial guess.
Despite its success, TST remains dependent on the quality of the initial backbone prediction. If the backbone fails to detect an action entirely, the refinement module may not be able to recover it. Future research may focus on more tightly integrated end-to-end approaches that unify segment generation and refinement from the outset.
Summary updated