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

FFNet:基于MetaMixer的高效卷积混合器设计

FFNet: MetaMixer-based Efficient Convolutional Mixer Design

University of Seoul(首尔大学)

Seokju Yun, Dongheon Lee, Youngmin Ro

AI总结:

研究探讨FFN在网络设计中的作用,提出将自注意力转换为含卷积的FFNified attention,构建FFNet,该网络由简单算子组成却性能优异效率高,验证假设并提出通用混合器架构MetaMixer。

摘要:

由自注意力和前馈网络组成的Transformer彻底改变了各种视觉任务的网络设计格局。自注意力作为性能关键因素被广泛研究,而FFN却很少受到关注。FFN是一种通用算子,几乎集成到所有AI模型中有效利用丰富表征。近期研究表明FFN类似键值记忆,可视为记忆网络。基于此,本文提出将自注意力转换为仅含卷积的更类似FFN的高效令牌混合器,即FFNification,用大核卷积取代查询-键-值交互并采用GELU激活函数。在此基础上构建了FFNet,它虽仅由简单算子组成,但在各领域性能优于复杂专业方法且效率显著提升,验证了假设,进而提出MetaMixer这一通用混合器架构。

英文摘要:

Transformer, composed of self-attention and Feed-Forward Network, has revolutionized the landscape of network design across various vision tasks. While self-attention is extensively explored as a key factor in performance, FFN has received little attention. FFN is a versatile operator seamlessly integrated into nearly all AI models to effectively harness rich representations. Recent works also show that FFN functions like key-value memories. Thus, akin to the query-key-value mechanism within self-attention, FFN can be viewed as a memory network, where the input serves as query and the two projection weights operate as keys and values, respectively. Based on these observations, we hypothesize that the importance lies in query-key-value framework itself for competitive performance. To verify this, we propose converting self-attention into a more FFN-like efficient token mixer with only convolutions while retaining query-key-value framework, namely FFNification. Specifically, FFNification replaces query-key-value interactions with large kernel convolutions and adopts GELU activation function instead of softmax. The derived token mixer, FFNified attention, serves as key-value memories for detecting locally distributed spatial patterns, and operates in the opposite dimension to the ConvNeXt block within each corresponding sub-operation of the query-key-value framework. Building upon the above two modules, we present a family of Fast-Forward Networks (FFNet). Despite being composed of only simple operators, FFNet outperforms sophisticated and highly specialized methods in each domain, with notable efficiency gains. These results validate our hypothesis, leading us to propose MetaMixer, a general mixer architecture that does not specify sub-operations within the query-key-value framework.

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

↑