← Latest papers
💬 NLP

Compact Example-Based Explanations for Language Models

This paper introduces a retraining-free relevance score to evaluate example selection for language model explanations and proposes a new strategy that balances influence and representativeness to outperform common selection methods and random baselines.

Original authors: Loris Schoenegger, Benjamin Roth

Published 2026-04-10
📖 3 min read☕ Coffee break read

Original authors: Loris Schoenegger, Benjamin Roth

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 have a super-smart robot chef (the Language Model) who has cooked a million meals using a massive library of recipes (the Training Data). One day, the robot makes a specific dish, say, "Spicy Tacos," and you ask, "Why did you make it this way?"

The robot says, "Well, I learned this from 50,000 different recipe books in my library!"

That's not very helpful. You can't read 50,000 books to understand one taco. You need a small, curated list of the top 5 or 10 recipes that actually inspired the chef. This is what the paper calls an Example-Based Explanation.

The Problem: Picking the Wrong Recipes

The researchers found that the standard way of picking these "top 5 recipes" was broken.

Most systems use a tool called Influence Functions. Think of this tool as a "Popularity Meter" that scans the library and says, "This recipe was used the most! It's the most influential!"

The problem? The "most influential" recipes are often:

  1. The Weird Outliers: Like a recipe for "Deep-Fried Ice Cream" that the chef tried once and hated, but the meter flagged as "influential" because it caused a huge reaction.
  2. The Duplicates: The meter picks the same recipe 5 times because it's slightly different versions of the same thing.

If you show a human the "Deep-Fried Ice Cream" recipe to explain "Spicy Tacos," the human is confused. It doesn't make sense.

The Solution: A New "Relevance Score"

The authors invented a new way to score which recipes to pick, called Selection Relevance.

Instead of asking, "Which recipe had the biggest impact on the chef's brain?", they ask:
"If I only gave the chef these 5 recipes, could they perfectly recreate the 'Spicy Tacos'?"

They use a mathematical trick (gradients) to see if the selected recipes can "reconstruct" the final dish.

  • Good Selection: The 5 recipes cover all the flavors needed (spicy, crunchy, fresh). The reconstruction is perfect.
  • Bad Selection: The 5 recipes are all just "Salt." You can't make tacos with just salt. The reconstruction fails.

The Big Discovery

When they tested this new score, they found something surprising:
The "most influential" recipes were often the worst choices.

In fact, picking the least influential, boring, standard recipes often worked better than picking the "famous" ones. Why? Because the famous ones were often weird outliers that confused the model, while the boring ones were the reliable, standard building blocks of the dish.

The New Strategy: The "Diverse Basket"

The paper proposes a new strategy called Facility Location Selection.

Imagine you are packing a lunchbox (the explanation) for a friend.

  • Old Way (Naive): You grab the 5 most expensive, fancy items in the kitchen. (Result: 5 fancy chocolates. Delicious, but not a balanced meal).
  • New Way (Facility Location): You grab items that are different from each other but still cover the whole meal. One sandwich, one fruit, one snack, one drink.

This new strategy balances Influence (how much the item matters) with Representativeness (how well it covers the whole picture without being redundant).

The Takeaway

If you want to explain why an AI made a decision, don't just show it the "loudest" or "most famous" examples from its training. Instead, show it a diverse, representative set of examples that, when combined, perfectly explain the logic behind the decision.

In short: Don't pick the most popular books in the library to explain a story; pick the few books that, when read together, tell the whole story clearly.

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 →