Skip to main content
QUICK REVIEW

[论文解读] Prism-$Δ$: Differential Subspace Steering for Prompt Highlighting in Large Language Models

Yuyao Ge, Shenghua Liu|arXiv (Cornell University)|Mar 11, 2026
Topic ModelingComputer Science被引用 0
一句话总结

Prism-Δ 通过差分跨协方差子空间引导,促进对关键和数值通道在 Transformer 注意力中的强调,从而实现对提示的高亮;采用基于 softplus 的逐头加权,在基准测试中获得强劲提升,且对长上下文具有可扩展性,同时保留流畅性。

ABSTRACT

Prompt highlighting steers a large language model to prioritize user-specified text spans during generation. A key challenge is extracting steering directions that capture the difference between relevant and irrelevant contexts, rather than shared structural patterns common to both. We propose PRISM-$Δ$ (Projection-based Relevance-Informed Steering Method), which decomposes the difference between positive and negative cross-covariance matrices to maximize discriminative energy while eliminating shared directions. Each attention head receives a continuous softplus importance weight, letting weak-but-useful heads contribute at reduced strength. The framework extends naturally to Value representations, capturing content-channel signal that Key-only methods leave unused. Across four benchmarks and five models, PRISM-$Δ$ matches or exceeds the best existing method on 19 of 20 configurations, with relative gains up to +10.6%, while halving the fluency cost of steering. PRISM-$Δ$ also scales to long-context retrieval, outperforming the best existing method by up to +4.8% relative gain. PRISM-$Δ$ is compatible with FlashAttention and adds negligible memory overhead.

研究动机与目标

  • 在生成过程中推动对用户指定文本段的提示高亮优先。
  • 研究 Key(路由)与 Value(内容)通道是否都携带用于高亮的判别信号。
  • 开发一种无梯度、逐头自适应引导方法以分离判别方向。
  • 将框架扩展为共同引导 Key 与 Value 通道,并评估效率与可扩展性。

提出的方法

  • 构建对比数据(中性、正向、负向)以识别判别方向。
  • 定义差分跨协方差 ΩΔ = Ω+ − Ω− 并计算其 SVD 以获得投影子空间 P_K 和 P_V。
  • 从对比信号中计算逐头判别性 Dℓ,h,并映射到软plus 权重 wℓ,h 以进行自适应头部引导。
  • 通过在高亮标记的符号处以 (I + gK wK PK) 和 (I + gV wV PV) 编辑 Key 与 Value 表示来应用双通道引导。
  • 提供 Prism-Δ 的两个变体:Prism-Δ(gV = 0)与 Prism-Δ V(gK > 0, gV > 0)。
  • 展示与 FlashAttention 的兼容性并分析效率开销。
Figure 1 : Overview of Prism- $\Delta$ . SVD decomposes $\Omega_{\Delta}$ into per-head projections ( $P_{K}$ , $P_{V}$ ) and importance weights ( $w_{\ell,h}$ ), steering both Key and Value channels at inference.
Figure 1 : Overview of Prism- $\Delta$ . SVD decomposes $\Omega_{\Delta}$ into per-head projections ( $P_{K}$ , $P_{V}$ ) and importance weights ( $w_{\ell,h}$ ), steering both Key and Value channels at inference.

实验结果

研究问题

  • RQ1是否存在能够将 Key 与 Value 通道中的正向提示信号与负向提示信号区分开的判别子空间?
  • RQ2差分跨协方差(相较于独立的 SVD)是否能分离出真正用于提示高亮的判别方向?
  • RQ3双通道(Key 与 Value)引导对准确性和流畅性在基准测试与模型规模上的影响为何?
  • RQ4逐头 softplus 加权对鲁棒性和调参需求有何影响?
  • RQ5Prism-Δ 是否能扩展到长上下文检索场景?

主要发现

  • Prism-Δ 在五个模型、三个基准、二十组配置中的表现达到或超过现有最佳方法的多数配置,相对提升最高可达 +10.6%。
  • 对 Value 通道的引导相较于仅 Key 的方法在流畅性下降方面更具韧性,提高了生成的一致性。
  • 双通道(Key 与 Value)引导呈现互补的深层结构特征:Key 在中层信号,Value 在后期层信号。
  • 基于 Softplus 的逐头加权能稳健地降低噪声头的权重,相较硬阈值提升了稳定性。
  • Prism-Δ V(双通道)在某些代词变换任务上甚至优于 Prism-Δ,展示了共同引导 Key/Value 的收益。
  • Prism-Δ 能扩展到长上下文检索,在 30 段输入上实现相对提升最高可达 +4.8%。
  • 推断显示几乎无内存开销且与 FlashAttention 兼容;PASTA/SPA 风格基线在延迟/内存方面开销更大。」
(a) Per-head K vs. V discriminative shift.
(a) Per-head K vs. V discriminative shift.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。