Explorations in Texture Learning

Blaine Hoak, Patrick McDaniel

In the world of computer vision, it is a well-known secret that Convolutional Neural Networks (CNNs) do not see the world the way we do. While humans prioritize shape to identify a chair or a dog, CNNs are notorious "texture junkies," often relying on local patterns—like the weave of a fabric or the grain of wood—to make their predictions.

A recent ICLR 2024 Tiny Paper, "Explorations in Texture Learning" by Blaine Hoak and Patrick McDaniel, takes this observation a step further. Instead of just measuring if a model is biased toward texture, they ask: Which specific textures has the model learned to associate with which objects?

TL;DR

Researchers mapped associations between 47 texture categories and 1,000 object classes to reveal how CNNs "shortcut" their way to classifications. Their findings uncover hidden dataset biases—like a model learning that "polka dots" equal "baby bibs"—and highlight where models fail to generalize textures we would consider obvious, such as scales on a fish.

What Problem Does This Paper Address?

We know CNNs have a "texture bias," but this bias is often treated as a monolithic flaw. However, understanding the specifics of this bias is crucial for model interpretability and safety. If a medical imaging model associates a specific "bumpy" texture with a tumor, is it because it understands the pathology, or because of a quirk in how the images were captured?

The authors aim to move from simply acknowledging texture bias to building a functional "map" of texture-object associations. By doing so, they can identify:

  1. Expected associations: Where the model correctly identifies a defining texture (e.g., stripes for a zebra).
  2. Unexpected biases: Where the model learns a "shortcut" based on coincidental patterns in the training data.
  3. Missing associations: Where the model fails to learn a texture that humans find intuitive.

Methods and Datasets

The researchers employed a clever cross-dataset evaluation strategy. They took standard ResNet50 and ResNet152 models that had been pre-trained on ImageNet—a massive dataset of 1,000 object classes.

Instead of feeding the models more objects, they fed them "texture-only" images using the Describable Textures Dataset (DTD), which contains 5,640 images across 47 texture classes (e.g., bubbly, scaly, matted, porous).

They measured the Effect Size: the ratio of images within a specific texture class that the model classified as a specific ImageNet object. For example, if 73% of "honeycombed" texture images were classified as the "honeycomb" object, that indicates a very strong learned association. Crucially, they used textures that were not always obvious matches for ImageNet objects to see if the model would force a connection.

Key Insights and Ideas

The study categorized the texture-object mappings into three fascinating buckets:

1. The "Bib" Bias (Not Expected & Strongly Present)

The model strongly associated "polka-dotted" and "dotted" textures with the "bib" (baby bib) object class. Why? Upon inspecting the ImageNet training data, the authors found a disproportionate number of bib examples featured polka dots. The model didn't learn what a bib is; it learned that "dots = bib."

Example of a polka-dotted bib from the dataset.

2. Generalization Beyond Nature (Expected & Strongly Present)

The "honeycombed" texture was classified as "honeycomb" 73.1% of the time. This sounds obvious, but the DTD images included hexagonal patterns from bathroom tiles and fences, not just bee hives. This shows the model successfully generalized the abstract pattern of a honeycomb across different domains.

3. The "Scaly" Failure (Expected & Not Present)

Surprisingly, "scaly" textures were almost never associated with fish or reptiles. Instead, they were often misclassified as "honeycombs." This suggests that for some classes, the model might be relying more on shape or color, or that the training data for fish wasn't diverse enough to establish a "scale" texture as a primary feature.

Key Results

The paper provides a comprehensive mapping of these associations. Some of the strongest "Effect Sizes" (associations) included:

  • Honeycombed $\rightarrow$ Honeycomb: 0.731
  • Cobwebbed $\rightarrow$ Spider Web: 0.655
  • Waffled $\rightarrow$ Waffle Iron: 0.427
  • Striped $\rightarrow$ Zebra: 0.381

The "Effect Size" represents the percentage of texture samples predicted as that object. While some numbers seem low (e.g., 0.248 for dots $\rightarrow$ bib), in a 1,000-class classification task, any result significantly above 0.001 (random chance) is statistically massive.

Limitations and Future Work

As an ICLR "Tiny Paper," the scope is intentionally focused. The authors acknowledge a few areas for growth:

  • Model Architecture: The study primarily looked at ResNet (CNN) architectures. It remains to be seen if Vision Transformers (ViTs), which process images differently, exhibit the same specific texture-object mappings.
  • Dataset Breadth: The DTD is a great starting point, but more granular or synthetic texture datasets could further refine the "map."
  • Mitigation: While this paper identifies biases, it doesn't propose a method to fix them. The next logical step is using these insights to "de-bias" models, perhaps by penalizing the model when it relies too heavily on a "shortcut" texture like polka dots for bibs.

By turning the "black box" of texture bias into a searchable map, this work provides a new lens for model interpretability—one that looks at the world through the grainy, patterned eyes of the machines we build.

Summary updated

BibTeX
@inproceedings{hoak2024explorations,
  author = {Blaine Hoak and Patrick McDaniel},
  title = {{Explorations in Texture Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=gJua7kBOHz},
}
Figure