NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

From Perception to Punchline: Empowering VLM with the Art of In-the-wild Memes

Xueyan Li, Yingyi Xue, Mengjie Jiang, Qingzi Zhu, Yazhe NiuNeurIPS 2026

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:

Figure 1: Given a template image, HUMOR first performs hierarchical reasoning with multi-path CoT: a template-level stage infers latent intent, while a context-level stage explores multiple visually grounded reasoning paths. One high-quality path is anchored by tracing back from ground-truth captions, promoting diversity while preserving a conditional humor lower bound. A reward model then compares memes only within groups sharing the same template, preserving rank consistency and providing a proxy for human preference. This reward further enables stable group-wise RL with KL-controlled updates, so potential degradation is explicitly bounded. Together, these components combine structured reasoning, group-wise preference modeling, and stable optimization for meme generation.
  1. 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.
  2. 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.
  3. 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.
Figure 3: Training Pipeline of HUMOR. Multi-path CoT expands reasoning coverage and anchors a canonical path; the reward model translates pair data into a rank-consistent group-level signal (via EBC); GRPO then updates the generator toward higher-ranked captions.

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-pro aligned remarkably well with human taste (Spearman correlation of 0.72).
  • Base model "vision" dictates humor alignment: When fine-tuning reward models, Qwen2.5-VL-7B fixated on literal visual objects—favoring captions mentioning "coffee" just because a panda held a mug. Conversely, Keye-VL-8B picked 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:

Table 1: Evaluation results across open-source models, closed-source models, and Qwen2.5-7B- Instruct fine-tuned with our proposed and different CoT methods. Metrics include context-swap distance (diversity criterion), text-level similarity (sim. to original meme text), human evaluation (Humor, Readability, Relevance, Originality), and Human Rate.
  • Human Ratings (0–5 scale): HUMOR-RL boosted the base 7B model's Humor score from 2.39 to 2.83, outperforming larger open-source models (Qwen2.5-32B at 2.54) and closed-source heavyweights (GPT-4o at 2.70; Gemini-2.5-flash at 2.81). HUMOR-CoT also topped Readability at 3.70, ditching typical VLM verbosity for punchy phrasing.
  • Passing the "Human" Test: On Human Rate (how often Gemini-2.5-pro judges a rendered meme to be human-made rather than AI-generated), HUMOR-RL hit 92.3%, jumping from the base model's 75.7% and edging past GPT-4o (91.3%).
  • Zero-Shot Generalization & Ranking: On 20 unseen meme templates, HUMOR-CoT ranked second only to real human-created memes. Meanwhile, HUMOR-RM (on Keye-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

BibTeX
@inproceedings{li2026from,
  author = {Xueyan Li and Yingyi Xue and Mengjie Jiang and Qingzi Zhu and Yazhe Niu},
  title = {{From Perception to Punchline: Empowering VLM with the Art of In-the-wild Memes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=HDw4usJpF9},
}
Figure