Abstract
Standard image captioning models typically focus on objective, factual descriptions. SentiCap introduces a novel framework for generating captions that incorporate specific positive or negative sentiments. By employing a switching Recurrent Neural Network (RNN) architecture, the model learns to integrate emotional adjectives with factual observations. Evaluated on a newly curated dataset, SentiCap demonstrates the ability to produce highly descriptive and sentiment-accurate captions, significantly outperforming baseline models in linguistic novelty and engagement.
Introduction
While computer vision has excelled at identifying objects—such as a "dog on a keyboard"—standard AI models often lack the stylistic nuance of human communication. Humans naturally use emotions to influence decisions and build relationships. SentiCap addresses this gap by enabling AI to generate descriptions with specific positive or negative sentiments, moving beyond dry, factual reporting.
The Challenge of Emotional AI
Teaching AI to be "emotional" presents two primary hurdles:
- Data Scarcity: While massive factual datasets like MSCOCO exist, high-quality datasets pairing images with sentimental descriptions are rare.
- The Balancing Act: A model must express sentiment without sacrificing descriptive accuracy. An over-emphasis on "happiness" might lead the model to omit key visual elements like the subject of the photo.
Methodology: The Switching RNN
The core of SentiCap is a Switching RNN architecture. Unlike traditional single-pipeline models, SentiCap utilizes two parallel RNN streams:
- The Background Stream: A general language model trained on factual data to capture the "what" of an image.
- The Sentiment Stream: A specialized model focused on emotional adjectives and phrases.
A switching gate ($\gamma_t$) determines the contribution of each stream for every word generated. To optimize training with limited data, the authors employed word-level regularization, guiding the switching mechanism using specific "sentiment words" (Adjective-Noun Pairs like "beautiful dog").
Datasets and Training
The model was trained using a combination of large-scale factual data and specialized sentimental data:
- MSCOCO: Provided over 413,000 neutral captions for the background model.
- SentiCap Dataset: A new benchmark created via crowdsourcing, where workers rewrote MSCOCO captions with positive (~2,873 sentences) or negative (~2,468 sentences) sentiments.
- Visual SentiBank & YFCC100M: Used to derive a vocabulary of 1,027 positive and 436 negative Adjective-Noun Pairs (ANPs).
Key Insights
- Parallelism vs. Fine-Tuning: Parallel architectures prevent "catastrophic forgetting" of factual accuracy, a common issue when fine-tuning factual models on emotional data.
- Sentiment Concentration: The model naturally learns to "switch on" the sentiment stream for adjectives while relying on the background stream for nouns and functional words.
- Linguistic Novelty: SentiCap produced 95.7% novel captions, compared to 38.2% for standard models, suggesting that stylistic constraints encourage more creative linguistic combinations.
Results and Evaluation
SentiCap was evaluated through automatic metrics and human judgment. Human trials confirmed high sentiment accuracy and descriptiveness across the generated captions.
Key findings include:
- Sentiment Accuracy: 88.4% of positive captions were confirmed by humans to have the correct sentiment.
- Descriptiveness: 84.6% of positive captions were judged as descriptive as factual originals.
- Engagement: Positive captions were rated as significantly more "interesting" than neutral ones, though negative captions proved more challenging to generate effectively.
Limitations and Future Work
The model currently faces a "negative gap," struggling more with negative sentiments due to their subjective and diverse nature. Future research may explore more complex emotional nuances beyond binary positive/negative labels and investigate joint training of both RNN streams to further improve description seamlessness.
Summary updated