Dictionary Learning Inspired Deep Network for Scene Recognition

Yang Liu, Qingchao Chen, Wei Chen, Ian J. WassellAAAI 2018

Abstract

Scene recognition remains one of the most challenging problems in image understanding. While deep networks using fully connected layers (FCL) and rectified linear units (ReLU) can extract moderately sparse features, they do not explicitly optimize for a sparsity model. This paper introduces a new dictionary learning layer (DLL) composed of recurrent units to simultaneously enhance sparse representation and discriminative capability. By replacing conventional FCLs with this DLL and introducing a label discriminative regressor, the proposed CNN-DL framework achieves superior performance across various scene datasets.

Introduction

Identifying environmental scenes—such as a "kitchen" or a "forest"—is difficult due to high intra-class variance and background clutter. While Convolutional Neural Networks (CNNs) are effective, their reliance on FCL and ReLU for sparsity is often suboptimal. Sparsity in these networks is a byproduct of the activation function rather than a controlled, learned feature. This research bridges the gap by integrating Dictionary Learning (DL) directly into the end-to-end training process of a CNN.

Proposed Architecture: CNN-DL

The core innovation is the replacement of standard fully connected layers with a Dictionary Learning Layer (DLL).

Comparison of standard CNN architecture (top) with the proposed CNN-DL framework (bottom).

Dictionary Learning Layer (DLL)

The DLL consists of recurrent units inspired by the Approximate Message Passing (AMP) algorithm. During the forward pass, these units iteratively solve a sparse coding problem. Unlike static sparse coding methods, the DLL decouples shrinkage thresholds into learnable parameters, allowing the network to adaptively find the optimal level of sparsity for the specific data distribution.

Label Discriminative Regressor

To further boost performance, a novel loss term is introduced. This regressor leverages the dictionary's structure to ensure that images from the same category produce similar sparse codes, while maximizing the distance between different categories.

Distance Metric Balancing

To mitigate overfitting, the authors propose a constraint that balances the Mahalanobis distance (effective for discrimination) and the Euclidean distance (effective for generalization). This is achieved by penalizing the deviation of the transformation matrix from the identity matrix.

Experimental Evaluation

The CNN-DL approach was evaluated on three benchmark datasets: 15 Scene, MIT Indoor 67, and SUN 397. The models utilized AlexNet and VGG-16 architectures pre-trained on ImageNet or Places205 as feature extractors.

Key Insights

  • Controlled Sparsity: The DLL provides a more explicit and effective way to manage feature sparsity compared to standard FCLs. Empirical results show that DLL units achieve significantly lower L1 sparseness measures than standard FCL+ReLU configurations.
L1 Sparseness Measure over training iterations for standard FCL vs. different DLL configurations.
  • Dictionary Density: Performance is sensitive to dictionary size. For MIT Indoor 67, an optimal density of approximately 40 atoms per class was identified; too many atoms introduce noise, while too few fail to capture scene diversity.
  • Efficiency: High performance is achieved with minimal iterations ($K=2$) in the recurrent DLL, maintaining computational efficiency while outperforming standard layers.

Results

The CNN-DL framework consistently outperformed baseline CNNs and state-of-the-art methods:

  • MIT Indoor 67: Achieved 76.56% accuracy with a dual-scale CNN-DL, a significant jump from the 61.80% baseline.
  • SUN 397: Reached 66.10% accuracy, surpassing complex multi-scale models.
  • Domain Transfer: Pre-training on the Places dataset yielded better results than ImageNet, highlighting the importance of domain-specific features in scene recognition.

Conclusion

By integrating dictionary learning into deep architectures, the CNN-DL framework provides a powerful method for learning discriminative, sparse representations. This end-to-end approach not only improves scene recognition accuracy but also offers better control over the feature learning process. Future work may extend this hybrid model to tasks like object detection and image super-resolution.

Summary updated

BibTeX
@inproceedings{liu2018dictionary,
  author = {Yang Liu and Qingchao Chen and Wei Chen and Ian J. Wassell},
  title = {{Dictionary Learning Inspired Deep Network for Scene Recognition}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  url = {https://openreview.net/forum?id=B1WD3yWO-r},
}
Figure