Abstract
Traditional video captioning models rely on autoregressive decoding, generating sentences word-by-word. While effective, this sequential process leads to high inference latency, a lack of semantic control, and repetitive outputs. This paper presents O2NA (Object-Oriented Non-Autoregressive), a framework that treats objects as semantic anchors to generate captions in parallel. By decoupling object identification from linguistic refinement, O2NA achieves a 4x speedup in inference time and significantly improves caption diversity while remaining competitive with state-of-the-art accuracy benchmarks.
Introduction
Video captioning is a critical task for applications ranging from robotics to assistive technologies for the visually impaired. However, standard models suffer from three primary hurdles:
- Lack of Control: It is difficult to force models to mention specific "focused" objects because the generation path is determined by previously generated words.
- Inference Latency: Sequential word generation is computationally slow, limiting real-time utility.
- Low Diversity: Models often default to generic, "safe" descriptions, leading to repetitive results.
O2NA addresses these issues by shifting the paradigm from sequential word prediction to a parallel, object-first approach.
The O2NA Framework
The O2NA architecture moves away from sequential decoding by utilizing a three-step pipeline designed for speed and controllability.
- Prediction: An Object Predictor (OP) identifies relevant objects in the video, while a Length Predictor (LP) estimates the target word count.
- Drafting (Object Generator): The model creates a "coarse-grained" draft by placing identified objects into likely positions within the sentence length, using masks for the remaining slots.
- Refinement (Caption Generator): A Transformer-based decoder fills these masks with attributes (colors, sizes) and relations (actions, positions). This stage uses an iterative refinement process to "proofread" and improve the draft into a fluent sentence.
Controllability and Semantic Anchoring
The core innovation of O2NA is the use of objects as semantic anchors. Because the model builds sentences around specific objects, users can manually "inject" desired objects into the pipeline. This makes the system highly adaptable for specific needs, such as safety alerts in autonomous systems.
As shown above, while conventional models may produce a single generic description, O2NA can generate multiple diverse captions by focusing on different object combinations. This parallel nature allows the model to explore a wider variety of sentence structures compared to autoregressive counterparts.
Experimental Results
The researchers evaluated O2NA on the MSR-VTT and MSVD benchmarks, using the spaCy library to extract a robust object vocabulary from training data.
- Speed: O2NA achieved an inference speed of 70.8 Videos Per Second (VPS) on a single TITAN Xp GPU, a nearly 4x speedup over comparable state-of-the-art models like SAAT (17.6 VPS).
- Diversity: The model significantly outperformed existing methods in diversity metrics. On MSR-VTT, the "Novel" score (percentage of captions not seen in training) reached 37.2, compared to the previous best of 26.8.
- Accuracy: Despite the shift to non-autoregressive decoding—which is traditionally less accurate—O2NA remained competitive, achieving a 51.1 CIDEr score on MSR-VTT.
Conclusion
O2NA demonstrates that non-autoregressive, object-oriented generation is a viable and superior path for controllable video captioning. While the model's performance is currently dependent on the accuracy of the Object Predictor, it opens new doors for real-time, diverse, and user-steerable video description. Future work will focus on providing users with even finer control, such as specifying the narrative order of objects.
Summary updated