Abstract
Zero-Shot Compositional Action Recognition (ZS-CAR) aims to identify novel verb-object combinations (e.g., "folding a napkin") by leveraging knowledge of individual primitives learned during training. Current approaches often struggle with spurious correlations and a lack of hierarchical understanding, leading to physically impossible predictions. This paper introduces LogicCAR, a neuro-symbolic framework that integrates first-order logic constraints into the neural training process. By employing Explicit Compositional Logic (ECL) and Hierarchical Primitive Logic (HPL), the model enforces structural consistency and semantic relationships. Experimental results on the Something-composition (Sth-com) dataset demonstrate that LogicCAR achieves state-of-the-art performance, significantly improving the model's ability to generalize to unseen action-object pairs.
Introduction
In computer vision, the ability to recognize actions in a zero-shot setting is a critical step toward human-like intelligence. Specifically, Zero-Shot Compositional Action Recognition (ZS-CAR) focuses on identifying video sequences of verb-object pairs that were never encountered during training. For instance, if a model has seen "pushing a cup" and "pulling a bottle," it should ideally be able to recognize "pushing a bottle."
However, existing models face two primary challenges. First, they often rely on spurious correlations, predicting combinations that are semantically or physically nonsensical because they lack an inherent understanding of compositional structure. Second, they typically ignore semantic hierarchies, treating labels as flat entities. This prevents models from recognizing that specific actions (e.g., "falling like a rock") are sub-types of broader categories (e.g., "falling"), which limits their capacity for fine-to-coarse reasoning.
The LogicCAR Framework
To address these limitations, LogicCAR bridges the gap between deep learning and symbolic reasoning. The framework embeds human-like logic directly into the neural network's optimization process using differentiable constraints.
1. Explicit Compositional Logic (ECL)
ECL ensures that the model respects the fundamental structure of a composition. Mathematically, it enforces the rule that if a video is classified as "napkin fall like a feather," the model must simultaneously detect the presence of the verb "fall like a feather" and the object "napkin." Furthermore, it enforces exclusivity constraints to prevent contradictory predictions, such as an object being classified as both a "napkin" and a "hat."
2. Hierarchical Primitive Logic (HPL)
HPL introduces a semantic hierarchy for both verbs and objects. Verbs are clustered based on their core motion patterns (e.g., "tearing paper" and "tearing cloth" share a "tear" parent). For objects, the authors utilized a Large Language Model (DeepSeek-R1-Distill-Llama-70B) to automatically generate a common-sense hierarchy, placing objects into broader categories like "furniture" or "tools."
3. Integration via Fuzzy Logic
Because standard Boolean logic (True/False) is incompatible with the continuous gradients of neural networks, LogicCAR utilizes Fuzzy Logic (specifically Goguen and Gödel logic). This allows the logical rules to be translated into differentiable loss functions. During backpropagation, the model is penalized for predictions that violate these logical guardrails, effectively teaching the network to prioritize common-sense reasoning alongside feature recognition.
Experimental Results
The model was evaluated on the Something-composition (Sth-com) dataset, a benchmark derived from Something-Something V2. The dataset includes 5,124 unique compositions across nearly 80,000 video samples, specifically designed to test generalization to unseen combinations.
LogicCAR established a new state-of-the-art (SOTA) on this benchmark:
- AUC (Area Under Curve): Achieved 27.0%, surpassing the previous best method (C2C) at 25.9%.
- Unseen Metric: Reached 57.9% accuracy on unseen combinations, a significant improvement over the 55.1% achieved by prior models.
- Qualitative Performance: Confusion matrices indicate that LogicCAR is significantly better at distinguishing between similar motions (e.g., different objects falling) because it understands the shared hierarchical motion of "falling" while maintaining the distinct identity of the objects involved.
Discussion and Limitations
LogicCAR demonstrates that treating logic as a loss term rather than a post-processing filter allows models to learn deeper, more structured representations. The use of LLMs as "knowledge bases" for semantic hierarchies also proves to be a scalable alternative to manual labeling.
However, the framework has two notable limitations. First, the reliance on third-party LLM APIs for hierarchy generation introduces potential latency and cost bottlenecks in large-scale deployments. Second, while the model excels at compositional zero-shot learning, it remains limited by its "seen primitives"; it cannot recognize a verb or object it has never encountered in any context during training.
Conclusion
LogicCAR represents a significant step forward in neuro-symbolic AI for video understanding. By constraining neural networks with hierarchical and compositional logic, the framework reduces hallucinations and improves generalization to the long tail of unseen action combinations. Future work will focus on automated constraint learning, enabling models to discover logical rules directly from raw data without human intervention.
Summary updated