TL;DR
This paper tackles the overlooked long-tail problem in temporal action segmentation for procedural videos by identifying a "bi-level" learning bias at both the class and transition levels. The authors introduce an adaptive, cost-sensitive loss function derived from a constrained optimization framework, alongside a segment-based post-processing technique, significantly boosting the recognition of rare "tail" actions without sacrificing overall performance.
What Problem Does This Paper Address?
Temporal Action Segmentation (TAS) involves labeling every single frame of an untrimmed video with an action class (e.g., "pour milk", "stir cereal"). Real-world procedural videos are highly imbalanced, following a long-tailed distribution where a few "head" actions dominate in frequency and duration, while many "tail" actions rarely occur. Current state-of-the-art models often yield 0% accuracy on these tail actions because standard global evaluation metrics mask poor tail performance.
The authors reveal that TAS suffers from a unique bi-level learning bias:
- Class-level bias: Models prioritize head classes. Interestingly, tail classes are under-learned (rather than overfitted) because the temporal continuity of video frames causes their representations to blend into adjacent head classes at segment boundaries.
- Transition-level bias: Models favor frequently observed action transitions over rarer ones, creating learning gaps depending on what action preceded the current one.
Methods
To address both biases, the authors propose a learning-aware constrained optimization framework consisting of three main components:
- Transition-Based Confusion Tensor: The authors track the learning states of actions and transitions during training using a 3D confusion tensor $C_{i,j,k}$ (representing ground truth, prediction, and the previous action).
- Cost-Sensitive Loss via Lagrangian Optimization: They formulate an optimization problem to maximize per-class accuracy subject to constraints that penalize under-learned transitions. This non-trivial problem is reframed as a Lagrangian min-max problem, which resolves into an adaptively weighted cross-entropy loss. The weights dynamically adjust based on both the action prior and its current transition learning state using Lagrange multipliers ($\lambda$).
- Segment Nearest Class Mean (S-NCM): At inference, to correct for classifier bias without causing chaotic over-segmentation, they use the model's predictions to find segment boundaries, then re-label each segment using a majority vote of frame-level nearest-neighbor representations.
Datasets
The method was evaluated on three standard temporal action segmentation benchmarks:
- Breakfast Actions: 1,712 videos of breakfast preparation with 48 classes.
- 50Salads: 50 videos of salad making with 19 classes.
- Assembly101: A large-scale dataset of 4,321 long videos (averaging 7.1 minutes) focused on toy assembly/disassembly, featuring 202 coarse action classes.
The authors explicitly split these datasets into Head and Tail groups based on frame counts to evaluate long-tail performance.
Key Insights and Ideas
- Under-learning vs. Overfitting: In traditional image classification, long-tail distributions cause models to overfit to tail classes. In video segmentation, the opposite happens: tail classes are under-learned because the temporal continuity of video frames suppresses the signal of rare actions when they sit next to dominant head actions.
- Transitions Matter: An action isn't just hard to learn because it's rare; it's hard to learn because the transition into it might be rare. For example, a model might easily recognize "take eggs" if preceded by "pour oil" (a common sequence), but fail completely if it follows "take bowl" (a rare sequence).
- Adaptive Re-weighting: Instead of static class-frequency re-weighting (which treats classes independently), dynamically adjusting weights based on the current training state of transitions prevents the model from over-correcting or ignoring hard-to-learn boundaries.
Key Results
The proposed method was tested across three backbones: MSTCN (CNN), ASFormer (Transformer), and DiffAct (Diffusion).
- Substantial Per-Class Gains: On the Breakfast dataset using the MSTCN backbone, the method improved the per-class F1@25 score by 8.1% and frame-wise accuracy by 3.7% over the baseline, vastly outperforming existing long-tail methods like Logit Adjustment (LA) and Focal Loss.
- Group-Wise Improvements: For ASFormer on Assembly101, tail class accuracy jumped from 5.7% to 10.9%, and the tail F1@25 score rose from 4.8% to 10.5%, proving that the model successfully learned previously ignored actions.
- Global Balance: Unlike other long-tail methods that destroy global accuracy to fix the tail, this approach maintained or improved global F1 scores (e.g., +6.1% global F1@25 for MSTCN on Breakfast).
Limitations and Future Work
- Computational Overhead: Calculating the 3D confusion tensor over the full training set at every epoch increases training time by approximately 30%.
- Future Mitigations: The authors suggest that sampling a subset of the training set or using an exponential moving average (EMA) to approximate the confusion tensor could alleviate this training overhead without affecting testing time complexity.
Summary updated