How Persuasive Is Your Context?

Tu Nguyen, Kevin Du, Alexander Miserlis Hoyle, Ryan Cotterell

Sure, here's a blog-style summary of the paper "How Persuasive Is Your Context?" for a technically literate audience:

TL;DR

This paper introduces the Targeted Persuasion Score (TPS), a novel metric to quantify how much a given context can influence a language model's (LM) output distribution. TPS goes beyond simply looking at the top predicted answer, using Wasserstein distance to measure shifts in the entire probability distribution, offering a more nuanced understanding of LM behavior and context sensitivity.

What Problem Does This Paper Address?

Language models (LMs) are increasingly used in applications where understanding how they respond to context is crucial. LMs can draw on their pre-trained knowledge and adapt to new information provided in a prompt. However, evaluating how a context influences an LM's decision-making is challenging. Existing methods often rely on just the greedily decoded answer, which can miss subtle shifts in the LM's underlying probability distribution. This can lead to an incomplete picture of persuasiveness, especially when a context changes the model's confidence or shifts probability mass without changing the top prediction. The authors aim to develop a metric that captures these nuanced influences.

Methods

The core contribution is the Targeted Persuasion Score (TPS). TPS is defined as the difference between two Wasserstein distances: the distance of the LM's prior answer distribution to a target distribution, and the distance of the context-conditional answer distribution to the same target distribution.

  • Wasserstein Distance: This is a metric used to measure the distance between two probability distributions. It can be thought of as the minimum "cost" to transform one distribution into another, where the cost is defined by a user-specified cost function.
  • Cost Function (c(x, y)): This function defines the "cost" of moving probability mass from outcome x to outcome y. The authors propose flexibility here:
  • BasicTPS: Uses a simple cost function where moving mass to a target answer has a cost of 1, and other moves have a cost of 0. This is useful for binary or single-target scenarios.
  • Distance-based TPS: Employs a cost function based on semantic similarity (e.g., using word embeddings) or ordinal relationships (e.g., numerical ratings). This allows TPS to account for how "close" different answers are semantically or numerically.

Datasets

The paper uses several datasets for their experiments:

  • Official Language relation from YAGO knowledge graph: Used in Case Study #1 to test how contexts disagreeing with ground truth influence LM answers.
  • WordNet: Used in Case Study #2 for word-sense disambiguation, where sentences were generated to invoke specific senses.
  • IMDb movie review dataset: Used in the "More Realistic Study" for a movie rating task, with synthetically generated reviews.
  • Political party manifestos: Used in the "Applied Setting" section for political positioning tasks.

Key Insights and Ideas

  • Beyond the Top-1: TPS reveals that contexts can significantly alter an LM's probability distribution even if the top predicted answer remains unchanged. This highlights the limitations of relying solely on greedy decoding for evaluating context influence.
  • Nuanced Persuasion: The flexibility of the cost function in TPS allows it to capture different notions of answer similarity, making it more adaptable than previous metrics like KL divergence.
  • Negative Contexts are More Persuasive: In several experiments, negative contexts (e.g., negative reviews) showed higher persuasiveness (higher TPS) than positive contexts, especially with smaller numbers of examples.
  • "Lost-in-the-Middle" Effect: TPS can detect phenomena like the "lost-in-the-middle" effect, where contradictory information placed at the beginning or end of a context has a stronger influence than information in the middle. This effect is often invisible to greedy decoding.
  • Semantic Similarity Matters: Distance-based TPS, which incorporates semantic similarity into its cost function, better reflects how LMs shift probability mass towards semantically related answers compared to BasicTPS.

Key Results

  • Case Study #1 (Official Language): BasicTPS scores were higher for contexts that successfully changed the greedily decoded answer to match the context, demonstrating its validity.
  • Case Study #2 (Word Sense Disambiguation): TPS was generally positive for the target sense and negative for non-target senses. Distance-based TPS showed better discrimination between similar and dissimilar word senses than BasicTPS.
  • More Realistic Study (Movie Ratings): Negative reviews were found to be more persuasive than positive reviews, especially with small context sizes. The "lost-in-the-middle" effect was observed using Distance-based TPS, where contradictory reviews at the ends of contexts had a greater impact.
  • Concatenated vs. Individual Reviews: For noisy contexts, the TPS of concatenated reviews showed a strong relationship with the mean TPS of individual reviews, but the slope being greater than 1 suggested that contradictory reviews were weighted less in the concatenated context.
  • Political Positioning: Technical definitions in prompts showed a nuanced influence, sometimes shifting the model away from expert opinion, while five-shot prompts induced greater variation.

Limitations and Future Work

  • Computational Cost: Estimating the full probability distribution over all possible outputs is computationally expensive. The current TPS implementation often relies on the distribution of the next token, which can be noisy.
  • Finite Answer Space: TPS currently requires a finite answer space, making it difficult to apply directly to open-ended text generation tasks. The authors suggest approximating the answer space or exploring alternative methods.
  • Future Work: The authors suggest using TPS to better understand how LMs integrate context and prior knowledge in areas like retrieval-augmented generation and in-context learning. They also propose carefully quantifying the persuasiveness of specific documents, few-shot examples, and exploring different orderings of context.

Summary updated

BibTeX
@inproceedings{nguyen2025how,
  author = {Tu Nguyen and Kevin Du and Alexander Miserlis Hoyle and Ryan Cotterell},
  title = {{How Persuasive Is Your Context?}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure