[2602.20696] PromptCD: Test-Time Behavior Enhancement via Polarity-Prompt Contrastive Decoding
Summary
The paper presents PromptCD, a method for enhancing AI behavior at test time using polarity-prompt contrastive decoding, improving alignment with human values without additional training.
Why It Matters
As AI systems increasingly influence daily life, ensuring they align with human preferences is crucial. PromptCD offers a cost-effective and efficient way to enhance AI behavior post-training, addressing the limitations of existing alignment methods that require extensive resources.
Key Takeaways
- PromptCD enhances AI behavior at test time without retraining.
- It uses polarity prompts to contrast model responses for better alignment.
- Demonstrated improvements in helpfulness, honesty, and harmlessness for LLMs.
- Applicable to both LLMs and Vision-Language Models (VLMs).
- Offers a general and cost-efficient strategy for reliable behavior control.
Computer Science > Artificial Intelligence arXiv:2602.20696 (cs) [Submitted on 24 Feb 2026] Title:PromptCD: Test-Time Behavior Enhancement via Polarity-Prompt Contrastive Decoding Authors:Baolong Bi, Yuyao Ge, Shenghua Liu, Yuchen He, Siqian Tong, Lizhe Chen, Lingrui Mei, Zehao Li, Yiwei Wang, Yujun Cai, Ming-Hsuan Yang, Xueqi Cheng View a PDF of the paper titled PromptCD: Test-Time Behavior Enhancement via Polarity-Prompt Contrastive Decoding, by Baolong Bi and 11 other authors View PDF Abstract:Reliable AI systems require large language models (LLMs) to exhibit behaviors aligned with human preferences and values. However, most existing alignment approaches operate at training time and rely on additional high-quality data, incurring significant computational and annotation costs. While recent work has shown that contrastive decoding can leverage a model's internal distributions to improve specific capabilities, its applicability remains limited to narrow behavioral scopes and scenarios. In this work, we introduce Polarity-Prompt Contrastive Decoding (PromptCD), a test-time behavior control method that generalizes contrastive decoding to broader enhancement settings. PromptCD constructs paired positive and negative guiding prompts for a target behavior and contrasts model responses-specifically token-level probability distributions in LLMs and visual attention patterns in VLMs-to reinforce desirable outcomes. This formulation extends contrastive decoding to a wide range of...