← Latest papers
🤖 machine learning

When Correct Demonstrations Hurt: Rethinking the Role of Exemplars in In-Context Learning

This paper challenges the assumption that correct demonstrations always aid In-Context Learning by revealing that task-preserving perturbations can degrade performance through "contextual evidence shift," demonstrating that exemplar utility depends on how examples influence contextual inference rather than mere correctness.

Original authors: Chenghao Qiu, Chunli Peng, Yufeng Yang, Kuan-Hao Huang, Yi Zhou

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

Original authors: Chenghao Qiu, Chunli Peng, Yufeng Yang, Kuan-Hao Huang, Yi Zhou

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

The Big Idea: Being "Right" Isn't Always "Helpful"

Imagine you are trying to teach a robot how to sort laundry. You show it a few examples:

  • Example 1: A red sock goes in the "Red" pile.
  • Example 2: A blue shirt goes in the "Blue" pile.

The robot learns quickly. This is called In-Context Learning (ICL). The robot looks at the examples you give it (the "demonstrations") and guesses how to handle the new item you just handed it.

The common belief has been: "As long as the examples I show the robot are factually correct, the robot will learn better."

This paper proves that belief is wrong.

The authors discovered a strange phenomenon: You can give the robot examples that are 100% factually correct, but if you change how those examples look or sound, the robot might get confused and perform worse than if you gave it no examples at all.

The Experiment: The "Task-Preserving" Trick

To test this, the researchers didn't trick the robot with wrong answers. Instead, they played a game of "same task, different story." They called this Task-Preserving Perturbation.

Think of it like teaching someone to drive.

  • The Standard Way: You show them a video of a car stopping at a red light. (Correct example).
  • The "Perturbed" Way: You show them a video of a different car stopping at a red light, but this time the car is a bright yellow convertible, the weather is sunny, and the driver is wearing a hat. The action (stopping at a red light) is still correct. The rule hasn't changed.

However, the researchers found that if you show the robot too many of these "different-looking but correct" examples, the robot starts to get confused about what the real rule is. It starts thinking, "Oh, maybe the rule is about yellow convertibles in sunny weather," rather than "Stop at red lights."

The Core Concept: "Contextual Evidence Shift"

The paper introduces a fancy term for this confusion: Contextual Evidence Shift.

Imagine the robot is a detective trying to solve a mystery. The examples you give it are "clues."

  • Clean Clues: All the clues look similar and point clearly to the same suspect.
  • Perturbed Clues: The clues are still technically true, but they look very different from each other. Some are written in red ink, some in blue; some are long stories, some are short notes.

Even though every clue is true, the mixture of clues changes. The detective (the robot) starts to focus on the wrong details (like the color of the ink) instead of the main crime. The "evidence" the robot uses to make a decision has shifted, even though the facts haven't changed.

What They Found

The researchers tested this on three types of tasks:

  1. Sentiment Analysis: Deciding if a movie review is positive or negative.
  2. Logical Reasoning: Solving puzzles like "If A is true, and A implies B, is B true?"
  3. Math Word Problems: Solving simple math stories.

The Results:

  • Small Robots Get Hurt More: Smaller, less powerful models (like a 7-billion parameter model) got very confused when the examples looked different. Their accuracy dropped significantly.
  • Big Robots Are Tougher: Larger, smarter models (like 70-billion parameter models) were much better at ignoring the "noise" and sticking to the real rule. They didn't get as confused.
  • More Confusion = Worse Results: The more "different-looking" examples they added, the worse the small robots performed. In some cases, the robot did worse with these "correct" examples than if they had given it no examples at all.

A Simple Analogy: The Music Playlist

Imagine you are trying to teach a DJ to play "Upbeat Pop" music.

  • Standard Examples: You give them a playlist of 10 upbeat pop songs. They learn the vibe perfectly.
  • Perturbed Examples: You give them 10 songs that are still upbeat pop, but you change the cover art, the album names, and the order of the tracks. The music is the same genre, but the "packaging" is weird.

If you give the DJ a mix of standard and weirdly packaged songs, a novice DJ might get confused and start playing slow jazz because they are focusing on the weird album covers instead of the beat. An expert DJ (the large model) would just ignore the covers and play the right music.

The Takeaway

The paper concludes that when we try to teach AI models using examples, we shouldn't just ask, "Is this example correct?"

We also have to ask, "Does this example fit the pattern of the other examples?"

If the examples are all "correct" but they look too different from each other, they can actually hurt the AI's ability to learn. The AI needs a consistent "vibe" or "context" to figure out the rules, not just a pile of factually true but stylistically chaotic data.

In short: Correctness is necessary, but it is not enough. The way you present the correct information matters just as much as the information itself.

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 →