沉默投票:通过聚合语义邻域提高零样本LLM可靠性
The Silent Vote: Improving Zero-Shot LLM Reliability by Aggregating Semantic Neighborhoods
AI总结:
本文提出Semantic Softmax方法,通过聚合目标标签的语义邻域得分,解决零样本分类中的Renormalization Bias问题,提升模型校准性和准确性。
摘要:
大型语言模型日益被用作零样本分类器进行复杂推理任务。然而,标准约束解码受到我们定义的Renormalization Bias现象影响。当模型被限制在一小组目标标签时,标准softmax操作会丢弃原始分布中分配给语义同义词的概率质量。这种信息损失,我们称之为沉默投票,导致人工过度自信和校准不佳。我们提出Semantic Softmax,是一种在推理时恢复此丢失信息的层,通过聚合每个目标标签周围语义邻域的得分。我们在Qwen-3和Phi-4-mini模型上使用GoEmotions和Civil Comments数据集评估了这种方法。我们的结果表明,在所有评估指标上都有一致的改进:Semantic Softmax显著降低了预期校准误差(ECE)和布里尔分数,同时在AUROC和宏F1方面增强了判别性能。通过考虑语言细微差别,我们的方法为零样本分类提供了更校准和准确的替代方案。
英文摘要:
Large Language Models are increasingly used as zero-shot classifiers in complex reasoning tasks. However, standard constrained decoding suffers from a phenomenon we define as Renormalization Bias. When a model is restricted to a small set of target labels, the standard softmax operation discards the probability mass assigned to semantic synonyms in the original distribution. This loss of information, which we call the Silent Vote, results in artificial overconfidence and poor calibration. We propose Semantic Softmax, an inference-time layer that recovers this lost information by aggregating the scores of the semantic neighborhood surrounding each target label. We evaluate this approach on Qwen-3 and Phi-4-mini models using GoEmotions and Civil Comments datasets. Our results demonstrate consistent improvements across all evaluation metrics: Semantic Softmax substantially reduces Expected Calibration Error (ECE) and Brier Score, while simultaneously enhancing discriminative performance in terms of AUROC and Macro-F1. By accounting for linguistic nuances, our method provides a more calibrated and accurate alternative for zero-shot classification.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。