PIC: Permutation Invariant Convolution for Recognizing Long-range Activities

Noureldien Hussein, Efstratios Gavves, Arnold W. M. SmeuldersOpenReview 2020

TL;DR

This paper introduces PIC (Permutation Invariant Convolution), a novel neural layer designed to better model the temporal structure of long-range human activities in videos. PIC overcomes limitations of existing methods by being invariant to the order of actions within a segment, respecting local connectivity for hierarchical learning, and using shared weights for robust feature detection, leading to improved performance on challenging long-range activity recognition benchmarks.

What Problem Does This Paper Address?

Recognizing long-range human activities in videos, such as "preparing coffee" or "making a pancake," presents a significant challenge. These activities are often lengthy, composed of many short, distinct actions (unit-actions), and their temporal order can be highly variable and unpredictable. Traditional neural network components like standard convolutions, self-attention, and vector aggregation struggle with this problem. Convolutions are sensitive to precise temporal order, self-attention can be noisy and doesn't inherently respect local structure, and vector aggregation often ignores temporal locality, limiting hierarchical learning. This paper aims to bridge this gap by proposing a new temporal modeling layer that can effectively capture the complex, weakly-ordered temporal structure of these activities.

Methods

The core contribution is the Permutation Invariant Convolution (PIC) layer. PIC is designed to be a modular layer that can be stacked on top of existing CNN backbones (2D or 3D). It addresses the limitations of prior methods through three key properties:

  1. Permutation Invariance: Unlike standard convolutions, PIC is invariant to the temporal order of features within its receptive field. This is achieved by using a pair of "key" and "value" kernels (inspired by self-attention) and a max-pooling operation over temporal similarities, allowing it to model segments where the order of unit-actions is not critical.
  2. Local Connectivity: PIC operates on local temporal windows, similar to standard convolutions. This allows it to learn temporal abstractions hierarchically by cascading multiple PIC layers, building up representations from fine-grained unit-actions to broader activity segments.
  3. Shared Weights: PIC uses shared weights for its key-value kernels. This contrasts with self-attention, where these are often inferred from the input. Shared weights make PIC more robust to noisy or incomplete visual evidence within a local window, enabling it to detect the most discriminant features across the entire long-range activity.

The PIC layer also incorporates a residual bottleneck for computational efficiency and can be integrated with standard CNN architectures.

Datasets

The proposed PIC layer and its variants were evaluated on three standard datasets for long-range activity recognition:

  • Charades: A multi-label action classification dataset with 157 unit-action classes, featuring videos averaging 30 seconds.
  • Breakfast: A dataset for cooking-oriented activities, with videos averaging 2.3 minutes and a focus on 10 activity categories.
  • MultiThumos: A dataset for untrimmed human activities, primarily used for temporal localization, with 65 action classes and videos averaging 30 seconds.

Key Insights and Ideas

  • Temporal Order is Weak, Not Absent: The paper highlights that long-range activities have a temporal structure, but it's "weak" and highly variable, making strict order-based modeling insufficient. PIC's permutation invariance directly addresses this.
  • Decoupling Detection and Representation: The use of separate key (for detection) and value (for representation) kernels, inspired by self-attention but with shared weights, allows PIC to effectively detect salient concepts without being overly sensitive to their exact temporal occurrence.
  • Cascading for Hierarchy: The ability to stack PIC layers is crucial. This allows the model to learn hierarchical temporal abstractions, similar to how CNNs learn spatial hierarchies, enabling a deeper understanding of complex activities.
  • Shared Weights for Robustness: In long and potentially noisy videos, inferring temporal features from every local window can be unreliable. Shared weights provide a more stable and generalizable way to learn discriminative concepts.

Key Results

  • State-of-the-Art Performance: PIC consistently outperformed existing methods (Nonlocal, Timeception, ActionVlad) on the Charades, Breakfast, and MultiThumos datasets, achieving significant improvements in accuracy (e.g., 89.84% on Breakfast with a 3D CNN backbone).
  • Robustness to Temporal Perturbations: Experiments showed that PIC was least affected by random temporal sampling (fine and coarse permutations) compared to baselines, demonstrating its invariance property.
  • Efficiency: PIC was shown to be highly efficient, scaling sub-linearly with the number of stacked layers and offering a strong tradeoff between efficiency (CPU time, parameters, FLOPs) and effectiveness (accuracy).
  • Local Connectivity Advantage: Stacking PIC layers with local receptive fields led to monotonic accuracy improvements, unlike methods with global receptive fields that often plateaued.

Limitations and Future Work

  • Dataset Specificity: While effective, the optimal configuration (e.g., number of layers, window size) might vary across different datasets and activity types. The paper suggests that for shorter videos like Charades, three PIC layers are optimal, while for longer videos, four might be better.
  • Computational Cost of Cascading: Although PIC is efficient per layer, stacking many layers can still increase computational demands, which is a general challenge for deep temporal models.
  • Future Work: The paper implicitly suggests exploring further optimizations for efficiency and investigating the learned concepts in more detail. The modular nature of PIC also lends itself to integration with various backbone architectures and potentially other modalities.

Summary updated

BibTeX
@misc{hussein2020pic,
  author = {Noureldien Hussein and Efstratios Gavves and Arnold W. M. Smeulders},
  title = {{PIC: Permutation Invariant Convolution for Recognizing Long-range Activities}},
  year = {2020},
  eprint = {2003.08275},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.08275},
}
Figure