DEMix层:模块化语言建模的领域分解
DEMix Layers: Disentangling Domains for Modular Language Modeling
摘要:
我们引入了一个新的领域专家混合(DEMix)层,使条件的语言模型(LM)的输入文本的域。DEMix层是专家前馈网络的集合,每个专家前馈网络专门针对一个领域,这使得LM模块化:专家可以在初始训练后混合,添加或删除。使用自回归Transformer LM(最多1.3B参数)进行的大量实验表明,DEMix层减少了测试时的困惑,提高了训练效率,并以很少的开销实现了快速自适应。我们表明,在推理过程中混合专家,使用无参数加权集成,使模型能够更好地推广到异构或看不见的领域。我们还表明,专家可以添加到迭代纳入新的领域,而不会忘记旧的,专家可以被删除,以限制访问不需要的域,而无需额外的培训。总的来说,这些结果证明了在语言建模过程中显式调节文本域的好处。
英文摘要:
We introduce a new domain expert mixture (DEMix) layer that enables conditioning a language model (LM) on the domain of the input text. A DEMix layer is a collection of expert feedforward networks, each specialized to a domain, that makes the LM modular: experts can be mixed, added or removed after initial training. Extensive experiments with autoregressive transformer LMs (up to 1.3B parameters) show that DEMix layers reduce test-time perplexity, increase training efficiency, and enable rapid adaptation with little overhead. We show that mixing experts during inference, using a parameter-free weighted ensemble, allows the model to better generalize to heterogeneous or unseen domains. We also show that experts can be added to iteratively incorporate new domains without forgetting older ones, and that experts can be removed to restrict access to unwanted domains, without additional training. Overall, these results demonstrate benefits of explicitly conditioning on textual domains during language modeling.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。