Describing Textures Using Natural Language

Chenyun Wu, Mikayla Timm, Subhransu Maji

Abstract

Textures in natural images are characterized by a complex interplay of color, shape, and periodicity. While deep networks often rely on texture for recognition, our ability to describe these visual features has historically been limited to simple binary labels. This paper introduces $DTD^2$, a novel dataset containing rich, natural language descriptions of textures. We conduct a systematic study of generative and discriminative models for grounding language to images, revealing that while current models capture basic properties, they struggle with compositional logic—such as correctly assigning colors to specific elements. We further demonstrate that texture attributes learned on our dataset can provide interpretable explanations and improve performance in fine-grained categorization tasks, such as bird species identification.

Introduction: Beyond Binary Labels

In computer vision, texture is a fundamental yet often under-described component of visual recognition. While we focus on object shapes, deep networks frequently rely on texture to distinguish between similar categories, such as different species of animals. However, existing datasets typically offer only a handful of binary attributes (e.g., "is it striped?"). This research addresses the lack of compositional descriptions, aiming to bridge the gap between visual texture and the rich descriptive power of natural language.

The $DTD^2$ Dataset

The core contribution of this work is the $DTD^2$ (Describable Textures in Detail) dataset. It builds upon the original Describable Textures Dataset (DTD) by adding 24,697 natural language descriptions for 5,369 images. These descriptions move beyond simple tags to capture the nuance of real-world surfaces.

Sample annotations from the $DTD^2$ dataset showing rich, multi-faceted descriptions for rope and zebra-like patterns.

Modeling and Results

The researchers investigated three primary strategies to map images to text:

  1. Discriminative Approach: A multi-label classifier (ResNet101) treating phrases as binary attributes.
  2. Metric Learning: Learning a shared embedding space for images and text using encoders like BERT, ELMo, and LSTMs.
  3. Generative Approach: An attention-based "Show-Attend-Tell" architecture that generates descriptions from scratch.

Among these, the BERT-based metric learning model achieved the highest performance, with a Mean Average Precision (MAP) of 31.77 on phrase retrieval. This suggests that pre-trained language context is vital for capturing the nuances of texture phrases.

Descriptive attributes for a bubble texture, illustrating how the dataset captures specific properties like color, shape, and surface quality.

The Compositionality Trap

A striking finding of the study is the "compositionality trap." Even high-performing models like BERT fail at basic spatial logic. In synthetic tests, models were often unable to distinguish between "pink dots on a green background" and "green dots on a pink background." They recognize the presence of both colors but fail to "ground" or bind them to specific shapes. On a controlled "two-colors" synthetic task, models performed only slightly better than random guessing (21-27% vs. 5.26%), highlighting a major deficiency in current spatial reasoning capabilities.

Texture as an Explainer

Beyond retrieval, the authors show that texture attributes can serve as a bridge for Explainable AI (XAI). Instead of a black-box classification, a model can explain a "Tiger Lily" identification through its attributes: "because it is black, red, white, and dotted." On the Caltech-UCSD Birds (CUB) dataset, combining texture attributes with expert-designed features led to consistent performance improvements, demonstrating the real-world utility of the $DTD^2$ framework.

Conclusion

While modern AI can identify the components of a texture, it lacks the spatial grounding to describe how those components relate to one another. Solving this "binding problem"—linking specific adjectives to specific image regions—is the next essential step in creating AI that perceives and describes the world with human-like accuracy.

Summary updated

BibTeX
@inproceedings{wu2020describing,
  author = {Chenyun Wu and Mikayla Timm and Subhransu Maji},
  title = {{Describing Textures Using Natural Language}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  url = {https://openreview.net/forum?id=GMrRCZJaUtr},
}
Figure