[Paper Review] Learning by Abstraction: The Neural State Machine
The paper proposes the Neural State Machine (NSM), a differentiable graph network that models visual scenes as probabilistic scene graphs and performs sequential reasoning over them using attention-based state transitions guided by natural language questions. It achieves state-of-the-art performance on GQA and VQA-CP, demonstrating strong generalization to novel concepts and linguistic structures by operating in a structured, abstract semantic space that enhances modularity and interpretability.
We introduce the Neural State Machine, seeking to bridge the gap between the neural and symbolic views of AI and integrate their complementary strengths for the task of visual reasoning. Given an image, we first predict a probabilistic graph that represents its underlying semantics and serves as a structured world model. Then, we perform sequential reasoning over the graph, iteratively traversing its nodes to answer a given question or draw a new inference. In contrast to most neural architectures that are designed to closely interact with the raw sensory data, our model operates instead in an abstract latent space, by transforming both the visual and linguistic modalities into semantic concept-based representations, thereby achieving enhanced transparency and modularity. We evaluate our model on VQA-CP and GQA, two recent VQA datasets that involve compositionality, multi-step inference and diverse reasoning skills, achieving state-of-the-art results in both cases. We provide further experiments that illustrate the model's strong generalization capacity across multiple dimensions, including novel compositions of concepts, changes in the answer distribution, and unseen linguistic structures, demonstrating the qualities and efficacy of our approach.
Motivation & Objective
- To bridge the gap between neural and symbolic AI by integrating their complementary strengths in visual reasoning.
- To address the limitations of deep learning models in systematic generalization, interpretability, and modularity.
- To enable robust reasoning over visual scenes through a structured, abstract representation that supports compositionality and sequential inference.
- To evaluate generalization across novel concepts, unseen linguistic structures, and shifted answer distributions in visual question answering.
Proposed method
- The model first constructs a probabilistic scene graph from an image, where nodes represent objects with attributes and edges represent spatial and semantic relations.
- It then treats the scene graph as a state machine, with nodes as states and edges as transitions, enabling sequential reasoning over the graph.
- Natural language questions are embedded into soft instructions that guide iterative attention-based traversal over the graph nodes to compute answers.
- The model uses a shared semantic vocabulary of concepts (objects, attributes, relations) to align visual and linguistic modalities into a common abstract space.
- Reasoning is performed via differentiable message passing over the graph, with attention mechanisms selecting relevant nodes and edges at each step.
- The architecture is trained end-to-end to predict answers while maintaining disentangled structure and content representations.
Experimental results
Research questions
- RQ1Can a neural model achieve strong generalization to novel compositions of visual concepts not seen during training?
- RQ2Can the model generalize to questions with unseen linguistic structures, even when the training data distribution is shifted?
- RQ3Does operating in an abstract, structured latent space improve interpretability and modularity compared to direct processing of raw sensory inputs?
- RQ4Can a graph-based, automaton-like computation over a scene graph outperform end-to-end neural networks on compositional visual reasoning tasks?
Key findings
- The Neural State Machine achieves state-of-the-art accuracy of 40.24% on the GQA content generalization split and 55.72% on the structure generalization split, significantly outperforming prior methods.
- On VQA-CPv2, the NSM achieves 45.80% accuracy, surpassing all prior single-model approaches, including BAN (39.31%) and ReGAT (40.42%).
- The model demonstrates strong zero-shot generalization to unseen object categories (e.g., foods, animals) not seen in training questions, achieving 40.24% on the content split.
- It generalizes effectively to novel linguistic structures, achieving 55.72% on the structure generalization split, indicating robustness to syntactic and semantic variations.
- The model’s performance remains high even when answer distributions shift, showing resilience to distributional shift in test data.
- Ablation studies confirm that the structured, abstract representation and sequential reasoning mechanism are key to the model’s generalization capacity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.