TALL: Temporal Activity Localization via Language Query

Jiyang Gao, Chen Sun, Zhenheng Yang, Ram Nevatia

Abstract

This paper focuses on temporal localization of actions in untrimmed videos. Existing methods typically train classifiers for a pre-defined list of actions and apply them in a sliding window fashion. However, activities in the wild consist of a wide combination of actors, actions and objects; it is difficult to design a proper activity list that meets users' needs. We propose to localize activities by natural language queries. Temporal Activity Localization via Language (TALL) is challenging as it requires: (1) suitable design of text and video representations to allow cross-modal matching of actions and language queries; (2) ability to locate actions accurately given features from sliding windows of limited granularity. We propose a novel Cross-modal Temporal Regression Localizer (CTRL) to jointly model text query and video clips, output alignment scores and action boundary regression results for candidate clips. For evaluation, we adopt the TaCoS dataset and build a new dataset for this task on top of Charades by adding sentence temporal annotations, called Charades-STA. We also build complex sentence queries in Charades-STA for testing. Experimental results show that CTRL outperforms previous methods significantly on both datasets.

Introduction

Traditional action localization in video often operates under a "closed vocabulary" assumption. Models are trained to recognize a fixed set of categories—such as "running" or "cooking"—and then deployed to find these actions within untrimmed video streams using sliding window techniques. However, real-world human activities are far more nuanced and open-ended. A user might seek a specific, complex sequence like "A person runs to the window and then looks out."

Designing discrete labels for every possible permutation of actors, objects, and actions is an intractable task. This paper addresses this limitation by introducing Temporal Activity Localization via Language (TALL). The goal is to ground natural language queries directly into temporal segments of a video, moving beyond fixed labels toward a more flexible, semantic understanding of video content.

Example of the TALL task: localizing a specific activity segment based on a natural language query.

The Cross-modal Temporal Regression Localizer (CTRL)

To tackle the TALL task, the authors propose the Cross-modal Temporal Regression Localizer (CTRL). This framework is designed to jointly process visual and textual information to identify and refine activity boundaries. The architecture consists of four primary components:

  1. Visual Encoder: Utilizing a C3D network, this module extracts features from a candidate "central" video clip along with its immediate "pre-context" and "post-context" clips. This contextual information is vital, as the boundaries of an action are often defined by the states immediately preceding and following it.
  2. Sentence Encoder: This module transforms the natural language query into a dense vector representation. The researchers evaluated both standard LSTMs and "Skip-thought" vectors to capture the semantic essence of the query.
  3. Multi-modal Processing Module: Rather than relying on simple similarity metrics, this module fuses visual and textual vectors through element-wise addition, multiplication, and concatenation. A subsequent fully connected layer learns the complex, non-linear interactions between the two modalities.
  4. Temporal Localization Regression Network: This final stage produces two outputs for each candidate clip: an alignment score, indicating the match quality between the clip and the query, and a location regressor, which predicts temporal offsets to "nudge" the start and end times for a more precise fit.

Datasets and Benchmarking

The study utilizes two main benchmarks to evaluate performance:

  • TACoS: A well-established dataset featuring cooking activities paired with natural language descriptions.
  • Charades-STA: A new dataset introduced in this work. The authors enhanced the existing Charades dataset by adding 13,898 clip-sentence pairs with precise temporal annotations. They also created a "Complex Query Set" to test the model's ability to handle multi-part, sequential action descriptions.

Key Insights and Results

The performance was measured using the Recall@n (IoU=m) metric, which tracks whether the ground truth segment is among the top $n$ predictions with an Intersection over Union (IoU) greater than $m$.

  • Regression Accuracy: A key finding was that non-parameterized regression (predicting raw temporal offsets) outperformed the parameterized log-space scaling typically used in 2D object detection. The authors argue that because "time itself is the standard scale," linear offsets are more effective for boundary refinement in the temporal domain.
  • Contextual Importance: Incorporating surrounding video clips (context) significantly improved the model's ability to pinpoint the exact start and end of activities.
  • Performance Gains: CTRL demonstrated substantial improvements over baselines like VSA-RNN. On the TACoS dataset, CTRL achieved a Recall@1 (IoU=0.5) of 13.30%, nearly tripling the baseline's 4.78%. On Charades-STA, it reached 23.63% Recall@1 (IoU=0.5).

Conclusion

The TALL framework and the CTRL model represent a significant step toward open-ended video understanding. By shifting from fixed action labels to natural language grounding and incorporating temporal regression, the system achieves much higher precision in localizing complex activities. Future work may involve enhancing the discriminative power of sentence embeddings and integrating finer-grained object recognition to better distinguish between similar activities involving different tools or objects.

Summary updated

BibTeX
@inproceedings{gao2017tall,
  author = {Jiyang Gao and Chen Sun and Zhenheng Yang and Ram Nevatia},
  title = {{TALL: Temporal Activity Localization via Language Query}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  url = {https://openreview.net/forum?id=Hy-kH-f_bH},
}
Figure