← Latest papers
💬 NLP

Enhancing Structural Mapping with LLM-derived Abstractions for Analogical Reasoning in Narratives

This paper introduces YARN, a modular framework that leverages LLMs to generate narrative abstractions, demonstrating that this approach significantly enhances structural mapping and analogical reasoning performance compared to end-to-end LLM baselines.

Original authors: Mohammadhossein Khojasteh, Yifan Jiang, Stefano De Giorgis, Frank van Harmelen, Filip Ilievski

Published 2026-04-01
📖 5 min read🧠 Deep dive

Original authors: Mohammadhossein Khojasteh, Yifan Jiang, Stefano De Giorgis, Frank van Harmelen, Filip Ilievski

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a computer how to understand stories the way a human does. Specifically, you want it to understand analogies: the ability to look at two very different stories and realize, "Hey, these are actually about the same underlying situation!"

For example, a story about a chef burning a cake and a story about a student failing a math test seem totally different on the surface (one is about food, the other about school). But if you strip away the details, both are about "someone trying hard, making a mistake, and facing a negative result."

This paper introduces a new system called YARN (which stands for Yielding Abstractions for Reasoning in Narratives) to help computers do this kind of thinking. Here is how it works, broken down into simple concepts.

The Problem: Computers are Too Literal

Imagine you show a computer two stories:

  1. Story A: A man loses his job and feels sad.
  2. Story B: A woman loses her dog and feels sad.

A human instantly sees the connection: Loss leads to sadness.
But a standard computer (or a basic AI) often gets stuck on the surface details. It sees "man" vs. "woman" and "job" vs. "dog." It thinks, "These are different stories!" It struggles to look past the specific words to find the hidden pattern.

Previous AI methods tried to force computers to do this, but they usually required humans to manually label every part of the story first (like tagging "man" as a "person" and "job" as "work"). This is slow and boring.

The Solution: The YARN Framework

The authors built YARN to act like a smart translator that turns messy stories into clean, abstract concepts before trying to compare them. They use a Large Language Model (LLM)—the same kind of tech behind chatbots—to do the heavy lifting.

Think of YARN as a three-step assembly line:

Step 1: Breaking the Story into Lego Bricks (Unit Extraction)

First, the AI reads a story and chops it up into small, meaningful chunks called "units."

  • Original Story: "Johnny had too many projects, so he was stressed, but his boss noticed and gave him a raise."
  • The Chunks: "Too many projects," "Stressed," "Boss noticed," "Got a raise."

Step 2: The Magic Filter (Abstraction)

This is the most important part. The AI takes those chunks and runs them through a "magic filter" that removes the specific details (names, jobs, objects) and keeps only the essence.

  • The Chunk: "Johnny had too many projects."
  • The Abstraction: "Work overload."
  • The Chunk: "Boss gave him a raise."
  • The Abstraction: "Reward for effort."

The paper defines four levels of this filtering, like zooming out on a camera:

  1. Conceptual: What is the core idea? (e.g., "Work overload").
  2. Evaluative: Is this good or bad? (e.g., "Struggle" vs. "Gain").
  3. Narrative Arc: Where does this fit in the story? (e.g., "The Challenge" or "The Conclusion").
  4. Stage: Grouping the whole story into big phases (e.g., "The Beginning," "The Climax," "The End").

Step 3: The Matchmaker (Structural Mapping)

Now that the AI has two stories converted into abstract concepts (instead of messy text), it acts like a matchmaker. It tries to pair up the "Lego bricks" from Story A with Story B.

  • It matches "Work overload" with "Relationship problems" (because both are "Struggles").
  • It matches "Reward" with "Happy ending" (because both are "Gains").

If the patterns line up, the computer says, "Aha! These stories are analogies!"

Why This Matters

The researchers tested YARN on two different types of story puzzles:

  1. Easy Puzzles: Stories that look similar on the surface (e.g., two stories about school).
  2. Hard Puzzles: Stories that look totally different (e.g., a story about a broken heart vs. a story about a broken machine).

The Results:

  • Standard AI is great at the easy puzzles but fails miserably at the hard ones. It gets distracted by the surface details.
  • YARN is slightly slower on the easy puzzles (because it takes time to abstract), but it crushes the hard puzzles. By ignoring the surface details and focusing on the structure, it can find connections that other AIs miss.

The Catch (Where it still struggles)

Even with this clever system, the computer isn't perfect yet. The paper found a few "glitches":

  • The "Too Literal" Filter: Sometimes the AI doesn't abstract enough. Instead of turning "burning a cake" into "failure," it might just say "cooking error," which is too specific.
  • The "Hidden Cause" Problem: Computers are still bad at understanding why things happen. If a story says "The car broke down because it was old," the AI sometimes misses the "because" part and just sees two random facts.
  • The "Opposite" Trap: Sometimes two stories are analogies because they are opposites (e.g., "One person wins, the other loses" vs. "One person loses, the other wins"). Standard matching tools get confused by this and think they don't match.

The Big Picture

This paper is like building a bridge between two worlds:

  1. Cognitive Science: The old-school idea that humans solve problems by matching structures (like a puzzle).
  2. Modern AI: The new-school idea that computers can read anything if you ask them nicely.

The authors show that if you combine the two—using modern AI to do the reading and old-school logic to do the matching—you get a system that is much better at understanding the "soul" of a story than either method could be alone.

In short: YARN teaches computers to stop looking at the words and start looking at the meaning, allowing them to finally understand that a broken heart and a broken engine are, in a way, the same story.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →