MAPS-KB: A Million-Scale Probabilistic Simile Knowledge Base

Qianyu He, Xintao Wang, Jiaqing Liang, Yanghua Xiao

Introduction

Large Language Models (LLMs) often struggle with the creative nuances of figurative language, particularly similes. While they excel at statistical pattern matching, they tend to over-rely on common clichés (e.g., "busy as a bee") and fail to capture the implicit properties that drive meaningful comparisons. For instance, in the sentence "Her hair felt like silk," the property "soft" is implicit. Existing knowledge bases are typically too small or lack these implicit mappings. MAPS-KB addresses this by providing a million-scale, probabilistic resource containing 4.3 million triplets (topic, property, vehicle) extracted from 70GB of text.

Methodology

The construction of MAPS-KB follows a robust four-step pipeline designed to capture both explicit and implicit simile components.

The four-step pipeline for MAPS-KB construction: Simile Detection, Component Extraction, Property Generation, and Probabilistic KB modeling.
  1. Simile Detection: A co-training approach leverages "like" and "be" syntactic patterns across massive unlabeled corpora. Models trained on one pattern help label data for the other, maximizing the utility of unlabeled data.
  2. Component Extraction: Instead of simple keyword matching, constituency parsing identifies the topic and vehicle. This allows the system to handle complex linguistic structures and long-distance dependencies.
  3. Property Generation: To capture implicit properties that rarely appear in text, the pipeline utilizes COMET (a commonsense model) and RoBERTa for context-aware property generation.
  4. Probabilistic Modeling: The KB employs a "noisy-or" model to assign Plausibility (likelihood of the comparison) and Typicality (representativeness of the property), preserving the "long tail" of creative similes rather than discarding rare pairs.

Datasets and Evaluation

The knowledge base was built using 70 GB of raw text from Openwebtext, Gutenberg, and Bookcorpus. Evaluation was conducted against established benchmarks like MetaKB and user-generated content (UGC) to ensure broad applicability.

Key Results

MAPS-KB significantly expands the scale of available simile data, containing 4.3 million triplets across 0.4 million unique terms. In simile detection tasks, the co-training method achieved an F1-score of 81.52 on Wikipedia data, outperforming standard supervised learning.

Performance metrics (Precision, Recall, F1) for simile detection across Wikipedia and UGC datasets, comparing Supervised, Self-Supervised, and Co-training methods.

Beyond detection, MAPS-KB achieved state-of-the-art results in simile interpretation and writing polishment. When transforming literal sentences into similes (e.g., "Love is rare" → "Love is like a unicorn"), the model outperformed GPT-3 in both BLEU scores and semantic similarity (BERTScore).

Discussion and Future Work

A core insight of this work is that similes cannot be mined through simple extraction; they require generative models to bridge the gap of implicit common sense. By retaining long-tail data through probabilistic modeling, MAPS-KB supports more diverse creative writing. Future research will focus on improving component extraction for "be" patterns (often metaphors) and extending the framework to other figurative forms like sarcasm and humor.

Summary updated

BibTeX
@inproceedings{he2023maps,
  author = {Qianyu He and Xintao Wang and Jiaqing Liang and Yanghua Xiao},
  title = {{MAPS-KB: A Million-Scale Probabilistic Simile Knowledge Base}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i5.25787},
}
Figure