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

使用张量积的潜在专家混合体

Mixture of Latent Experts Using Tensor Products

University of Copenhagen(哥本哈根大学);University of Montreal(蒙特利尔大学);Halmstad University(哈尔姆斯塔德大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳))

Zhan Su, Fengran Mo, Prayag Tiwari, Benyou Wang, Jian-Yun Nie, Jakob Grue Simonsen

AI总结:

本文提出模块化语言模型 TensorPoly,通过张量积构造 TLoRA 模块,并设计两种粒度的路由函数,在 T0-benchmark 上验证其可缓解负迁移并提升参数效率。

摘要:

在多任务学习中,传统方法涉及同时在多个任务上训练一个模型。然而,来自不同任务的训练信号可能相互干扰,从而可能导致“负迁移”。为缓解这一问题,我们研究模块化语言模型是否能够促进正迁移和系统性泛化。具体而言,我们提出了一种新颖的模块化语言模型(TensorPoly),它在参数效率与精细路由方法之间取得平衡。对于“模块”,我们通过使用张量积运算采用纠缠张量来重参数化低秩适配(LoRA),并将所得方法命名为 TLoRA。对于“路由函数”,我们根据粒度定制了两种创新的路由函数:TensorPoly-I 指向纠缠张量内的每个秩,而 TensorPoly-II 提供针对纠缠张量的每个阶的更细粒度路由方法。来自多任务 T0-benchmark 的实验结果表明:1)所有模块化 LM 都优于相应的稠密方法,突显了模块化语言模型在缓解多任务学习中的负推断并提供更优结果方面的潜力。2)TensorPoly-I 在适配中实现了更高的参数效率,并优于其他模块化 LM,这表明了我们的方法在多任务迁移学习中的潜力。

英文摘要:

In multi-task learning, the conventional approach involves training a model on multiple tasks simultaneously. However, the training signals from different tasks can interfere with one another, potentially leading to \textit{negative transfer}. To mitigate this, we investigate if modular language models can facilitate positive transfer and systematic generalization. Specifically, we propose a novel modular language model (\texttt{TensorPoly}), that balances parameter efficiency with nuanced routing methods. For \textit{modules}, we reparameterize Low-Rank Adaptation (\texttt{LoRA}) by employing an entangled tensor through the use of tensor product operations and name the resulting approach \texttt{TLoRA}. For \textit{routing function}, we tailor two innovative routing functions according to the granularity: \texttt{TensorPoly-I} which directs to each rank within the entangled tensor while \texttt{TensorPoly-II} offers a finer-grained routing approach targeting each order of the entangled tensor. The experimental results from the multi-task T0-benchmark demonstrate that: 1) all modular LMs surpass the corresponding dense approaches, highlighting the potential of modular language models to mitigate negative inference in multi-task learning and deliver superior outcomes. 2) \texttt{TensorPoly-I} achieves higher parameter efficiency in adaptation and outperforms other modular LMs, which shows the potential of our approach in multi-task transfer learning.

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

↑