基于超网络的大语言模型知识注入的缩放定律 Scaling Laws for Hypernetwork-Based Knowledge Injection in Large Language Models 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-07-21
👁️ 预览文献
💡 AI 中文简介
本研究探讨能否用超网络在大语言模型训练阶段注入事实知识,并首次系统研究其缩放规律。作者构建了包含数千万条多跳问答、覆盖39个领域的大规模数据集MegaWikiQA,将超网络的注入能力与目标模型通用能力解耦,考察损失、推理准确率和分布外泛化如何随超网络深度、宽度和目标模型规模变化。结果显示,超网络注入在所有架构维度上呈现可预测的幂律缩放,且随规模增大能可靠地泛化到未见实体和关系,其分布外缩放指数比LoRA微调和全量微调更陡峭,表明超网络是一种有原则、可扩展的训练期知识注入方案。
领域自然语言处理 / 大语言模型知识注入与参数高效适应
适合谁读需要一定专业背景(了解大语言模型、LoRA微调与缩放定律的读者)
核心贡献1. 首次对超网络架构在知识注入场景下的缩放定律进行严格、受控的实证研究,解耦了超网络注入能力与目标模型通用能力;2. 构建了覆盖39个领域、数千万条多跳问答的大规模数据集MegaWikiQA,并证明超网络在分布外泛化上优于LoRA微调和全量微调。
关键数据数据集MegaWikiQA包含数千万条多跳问答样本,覆盖39个知识领域,基于Wikidata5M构建;超网络注入在深度、宽度、目标模型规模各维度均呈幂律缩放;在所有分布外评估中,超网络的缩放指数均比LoRA微调和全量微调更陡峭。
推荐理由如果你关心大模型如何可靠地记住并泛化新知识,这篇论文用大规模实验给出了超网络注入的第一份缩放定律,值得一读。
关键词["超网络", "知识注入", "缩放定律", "大语言模型", "分布外泛化", "参数高效微调"]

原文摘要

查看英文原文摘要

Injecting factual knowledge into large language models (LLMs) reliably and at scale remains an open challenge. Hypernetworks provide a promising solution to large-scale knowledge injection. Although hypernetworks are typically applied for test-time adaptation, we explore their use in train-time knowledge injection, where, given a large corpus of facts, we train a hypernetwork to generate a fixed LoRA adapter that, when inserted into the target model, enable the model to answer questions about those facts. In this work, we investigate whether hypernetworks can be used to perform train-time knowledge injection and how this ability varies with scale. The scaling behavior of hypernetworks remains largely unstudied. Our design decouples the hypernetwork's injection capacity from the target model's general capability, enabling, for the first time, a rigorous study of scaling laws for hypernetwork architectures. We characterize how loss, reasoning accuracy, and out-of-distribution (OOD) generalization vary with hypernetwork depth, width, and target network size. We construct a large-scale dataset, called MegaWikiQA, containing tens of millions of multi-hop question-answer examples across 39 domains constructed from examples in Wikidata5M. Our results reveal: (i) hypernetwork-based injection exhibits broadly predictive power law scaling along all architecture axes; and (ii) hypernetworks are capable of reliable OOD generalization at increasing scales, suggesting that hypernetwork provides a promising alternative to other train-time adaptation methods such as LoRA finetuning and full fine-tuning, exhibiting steeper scaling exponents in all OOD evaluations. Together, these results establish hypernetworks as a principled and scalable substrate for train-time adaptation, and provide the first empirically grounded scaling laws to guide hypernetworks for factual reasoning in large language models.