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

Contextual Classification Using Self-Supervised Auxiliary Models for Deep Neural Networks

Sebastian Palacio, Philipp Engler, Jörn Hees, Andreas Dengel · DOI

Abstract

Standard deep learning classifiers often lack semantic context, operating as "black boxes" that map inputs to isolated labels. This paper presents Self-Supervised Autogenous Learning (SSAL), a framework that integrates contextual information into neural networks through auxiliary classification branches. By grouping existing labels into semantically similar clusters without additional human annotation, SSAL provides a surrogate task that regularizes the model and improves both convergence speed and final predictive accuracy.

Introduction

Standard deep learning classifiers usually operate in a "closed-world" vacuum. They are trained to map an input to a single label out of a finite set, ignoring the rich semantic context humans use. For example, a human knows a "chicken" is an "animal," and this high-level context helps us identify it even in tricky lighting.

Standard models often ignore these supporting signals, making them susceptible to adversarial attacks and difficult to interpret. While we could manually label datasets with hierarchical information (e.g., "this is a Siberian Husky, which is a Dog, which is a Mammal"), doing so is incredibly expensive. The authors propose SSAL to embed this contextual "common sense" into a network without needing any additional ground-truth labels.

Methodology

SSAL utilizes a multi-task learning architecture to inject context into the training process. The method consists of four primary components:

  1. The Autogenous Task: A surrogate task is derived entirely from the original labels. A clustering algorithm (based on a confusion matrix from a pre-trained model) groups the original classes into $k$ subsets representing visually or semantically similar categories.
  2. Architecture: The model consists of a shared feature extractor (backbone $h$) that feeds into two branches: a Main Branch ($f$) for fine-grained labels and an Auxiliary Branch ($g$) for the generated group labels.
  3. Training: The network is trained end-to-end using a joint loss function—a weighted sum of the cross-entropy losses from both branches.
  4. Inference: Unlike many auxiliary methods, SSAL uses the auxiliary branch during prediction. The final output is calculated as a joint probability (the Hadamard product of the main and auxiliary outputs) or through a learned linear combination, allowing the high-level "group" prediction to act as a filter for the fine-grained prediction.
SSAL Architecture: A shared backbone $h$ feeds into a main branch $f$ for fine-grained labels and an auxiliary branch $g$ for coarse-grained group labels.

Experimental Results

The researchers evaluated SSAL across standard computer vision benchmarks: CIFAR100, TinyImagenet, and ImageNet. SSAL consistently outperformed state-of-the-art models and standard baselines:

  • Accuracy Boost: On CIFAR100, adding two SSAL branches to a ResNet18 improved accuracy from 75.67% to 78.23%. On TinyImagenet, the jump was even more dramatic: from 39.9% to 50.0% (+10.1 percentage points).
  • Efficiency in Convergence: Models with SSAL branches reach higher accuracy levels much faster than baseline models. The "easier" auxiliary task helps guide the gradient descent process early in training.
  • SOTA Comparison: SSAL outperformed specialized architectures like HD-CNN and HydraNets on both CIFAR100 and ImageNet.
Training performance comparison: SSAL variants show significantly faster convergence and higher final accuracy compared to baseline models.

Discussion and Key Insights

SSAL provides several advantages beyond raw accuracy. By looking at the auxiliary branch's Class Activation Maps (CAM), the model is shown to focus on semantically meaningful features. For instance, when identifying a "slide rule," the auxiliary branch might focus on "uniform markings" shared with rulers, providing a "reason" for its high-level classification.

Furthermore, the auxiliary task forces the shared backbone to learn features useful for both specific identification and general categorization. This acts as a powerful regularizer, preventing the model from over-fitting on noise. The authors found that attaching auxiliary branches to deeper layers of the network generally yields better results, as these layers contain the complex features necessary for semantic grouping.

Limitations and Future Work

While effective, SSAL introduces computational overhead due to the additional parameters and FLOPs of the auxiliary branches. Performance is also sensitive to meta-parameters, such as the number of groups ($k$) and branch placement. Future research may explore non-mutually exclusive groupings and application to other domains like Natural Language Processing or Video Analysis.

Summary updated

BibTeX
@inproceedings{palacio2020contextual,
  author = {Sebastian Palacio and Philipp Engler and Jörn Hees and Andreas Dengel},
  title = {{Contextual Classification Using Self-Supervised Auxiliary Models for Deep Neural Networks}},
  booktitle = {ICPR},
  year = {2020},
  doi = {10.1109/icpr48806.2021.9412175},
}
Figure