TL;DR
This paper introduces "templateness" as a foundational concept for computational meme analysis by creating the Know Your Meme Knowledge Base (KYMKB), featuring over 5,200 templates and 49,000 instances. By accounting for underlying meme structures, the authors develop a template-aware dataset splitter (TSplit) and a training-free classifier (TLC) that significantly improve model robustness and sample efficiency, setting new state-of-the-art standards across multiple benchmarks.
What Problem Does This Paper Address?
Internet memes are highly nuanced, multimodal units of cultural expression. To understand a meme, humans don't just look at the text and image in isolation; we recognize the underlying template being used and interpret the creator's twist on it.
However, current machine learning models treat memes merely as static images paired with OCR-extracted text. This ignores their inherent templatic nature. Because existing datasets randomly split data into training and test sets, variations of the same template often appear in both splits. This creates a data leakage problem: models can achieve high test accuracy simply by memorizing visual template patterns (taking "shortcuts") rather than genuinely understanding the meme's semantic context. Consequently, these models generalize poorly when encountering entirely new meme templates.
Methods
The authors introduce a framework grounded in meme templates consisting of three core components:
- KYMKB (Know Your Meme Knowledge Base): A structured database crawled from community-approved entries on Know Your Meme. It contains 5,220 base templates and 49,531 example instances, complete with metadata explaining each meme's origin and meaning.
- TSplit (Template-Aware Splitter): A novel dataset-splitting algorithm. It uses CLIP embeddings to calculate the Euclidean distance between base templates and their instances to establish a "templateness" threshold. TSplit reorganizes datasets to ensure that a template and all its variations are strictly confined to either the training split or the test split, forcing models to generalize to unseen templates.
- TLC (Template-Label Counter): A training-free, retrieval-based classification algorithm. TLC maps training memes to their closest KYMKB templates to aggregate the most frequent labels per template. At test time, it classifies novel memes simply by assigning the label of their nearest template match in the embedding space.
Datasets
The newly proposed KYMKB serves as the foundational knowledge base. To evaluate their methods, the authors utilize four established meme classification datasets:
- MultiOff: A binary dataset for identifying offensive content related to the 2016 US presidential election.
- Memotion 3: A multilingual (Hindi-English codemixed) dataset labeled for sentiment, emotion type, and intensity.
- FigMemes: A dataset focusing on seven types of figurative language (e.g., irony, metaphor, allusion).
- MAMI (Multimedia Automatic Misogyny Identification): A dataset for binary misogyny detection and sub-type classification (e.g., shaming, objectification).
Key Insights and Ideas
- Data Leakage Masks Model Weakness: When datasets are split randomly, models look like strong performers. However, when TSplit decouples the template distribution between train and test sets, standard models struggle significantly. This proves that previous models were over-relying on visual shortcuts rather than semantic comprehension.
- Less Data, Better Generalization: Reorganizing data based on templateness acts as a powerful regularizer. It forces models to learn generalized, template-robust features, allowing them to match or exceed baseline performance while discarding thousands of redundant training samples.
- Templates are Universally Multilingual: Visual meme templates carry strong semantic signals that transcend language barriers. The training-free TLC method achieved impressive results on the multilingual Memotion 3 dataset without any explicit translation or cross-lingual pre-training.
Key Results
- State-of-the-Art Performance: Integrating TSplit into fine-tuning pipelines yielded state-of-the-art results across all evaluated datasets. For instance, pairing TSplit with a ViT-L/14 encoder achieved a top F1 score of 66.16 on MultiOff.
- High Sample Efficiency: On the FigMemes and MAMI datasets, TSplit-optimized models achieved superior performance while training on nearly 1,000 fewer memes than standard full-dataset fine-tuning.
- TLC Outperforms Fine-Tuning: Despite being training-free, the TLC classifier proved remarkably competitive. On Memotion 3 (Task B),
TLC_Templates+Instancesscored an F1 of 80.49, comfortably beating the best previous multimodal fine-tuned models (74.74) without requiring any backpropagation.
Limitations and Future Work
- Knowledge Base Coverage: KYMKB relies entirely on Know Your Meme, meaning it cannot account for highly niche, localized, or rapidly evolving internet subculture memes that lack an official entry.
- Non-Templatic Content: The proposed methods naturally struggle with non-templatic memes, such as standalone visual puns, unique jokes, or heavily manipulated multi-label images that do not map cleanly to a single template.
- Cultural Bias: The current knowledge base is heavily skewed toward Western, English-centric internet culture. The authors emphasize that future work must expand the diversity of the knowledge base and explore automated ways to augment KYMKB with cross-lingual templates.
Summary updated