TL;DR
This paper argues that simply scaling up video-text datasets doesn't improve compositional reasoning in video foundation models (ViFMs). Instead, they propose SGCR-Vid, a method that leverages small, high-quality video scene graph (VidSG) datasets to significantly boost compositional reasoning abilities, even outperforming larger-scale training on general tasks.
What Problem Does This Paper Address?
Video Foundation Models (ViFMs) have become incredibly powerful, excelling at tasks like video-text retrieval and action recognition, largely due to massive scaling of video-text datasets. However, a critical capability for real-world understanding is compositional reasoning: the ability to understand complex relationships between objects, actions, and their temporal dynamics within a video. Existing ViFMs struggle with this, often performing at chance levels on compositional reasoning benchmarks. The authors question whether simply increasing the size of video-text datasets, a common practice for improving general performance, actually helps with this specific, complex reasoning ability. They hypothesize that large datasets might contain too much noise and repetitive patterns, hindering deeper understanding.
Methods
The core of the paper is the proposed SGCR-Vid method, designed to enhance compositional reasoning by leveraging structured information from Video Scene Graphs (VidSGs). SGCR-Vid has two main branches:
- Text-based Scene Graph (TSG) Branch: This branch converts VidSG information into a textual format. It then employs contrastive learning by generating both positive and negative samples. These negative samples are crucial for teaching the model fine-grained distinctions, helping it understand relationships, attributes, and temporal order more robustly. This involves generating negative attributes (e.g., "long" instead of "thin"), negative predicates (e.g., "whisper to" instead of "shout at"), and negative temporal relationships (e.g., reversing the order of events).
- Visual-based Scene Graph (VSG) Branch: This branch directly enriches the video embeddings. It introduces learnable "SG tokens" that are prepended to the standard patch tokens within the video encoder. These SG tokens are trained to capture the structured relational information from the VidSGs, using cross-attention and spatio-temporal transformers to integrate this visual relational context.
The overall training objective combines the standard contrastive loss from pretraining with losses from both the TSG and VSG branches. They also use LoRA (Low-Rank Adaptation) for efficient fine-tuning.
Datasets
- Training:
- VidSG Datasets: A combination of VidVRD and VidOR, totaling 9K videos. These datasets provide detailed annotations of object trajectories and relational information (95 entity labels, 167 predicate labels).
- Video-Text Pair Dataset: 32K samples from InternVid, used for fine-tuning.
- Evaluation:
- Compositional Reasoning Benchmarks:
- VELOCITI: Evaluates agent, action, and event chronology understanding.
- Compositional Reasoning Benchmarks:
- VideoCon: Focuses on compositional reasoning with perturbed captions.
- Downstream Tasks (for generalizability): * Video-Text Retrieval: MSR-VTT, MSVD, DeDiMo.
- Action Recognition: Kinetics-400 (K400).
Key Insights and Ideas
- Data Scaling is Not a Panacea for Compositional Reasoning: The paper's central finding is that simply increasing the size of video-text datasets does not consistently improve compositional reasoning. This challenges a dominant paradigm in ViFM development.
- High-Quality, Structured Data is Key: Small, but richly structured datasets like VidSGs can be far more effective for improving compositional reasoning than massive, less structured video-text pairs.
- Negative Sampling is Crucial for Fine-Grained Understanding: The TSG branch's use of carefully crafted negative samples (for attributes, predicates, and temporal order) is vital for teaching ViFMs to distinguish subtle relational nuances.
- Explicitly Encoding Relational Information Works: The VSG branch's approach of injecting learnable SG tokens directly into the video encoder effectively grounds visual representations with structured relational context.
- Synergy Between Textual and Visual Relational Information: Combining the TSG and VSG branches leads to synergistic improvements, outperforming either branch alone.
Key Results
- Significant Improvement on Compositional Reasoning: SGCR-Vid, when applied to ViCLIP and InternVideo2, achieved substantial performance gains on VELOCITI and VideoCon benchmarks.
- Extreme Data Efficiency: The method achieved these improvements using less than 0.5% of the pretraining data scale (specifically, 9K VidSGs out of hundreds of millions of video-text pairs).
- Maintained Generalizability: SGCR-Vid showed minimal performance drop (less than 1%) on general downstream tasks (video-text retrieval, action recognition) compared to the backbone models, demonstrating it enhances reasoning without sacrificing broad applicability.
- Model Architecture Matters for Hyperparameters: The optimal number of SG tokens and the weight of the VSG loss coefficient varied depending on the ViFM's architecture (e.g., deeper models like InternVideo2 benefited from higher weights).
Limitations and Future Work
- Data Scalability of VidSGs: While effective, VidSG datasets are currently limited in scale due to the high cost of manual annotation.
- Future Work - Weakly Supervised VidSGs: The authors suggest exploring weakly supervised methods to generate VidSG data more scalably, mitigating the annotation cost.
- Future Work - Multimodal Large Language Models (MLLMs): They plan to extend their approach to MLLMs, which are designed for generative tasks, to improve their compositional reasoning capabilities, as current MLLMs also struggle in this area.
Summary updated