Avoidance Decoding for Diverse Multi-Branch Story Generation

Kyeongman Park, Nakyeong Yang, Kyomin Jung

TL;DR

This paper introduces "Avoidance Decoding," a novel method to make AI-generated stories more diverse and less repetitive. By penalizing similarity to previously generated stories, it encourages LLMs to explore a wider range of creative ideas and narrative paths, leading to richer and more engaging multi-branch stories.

What Problem Does This Paper Address?

Large Language Models (LLMs) are great at generating text, but they often fall into repetitive patterns, especially when asked to create multiple variations of a story from the same prompt. This lack of creative diversity limits their usefulness in applications like story generation, where novel ideas and distinct narratives are crucial. Existing methods to boost diversity often result in superficial changes or can lead to text degeneration (nonsensical or ungrammatical output). The authors aim to solve this by developing a decoding strategy that actively discourages similarity to previously generated stories, thereby promoting genuine conceptual and narrative divergence.

Methods

The core of the proposed method is "Avoidance Decoding," which modifies the LLM's output probabilities at each step to avoid generating text too similar to existing "negative samples" (previously generated stories). This is achieved through a "Similarity-based Contrastive Penalty" that is adaptively applied.

The penalty has two components:

  • Concept-level Similarity Penalty (CSP): This penalty is prioritized in the early stages of generation. It compares the hidden states of candidate tokens with the hidden states of tokens in the negative samples, aiming to diversify the initial story concepts.
  • Narrative-level Similarity Penalty (NSP): This penalty becomes more important in later stages. It compares sentence embeddings of the current output with those of the negative samples, ensuring the overall narrative remains distinct and coherent.

These two penalties are combined into a "Concept-to-Narrative Hybrid Penalty," with the weight of each adjusted based on the current generation step. This hybrid approach aims to balance early concept diversification with later narrative coherence. The method is applied during decoding, meaning it doesn't require additional model training or stochastic sampling techniques.

Datasets

The authors used two story datasets for their experiments:

  • ReedsyPrompts: A dataset of story prompts.
  • WritingPrompts: Another dataset of story prompts.

They generated 15 multi-branch stories for each prompt, with each story being 200 tokens long.

Key Insights and Ideas

  • Active avoidance is key: Instead of just encouraging novelty, the method actively penalizes similarity, forcing the model to explore less-trodden paths.
  • Concept vs. Narrative: The distinction between diversifying initial ideas (concepts) and maintaining distinct plotlines (narrative) is crucial for generating high-quality, diverse stories.
  • Adaptive weighting matters: Shifting focus from concept to narrative as the story progresses helps maintain coherence while still encouraging diversity.
  • Intrinsic creativity: The method appears to leverage the LLM's inherent creative capabilities by activating a broader range of neurons, rather than just introducing superficial token-level variations.

Key Results

  • Significant Diversity Boost: The proposed "Avoidance Decoding" method achieved up to 2.6 times higher output diversity compared to strong baselines, as measured by LLM-based evaluations.
  • Reduced Repetition: Repetition was reduced by an average of 30% across various automated metrics like BLEU, ROUGE-L, and METEOR.
  • Robustness to Degeneration: The hybrid penalty approach effectively mitigated text degeneration, maintaining coherence and fluency, especially compared to methods relying solely on CSP.
  • Human Evaluation: Human annotators rated the model's outputs highest for Diversity and Creativity, and it also showed superior performance on Degeneration compared to the CSP-only ablated version.

Limitations and Future Work

  • Increased Decoding Time: The primary limitation is the increased computational cost due to processing multiple negative samples at each decoding step. The authors suggest future work could involve optimizing this by using a fixed-size window of recent outputs instead of the entire history.
  • Hyperparameter Tuning: Further tuning of hyperparameters, such as the inflection point ($T_0$) and the penalty scaling factor ($\beta$), could potentially lead to even better trade-offs between diversity and degeneration.

Summary updated

BibTeX
@inproceedings{park2025avoidance,
  author = {Kyeongman Park and Nakyeong Yang and Kyomin Jung},
  title = {{Avoidance Decoding for Diverse Multi-Branch Story Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure