arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.21703cs.CLcs.AIcs.LG
收藏

评估嵌入泛化:LLM、LoRA和SLERP如何塑造表示几何

Evaluating Embedding Generalization: How LLMs, LoRA, and SLERP Shape Representational Geometry

Department of Computer Science University of Fort Hare(计算机科学系大学弗利特哈雷)

Siyaxolisa Kabane

AI总结:

该研究探讨了LLM、LoRA和SLERP在嵌入泛化中的作用,发现SLERP融合能有效恢复基础模型结构并提升聚类性能。

摘要:

我们研究了当嵌入主干是大型语言模型(LLM)还是非LLM编码器时,密集文本嵌入的泛化特性,并研究了球面线性插值(SLERP)模型融合在缓解任务特定适应(例如LoRA)引入的过度专业化程度方面的程度。为了使比较具体且领域无关,我们设计了一套受控实验,在其中模型嵌入短数值序列,并根据well-defined的数论属性评估其对这些序列进行聚类和分类的能力。我们的实验协议比较了四种模型家族:(1)非LLM编码器,从头训练或微调嵌入;(2)基于LLM的编码器,使用参数高效方法(LoRA)进行适应;(3)基于LLM的编码器,LoRA适应后通过模型融合合并到基础权重;(4)相同LoRA适应的LLM通过SLERP在检查点或阶段之间进行融合。我们使用聚类指数(Silhouette和Davies Bouldin)评估表示质量。我们还分析kmeans标签的使用,以查看嵌入是否编码了除我们测试之外的其他信息。经验上,我们发现基于LLM的主干生成的嵌入能够更好地捕捉更高阶、组合性的数字模式,但容易受到适配器主导的影响,从而降低平衡泛化;SLERP融合始终恢复基础模型结构,同时保留大部分任务收益,从而在聚类分离性和鲁棒性方面相比模型融合或未融合的模型具有更优的权衡。

英文摘要:

We investigate the generalization properties of dense text embeddings when the embedding backbone is a large language model (LLM) versus when it is a non-LLM encoder, and we study the extent to which spherical linear interpolation (SLERP) model-merging mitigates over-specialization introduced by task-specific adaptation (e.g., LoRA). To make the comparison concrete and domain-agnostic, we design a controlled suite of experiments in which models embed short numerical sequences and are evaluated on their ability to cluster and classify those sequences according to well-defined number-theoretic properties. Our experimental protocol compares four families of models: (1) non-LLM encoders trained from scratch or fine-tuned for embeddings, (2) LLM-based encoders adapted with parameter-efficient methods (LoRA), (3) LLM-based encoders with LoRA followed by model souping merging into the base weights, and (4) the same LoRA-adapted LLMs merged using SLERP across checkpoints or stages. We evaluate representational quality with clustering indices (Silhouette and Davies Bouldin). We additionally analyze the use of kmeans labels to see if the embeddings encode any other information besides the one we are testing for. Empirically, we find that LLM-based backbones produce embeddings that better capture higher-order, compositional numeric patterns, but are prone to adapter dominance that degrades balanced generalization; SLERP merging consistently recovers base-model structure while retaining most task gains, yielding superior tradeoffs in clustering separability, and robustness compared to model souping or models that were not merged.

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

↑