arXiv cs.AI· Illia Makarov·· 14 小时前AI 评分26
单向量还是多向量?量化下聚类最优传输引导(CHaRS)研究
One Vector or Many? Clustered Optimal-Transport Steering under Quantization
AI 导读
研究在 Gemma-2-2B 与 Granite-3.1-2B 上比较聚类最优传输引导(CHaRS)与类均值差(DiM)在毒性缓解上的效果,并证明按簇大小加权的位移平均恒等于 DiM。
正文 · 原文
Abstract:Activation steering changes what a language model generates by editing its hidden states at inference time. Its most common form adds one vector, the difference of class means (DiM), to every hidden state. CHaRS (concept heterogeneity-aware representation steering) uses optimal transport instead: an entropic plan pairs the clusters of the two classes, and each hidden state moves along a mixture of the cluster displacements, weighted toward its nearest clusters. We study this family of clustered optimal-transport maps for toxicity mitigation in Gemma-2-2B and Granite-3.1-2B, and ask what the plan adds to DiM and whether that survives INT8 and NF4 quantization.
We prove an identity: whatever the plan, the displacements averaged with the cluster sizes as weights equal DiM, so a clustered map can differ from DiM only for tokens whose routing weights depart from the cluster sizes. In the CHaRS protocol they stay close, and CHaRS is statistically equivalent to Mean-AcT, which adds DiM at every layer, in all eight pre-specified equivalence tests. A variant fitted on individual tokens, which routes each token mainly to its nearest clusters, leaves 37-39% less toxicity than DiM on Gemma and 51-61% less on Granite at steering strength 3 (toxic-bert), where DiM already removes 76-85% of it. Two other toxicity classifiers confirm the gain on Granite, but on Gemma only one does. At equal strength the variant has somewhat higher perplexity, but at matched toxicity it is slightly more fluent than DiM. Yet a nearly constant map from the same clusters also leaves about 30% less toxicity, so the role of treating tokens differently remains open.
Under INT8 and NF4 the variant still leaves less toxicity than DiM, and transferring it from full precision to the NF4 model instead of refitting it adds no significant toxicity after correction for multiple tests.
| Comments: | 34 pages, 12 figures, 14 tables |
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Computation and Language (cs.CL) |
| Cite as: | arXiv:2610.40055 [cs.LG] |
| (or arXiv:2610.40055v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2610.40055 arXiv-issued DOI via DataCite |
Submission history
From: Illia Makarov [view email]
[v1]
Thu, 29 Oct 2026 13:46:39 UTC (590 KB)
来源:arXiv cs.AI · arxiv.org