What kinds of errors do reference resolution models make and what can we learn from them?

Jorge Sánchez, Mauricio Mazuecos, Hernán Maina, Luciana BenottiNAACL 2022

This research, presented at NAACL 2022, addresses a fundamental challenge in bridging computer vision and natural language processing: Referring Expression Comprehension (REC). While modern AI systems have become proficient at identifying simple objects like "a red car," they frequently stumble when faced with complex, situated descriptions such as "the second car from the left, behind the tree." The authors investigate the root causes of these failures and propose architectural solutions to mitigate them.

The Problem: The "Bag of Patches" Limitation

In REC, a model must localize a specific region in an image based on a natural language query. Current state-of-the-art models typically rely on Transformer architectures that treat an image as a flattened sequence of patches. The authors argue that this approach destroys the inherent 2D structure of the visual world—what they call "spatial natural constraints."

Furthermore, standard evaluation metrics often mask these weaknesses. By reporting a single aggregate accuracy score, researchers overlook the fact that models perform well on "Intrinsic" expressions (e.g., "the tall fence") but fail significantly on "Relational" or "Ordinal" expressions (e.g., "the woman behind the other woman" or "the 2nd set of jewels").

Proposed Methods: Restoring Spatiality

To address the spatial weakening inherent in flattened Transformers, the researchers propose two key modifications to a baseline model consisting of a ResNet-50 visual backbone and a BERT language encoder.

Overview of the REC model architecture, featuring image and language encoders fused by a cross-modal Transformer.
  1. Restoring Referential Spatiality: The model "unflattens" the 1D sequence of visual embeddings back into a 2D feature map. This map is then processed through a series of convolutional layers. Because convolutions possess an inductive bias for locality, they help the model recapture the spatial relationships lost during the initial flattening process.
  2. Dual-Head Prediction: The authors introduce an auxiliary segmentation head alongside the standard bounding box predictor. This forces the model to predict a pixel-wise mask of the object, acting as a "spatial consistency constraint" that improves the model's focus on the actual extent and shape of the referent.

Datasets and Categorization

The models were evaluated on standard benchmarks including ReferItGame, RefCOCO, RefCOCO+, and RefCOCOg. A major contribution of this work is the automatic classification of expressions into four linguistically motivated groups: Intrinsic, Spatial, Ordinal, and Relational.

Distribution and overlap of the four linguistically motivated expression categories: Intrinsic, Spatial, Ordinal, and Relational.

This disaggregation reveals that while models might achieve ~82% accuracy on Intrinsic queries, their performance can drop to as low as ~28% for Ordinal ones, highlighting that spatial reasoning is the primary bottleneck in REC.

Key Results and Insights

The "Extended" model, incorporating the convolutional layers and segmentation head, demonstrated consistent improvements:

  • Relational/Ordinal Breakthroughs: The most significant gains occurred in the most difficult categories. Ordinal accuracy on ReferItGame jumped from 28.47% to 35.46%, a 24.6% relative improvement.
  • Overall Performance: Accuracy on the ReferItGame dataset rose from 66.76% to 70.92%, with the model achieving state-of-the-art or competitive results on RefCOCOg's complex descriptions.
  • The Value of Inductive Bias: The results suggest that even in the era of attention-only models, the inductive biases of convolutions (locality and hierarchy) remain vital for tasks requiring precise spatial grounding.

Limitations and Future Directions

Despite these advances, several challenges remain. Models still struggle with "fuzzy" objects (like "the sky") that lack clear boundaries and fail at tasks requiring viewpoint-dependent reasoning (e.g., understanding "behind the boy" from the boy's perspective). Future work should focus on moving beyond simple spatial priors toward models capable of handling "common ground" and implicit reasoning in situated human-AI dialogues.

Summary updated

BibTeX
@inproceedings{sanchez2022what,
  author = {Jorge Sánchez and Mauricio Mazuecos and Hernán Maina and Luciana Benotti},
  title = {{What kinds of errors do reference resolution models make and what can we learn from them?}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-naacl.152},
}
Figure