Sentimental Image Generation for Aspect-based Sentiment Analysis

Xiaoyi Bao, Jinghang Gu, Zhongqing Wang, Chu-Ren HuangACL 2025

Introduction

Aspect-Based Sentiment Analysis (ABSA) is a critical task in natural language processing that involves identifying specific features of a product or service and the sentiment directed toward them. The most granular form of this task, Aspect-Category-Opinion-Sentiment (ACOS) quadruple extraction, is particularly challenging because textual reviews are often "semantically thin"—abstract, vague, or brief. While researchers have previously attempted to augment models with user-posted images, these are frequently noisy, irrelevant, or lack precise labels.

To address this, researchers have developed a novel framework that generates task-specific "sentimental images" from scratch. By visualizing abstract reviews, the model provides concrete visual anchors that help Vision-Language Models (VLMs) more accurately interpret sentiment.

Overview of the Sentimental Image Generation and Extraction process.

Methodology

The proposed framework operates in two primary stages: Sentimental Image Generation and Vision-Language Extraction.

1. Sentimental Image Generation

Rather than feeding raw text directly into a generator, the system uses a multi-step process to ensure semantic accuracy:

  • Emphasis Prediction: A fine-tuned Large Language Model (LLM) predicts "silver labels" (preliminary aspects and polarities) to act as semantic anchors.
  • Scene Rewriting: The LLM converts abstract reviews into vivid scene descriptions. For example, "The service was nice" is rewritten as "A smiling chef engages warmly with diners," providing a clear visual target.
  • Text-to-Image (T2I) Synthesis: Using Stable-Diffusion-3, the system generates a candidate pool of images based on these descriptive prompts.

2. Sentimental Image Assessment

Not all generated images are equally useful. The framework ranks candidates using three key metrics:

  • Image Relevance: Consistency is ensured via Perceptual Hashing (P-Hash).
  • Text Relevance: A "cycle evaluation" measures the similarity between the original text and text reconstructed from the image.
  • Element Relevance: A VLM verifies that the visual elements (e.g., a specific food item or a smiling face) match the predicted aspects.
Visual assessment of generated image elements against predicted aspects.

3. Extraction

The best-ranked image and the original text are fed into a Vision-Language Model, specifically InternLM-XComposer2-VL. The model leverages visual cues to extract the final sentiment quadruples with higher precision.

Key Insights and Results

The framework was evaluated on several standard ABSA benchmarks, including ACOS and ASQP datasets.

  • State-of-the-Art Performance: The model achieved new state-of-the-art F1 scores across all tested datasets. On the Restaurant dataset, the F1 score improved significantly from 0.6030 (text-only) to 0.6493 with the addition of generated images.
  • Superiority over Real-World Noise: On the Twitter2017 dataset, using generated images (F1: 0.687) outperformed the same model using original user-posted images (F1: 0.676). This demonstrates that targeted generation can be more effective than noisy, real-world visual data.
  • Visual Anchoring: The "aha moment" of this research is that images make abstract sentiment concrete. While a VLM might struggle with the abstract word "excellent," it can easily recognize a "thumbs up" or a "smiling chef."
  • Data Efficiency: The method is particularly powerful in data-scarce scenarios, acting as a form of knowledge distillation from massive T2I and VLM models into the specific ABSA task.

Conclusion

This "generate-to-analyze" pipeline represents a significant step forward in multi-modal sentiment analysis. While it introduces higher computational costs during inference, the gains in accuracy and data efficiency are substantial. Future work may explore expanding this approach to other modalities, such as text-to-speech, or applying it to other complex information extraction tasks.

Summary updated

BibTeX
@inproceedings{bao2025sentimental,
  author = {Xiaoyi Bao and Jinghang Gu and Zhongqing Wang and Chu-Ren Huang},
  title = {{Sentimental Image Generation for Aspect-based Sentiment Analysis}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure