arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.05727cs.CLcs.NAmath.NA
收藏

结构化多维表示学习用于大语言模型

Structured Multidimensional Representation Learning for Large Language Models

Université du Littoral Cote d’Opale(勒阿弗尔海岸大学);LMPA(LMPA研究所);FGSES, University Mohammed VI Polytechnic(穆莱·伊沙克六世理工学院FGSES研究所);LISIC(LISIC研究所)

Alaa El Ichi, Khalide Jbilou, Mohamed El Guide, Franck Dufrenois

AI总结:

本文提出一种基于谱分解的张量变换器,通过结构化多维表示学习压缩大语言模型参数,同时保持模型性能。

摘要:

Transformer架构在广泛模式识别和自然语言处理任务中实现了最先进的性能,但其扩展伴随着嵌入维度中参数增长和冗余的显著增加。在本工作中,我们基于L乘积引入了嵌入空间的结构化谱分解,用于三阶张量。通过将标记表示重塑为谱张量切片,并在变换域中执行注意力和前馈操作,我们获得了一种分解编码器为p个独立谱子变换器的张量变换器架构,同时保持标准Transformer语义。我们证明所提出的L-Transformer在谱上等价于在降维嵌入上操作的p个并行Transformer,这在固定总嵌入尺寸下导致约1/p的参数减少(包括低阶项如偏置和归一化参数)。当使用实值离散余弦变换(DCT)实例化时,该方法保持完全可微且与现有训练流程兼容。除了压缩外,谱分解引入了嵌入频率的归纳偏差,使得切片依赖的频率缩放能够提高泛化能力。在IMDB和AG~News上的实验表明,所提出的模型可以显著减少编码器参数(对于p=4,最多减少75%),同时保持竞争性的准确性。在IMDB上,张量化的编码器在压缩下匹配或优于标准基线,在AG~News中,适度宽度下观察到小的准确性下降以换取4倍的编码器减少;在BERT-base宽度(d=768)下,性能恢复到平衡状态。

英文摘要:

Transformer architectures achieve state-of-the-art performance across a wide range of pattern recognition and natural language processing tasks, but their scaling is accompanied by substantial parameter growth and redundancy in the embedding dimension. In this work, we introduce a structured spectral factorization of the embedding space based on the L-product for third-order tensors. By reshaping token representations into spectral tensor slices and performing attention and feed-forward operations in the transform domain, we obtain a Tensor Transformer architecture that decomposes the encoder into p independent spectral sub-transformers while preserving standard Transformer semantics. We prove that the proposed L-Transformer is spectrally equivalent to p parallel Transformers operating on reduceddimensional embeddings, which yields approximately 1/p reduction (up to lower-order terms such as biases and normalization parameters) in encoder parameters under fixed total embedding size. When instantiated with a real-valued Discrete Cosine Transform (DCT), the method remains fully differentiable and compatible with existing training pipelines. Beyond compression, the spectral decomposition introduces an inductive bias over embedding frequencies, enabling slice-dependent frequency scaling that improves generalization. Experiments on IMDB and AG~News show that the proposed model can substantially reduce encoder parameters (up to 75\% for p=4) while maintaining competitive accuracy. On IMDB, the tensorized encoder matches or improves upon the standard baseline under compression, whereas on AG~News at moderate width we observe a small accuracy decrease in exchange for a 4 times encoder reduction; at BERT-base width (d=768), performance returns to parity.

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

↑