paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Predictive Prompt Analysis

预测性提示分析
FSE Proceedings of the 33rd ACM International Conference on the Foundations of Software Engineering2025匹配度 3/10 · 该论文的核心目标是理解与预测 LLM 对提示的响应(用稀疏自编码器做提示分析),研究对象本身就是 LLM,属于用户明确不感兴趣的“以 LLM 为研究目标/靠提示词技巧”一类;它既没有把静态分析技术用于 Agentic 程序或 ML 系统,也没有涉及浮点或贝叶斯程序分析。仅在“LLM 与程序语言交叉”这一宽泛标签上与画像有弱关联。引用 0 inbox
Jae Yong Lee, Sungmin Kang, Shin Yoo
crossref: 2026-09-12

AI 速览

一句话:提出预测性提示分析概念,用稀疏自编码器快速预测LLM对提示的响应,免去反复试错。

大语言模型对提示措辞高度敏感,但揭示提示设计原则十分困难,通常只能依赖代价高昂的试错。本文提出“预测性提示分析”概念:由自动化技术快速分析提示,并针对用户给定的目标预测LLM将如何响应。作为概念验证,作者提出 Syntactic Prevalence Analyzer(SPA),基于稀疏自编码器实现,用于预测LLM在代码合成中生成目标语法结构的频率。实验表明,SPA 的预测值与实际频率的 Pearson 相关系数最高达 0.994,而运行时间仅为在基准上实际运行LLM的 0.4%。该工作有望让开发者和研究者更高效地使用LLM。

问题
提示工程缺乏可循原则,改善提示通常只能依赖计算代价高昂的试错,无法在运行LLM前预知其响应。
方法
提出预测性提示分析概念,并实现基于稀疏自编码器的 SPA,通过快速分析提示来预测LLM生成目标语法结构的相对频率。
评估
在代码合成任务上对比SPA预测的目标语法结构流行度与LLM实际生成频率,最高达到0.994的Pearson相关,且耗时仅为运行LLM基准的0.4%。
原文摘要(Abstract)

Large Language Models (LLMs) are machine learning models that have seen widespread adoption due to their capability of handling previously difficult tasks. LLMs, due to their training, are sensitive to how exactly a question is presented, also known as prompting. However, prompting well is challenging, as it has been difficult to uncover principles behind prompting — generally, trial-and-error is the most common way of improving prompts, despite its significant computational cost. In this context, we argue it would be useful to perform 'predictive prompt analysis', in which an automated technique would perform a quick analysis of a prompt and predict how the LLM would react to it, relative to a goal provided by the user. As a demonstration of the concept, we present Syntactic Prevalence Analyzer (SPA), a predictive prompt analysis approach based on sparse autoencoders (SAEs). SPA accurately predicted how often an LLM would generate target syntactic structures during code synthesis, with up to 0.994 Pearson correlation between the predicted and actual prevalence of the target structure. At the same time, SPA requires only 0.4% of the time it takes to run the LLM on a benchmark. As LLMs are increasingly used during and integrated into modern software development, our proposed predictive prompt analysis concept has the potential to significantly ease the use of LLMs for both practitioners and researchers.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot9105,
  title = {Predictive Prompt Analysis},
  author = {Jae Yong Lee and Sungmin Kang and Shin Yoo},
  booktitle = {FSE},
  year = {2025},
  doi = {10.1145/3696630.3728516}
}