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

微调前呈线性的知识在微调后可泛化

Knowledge That Is Linear Before Fine-Tuning Generalizes After It

Center for Information and Language Processing, LMU Munich(慕尼黑大学信息与语言处理中心);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心)

Faridoun Mehri, Hinrich Schütze

AI总结:

该研究区分语言模型的活跃与惰性事实,发现预训练表示中关系的线性可解读性可预测微调后的泛化,且该关联不受多因素影响,为理解模型泛化机制提供了新视角。

摘要:

语言模型能回忆起的所有事实对后续学习的支持作用并不相同。我们将能支持超出自身回忆范围的泛化的事实称为活跃事实,而那些虽能被回忆但无法在给定任务中支持此类泛化的事实称为惰性事实。我们通过从现有关系构建新关系来研究这一区分:以“地点-大洲”关系(巴黎→欧洲)为例,为每个答案分配任意新标签(欧洲→螃蟹,亚洲→斑马),新关系则变为巴黎→螃蟹。我们在部分主体上对模型进行新关系的微调,不告知其原始关系或重新标记规则,测试模型是否会为原始关系中共享答案的保留主体分配对应标签:学会巴黎→螃蟹后,模型是否会回答慕尼黑→螃蟹?在11个语言模型和70个关系上,预训练表示中原始关系的线性可解读性强烈预测了这种泛化。在每个模型内,两者在关系间的皮尔逊相关系数r为0.87至0.92。当分别或共同控制微调主体与答案的数量、模型在原始关系上的准确率、主体在预训练文本中的出现频率时,这种关联依然存在;且对标签分配重新随机化、微调种子,或将动物标签替换为其他13个语义类别的标签时,结果也保持稳健。当我们将微调后模型的错误标签映射回其被分配的原始答案时,慕尼黑→斑马会变为慕尼黑→亚洲,以此方式恢复的答案更常出现在线性探针的主体顶部答案中,而非预训练模型自身的答案中。新关系能否泛化,较少取决于其事实能否被回忆,而更多取决于其共享结构能否被线性读出的难易程度。

英文摘要:

Not all facts a language model can recall support further learning equally well. We distinguish active facts, which support generalization beyond their own recall, from inert facts, which can be recalled but do not support such generalization in a given task. We study this distinction by constructing new relations from existing ones. Take the relation that maps a place to its continent (Paris -> Europe) and assign each of its answers an arbitrary new label (Europe -> crab, Asia -> zebra). The new relation then maps Paris -> crab. We fine-tune the model on the new relation for a subset of subjects, without telling it the original relation or the relabeling rule, and test whether it assigns the corresponding labels to held-out subjects that share an answer in the original relation. Having learned Paris -> crab, does it answer Munich -> crab? Across eleven language models and 70 relations, how linearly readable the original relation is in pretrained representations strongly predicts this generalization. Within each model, the two correlate across relations at Pearson r = 0.87 to 0.92. This association persists when controlling, separately and jointly, for the number of fine-tuning subjects and answers, the model's accuracy on the original relation, and how often the subjects occur in pretraining text. It is also robust to re-randomizing the label assignment and fine-tuning seed, and to replacing the animal labels with labels from thirteen other semantic categories. When we map a fine-tuned model's wrong label back to the original answer it was assigned to, Munich -> zebra becomes Munich -> Asia. Answers recovered this way are more often among the linear probe's top answers for the subject than among the pretrained model's own. Whether a new relation generalizes depends less on whether its facts can be recalled than on how readily their shared structure can be read out linearly.

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

↑