Visual Computing

University of Konstanz
arXiv.org

Revealing the Unwritten: Visual Investigation of Beam Search Trees to Address Language Model Prompting Challenges

T. Spinner, R. Kehlbeck, R. Sevastjanova, T. Stähle, D. A. Keim, O. Deussen, A. Spitz, M. El-Assady
Teaser of Revealing the Unwritten: Visual Investigation of Beam Search Trees to Address Language Model Prompting Challenges

The Beam search trees for the prompt women like to with different quantifiers used in the place of the token. The user can select wordlists for exploration; the tree is collapsed showing only interesting nodes for the analysis.

Material

Paper (.pdf, 2.3MB)

Abstract

The growing popularity of generative language models has amplified interest in interactive methods to guide model outputs. Prompt refinement is considered one of the most effective means to influence output among these methods. We identify several challenges associated with prompting large language models, categorized into data- and model-specific, linguistic, and socio-linguistic challenges. A comprehensive examination of model outputs, including runner-up candidates and their corresponding probabilities, is needed to address these issues. The beam search tree, the prevalent algorithm to sample model outputs, can inherently supply this information. Consequently, we introduce an interactive visual method for investigating the beam search tree, facilitating analysis of the decisions made by the model during generation. We quantitatively show the value of exposing the beam search tree and present five detailed analysis scenarios addressing the identified challenges. Our methodology validates existing results and offers additional insights.

BibTeX

@article{Spinner2023Revealing,
  author    = {T. Spinner, R. Kehlbeck, R. Sevastjanova, T. Stähle, D. A. Keim, O. Deussen, A. Spitz, M. El-Assady},
  copyright = {arXiv.org perpetual, non-exclusive license},
  doi       = {10.48550/arXiv.2310.11252},
  journal   = {arXiv.org},
  keywords  = {Computation and Language (cs.CL), Artificial Intelligence (cs.AI), Human-Computer Interaction (cs.HC), FOS: Computer and information sciences, H.5.2; I.2.7},
  publisher = {arXiv},
  title     = {Revealing the Unwritten: Visual Investigation of Beam Search Trees to Address Language Model Prompting Challenges},
  year      = {2023}
}