Back to AI News
arxiv

One Vector or Many? Clustered Optimal-Transport Steering under Quantization

This paper analyzes clustered optimal-transport activation steering for toxicity mitigation in Gemma-2-2B and Granite-3.1-2B. It proves that cluster displacements averaged by cluster size equal the standard difference-of-class-means vector, so clustered maps can differ only when token routing weights depart from cluster sizes. CHaRS is statistically equivalent to Mean-AcT across eight pre-specified equivalence tests, while a token-fitted variant leaves 37-39% less toxicity than DiM on Gemma and 51-61% less on Granite at steering strength 3. The variant's advantage persists under INT8 and NF4 quantization, and transferring it from full precision to NF4 without refitting showed no significant toxicity increase after multiple-test correction.

AI Brief

It offers a rigorous analysis and empirical evidence on when clustered activation-steering maps outperform simple mean-difference steering and whether those gains survive quantized inference.

arXiv:2610.40055v1 Announce Type: cross 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.
Be the first to rate this article.

Comments & Questions (0)

Captcha
Please be respectful — let's keep the conversation friendly.

No comments yet

Be the first to comment!