Distilling Knowledge from Object Classification to Aesthetics Assessment

Jingwen Hou, Henghui Ding, Weisi Lin, Weide Liu, Yuming Fang

TL;DR

This paper introduces a novel knowledge distillation (KD) framework for Image Aesthetics Assessment (IAA) that leverages the rich semantic knowledge of pre-trained object classification (POC) models. By distilling "IAA-relevant" semantic patterns from a complex multi-model teacher into a single-backbone student, the authors achieve state-of-the-art performance while maintaining high computational efficiency.

What Problem Does This Paper Address?

Image Aesthetics Assessment (IAA) is notoriously difficult because aesthetic labels are inherently abstract. Unlike object classification, where a "dog" label corresponds to specific visual features, a "high aesthetics" label can apply to a macro shot of a flower, a sweeping cityscape, or a minimalist portrait.

The authors identify a "major dilemma":

  1. Inference: Models must map vastly different contents to the same abstract aesthetic label.
  2. Training: It is difficult for models to learn discriminative features for different contents using only abstract aesthetic labels as supervision.

Existing methods often try to use extra human-labeled semantic information (like image themes), but this is expensive and hard to standardize. This paper seeks to provide semantic guidance without additional human labeling by tapping into the "generic semantic features" (GSFs) already learned by powerful object classifiers.

Methods

The authors propose a teacher-student distillation scheme:

  1. The Teacher Model: They combine GSFs from multiple high-performing POC models (e.g., ResNet-v2, ResNeXt101 trained on massive datasets like ImageNet-21k or IG-3.5B). Because not all semantic information is relevant to aesthetics, they train a Knowledge Distiller—a small MLP—to select and transform these GSFs into "aesthetic features" (AFs) that predict aesthetic scores.
  2. The Student Model: A standard, single-backbone CNN (like ResNeXt101) is trained as the student.
  3. Knowledge Distillation (KD): During training, the student is supervised by both the ground-truth labels and the teacher. The KD loss forces the student's internal features to align with the teacher's aesthetic features and its final predictions to match the teacher's output distribution.
Fig. 3: Details of training a single-backbone end-to-end IAA model (i.e., student model) under the supervision of the teacher knowledge distilled from POC models via a knowledge distiller. The teacher aesthetic features and teacher predictions together are deemed as teacher knowledge distilled from GSFs. The teacher aesthetic features and teacher predictions are stored for imposing supervision on the aesthetic features and predictions of the student model when training the student model. Note that the preparation of teacher knowledge is conducted separately from the training of the student model in practice (see Table XIII for the analysis on extra computational costs).

The core idea is that the teacher "shows" the student which semantic patterns (like the texture of a petal or the lines of a building) are important for judging beauty, which the student might otherwise miss if trained only on abstract labels.

Fig. 4: LayerCAM [28] visualization for explaining how the proposed KD works in training the student model. For the same image, different GSFs tend to capture different semantic patterns. The knowledge distiller takes useful parts from GSFs to produce the teacher aesthetic feature. The teacher aesthetic features impose supervision to the student aesthetic features. Through back-propagation, the supervision from teacher aes- thetic features further guides the student model to capture more IAA-relevant semantic features for producing more discrimi- native aesthetic features as the teacher. Details of training the knowledge distiller are given in Fig. 5.

Datasets

  • AVA (Aesthetics Visual Analysis): The primary benchmark, containing ~250,000 images with aesthetic ratings from 1 to 10.
  • CUHK-PQ: Used to demonstrate the method's generalizability to binary aesthetic classification (high vs. low quality).

Key Insights and Ideas

  • Semantic Patterns as Building Blocks: The authors hypothesize that aesthetics assessment is essentially a process of mapping combinations of semantic patterns to aesthetic levels.
  • GSFs are Necessary but Insufficient: While object classifiers know what is in an image, they don't know what makes it beautiful. Directly using classification features for matching leads to errors (see Figure 2). The "Knowledge Distiller" is crucial for filtering out aesthetic-irrelevant noise.
  • Robustness to Resizing: A significant finding is that distillation helps the student model adapt to smaller input sizes. By learning from a teacher that sees full-resolution images, the student can "excavate" high-resolution details even from resized 300x300 inputs, significantly saving on FLOPs without a major performance hit.
  • Subject Localization: The distilled models are better at identifying the "main subject" of an image, aligning better with human photography principles where a clear subject often correlates with higher aesthetic quality.

Key Results

  • Performance Boost: The proposed KD scheme improved the student model's SRCC (Spearman Rank Correlation Coefficient) by 4.8% overall and up to 7.2% on specific categories like "Still Life."
  • Efficiency: The student model achieves near-teacher performance (only 3% lower SRCC) but with 99% lower computational cost (FLOPs).
  • SOTA Comparison: The method outperformed 10 previous state-of-the-art IAA methods on the AVA dataset.
  • Generalizability: The framework proved effective across different tasks, including distribution prediction, binary classification, and score regression.

Limitations and Future Work

  • Training Overhead: While the student is efficient during inference, the training process requires pre-extracting features from multiple large POC models and training a teacher, which adds to the initial computational pipeline.
  • Teacher Dependency: The student's potential is capped by the teacher's quality. If the POC models don't capture a specific type of semantic content, the student won't learn to assess it well.
  • Future Directions: The authors suggest that exploring different distillation losses or even more diverse teacher models (perhaps including vision-language models) could further bridge the gap between abstract labels and visual content.

Summary updated

BibTeX
@article{hou2022distilling,
  author = {Jingwen Hou and Henghui Ding and Weisi Lin and Weide Liu and Yuming Fang},
  title = {{Distilling Knowledge from Object Classification to Aesthetics Assessment}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2022},
  doi = {10.1109/tcsvt.2022.3186307},
}
Figure