Interactive Prompt Debugging with Sequence Salience

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Tenney, Ian, Mullins, Ryan, Du, Bin, Pandya, Shree, Kahng, Minsuk, Dixon, Lucas
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910406097764352
author Tenney, Ian
Mullins, Ryan
Du, Bin
Pandya, Shree
Kahng, Minsuk
Dixon, Lucas
author_facet Tenney, Ian
Mullins, Ryan
Du, Bin
Pandya, Shree
Kahng, Minsuk
Dixon, Lucas
contents We present Sequence Salience, a visual tool for interactive prompt debugging with input salience methods. Sequence Salience builds on widely used salience methods for text classification and single-token prediction, and extends this to a system tailored for debugging complex LLM prompts. Our system is well-suited for long texts, and expands on previous work by 1) providing controllable aggregation of token-level salience to the word, sentence, or paragraph level, making salience over long inputs tractable; and 2) supporting rapid iteration where practitioners can act on salience results, refine prompts, and run salience on the new output. We include case studies showing how Sequence Salience can help practitioners work with several complex prompting strategies, including few-shot, chain-of-thought, and constitutional principles. Sequence Salience is built on the Learning Interpretability Tool, an open-source platform for ML model visualizations, and code, notebooks, and tutorials are available at http://goo.gle/sequence-salience.
format Preprint
id arxiv_https___arxiv_org_abs_2404_07498
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Interactive Prompt Debugging with Sequence Salience
Tenney, Ian
Mullins, Ryan
Du, Bin
Pandya, Shree
Kahng, Minsuk
Dixon, Lucas
Computation and Language
Artificial Intelligence
Human-Computer Interaction
Machine Learning
We present Sequence Salience, a visual tool for interactive prompt debugging with input salience methods. Sequence Salience builds on widely used salience methods for text classification and single-token prediction, and extends this to a system tailored for debugging complex LLM prompts. Our system is well-suited for long texts, and expands on previous work by 1) providing controllable aggregation of token-level salience to the word, sentence, or paragraph level, making salience over long inputs tractable; and 2) supporting rapid iteration where practitioners can act on salience results, refine prompts, and run salience on the new output. We include case studies showing how Sequence Salience can help practitioners work with several complex prompting strategies, including few-shot, chain-of-thought, and constitutional principles. Sequence Salience is built on the Learning Interpretability Tool, an open-source platform for ML model visualizations, and code, notebooks, and tutorials are available at http://goo.gle/sequence-salience.
title Interactive Prompt Debugging with Sequence Salience
topic Computation and Language
Artificial Intelligence
Human-Computer Interaction
Machine Learning
url https://arxiv.org/abs/2404.07498