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

重新思考MLP的形状惯例

Rethinking the shape convention of an MLP

MediaTek Research(联发科研究)

Meng-Hsi Chen, Yu-Ang Lee, Feng-Ting Liao, Da-shan Shiu

AI总结:

本研究挑战MLP传统窄-宽-窄设计,提出宽-窄-宽的Hourglass MLP块,采用固定随机初始投影,在图像生成任务上实现更优性能-参数帕累托前沿,为残差网络架构设计提供新思路。

摘要:

多层感知机(Multi-layer perceptrons, MLPs)传统上遵循窄-宽-窄的设计,其中跳跃连接在输入/输出维度上运作,而处理过程在扩展的隐藏空间中进行。我们对这一惯例提出挑战,提出了宽-窄-宽(Hourglass,沙漏型)MLP块,其中跳跃连接在扩展维度上运作,而残差计算则流经狭窄的瓶颈。这种反转利用更高维度的空间进行增量细化,同时通过参数匹配的设计保持计算效率。实现Hourglass MLP需要一个初始投影,将输入信号提升到扩展维度。我们提出,该投影在整个训练过程中可以保持随机初始化的固定状态,从而实现高效的训练和推理实现。我们在流行图像数据集的生成任务上评估了这两种架构,通过系统性的架构搜索刻画了性能-参数的帕累托前沿。结果表明,与传统设计相比,Hourglass架构始终能实现更优的帕累托前沿。随着参数预算增加,最优Hourglass配置倾向于具有更宽跳跃连接和更窄瓶颈的更深网络——这是一种与传统MLP不同的扩展模式。我们的发现表明,需要重新考虑现代架构中跳跃连接的位置,其潜在应用可扩展至Transformers及其他残差网络。

英文摘要:

Multi-layer perceptrons (MLPs) conventionally follow a narrow-wide-narrow design where skip connections operate at the input/output dimensions while processing occurs in expanded hidden spaces. We challenge this convention by proposing wide-narrow-wide (Hourglass) MLP blocks where skip connections operate at expanded dimensions while residual computation flows through narrow bottlenecks. This inversion leverages higher-dimensional spaces for incremental refinement while maintaining computational efficiency through parameter-matched designs. Implementing Hourglass MLPs requires an initial projection to lift input signals to expanded dimensions. We propose that this projection can remain fixed at random initialization throughout training, enabling efficient training and inference implementations. We evaluate both architectures on generative tasks over popular image datasets, characterizing performance-parameter Pareto frontiers through systematic architectural search. Results show that Hourglass architectures consistently achieve superior Pareto frontiers compared to conventional designs. As parameter budgets increase, optimal Hourglass configurations favor deeper networks with wider skip connections and narrower bottlenecks-a scaling pattern distinct from conventional MLPs. Our findings suggest reconsidering skip connection placement in modern architectures, with potential applications extending to Transformers and other residual networks.

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

↑