[Paper Review] Hyper-dimensional computing for a visual question-answering system that is trainable end-to-end
This paper proposes an end-to-end trainable visual question-answering system using hyper-dimensional (HD) computing to represent visual knowledge as high-dimensional vectors. By encoding image attributes and relations via HD-vector operations (entanglement and grouping), and formulating questions as differentiable similarity queries, the model achieves 100% accuracy on trained questions and generalizes to new questions with 60–72% accuracy, demonstrating effective end-to-end training and reasoning in HD space.
In this work we propose a system for visual question answering. Our architecture is composed of two parts, the first part creates the logical knowledge base given the image. The second part evaluates questions against the knowledge base. Differently from previous work, the knowledge base is represented using hyper-dimensional computing. This choice has the advantage that all the operations in the system, namely creating the knowledge base and evaluating the questions against it, are differentiable, thereby making the system easily trainable in an end-to-end fashion.
Motivation & Objective
- To develop a visual question-answering system that is trainable end-to-end, overcoming limitations of modular architectures with incompatible computation types.
- To address the challenge of training complex VQA models with non-differentiable components by using hyper-dimensional computing to unify perception and reasoning as differentiable operations.
- To demonstrate that HD-computing enables effective, differentiable representation of visual knowledge and query evaluation, facilitating gradient-based optimization.
- To evaluate generalization performance on novel questions not seen during training, particularly for rare or unseen shapes.
Proposed method
- The system uses a feedforward neural network to map input images (28×28 RGB) to 1000-dimensional hyper-dimensional (HD) vectors representing the image’s visual content.
- Each visual concept—color, shape, position—is encoded as a random HD-vector, and image features are combined via HD operations: entanglement (XOR-based) for binding attributes to positions, and grouping (vector addition) for aggregating multiple objects.
- Questions are formulated as differentiable similarity queries using cosine similarity between HD-vectors, where the truth of a question is determined by whether the similarity exceeds a learned threshold.
- The network is trained end-to-end using a composite loss function that minimizes the squared error between predicted and ground-truth answers across five distinct question types.
- The HD-vector output from the network is used to evaluate all questions by computing similarity scores between query patterns and the encoded image vector.
- The training process employs stochastic gradient descent to optimize the network parameters, ensuring all operations—encoding, querying, and loss computation—are differentiable.
Experimental results
Research questions
- RQ1Can hyper-dimensional computing enable a unified, differentiable framework for both visual perception and reasoning in a VQA system?
- RQ2How well can an end-to-end trainable VQA model based on HD-computing generalize to questions not seen during training?
- RQ3What is the performance of HD-based reasoning on complex relational questions involving multiple attributes and spatial relations?
- RQ4Can HD-vector operations effectively encode and retrieve visual knowledge in a way that supports accurate, differentiable question answering?
- RQ5How does the model perform on rare or unseen shapes when generalizing beyond training data?
Key findings
- The model achieved 100% accuracy on all five trained question types when tested on a held-out 30% test set, demonstrating perfect generalization on seen question patterns.
- When tested on new questions involving the 'square', 'triangle', and 'cross' shapes (not used in training), the model achieved 72%, 69%, and 60% accuracy respectively, showing measurable but decreasing performance with increasing novelty.
- The worst performance was observed on the 'cross' shape, which was never used in any training question, indicating that generalization is sensitive to the presence of a shape in the training distribution.
- The system successfully encoded and retrieved complex visual relations (e.g., object identity, spatial position, color, shape) using only differentiable operations, enabling end-to-end backpropagation.
- The use of HD-computing allowed all components—knowledge base construction and question evaluation—to be differentiable, enabling efficient and stable training via gradient descent.
- The results confirm that HD-computing provides a viable, differentiable foundation for integrating perception and reasoning in visual question answering.
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.