PROMPT2BOX: 揭示LLM提示间的蕴含结构
PROMPT2BOX:Improving LLM Weakness Discovery and Specificity Estimation by Uncovering Entailment Structure among Prompts
AI总结:
提出PROMPT2BOX方法,通过盒嵌入空间捕捉提示间的特异性关系,并开发降维技术,在层次聚类中比向量基线多发现8.9%的LLM弱点。
摘要:
为了发现LLM的弱点,研究人员通常将提示嵌入到向量空间并进行聚类以提取有洞察力的模式。然而,向量嵌入主要捕捉主题相似性。因此,共享主题但特异性不同(从而难度不同)的提示通常被相似地表示,使得细粒度的弱点分析变得困难。为了解决这一限制,我们提出了PROMPT2BOX,它使用训练好的编码器将提示嵌入到盒嵌入空间中。该编码器在现有和合成数据集上训练,输出的盒嵌入不仅捕捉语义相似性,还捕捉提示之间的特异性关系(例如,“写一个冒险故事”比“写一个故事”更具体)。我们进一步开发了一种新颖的盒嵌入降维技术,以促进数据集的可视化和比较。我们的实验表明,盒嵌入在捕捉提示特异性方面始终优于向量基线。在从UltraFeedback数据集为17个LLM创建层次聚类树的下游任务中,PROMPT2BOX比向量基线多识别出8.9%的LLM弱点,并且在层次深度与指令特异性之间实现了约33%更强的相关性。
英文摘要:
To discover the weaknesses of LLMs, researchers often embed prompts into a vector space and cluster them to extract insightful patterns. However, vector embeddings primarily capture topical similarity; as a result, prompts that share a topic but differ in specificity, and consequently in difficulty, are often represented similarly, making fine-grained weakness analysis difficult. To address this limitation, we propose Prompt2Box, which embeds prompts into a box embedding space using a trained encoder. The encoder, trained on existing and synthesized datasets, outputs box embeddings that capture not only semantic similarity but also specificity relations between prompts (e.g., "writing an adventure story" is more specific than "writing a story"). We further develop a novel dimension reduction technique for box embeddings to facilitate dataset visualization and comparison. Our experiments demonstrate that box embeddings consistently capture prompt specificity better than vector baselines and achieve 45% error reduction on average in predicting specificity compared to the prompt length baseline. On the downstream task of creating hierarchical clustering trees for 17 LLMs from the UltraFeedback dataset, Prompt2Box can identify 13.5% more LLM weaknesses than vector baselines and achieves an approximately 33% stronger correlation between hierarchical depth and instruction specificity. The code is available at https://github.com/zawedcvg/box_embeddings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。