Exploring and Controlling Diversity in LLM-Agent Conversation

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Chu, KuanChao, Chen, Yi-Pei, Nakayama, Hideki
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916980909408256
author Chu, KuanChao
Chen, Yi-Pei
Nakayama, Hideki
author_facet Chu, KuanChao
Chen, Yi-Pei
Nakayama, Hideki
contents Controlling diversity in LLM-agent simulations is essential for balancing stability in structured tasks with variability in open-ended interactions. However, we observe that dialogue diversity tends to degrade over long-term simulations. To explore the role of prompt design in this phenomenon, we modularized the utterance generation prompt and found that reducing contextual information leads to more diverse outputs. Based on this insight, we propose Adaptive Prompt Pruning (APP), a novel method that allows users to control diversity via a single parameter, lambda. APP dynamically prunes prompt segments based on attention scores and is compatible with existing diversity control methods. We demonstrate that APP effectively modulates diversity through extensive experiments and propose a method to balance the control trade-offs. Our analysis reveals that all prompt components impose constraints on diversity, with the Memory being the most influential. Additionally, high-attention contents consistently suppress output diversity.
format Preprint
id arxiv_https___arxiv_org_abs_2412_21102
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Exploring and Controlling Diversity in LLM-Agent Conversation
Chu, KuanChao
Chen, Yi-Pei
Nakayama, Hideki
Computation and Language
Artificial Intelligence
Controlling diversity in LLM-agent simulations is essential for balancing stability in structured tasks with variability in open-ended interactions. However, we observe that dialogue diversity tends to degrade over long-term simulations. To explore the role of prompt design in this phenomenon, we modularized the utterance generation prompt and found that reducing contextual information leads to more diverse outputs. Based on this insight, we propose Adaptive Prompt Pruning (APP), a novel method that allows users to control diversity via a single parameter, lambda. APP dynamically prunes prompt segments based on attention scores and is compatible with existing diversity control methods. We demonstrate that APP effectively modulates diversity through extensive experiments and propose a method to balance the control trade-offs. Our analysis reveals that all prompt components impose constraints on diversity, with the Memory being the most influential. Additionally, high-attention contents consistently suppress output diversity.
title Exploring and Controlling Diversity in LLM-Agent Conversation
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2412.21102