基于序列显著性的交互式提示调试
Interactive Prompt Debugging with Sequence Salience
AI总结:
本研究提出可视化工具Sequence Salience,将显著性方法扩展至复杂LLM提示调试场景,支持长文本多粒度显著性聚合与快速迭代,可适配多种复杂提示策略,且基于开源平台构建并开放相关资源。
摘要:
我们提出了Sequence Salience(序列显著性),这是一款利用输入显著性方法进行交互式提示调试的可视化工具。Sequence Salience基于文本分类和单token预测领域广泛使用的显著性方法构建,并将其扩展为专门用于调试复杂大语言模型(LLM)提示的系统。该系统非常适合长文本场景,相较已有工作的扩展在于:1)提供可控的token级显著性聚合功能,可聚合至词、句子或段落级别,让长输入的显著性分析具备可操作性;2)支持快速迭代,从业者可根据显著性结果采取行动、优化提示,并针对新输出运行显著性分析。我们通过案例研究展示了Sequence Salience如何帮助从业者运用多种复杂提示策略,包括few-shot(少样本)、chain-of-thought(思维链)和constitutional principles(宪法原则)。Sequence Salience基于机器学习模型可视化开源平台Learning Interpretability Tool构建,代码、笔记本和教程可在http://goo.gle/sequence-salience获取。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。