[Paper Review] From visual words to a visual grammar: using language modelling for image classification
This paper introduces a Visual Grammar model that adapts linguistic concepts—meaningfulness, synonymy, and polysemy—to improve image classification using the Bag-of-Visual-Words (BoVW) framework. By applying language modelling principles to filter and reweight visual words, the method enhances classification accuracy while reducing descriptor size, outperforming baseline BoVW and achieving competitive results with Fisher vectors at a fraction of the descriptor length when combined with cosine similarity.
The Bag--of--Visual--Words (BoVW) is a visual description technique that aims at shortening the semantic gap by partitioning a low--level feature space into regions of the feature space that potentially correspond to visual concepts and by giving more value to this space. In this paper we present a conceptual analysis of three major properties of language grammar and how they can be adapted to the computer vision and image understanding domain based on the bag of visual words paradigm. Evaluation of the visual grammar shows that a positive impact on classification accuracy and/or descriptor size is obtained when the technique are applied when the proposed techniques are applied.
Motivation & Objective
- To address the limitations of the Bag-of-Visual-Words (BoVW) model in image classification, particularly its sensitivity to vocabulary size and lack of semantic weighting.
- To explore how core linguistic grammar properties—meaningfulness, synonymy, and polysemy—can be adapted to the visual domain to improve image representation.
- To develop a generic, language modelling-based framework that enhances image understanding without increasing descriptor dimensionality.
- To evaluate the impact of visual grammar transformations on classification accuracy and descriptor size across standard benchmarks.
Proposed method
- The Visual Grammar model applies three transformations to the standard BoVW: (1) meaningfulness filtering to remove low-utility visual words, (2) synonymy detection to group semantically similar visual words, and (3) polysemy quantification to identify ambiguous words.
- Meaningfulness is quantified using a threshold-based pruning strategy, reducing vocabulary size while preserving discriminative power.
- Synonymy is modeled through a set of criteria that define relationships between visual word pairs, enabling feature fusion or merging.
- Polysemy is identified and measured as a source of ambiguity, allowing for more robust representation in ambiguous contexts.
- A cosine similarity measure is extended to incorporate all three transformations, enabling improved similarity computation in the visual space.
- The method is evaluated using SIFT-based BoVW representations on PASCAL VOC 2007 and ImageCLEF 2013 datasets with a 1-NN classifier.
Experimental results
Research questions
- RQ1Can linguistic concepts such as meaningfulness, synonymy, and polysemy be effectively adapted to improve visual representation in image classification?
- RQ2To what extent can these grammar-inspired transformations reduce descriptor size without sacrificing classification accuracy?
- RQ3How does the proposed Visual Grammar model compare to established methods like Fisher vectors in terms of accuracy and descriptor length?
- RQ4What is the optimal balance between vocabulary reduction and performance degradation when applying meaningfulness filtering?
- RQ5Does combining the Visual Grammar transformations with cosine similarity yield better performance than baseline BoVW?
Key findings
- Stable, statistically significant improvements in classification accuracy (p < 0.05) were achieved with small reductions in vocabulary size when using cosine similarity with Visual Grammar transformations.
- Similar classification accuracy to the baseline BoVW was maintained even with moderate to large reductions in vocabulary size, regardless of the similarity metric used.
- Extreme vocabulary reductions beyond 10–20% of the initial size led to significant accuracy degradation, indicating a performance threshold for pruning.
- The Visual Grammar model achieved competitive accuracy compared to Fisher vectors but with significantly smaller descriptor sizes, particularly when combined with cosine similarity.
- The method successfully reduced descriptor dimensionality while preserving or improving classification performance, demonstrating its effectiveness for compact visual representation.
- The framework enables identification of cross-type feature relationships and provides a principled way to reduce BoVW dimensionality through linguistic-inspired filtering and grouping.
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.