arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.00543cs.CLcs.AI
收藏

ECR: 用于紧凑语言模型的流形引导语义线索

Embedding Consistency Regulation for Persistent Semantic Routing in Compact Language Models

YVIC Research Lab(YVIC研究实验室)

Chung-Wei Victor Yuan

AI总结:

ECR通过流形引导语义线索提升紧凑语言模型的结构稳定性与任务适应性

摘要:

紧凑模型经常丢失嵌入空间的结构。当容量受限或数据跨越多种语言时,这种现象尤为明显。这种坍缩使得下游任务难以基于由此产生的表示进行构建。现有的压缩方法专注于在表层对模型输出进行对齐,但未能保留底层流形结构。这种不匹配常常导致紧凑模型出现语义漂移,使任务行为和语言特性偏离参考模型。\n为了解决这些问题,我们提供了一个名为嵌入一致性调节(ECR)的新框架。该框架首先从教师嵌入(离线计算一次)中推导出一组语义锚点。然后,紧凑模型学习在这些锚点周围保持一致的几何结构,而不依赖于匹配logits或内部特征。ECR在推理时只添加一个微小的投影步骤,不改变解码架构或其运行时行为。\n在10万种多语言语料库上的实验中,ECR一致地稳定了训练并保留了跨任务和语言的语义结构。它还产生了一个更紧凑且任务对齐的表示空间,使低容量模型能够学习比传统基线更干净的流形。ECR无需教师输出,与蒸馏兼容但独立于蒸馏。综上,我们的结果表明,ECR有助于紧凑模型更好地遵循任务要求,并使其在严格的效率或隐私限制下更容易部署。

英文摘要:

Language models are increasingly deployed under tight memory and compute constraints, where semantic routes (e.g., language, tone, or intent) may be assigned before decoding. However, these routes may not remain reflected in generated responses. We study this phenomenon as \emph{persistent semantic routing}. We investigate this property using Embedding Consistency Regulation (ECR) as a minimal probe. ECR derives a short discrete prefix for each input using a frozen embedding model and applies the same prefix construction during both training and inference. In controlled prefix-assignment experiments, ECR achieves 99.93\% $\pm$ 0.12\% language routing accuracy, while random, shuffled, and dummy controls remain near chance (34--36\%). This gap is not reliably captured by likelihood: some controls achieve competitive NLL despite losing routing consistency. We introduce Response Routing Recoverability (RRR), an encoder-independent diagnostic that tests whether assigned routes remain observable after generation. Routing recoverability persists across multilingual settings, unsupervised partitions, reduced precision, and transfer tasks. These findings establish routing persistence as a distinct and measurable property of language models, complementary to task performance and likelihood.

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

↑