O2NA: An Object-Oriented Non-Autoregressive Approach for Controllable Video Captioning

Fenglin Liu, Xuancheng Ren, Xian Wu, Bang Yang, Shen Ge, Xu Sun

Abstract

Traditional video captioning systems typically employ autoregressive decoding, generating sentences word-by-word. This sequential nature often results in high inference latency and a lack of explicit control over which objects are mentioned. We propose O2NA (Object-Oriented Non-Autoregressive), a novel framework that treats objects as the structural "skeleton" of a caption. By first predicting key objects and their positions, and then filling in linguistic details in parallel, O2NA achieves significant speedups and enhanced caption diversity. Our experiments on MSR-VTT and MSVD datasets demonstrate that O2NA reaches an inference speed of 70.8 videos per second (VPS) while outperforming state-of-the-art models in diversity metrics.

Introduction

Most current video captioning systems are autoregressive, meaning they generate sentences one word at a time from left to right. While effective, this approach has two major drawbacks: latency and a lack of control. Generating long sentences word-by-word is slow, making it difficult to use these models in real-time scenarios like human-robot interaction. Furthermore, it is difficult to force these models to mention specific important objects because the model decides what to say word-by-word based on probability, not user intent.

The authors argue that video captioning should be "object-oriented." Humans usually identify the primary actors or objects in a scene first and then describe their actions and relationships. O2NA mimics this by making objects the "skeleton" of the caption, as shown in the comparison below.

Comparison between a conventional video captioning model and the proposed Object-Oriented Non-Autoregressive (O2NA) model.

Methods: The O2NA Architecture

The O2NA architecture breaks the generation process into three distinct, non-sequential steps to enable parallel processing and object-level control.

The O2NA architecture features specialized modules for Object Prediction (OP), Length Prediction (LP), Object Generation (OG), and Caption Generation (CG).

1. Object & Length Prediction

The process begins with an Object Predictor (OP) that identifies which objects are present in the video from a predefined vocabulary. Simultaneously, a Length Predictor (LP) estimates the total number of words for the final caption.

2. Object Generation (The Skeleton)

Instead of starting from the first word, the Object Generator (OG) places the identified objects into their most likely positions within the predicted sentence length. This creates a "coarse-grained" draft (e.g., [MASK] motorcycles [MASK] street). This step provides a strong structural hint, helping the model maintain coherence without sequential dependencies.

3. Caption Generation (The Refinement)

Finally, the Caption Generator (CG) fills in the remaining attributes and relations—such as verbs, adjectives, and prepositions—to create a fluent sentence. This module uses an iterative refinement process to "proofread" and improve the draft. Because the objects are already placed, the CG can generate all other words in parallel, drastically reducing latency.

Key Results and Insights

The model was evaluated on two benchmark datasets: MSR-VTT (10,000 clips) and MSVD (roughly 2,000 clips). The object vocabulary was constructed by extracting nouns from these datasets using the spaCy library.

  • Speed: O2NA is remarkably fast, achieving 70.8 Videos Per Second (VPS) on a single GTX 1080 Ti. For comparison, the state-of-the-art SAAT model runs at roughly 17.6 VPS.
  • Diversity: The model significantly outperformed existing methods in diversity metrics. It showed a 39% improvement in "Novel" captions (captions not seen in the training set) and an 18% boost in Vocabulary Usage.
  • Controllability: By allowing users (or a secondary system) to manually set the "object bits," the model can be forced to describe specific items of interest. This makes the system "controllable" in a way that standard models are not.
  • Efficiency vs. Depth: The authors found that a single-layer Transformer decoder actually performed better and faster than deeper stacks for this specific task, suggesting that for video-to-text, "shallow and wide" (parallel) is highly effective.

Conclusion

O2NA addresses the dual challenges of latency and controllability in video captioning by adopting an object-oriented, non-autoregressive approach. While the model is highly efficient, its performance is sensitive to the accuracy of the initial Object Predictor; misidentifying an object can lead to fluent but factually incorrect captions. Future work may involve integrating more robust, pre-trained object detectors to further enhance factual accuracy and extending the framework to handle more complex controllable scenarios, such as specifying the emotional tone of a description.

Summary updated

BibTeX
@inproceedings{liu2021o,
  author = {Fenglin Liu and Xuancheng Ren and Xian Wu and Bang Yang and Shen Ge and Xu Sun},
  title = {{O2NA: An Object-Oriented Non-Autoregressive Approach for Controllable Video Captioning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.findings-acl.24},
}
Figure