arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.22010cs.LG
收藏

通过推理时间的Stiefel激活引导探索多样生成路径

Exploring Diverse Generation Paths via Inference-time Stiefel Activation Steering

The Chinese University of Hong Kong(香港中文大学);Hong Kong Polytechnic University(香港理工大学)

Dongxuan Zhu, Ly Tran Ho Khanh, Andy Yat-Ming Cheung, Man-Chung Yue, Viet Anh Nguyen

AI总结:

STARS通过在推理时间利用Stiefel流形优化,提升语言模型生成路径的多样性,无需训练并在多个基准中表现更优。

摘要:

语言模型往往默认使用一组高概率的输出,导致其生成路径同质化,并容易出现模式崩溃。基于采样策略注入了随机性,但仍难以保证在多个并发生成运行中保持多样性。我们通过引入STARS(基于Stiefel的激活引导以实现多样推理),一种无需训练的推理时间干预方法,将激活引导转变为探索引擎。在每个token时,STARS收集并发生成运行的隐藏激活,并在Stiefel流形上联合优化多个加法引导方向。STARS最大化引导激活的几何体积,而Stiefel流形诱导了引导干预的正交性。这种公式明确促进了并发生成运行的激活向量的分歧,并隐含地促进了生成轨迹的分歧。这种流形优化公式可以通过黎曼梯度下降算法求解,具有收敛保证,但该算法对于实时推断来说过于耗时。为了保证低延迟,我们进一步设计了一个轻量级的一步更新,使用激进的闭式步长。对于测试用例生成和科学发现基准,STARS在多个并发生成运行中始终优于标准采样方法,实现了更高的多样性,而不牺牲定性性能。

英文摘要:

Language models often default to a narrow set of high-probability outputs, leaving their generation paths homogeneous and prone to mode collapse. Sampling-based strategies inject randomness but still struggle to guarantee diversity across multiple concurrent generation runs. We address this limitation by introducing STARS ($\textbf{St}$iefel-based $\textbf{A}$ctivation Steering for Diverse $\textbf{R}$ea$\textbf{S}$oning), a training-free, inference-time intervention method that transforms activation steering into an exploration engine. At each token, STARS collects the hidden activations of concurrent generation runs and optimizes multiple additive steering directions jointly on the Stiefel manifold. STARS maximizes the geometric volume of the steered activations, while the Stiefel manifold induces orthogonality of the steering interventions. This formulation explicitly promotes divergent activation vectors of concurrent generation runs, and implicitly promotes divergent generation trajectories. This manifold optimization formulation can be solved using a Riemannian gradient descent algorithm with convergence guarantees, but this algorithm is too time-consuming for real-time inference. To guarantee low latency, we further design a lightweight one-step update with an aggressive, closed-form stepsize. For test case generation and scientific discovery benchmarks, STARS consistently outperforms standard sampling methods, achieving greater diversity without sacrificing qualitative performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑