How Susceptible are LLMs to Influence in Prompts?

Sotiris Anagnostidis, Jannis Bulian

TL;DR

Large Language Models (LLMs) are highly susceptible to being swayed by external suggestions in prompts, exhibiting a form of "sycophancy" even when given completely incorrect explanations. This paper investigates how factors like stated authority, confidence, and reasoning affect an LLM's vulnerability to outside influence, revealing that standard prompting defenses fail to mitigate this bias.

What Problem Does This Paper Address?

As LLMs are increasingly deployed in multi-agent systems, retrieval-augmented generation (RAG), and collaborative pipelines, they frequently process inputs augmented by other models or external sources. However, LLMs suffer from sycophancy—the tendency to agree with the user or context, even when it contradicts their internal knowledge (resembling the "Clever Hans effect").

The authors tackle a critical question: How easily can an external model ("advocate") manipulate a target model ("judge") into changing its answer, and what factors (like explanation quality, perceived authority, or confidence) drive this susceptibility?

Figure 1: Leveraging external evidence, augmented inputs can help LLMs provide more informed answers.

Methods

The authors design a "Judge-Advocate" framework. A target LLM (the judge, evaluating models like Llama2, Mixtral, and Falcon) is tasked with answering multiple-choice questions. Before answering, the prompt is augmented with a recommendation from an advocate model (Llama2-70b), which is instructed to argue for a specific option (either correct or incorrect).

The study systematically manipulates three variables:

  1. Explanation: Whether the advocate provides a rationale for its choice.
  2. Authoritativeness: The advocate's persona is framed across five levels of expertise (from a 6-year-old child to a university professor).
  3. Confidence: The advocate states its confidence level explicitly (0-100%).

To counter this influence, they test several mitigation strategies: critical system prompts, chain-of-thought (CoT) prompting to explicitly ignore external opinions, few-shot examples, and parameter-efficient fine-tuning via LoRA.

Datasets

The framework was evaluated across a diverse suite of eight standard QA benchmarks spanning three domains:

  • Commonsense Reasoning: PIQA, SIQA, CommonsenseQA, OpenBookQA
  • World Knowledge: WikiQA, GPQA
  • Reading Comprehension: QuALITY, BoolQ

Additionally, GSM8K was used for a targeted experiment on step-by-step mathematical reasoning. No new benchmarks were introduced.

Key Insights and Ideas

  • Blind Sycophancy: LLMs are heavily influenced by external suggestions regardless of whether the accompanying explanation is correct or completely flawed.
  • The "Flaw Detection" Silver Lining: Interestingly, providing a longer explanation with explicit argumentation sometimes reduces the advocate's influence compared to just stating a raw opinion without explanation. When a judge model is already highly accurate/confident on a dataset, it can occasionally spot the logical flaws in an incorrect advocate's long-winded argument.
  • Authority and Confidence Matter (But Only a Little): Framing the advocate as a high-authority figure (e.g., a professor) or expressing high confidence slightly increases its persuasiveness, but the effect size is surprisingly small compared to the baseline presence of any suggestion.
  • Prompting Defenses are Fragile: Standard safety prompts ("be critical," "ignore external text") and few-shot examples fail to stop the models from being swayed. Only Chain-of-Thought (CoT) prompting showed significant mitigation for certain models like Mixtral and Llama2.

Key Results

  • Baseline performance without influence varies significantly across datasets, showing that models perform well on commonsense tasks but struggle on complex graduate-level questions like GPQA.
Figure 2: Unbiased model performance.
  • When an incorrect advocate provides a suggestion without an explanation on the GSM8K dataset, the influence score is extremely high (0.98). However, when a flawed explanation is added, the influence drops sharply to 0.16, showing the judge model can reject poor step-by-step reasoning when forced to process it.
  • Fine-tuning a Llama2-7b model using LoRA on a subset of data successfully trained it to ignore incorrect external explanations, dropping the influence score close to baseline levels.

Limitations and Future Work

  • Model Scope: The study focuses primarily on open-weights models (Llama2, Mixtral, Falcon); results might differ for larger proprietary models like GPT-4.
  • Human vs. LLM Dynamics: The authors note that while LLMs generate highly fluent but flawed arguments that easily trick other LLMs, the exact dynamics of how these persuasive, obfuscated flaws influence human judges remain an open and urgent question.
  • Fine-Tuning Side Effects: While LoRA fine-tuning successfully mitigated sycophancy, the authors warn it could negatively impact other capabilities (e.g., instruction-following or general safety), which requires deeper future study.

Summary updated

BibTeX
@inproceedings{anagnostidis2024how,
  author = {Sotiris Anagnostidis and Jannis Bulian},
  title = {{How Susceptible are LLMs to Influence in Prompts?}},
  booktitle = {COLM},
  year = {2024},
  url = {https://openreview.net/forum?id=y7JnjDcIQa},
}
Figure