← Latest papers
💬 NLP

Teaching Through Analogies: A Modular Pipeline for Educational Analogy Generation

This paper introduces a modular, Structure Mapping Theory-based pipeline for educational analogy generation that decomposes the task into four stages, demonstrating through extensive evaluation of 12 LLMs that sub-concept grounding significantly improves explanation quality and retrieval precision while revealing cross-stage interactions critical for generating high-quality analogies.

Original authors: Mariam Barakat, Ekaterina Kochmar

Published 2026-05-26
📖 5 min read🧠 Deep dive

Original authors: Mariam Barakat, Ekaterina Kochmar

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 explain a complex, unfamiliar machine (like a quantum computer) to a child. The best way to do this isn't to list technical specs; it's to compare it to something they already know, like a bicycle. This is the power of an analogy.

However, teaching computers to come up with these "aha!" moments is surprisingly hard. Large Language Models (LLMs) are great at writing, but when asked to create analogies, they often stumble, creating confusing or misleading comparisons.

This paper presents a new, modular pipeline—think of it as an assembly line—to help computers build better educational analogies. Instead of asking the computer to "just write an analogy," the researchers break the job down into four distinct stations, testing different tools at each stop to see what works best.

Here is how their "Analogy Factory" works, explained simply:

The Four Stations of the Analogy Factory

1. The Source Finder (Finding the Right Comparison)

  • The Job: The computer needs to find a familiar "Source System" (like a bicycle) to explain the "Target System" (the quantum computer).
  • The Experiment: They tested two ways to find this source:
    • Closed Setting: The computer picks from a pre-approved list of 100 familiar things (like a multiple-choice quiz).
    • Open Setting: The computer has to invent a source from scratch (like a free-response essay).
  • The Finding: When the computer is given a list to choose from, it does much better if it knows the "parts" of the target first. It's like finding a matching puzzle piece; if you know the shape of the piece you need, you find the match faster. However, when asked to invent a source from thin air, knowing the parts didn't help much. The computer just guessed.

2. The Sub-Concept Matcher (Connecting the Dots)

  • The Job: Once the computer has the Target (Quantum Computer) and the Source (Bicycle), it must map the specific parts. The "wheels" of the bike must map to the "qubits" of the computer.
  • The Experiment: They tested if the computer could align these parts correctly, with or without extra background descriptions.
  • The Finding: The computer is surprisingly good at this if it just focuses on the parts. Interestingly, adding too much background text sometimes confused it, like trying to solve a puzzle while someone is shouting extra instructions. The model Grok-4 was the champion here, beating previous records.

3. The Explanation Writer (Telling the Story)

  • The Job: Now that the parts are matched, the computer must write a sentence explaining why the comparison works.
  • The Experiment: They tested different "inputs" to see what helped the writer. Did it need just the names? The background story? Or a list of the matched parts?
  • The Finding: The biggest boost came from giving the computer the matched parts (e.g., "Wheels = Qubits"). It's like giving a writer an outline; the story becomes much clearer. The model GPT-4.1-Mini was the best storyteller, especially when it had that outline.

4. The Quality Control Inspector (Grading the Work)

  • The Job: How do we know if the analogy is good?
  • The Experiment: They used a "Judge" (another AI, Claude Sonnet 4.6) to grade the analogies on three things:
    1. Coherence: Does it make sense?
    2. Mapping: Are the parts connected correctly?
    3. Explanatory Power: Does it actually help a learner understand?
  • The Finding: The AI Judge was very good at ranking analogies (saying "This one is better than that one"), but it wasn't perfect at giving exact scores (like saying "This is a 2.5 out of 3"). It's like a teacher who can easily tell you which essay is the best in the class, but might struggle to agree on the exact grade number.

The Big Takeaways

  • No "One-Size-Fits-All" Robot: The best computer model for finding a source isn't the same as the best one for writing the explanation. You need a team of specialists, not a single generalist.
  • Structure is King: The most important ingredient for a good analogy is structure (matching the parts), not just surface-level words. If you tell the computer "Here are the parts that match," the result is much better.
  • The "Open" Problem: Computers are still bad at coming up with new sources from scratch. They are much better at picking from a list.
  • Human vs. Machine: When humans graded the analogies, they agreed more on the ranking (which is better) than on the score (how good it is). The AI Judge mimicked this human behavior well.

What This Means (and Doesn't Mean)

The paper shows us how to build a better "factory" for educational analogies by breaking the task into steps and using the right tools for each step.

Important Note: The paper does not claim this system is ready to replace teachers, nor does it claim it works for medical advice or clinical uses. It strictly focuses on the technical process of generating and evaluating analogies for educational concepts using current AI models. The authors also note limitations, such as the system only working in English and the fact that errors in the first step (finding the source) can ruin the whole analogy later on.

In short, this paper is a blueprint for building a smarter, more structured way to teach computers how to make the "Aha!" moments that help us learn.

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 →