Multi-task Prompt Words Learning for Social Media Content Generation

Haochen Xue, Chong Zhang, Chenzhi Liu, Fangyu Wu, Xiaobo Jin

Abstract

Social media content generation requires a nuanced understanding of visual context, emotional tone, and topical relevance. This paper introduces Multi-task Prompt Words Learning (MPWL), a framework that bridges the gap between raw multimodal data and high-quality social media posts. By extracting specific "prompt words"—including keywords, topics, sentiments, and scenes—the system provides structured guidance to Large Language Models (LLMs) like ChatGPT. Experimental results demonstrate that MPWL outperforms both human-generated tweets and existing AI methods in relevance, clarity, and overall quality.

Introduction

Social media platforms demand content that is not only descriptive but also emotionally resonant and contextually aligned. While Large Language Models (LLMs) excel at general text generation, they often struggle to capture the specific "vibe" or constraints of a social media post based solely on an image. Generic captions often lack the depth required for high engagement. The MPWL framework addresses this by transforming multimodal inputs into structured semantic prompts that guide the LLM toward more human-like output.

Methodology

The MPWL pipeline consists of several integrated stages designed to extract maximum semantic value from input images and initial text descriptions:

  1. Crude Content Generation: Initial descriptions are generated using a Vision Transformer (ViT) and GPT-2, with CLIP selecting the most accurate candidate.
  2. Multimodal Feature Fusion: Image features (ViT) and text features (BERT) are fused via a Transformer-based architecture to create a unified representation.
  3. Multi-task Prompt Words Learning: The core of the system involves four specialized sub-networks that extract keywords, classify topics (e.g., Sports, Business), determine sentiment (Positive, Negative, Neutral), and recognize scenes (e.g., beach, restaurant).
  4. Structured Prompting: These elements are formatted into a template for GPT-4 to generate the final tweet, complete with appropriate emojis.
  5. Visual Centering: GroundingDINO is used to detect and center human subjects in the final output image to improve visual aesthetics.
The Multi-task Prompt Words Learning (MPWL) framework pipeline, showing the flow from input images to final social media posts.

Experimental Setup and Results

The framework was trained and validated using diverse datasets, including COCO for captioning, custom Twitter crawls for topic classification, and specialized sets like MVSA and Places-205 for sentiment and scene recognition.

Evaluation was conducted using a "LLM as a Judge" approach, where GPT-4 scored outputs across multiple metrics. MPWL achieved an overall score of 8.05/10, notably surpassing manual human tweets (7.50/10). While humans maintained a slight edge in creativity and originality (7.35 vs. 7.30), MPWL showed superior performance in relevance and clarity (8.75/10). Ablation studies confirmed that the inclusion of specific modules, particularly sentiment analysis, was vital for emotional impact, raising that specific metric score from 6.15 to 7.25.

Key Insights and Future Work

The research highlights that a simple image caption is insufficient for an LLM to write a high-quality tweet. By explicitly defining the sentiment and scene, the resulting text feels intentional and human-like. However, the authors note that the system currently lacks image "beautification" capabilities (e.g., filters or retouching), which is a critical component of social media appeal. Future work will focus on integrating these visual enhancements to match the high quality of the generated text.

Detailed architecture of the Scene Recognition sub-network, illustrating the scene-aware prompt mechanism.

Summary updated

BibTeX
@inproceedings{xue2024multi,
  author = {Haochen Xue and Chong Zhang and Chenzhi Liu and Fangyu Wu and Xiaobo Jin},
  title = {{Multi-task Prompt Words Learning for Social Media Content Generation}},
  booktitle = {IJCNN},
  year = {2024},
  url = {https://openreview.net/forum?id=M5bc8aQqWE},
}
Figure