Multi-modal Learnable Queries for Image Aesthetics Assessment

Zhiwei Xiong, Yunfan Zhang, Zhiqi Shen, Peiran Ren, Han Yu · DOI

TL;DR

This paper introduces MMLQ, a novel method for image aesthetics assessment (IAA) that leverages both visual and textual information from user comments. By employing "learnable queries" to extract features from pre-trained visual and language models, MMLQ achieves state-of-the-art performance, outperforming previous methods by a significant margin.

What Problem Does This Paper Address?

Image aesthetics assessment (IAA) is a challenging task due to the subjective nature of beauty. While traditional IAA methods focus solely on image features, this paper recognizes that user comments associated with images can provide valuable, complementary insights into aesthetic quality. The problem is to effectively fuse these multi-modal signals (image and text) to achieve more accurate aesthetic evaluations, especially in the context of social media where both are abundant. Existing methods often struggle to fully utilize this rich textual information or require extensive pre-training on specific aesthetic attributes, which can limit their generalizability.

Methods

The core innovation of MMLQ lies in its use of multi-modal learnable queries (MMLQ). The approach begins by using pre-trained, frozen visual (e.g., ViT) and textual (e.g., BERT) encoders to extract features from an image and its associated user comments, respectively.

The key components are:

  • Learnable Queries (LQs): These are learnable embedding vectors that act as "probes" to extract relevant aesthetic information from the pre-trained features. The method uses separate sets of visual and textual LQs.
  • Multi-modal Interaction Blocks (MMIBs): These blocks are the heart of the fusion process. Each MMIB consists of:
  • Self-Attention (SA) Layer: Applied to both visual and textual LQs independently or jointly to refine their internal representations.
  • Cross-Attention (CA) Layer: This is crucial for multi-modal fusion. It allows visual LQs to attend to textual features and vice-versa, enabling them to learn complementary aesthetic cues.
  • Feed-Forward (FF) Layer: A standard component to further process the features after attention mechanisms.
  • Prediction Head: After passing through multiple MMIBs, the averaged visual and textual LQs are concatenated and fed into a simple prediction head to output the estimated aesthetic distribution (DOS).
  • Earth Mover's Distance (EMD) Loss: Used for optimizing the prediction of the aesthetic DOS, which is a more nuanced target than a single score.

The paper emphasizes that the learnable queries and MMIBs are designed to work with frozen pre-trained encoders, making the approach efficient and leveraging the power of large foundation models without extensive fine-tuning.

Datasets

The experiments were conducted on the AVA dataset [7], a large-scale benchmark for aesthetic visual analysis containing over 250,000 images with aesthetic scores from 1 to 10. The paper also utilizes the AVA-Comments dataset [8], which provides user comments for the images in AVA. The standard train-test split from previous work [5] was used, with 235,510 images for training and 19,998 for testing.

Key Insights and Ideas

  • User comments are a rich source of aesthetic information: The paper strongly demonstrates that textual feedback from users provides crucial context that significantly boosts IAA performance beyond image-only methods.
  • Learnable queries are effective feature extractors: Instead of relying on fixed feature extraction, learnable queries dynamically adapt to extract the most relevant aesthetic signals from pre-trained models.
  • Cross-attention is key for multi-modal fusion: The cross-attention mechanism within MMIBs is highlighted as the primary driver for effectively integrating visual and textual information.
  • Limited number of MMIBs and LQs is sufficient: Surprisingly, increasing the number of MMIBs or LQs beyond a certain point did not improve performance and sometimes degraded it, suggesting that a focused extraction with a few well-designed components is optimal.
  • Textual modality can be more informative than visual alone: The study found that using only user comments yielded better results than using only image features, underscoring the power of sentiment and descriptive language in aesthetic judgment.

Key Results

MMLQ achieves state-of-the-art performance on the AVA dataset.

  • Using the EVA-CLIP vision encoder, MMLQ outperforms previous methods by 7.7% in SRCC and 8.3% in PLCC.
  • The method achieves an accuracy of 89.03% for binary aesthetic classification.
  • The EMD loss for DOS prediction is significantly lower than previous methods (0.029 vs. 0.035/0.037).
  • Ablation studies show that the cross-attention layer is critical, and that using both visual and textual modalities is superior to using either alone.

Limitations and Future Work

  • Limitation: The paper acknowledges a practical limitation: MMLQ's performance degrades when only a limited portion of user comments are available during inference. However, even with only 20% of comments, MMLQ still outperforms previous multi-modal methods.
  • Future Work: The authors plan to address this limitation by exploring methods that do not rely on explicit user comments during inference. This includes incorporating sub-modules for aesthetic-aware image-to-text retrieval or image captioning.

Summary updated

BibTeX
@inproceedings{xiong2024multi,
  author = {Zhiwei Xiong and Yunfan Zhang and Zhiqi Shen and Peiran Ren and Han Yu},
  title = {{Multi-modal Learnable Queries for Image Aesthetics Assessment}},
  booktitle = {ICME},
  year = {2024},
  doi = {10.1109/icme57554.2024.10687472},
}
Figure