NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PatternNet: Visual Pattern Mining with Deep Neural Network

Hongzhi Li, Joseph G. Ellis, Lei Zhang, Shih-Fu Chang

TL;DR

PatternNet is a novel neural network architecture designed to automatically mine "visual patterns"—recurring, meaningful image elements like wheels or specific textures—from large datasets. By treating patterns as sparse combinations of existing CNN filters and using a global pooling strategy, it achieves state-of-the-art performance in scene and fine-grained classification while being an order of magnitude faster than traditional patch-sampling methods.

What Problem Does This Paper Address?

In computer vision, "visual pattern mining" involves finding recurring visual elements that characterize a category. For example, "doors" and "windows" are patterns for a "house" category. Traditionally, this required expensive, multi-stage pipelines: sampling thousands of image patches, clustering them based on similarity, and then selecting the most useful ones. This process is computationally heavy and often struggles to find patterns that are both representative (common within a class) and discriminative (unique to that class compared to others).

While Convolutional Neural Networks (CNNs) naturally learn filters that respond to visual structures, a single filter is rarely a perfect semantic pattern. One filter might respond to multiple different textures, and one complex pattern might require multiple filters to describe it. PatternNet aims to bridge this gap by learning how to combine these "low-level" filters into "mid-level" semantic patterns in an efficient, end-to-end manner.

Methods

The authors propose PatternNet, which leverages the feature extraction power of pre-trained CNNs (like AlexNet or VGG). The architecture consists of several key components:

  1. Global Max Pooling: Instead of sliding windows, PatternNet uses a global max pooling layer after the last convolutional layer. This discards specific location information to achieve shift-invariance, allowing the network to detect a pattern regardless of where it appears in the image.
  2. Thresholding: The pooled responses are passed through a thresholding layer to create binary indicators (0 or 1), signaling whether a specific filter was activated anywhere in the image.
  3. Pattern Discovery Layer: A specially designed fully connected (FC) layer acts as a selector. Each neuron in this layer represents a potential visual pattern, formed by a sparse linear combination of the underlying CNN filters.
  4. Discriminative Loss Function: The network is trained using a loss function that encourages it to find filter combinations that are frequently active in "positive" images (target category) but rarely active in "negative" images (background or other categories).
  5. Localization with DeconvolutionNet: Once a pattern (a set of filters) is identified, the authors use a Deconvolutional Neural Network to map the activations back to the original pixel space, effectively "highlighting" the discovered pattern in the image.
The PatternNet architecture for discovering and localizing visual patterns.

Datasets

The authors evaluated PatternNet across several diverse tasks and benchmarks:

  • Subjective Visualization: VOC2007, MSCOCO, and CUB-Bird-200.
  • Scene Classification: MITIndoor (67 classes of indoor scenes).
  • Fine-grained Classification: CUB-Bird-200 and Stanford Dogs.
  • Object Proposal: Pascal VOC 2007.

Key Insights and Ideas

  • Patterns as Filter Ensembles: The core "aha moment" is that semantic patterns are better represented as combinations of filters rather than single filters. As shown in Figure 4, different filters might overlap on a specific object part (like a theater seat), and their intersection defines the pattern more precisely.
  • Relativity of Discriminativeness: A pattern's utility is relative to what you compare it against. For instance, "bookshelves" are discriminative for a library when compared to random outdoor scenes, but they are not discriminative when compared to bookstores. PatternNet can adapt its discovery process based on the provided negative set.
  • Efficiency via Global Pooling: By avoiding the need to pre-sample and store millions of image patches, PatternNet achieves a massive speedup—roughly 10x faster than competing methods like MDPM.
Visualization showing how multiple filters (178, 39, 235) combine to define a specific "seat" pattern.

Key Results

  • Classification Accuracy: On the MITIndoor dataset, PatternNet achieved 71.30% accuracy, outperforming the previous state-of-the-art pattern mining method (MDPM at 69.69%) and standard CNN baselines.
  • Fine-Grained Success: It showed significant gains in difficult tasks like Stanford Dogs, reaching 83.1% accuracy, which is a substantial jump over traditional alignment-based methods.
  • Object Proposals: In the object proposal task, PatternNet achieved a higher recall (0.86) and Mean Average Best Overlap (0.77) while proposing only 5 bounding boxes per image, compared to other methods that required 100 boxes to reach lower scores.

Limitations and Future Work

  • Fixed Base Filters: PatternNet currently uses filters from pre-trained models. While it learns how to combine them, it doesn't "evolve" the base filters themselves during the pattern mining phase.
  • Hyperparameter Sensitivity: The number of patterns to be discovered ($N_f$) is a tunable parameter that must be set manually.
  • Future Directions: The authors suggest that integrating this pattern mining directly into the initial training of a CNN (rather than using pre-trained weights) could lead to even more robust feature representations.

Summary updated

BibTeX
@inproceedings{li2018patternnet,
  author = {Hongzhi Li and Joseph G. Ellis and Lei Zhang and Shih-Fu Chang},
  title = {{PatternNet: Visual Pattern Mining with Deep Neural Network}},
  booktitle = {ICMR},
  year = {2018},
  doi = {10.1145/3206025.3206039},
}
Figure