Computer ScienceMedicine

Caleb Cranney, Jesse G. Meyer

2025.2.13Transactions on Machine Learning Research

DOI: 10.48550/arxiv.2502.09503

tlooto Summary

AttentionSmithy is introduced, a modular software package that lowers the barrier to transformer innovation by decomposing key components—attention modules, feed-forward networks, normalization layers, and positional encodings—into reusable building blocks so users can rapidly prototype, adapt, and evaluate transformer variants without extensive coding overhead.

Abstract

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.

Citation format

CRANNEY, Caleb; MEYER, Jesse G. Attentionsmithy: A modular framework for rapid transformer development and customization [preprint]. arXiv, 2025. arXiv:2502.09503.