TL;DR
Vision-language models (VLMs) are surprisingly terrible comedians—treating meme generation like standard image captioning produces awkward, overly literal text. This paper introduces HUMOR, a framework that teaches VLMs to brainstorm multiple joke angles from a visual template and fine-tunes them using relative human preferences within the same meme template. Beyond making genuinely funnier memes, it offers a blueprint for aligning AI with messy, subjective human tastes where global, absolute scores fall apart.
What Problem Does This Paper Address?
Teaching an AI to describe an image literally ("a man looking back at a woman") is largely a solved problem. Teaching it to write a funny meme using that image is an entirely different beast.
Current approaches treat meme creation as a direct image-to-caption translation task. This flattens the creative process, stripping away the layered metaphorical reasoning required for a good joke, and results in outputs that are verbose, literal, or dull.
Furthermore, how do you even grade a joke? Humor is deeply subjective and context-dependent. Prior computational humor work often assumes a global "funniness score," implying you can directly compare a Distracted Boyfriend meme against a Success Kid meme on an absolute 1-to-10 scale. In reality, cross-template comparisons are noisy and ill-posed; humans are much better at judging which of two captions works better on the exact same template.
Methods
To bridge the gap from visual perception to punchline, the authors propose HUMOR (Hierarchical Understanding and Meme Optimization via RL), built around three core steps:
- Hierarchical Multi-Path Chain-of-Thought (CoT): Instead of mapping an image straight to a single caption, HUMOR mimics human brainstorming in two stages. First, it infers the template-level intent (e.g., "being drawn to shiny new things while neglecting responsibilities"). Second, it explores multiple context-level reasoning paths (applying that vibe to tech, relationships, or budgets). During training, one path is "anchored" by tracing back from a real ground-truth meme caption. This preserves creative diversity without letting quality collapse.
- Within-Group Pairwise Reward Modeling: Abandoning global scores, the authors partition memes into coherent groups sharing the same visual template. A VLM-based reward model (
HUMOR-RM) is trained solely on pairwise preferences ("Is Meme A funnier than Meme B?") within each group. Because pairwise labels can be sparse, they aggregate these head-to-head probabilities into a clean group-level ranking using Expected Borda Count (EBC)—essentially scoring each meme by its expected number of wins against peers. - Group-wise Policy Optimization: Finally, they fine-tune the generator using Group-wise Relative Policy Optimization (GRPO)—a reinforcement learning (RL) technique—nudging the model toward higher-ranked punchlines while using a mathematical leash (KL-divergence) so it doesn't drift too far and forget how to speak coherently.
Datasets
The authors compiled and released an anonymized dataset (HUMOR-Datasets) built from real-world memes:
- Preprocessed CoT Data: Real memes were stripped of text via OCR and image inpainting to recover blank templates, paired with user context tags (emotions, intentions, themes) and synthesized multi-path reasoning traces.
- Preference & Generalization Sets: For reward modeling and testing, they collected human rankings (via MaxDiff, where annotators pick best/worst items from subsets) across candidate memes on shared templates, alongside a zero-shot test set of 20 completely unseen meme templates.
Key Insights and Ideas
- Single-path CoT is a trap for creativity: Training a model on a single reasoning path derived backward from one gold-standard joke causes its reasoning to collapse into a shallow shortcut. Brainstorming multiple paths first is essential to keep the model adaptable to new contexts.
- VLMs are terrible absolute judges, but great relative ones: When asked to score memes on an absolute scale, top VLMs gave nearly identical scores to clever human-made memes and blank templates with the text completely removed. Yet, when forced to rank memes within a single template group,
Gemini-2.5-proaligned remarkably well with human taste (Spearman correlation of 0.72). - Base model "vision" dictates humor alignment: When fine-tuning reward models,
Qwen2.5-VL-7Bfixated on literal visual objects—favoring captions mentioning "coffee" just because a panda held a mug. Conversely,Keye-VL-8Bpicked up on implied internal states (interpreting the panda as a "tired office worker"), matching human humor preferences much better.
Key Results
Fine-tuning a Qwen2.5-7B-Instruct backbone with HUMOR yielded substantial leaps across both human and automated benchmarks:
- Human Ratings (0–5 scale):
HUMOR-RLboosted the base 7B model's Humor score from 2.39 to 2.83, outperforming larger open-source models (Qwen2.5-32Bat 2.54) and closed-source heavyweights (GPT-4oat 2.70;Gemini-2.5-flashat 2.81).HUMOR-CoTalso topped Readability at 3.70, ditching typical VLM verbosity for punchy phrasing. - Passing the "Human" Test: On Human Rate (how often
Gemini-2.5-projudges a rendered meme to be human-made rather than AI-generated),HUMOR-RLhit 92.3%, jumping from the base model's 75.7% and edging pastGPT-4o(91.3%). - Zero-Shot Generalization & Ranking: On 20 unseen meme templates,
HUMOR-CoTranked second only to real human-created memes. Meanwhile,HUMOR-RM(onKeye-VL-8B) boosted within-group human ranking correlation (Kendall’s $\tau$) from near-random (0.05–0.29) to 0.77–0.78 ($p < 0.001$).
Limitations and Future Work
- Backbone Bottlenecks: Because pairwise reward modeling only supplies a preference ordering, final alignment is capped by the base VLM's inherent ability to perceive subtle situational cues rather than just literal objects.
- Evolving Internet Culture: Static weights don't know about memes born yesterday, though a qualitative pilot shows HUMOR pairs nicely with retrieval-augmented generation (RAG) to inject fresh trend context.
- Beyond Memes: The framework relies on natural, coherent group boundaries where local comparisons are easy to collect. Promisingly, a small cross-domain pilot on persona-conditioned image captioning suggests this "multi-path brainstorm + group-wise RL" recipe could generalize to other subjective creative tasks.
Summary updated