提示词几何:用 Pullback Fisher 度量做 LLM 可解释性研究
Prompt Geometry: Pullback Fisher Metrics for LLM Interpretability
AI 导读
一项 arXiv 研究将冻结的 decoder-only 大语言模型视为从提示词嵌入到下一 token 分布的光滑映射,用拉回度量比较提示词距离,构造了基于欧氏、角度与 Fisher 信息度量的三种 pullback 度量及三种距离构建方式。
正文 · 原文
Abstract:Large language models are sensitive to the precise wording of their prompts, yet the distances commonly used to compare prompts, Euclidean and cosine distance between input embeddings, ignore the model that reads them. In this work a frozen decoder-only language model is treated as a smooth map from the embeddings of a user message to its next-token distribution, and tensors obtained by pulling back output metrics are used to measure how far apart two prompts are as seen by the model itself. Three pullback metrics are constructed, from the Euclidean and angular metrics on the probability vector and from the Fisher information metric, and three constructions turn each into a distance between two prompts: evaluation at the base prompt, averaging over both prompts, and integration along the path between them. On an artificial bank-chatbot dataset of 10,200 prompts per model, built from 200 customer messages and 50 single-token rewordings of each, the distances are correlated within each message family against the symmetric Kullback--Leibler divergence between next-token distributions, for Qwen3-0.6B and GPT-2-small. Every pullback metric outperforms the model-agnostic baselines by a wide margin, and the Fisher pullback is the strongest in all but one comparison, raising the mean within-family Spearman correlation on Qwen3-0.6B from 0.21 for Euclidean distance to 0.84 for the path-integrated distance. The path-integrated Fisher distance exceeds Euclidean distance on every message family, most widely on adversarial and known-fragile messages, and recovers from the geometry alone that function-word substitutions are the most disruptive single-token edits. The induced geometry provides a model-intrinsic ruler for prompt robustness testing and a quantitative tool for interpretability.
| Subjects: | Computation and Language (cs.CL); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.37472 [cs.CL] |
| (or arXiv:2611.37472v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2611.37472 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Guto Leoni Santos Mr [view email]
[v1]
Fri, 27 Nov 2026 13:53:08 UTC (523 KB)
来源:arXiv cs.AI · arxiv.org