← Latest papers
💻 computer science

Spurious Prompts: Can Irrelevant Prompts Steer Large Language Models?

This paper demonstrates that semantically unrelated "spurious" prompts can systematically steer large language models to either improve task performance or induce unintended behaviors, revealing a new form of prompt sensitivity that can be exploited via black-box search.

Original authors: Pawel Batorski, Abtin Pourhadi, Jerzy Sarosiek, Przemyslaw Spurek, Paul Swoboda

Published 2026-05-29
📖 4 min read☕ Coffee break read

Original authors: Pawel Batorski, Abtin Pourhadi, Jerzy Sarosiek, Przemyslaw Spurek, Paul Swoboda

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 very smart, but slightly quirky, robot assistant. Usually, to get it to do a math problem, you tell it, "Please solve this equation." To get it to write a story, you say, "Write a tale about a dragon." This is how we normally talk to AI: we give it clear, relevant instructions.

This paper discovers something strange and surprising: You don't actually need to give the robot the right instructions to get it to work. In fact, you can give it instructions that have absolutely nothing to do with the task, and it might still solve the problem better than if you gave it a normal instruction.

The authors call these "Spurious Prompts."

The Magic Trick: The "Secret Code" Analogy

Think of the AI model like a grand piano. Usually, to play a specific song (the task), you press the specific keys (the task instructions).

The researchers found that if you play a completely different, random melody on the piano (a prompt about tuning harp strings or weaving a tapestry), the piano might accidentally start playing the correct song you wanted, and sometimes even play it better than if you tried to play the song directly.

The prompt doesn't say "Solve this math problem." Instead, it might say:

"You are a weaver of six distinct threads in a loom. A designer specifies a pattern. You must select the strand that forms that texture. Do not consider the fabric's drape. Your role is purely structural alignment. Once the pattern is set, stop weaving and state: [Letter]."

Even though this is about weaving and has no math words in it, when you feed a math question to the AI with this prompt, the AI often solves the math problem correctly.

How They Found These Prompts

The researchers didn't guess these prompts; they used a "black-box search" (like a treasure hunt where you can't see inside the chest, only the results).

  1. The Generator: They asked a super-smart AI to write hundreds of weird, unrelated stories (about lighthouses, bells, or secret archives).
  2. The Filter: They threw away any story that accidentally mentioned the task (like words such as "math," "calculate," or "diagnosis").
  3. The Test: They tried these weird stories on the AI to see which ones made it answer the real questions correctly.
  4. The Evolution: They took the best weird stories, mixed them up slightly, and tried again, slowly evolving them into "perfect" weird prompts.

What They Discovered

  • It Works: These unrelated prompts often made the AI perform just as well as, or even better than, standard instructions like "Think step-by-step" or "Solve this carefully."
  • It's Not About Length: You might think longer, more detailed prompts work better. But these "spurious" prompts were actually much shorter than the optimized ones, yet they still won.
  • It's Not About Meaning: When the researchers checked the "meaning" of the prompts, they found these weird prompts were just as unrelated to the task as random gibberish. The AI wasn't understanding the story; it was reacting to the structure or vibe of the text.
  • It Can Go Wrong (or Right) on Purpose: The researchers also found they could use these prompts to force the AI to do silly things, like:
    • Always pick the first answer option (A), even if it's wrong.
    • Always give an even number as an answer.
    • Intentionally give the wrong answer to a question.

The Big Takeaway

The paper suggests that Large Language Models (LLMs) are sensitive to things we don't fully understand yet. They aren't just following the "meaning" of our words like a human reading a manual. Instead, they seem to have hidden "levers" inside them. A prompt about "tuning a harp" might pull a lever that makes the model focus better, even though the harp has nothing to do with the math problem.

In short: The paper proves that you can steer a powerful AI using instructions that are completely irrelevant to the job, and sometimes, those irrelevant instructions work better than the obvious ones. It's like finding out that telling a chef to "polish the silverware" makes their soup taste better than telling them to "cook the soup."

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 →