MS-TCN: Multi-Stage Temporal Convolutional Network for Action Segmentation

Yazan Abu Farha, Juergen Gall

TL;DR

The MS-TCN (Multi-Stage Temporal Convolutional Network) architecture tackles the challenge of action segmentation in long videos by stacking multiple stages of dilated convolutions to iteratively refine predictions. By operating at full temporal resolution and employing a novel truncated mean squared error smoothing loss, the model significantly reduces over-segmentation errors and achieves state-of-the-art results across major benchmarks.

What Problem Does This Paper Address?

Action segmentation involves looking at a long, untrimmed video (like someone preparing a salad) and determining exactly when each sub-action (e.g., "cutting tomato," "peeling cucumber") starts and ends.

This is difficult for two main reasons:

  1. Long-range dependencies: To know what someone is doing now, you often need to know what they did minutes ago.
  2. Over-segmentation: Many models suffer from "flickering" predictions, where they incorrectly switch back and forth between classes for a few frames, leading to fragmented results that don't make physical sense.

Previous approaches either used slow Markov models/RNNs or encoder-decoder architectures that used temporal pooling. While pooling helps capture long-range context, it reduces temporal resolution, making it hard to find precise boundaries between actions.

Methods

The authors propose the Multi-Stage Temporal Convolutional Network (MS-TCN). Its design is built on three pillars:

  1. Multi-Stage Architecture: Instead of one giant network, the model consists of several stages. The first stage makes an initial prediction based on raw video features (like I3D). Each subsequent stage takes the probabilities from the previous stage and refines them. Overview of the multi-stage architecture
Figure 1. Overview of the multi-stage temporal convolutional net- work. Each stage generates an initial prediction that is refined by the next stage. At each stage, several dilated 1D convolutions are applied on the activations of the previous layer. A loss layer is added after each stage.
  1. Dilated Residual Layers: Within each stage, the model uses layers of dilated 1D convolutions. Dilation allows the network to have a massive "receptive field" (seeing a large window of time) without needing millions of parameters or losing resolution through pooling. Each layer doubles the dilation factor (1, 2, 4... up to 512), allowing a few layers to cover thousands of frames. The dilated residual block
Figure 2. Overview of the dilated residual layer.
  1. Truncated Smoothing Loss: To fight over-segmentation, the authors introduced a specific loss function ($L_{T-MSE}$). It penalizes large differences in log-probabilities between adjacent frames. Crucially, it is truncated: if the difference is very large (likely an actual boundary between actions), the penalty is capped so the model doesn't "blur" the transition. Comparison of KL divergence vs. the proposed truncated MSE loss
Figure 5. Loss surface for the Kullback-Leibler (KL) diver- gence loss (LKL) and the proposed truncated mean squared loss (LT −MSE) for the case of two classes. yt,c is the predicted proba- bility for class c and yt−1,c is the target probability corresponding to that class.

Datasets

The model was evaluated on three standard action segmentation benchmarks:

  • 50Salads: 50 videos of salad preparation, 17 action classes.
  • GTEA (Georgia Tech Egocentric Activities): 28 first-person videos of daily kitchen activities, 11 classes.
  • Breakfast Dataset: The largest of the three, with 1,712 videos of breakfast cooking across 18 kitchens, 48 classes.

Key Insights and Ideas

  • Refinement over Depth: A multi-stage model outperforms a single-stage model with the same total number of layers. The iterative process of "polishing" the previous stage's output is more effective than one deep pass. Qualitative improvement across stages
  • Probabilities are Enough: Interestingly, passing only the class probabilities to the next stage works better than passing the high-dimensional features. The authors argue that features contain too much noise (similar appearance/motion for different actions), which can confuse the model into over-segmenting. Forcing the model to look only at the sequence of labels helps it learn plausible action transitions.
  • Resolution Matters: By avoiding temporal pooling, the model maintains the full frame rate of the video, leading to much more precise action boundaries compared to previous TCN-based methods.
Figure 3. Qualitative result from the 50Salads dataset for compar- ing different number of stages.

Key Results

MS-TCN achieved state-of-the-art performance on all three datasets.

  • Accuracy: On 50Salads, it reached 80.7% frame-wise accuracy, a significant jump over the previous best of 68.1% (TDRN).
  • Quality of Segmentation: The model showed massive improvements in the F1 score (which measures how well segments match the ground truth) and Edit distance. For example, on 50Salads, the F1@10 score improved from 72.9 to 76.3.
  • Efficiency: Because the model is fully convolutional and doesn't rely on sequential RNN cells (like LSTMs), it is highly parallelizable. The authors noted it trains four times faster than a comparable Bi-LSTM.

Limitations and Future Work

  • Receptive Field Limits: While dilated convolutions provide a large receptive field, it is still finite. The paper notes that performance is slightly lower on very long videos where the action dependencies might exceed the network's temporal window.
  • Supervision: This work operates in a fully supervised setting. The authors mention that extending these ideas to weakly supervised scenarios (where only a list of actions is provided without timestamps) is a separate, ongoing challenge in the field.

Summary updated

BibTeX
@inproceedings{farha2019ms,
  author = {Yazan Abu Farha and Juergen Gall},
  title = {{MS-TCN: Multi-Stage Temporal Convolutional Network for Action Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00369},
}
Figure