arXiv:2509.16058cs.AIcs.LG2025-09

用大脑管理注意力的原理,让Transformer更省力高效地学习。

Attention Schema-based Attention Control (ASAC): A Cognitive-Inspired Approach for Attention Management in Transformers

  • 用自编码器构建注意力的抽象模型,动态控制注意力分配。
  • 在视觉和NLP任务中提升分类准确率,加速学习过程。
  • 适合需要高效学习、抗干扰或少样本训练的场景。

注意力机制在人工智能中已成核心,显著提升模型性能与可扩展性,其灵感源自人类认知。认知科学中的注意力图式理论(AST)指出,人类通过构建自身注意力的模型来管理认知资源。受此启发,本文提出ASAC(基于注意力图式的注意力控制),将注意力图式概念融入神经网络。初始实验将ASAC模块嵌入Transformer架构,采用向量量化变分自编码器(VQVAE)作为注意力抽象与控制器,实现精准注意力管理。该方法通过显式建模注意力分配,旨在提升系统效率。实验证明,ASAC在视觉与自然语言处理领域均有效,能提高分类准确率并加快学习速度。在多个视觉变压器数据集上的测试显示,注意力控制器不仅提升准确率,还加速收敛。此外,模型在噪声数据与分布外数据上表现稳健,多任务设置中性能优越。快速实验表明,该模块增强了对对抗攻击的鲁棒性,优化注意力以提升学习效率,支持有效迁移学习与少样本学习。这些成果建立了认知科学与机器学习的联系,揭示了注意力机制在AI系统中高效利用的新路径。

原文摘要 · Abstract (English)

Attention mechanisms have become integral in AI, significantly enhancing model performance and scalability by drawing inspiration from human cognition. Concurrently, the Attention Schema Theory (AST) in cognitive science posits that individuals manage their attention by creating a model of the attention itself, effectively allocating cognitive resources. Inspired by AST, we introduce ASAC (Attention Schema-based Attention Control), which integrates the attention schema concept into artificial neural networks. Our initial experiments focused on embedding the ASAC module within transformer architectures. This module employs a Vector-Quantized Variational AutoEncoder (VQVAE) as both an attention abstractor and controller, facilitating precise attention management. By explicitly modeling attention allocation, our approach aims to enhance system efficiency. We demonstrate ASAC's effectiveness in both the vision and NLP domains, highlighting its ability to improve classification accuracy and expedite the learning process. Our experiments with vision transformers across various datasets illustrate that the attention controller not only boosts classification accuracy but also accelerates learning. Furthermore, we have demonstrated the model's robustness and generalization capabilities across noisy and out-of-distribution datasets. In addition, we have showcased improved performance in multi-task settings. Quick experiments reveal that the attention schema-based module enhances resilience to adversarial attacks, optimizes attention to improve learning efficiency, and facilitates effective transfer learning and learning from fewer examples. These promising results establish a connection between cognitive science and machine learning, shedding light on the efficient utilization of attention mechanisms in AI systems.

注意力机制认知模型Transformer高效学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。