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

混合双路径线性变换用于高效的Transformer架构

Hybrid Dual-Path Linear Transformations for Efficient Transformer Architectures

Independent Researcher(独立研究者)

Vladimer Khasia

AI总结:

HDPL通过混合双路径线性变换提升Transformer架构效率与表示能力,减少参数量并优化上下文整合。

摘要:

标准的Transformer架构严重依赖密集的线性变换,将特征投影视为一个整体的、满秩操作。我们认为这种形式是低效的,并且缺乏区分局部特征保持和全局上下文整合所需结构归纳偏差的必要条件。为了解决这个问题,我们引入了混合双路径线性(HDPL)操作符,它将仿射变换分解为两个拓扑上不同的路径:一个稀疏块对角成分用于高秩局部处理,以及一个低秩变分自编码器(VAE)瓶颈用于全局上下文正则化。通过"外科手术"地将特定的投影(查询、键、值、门、上)替换为HDPL操作符,同时保留标准密集层用于聚合(输出、下),我们实现了效率和表示能力的优越平衡。在FineWeb-Edu数据集上的实验表明,HDPL架构在标准Llama风格基线之上表现更优,减少验证损失的同时同时将参数数量减少了6.8%。除了即时的性能提升,我们讨论了在Transformer主干中显式材料化概率潜在空间的重要性,为推理时间或超网络诱导控制、持续适应、可解释性以及跨模型或跨模态同步提供了新的路径。代码可在https://github.com/VladimerKhasia/HDPL获取。

英文摘要:

Standard Transformer architectures rely heavily on dense linear transformations, treating feature projection as a monolithic, full-rank operation. We argue that this formulation is inefficient and lacks the structural inductive bias necessary for distinguishing between local feature preservation and global context integration. To address this, we introduce the Hybrid Dual-Path Linear (HDPL) operator, which decomposes the affine transformation into two topologically distinct pathways: a sparse block-diagonal component for high-rank local processing, and a low-rank Variational Autoencoder (VAE) bottleneck for global context regularization. By "surgically" replacing specific projections (Query, Key, Value, Gate, Up) with HDPL operators while retaining standard dense layers for aggregation (Output, Down), we achieve a superior balance of efficiency and representational power. Experiments on the FineWeb-Edu dataset demonstrate that the HDPL architecture outperforms a standard Llama-style baseline, reducing validation loss while simultaneously reducing parameter count by 6.8%. Beyond immediate performance gains, we discuss how the explicit materialization of a probabilistic latent space within the Transformer backbone serves as a vital architectural affordance, offering new pathways for inference-time or hypernetwork induced control, continual adaptation, interpretability, and cross-model or cross-modal synchronization. The code is available at https://github.com/VladimerKhasia/HDPL

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

↑