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

AttentionSmithy:用于快速 Transformer 开发与定制的模块化框架

AttentionSmithy: A Modular Framework for Rapid Transformer Development and Customization

Caleb Cranney, Jesse G. Meyer

AI总结:

本文提出模块化框架 AttentionSmithy,将 Transformer 核心组件封装为可复用构建块,并支持四种位置编码与神经架构搜索,从而降低定制门槛并验证于翻译、基因建模任务。

摘要:

Transformer 架构已经改变了 AI 应用,但对于缺乏底层实现专业知识的领域专家而言,对其进行定制仍然很复杂。我们介绍 AttentionSmithy,这是一个模块化软件包,通过将关键组件分解为可复用的构建块来简化 Transformer 创新:注意力模块、前馈网络、归一化层和位置编码。用户无需大量编码即可快速原型化并评估 Transformer 变体。我们的框架支持四种位置编码策略,并与神经架构搜索集成以实现自动化设计。我们通过在资源约束下复现原始 Transformer,并结合多种位置编码优化翻译性能,验证了 AttentionSmithy。此外,我们还展示了其在基因特异性建模中的适应性,在细胞类型分类中取得超过 95% 的准确率。这些案例研究凸显了 AttentionSmithy 通过消除框架实现障碍来加速跨领域研究的潜力。

英文摘要:

Transformer architectures have transformed AI applications but remain complex to customize for domain experts lacking low-level implementation expertise. We introduce AttentionSmithy, a modular software package that simplifies transformer innovation by breaking down key components into reusable building blocks: attention modules, feed-forward networks, normalization layers, and positional encodings. Users can rapidly prototype and evaluate transformer variants without extensive coding. Our framework supports four positional encoding strategies and integrates with neural architecture search for automated design. We validate AttentionSmithy by replicating the original transformer under resource constraints and optimizing translation performance by combining positional encodings. Additionally, we demonstrate its adaptability in gene-specific modeling, achieving over 95% accuracy in cell type classification. These case studies highlight AttentionSmithy's potential to accelerate research across diverse fields by removing framework implementation barriers.

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

↑