Pool Me Wisely:关于基于Transformer的模型中池化作用的研究
Pool Me Wisely: On the Effect of Pooling in Transformer-Based Models
AI总结:
该研究针对Transformer模型中池化作用研究不足的问题,提出理论框架刻画常用池化方法的表达性界,并跨三大模态实证验证,为池化机制的选择设计提供指导,完善了Transformer架构设计的理论基础。
摘要:
Transformer模型已成为序列建模的主流骨干网络,通过自注意力机制生成上下文化的词元表示。这些表示通常通过池化操作聚合为固定大小的向量,用于下游任务。现有文献大多聚焦于注意力机制,尽管池化对模型行为有关键影响,但其作用仍未得到充分探究。本文提出一个理论框架,通过推导其表示能力及区分相似输入能力的闭式界,严格刻画了配备常用池化方法的基于Transformer的模型的表达性。我们的分析扩展到不同的注意力公式变体,证明这些界在多种架构变体中均成立。我们在需要全局和局部上下文理解的任务中实证评估了池化策略,涵盖三大模态:计算机视觉、自然语言处理和时间序列分析。结果揭示了池化选择如何影响准确率、敏感度和优化行为的一致趋势。我们的发现统一了理论与实证视角,为选择或设计适配特定任务的池化机制提供了实用指导。本研究将池化定位为Transformer模型中的关键架构组件,为超越注意力本身的更具原则性的模型设计奠定了基础。
英文摘要:
Transformer models have become the dominant backbone for sequence modeling, leveraging self-attention to produce contextualized token representations. These are typically aggregated into fixed-size vectors via pooling operations for downstream tasks. While much of the literature has focused on attention mechanisms, the role of pooling remains underexplored despite its critical impact on model behavior. In this paper, we introduce a theoretical framework that rigorously characterizes the expressivity of Transformer-based models equipped with widely used pooling methods by deriving closed-form bounds on their representational capacity and the ability to distinguish similar inputs. Our analysis extends to different variations of attention formulations, demonstrating that these bounds hold across diverse architectural variants. We empirically evaluate pooling strategies across tasks requiring both global and local contextual understanding, spanning three major modalities: computer vision, natural language processing, and time-series analysis. Results reveal consistent trends in how pooling choices affect accuracy, sensitivity, and optimization behavior. Our findings unify theoretical and empirical perspectives, providing practical guidance for selecting or designing pooling mechanisms suited to specific tasks. This work positions pooling as a key architectural component in Transformer models and lays the foundation for more principled model design beyond attention alone.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。