Butterfly factorization for vision transformers on multi-IPU systems

Recent advances in machine learning have led to increasingly large and complex models, placing significant demands on computation and memory. Techniques such as Butterfly factorization have emerged to reduce model parameters and memory footprints while preserving accuracy. Specialized hardware accelerators, such as Graphcore’s Intelligence Processing Units (IPUs), are designed to address these challenges through massive parallelism and efficient on-chip memory utilization. In this paper, we extend our analysis of Butterfly structures for efficient utilization on single and multiple IPUs, comparing their performance with GPUs. These structures drastically reduce the number of parameters and memory footprint while preserving model accuracy. Experimental results on the Graphcore GC200 IPU chip, compared with an NVIDIA A30 GPU, demonstrate a 98.5% compression ratio, with speedups of 1.6 × and 1.3 × for Butterfly and Pixelated Butterfly structures, respectively. Extending our evaluation to Vision Transformer (ViT) models, we compare Multi-GPU and Multi-IPU systems on the M2000 machine: Multi-GPU reaches a maximum accuracy of 84.51% with a training time of 401.44 min, whereas Multi-IPU attains a higher maximum accuracy of 88.92% with a training time of 694.03 min. These results demonstrate that Butterfly factorization enables substantial compression of ViT layers (up to 97.17%) while improving model accuracy. The findings highlight the promise of IPU machines as a suitable platform for large-scale machine learning model training, especially when coupled with sparsification methods like Butterfly factorization, thanks to their efficient support for model parallelism. • Evaluation of Butterfly Factorization on ViT: Assessing the effectiveness of Butterfly factorization in sparsifying Vision Transformer layers without compromising model accuracy. • Performance Benchmarking on IPUs: Comparing the training performance of ViT models on multi-IPU setups versus traditional dense layers and equivalent GPU configurations. • Analysis of Implementation Challenges: Identifying current inefficiencies in the implementation of Butterfly layers within the IPU software stack and proposing potential optimizations.

Authors

Institutions

Publication Details

Journal
Parallel Computing
Published
2025-11-27
DOI
https://doi.org/10.1016/j.parco.2025.103165
Primary Topic
Advanced Memory and Neural Computing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Butterfly factorization for vision transformers on multi-IPU systems

Holger Fröning, S.‐Kazem Shekofteh, Christian Alles, Daniel Bogacz
Parallel Computing
Advanced Memory and Neural Computing
article

Butterfly factorization for vision transformers on multi-IPU systems

Holger Fröning, S.‐Kazem Shekofteh, Christian Alles, Daniel Bogacz
article en

Abstract

Recent advances in machine learning have led to increasingly large and complex models, placing significant demands on computation and memory. Techniques such as Butterfly factorization have emerged to reduce model parameters and memory footprints while preserving accuracy. Specialized hardware accelerators, such as Graphcore’s Intelligence Processing Units (IPUs), are designed to address these challenges through massive parallelism and efficient on-chip memory utilization. In this paper, we extend our analysis of Butterfly structures for efficient utilization on single and multiple IPUs, comparing their performance with GPUs. These structures drastically reduce the number of parameters and memory footprint while preserving model accuracy. Experimental results on the Graphcore GC200 IPU chip, compared with an NVIDIA A30 GPU, demonstrate a 98.5% compression ratio, with speedups of 1.6 × and 1.3 × for Butterfly and Pixelated Butterfly structures, respectively. Extending our evaluation to Vision Transformer (ViT) models, we compare Multi-GPU and Multi-IPU systems on the M2000 machine: Multi-GPU reaches a maximum accuracy of 84.51% with a training time of 401.44 min, whereas Multi-IPU attains a higher maximum accuracy of 88.92% with a training time of 694.03 min. These results demonstrate that Butterfly factorization enables substantial compression of ViT layers (up to 97.17%) while improving model accuracy. The findings highlight the promise of IPU machines as a suitable platform for large-scale machine learning model training, especially when coupled with sparsification methods like Butterfly factorization, thanks to their efficient support for model parallelism. • Evaluation of Butterfly Factorization on ViT: Assessing the effectiveness of Butterfly factorization in sparsifying Vision Transformer layers without compromising model accuracy. • Performance Benchmarking on IPUs: Comparing the training performance of ViT models on multi-IPU setups versus traditional dense layers and equivalent GPU configurations. • Analysis of Implementation Challenges: Identifying current inefficiencies in the implementation of Butterfly layers within the IPU software stack and proposing potential optimizations.

Parallel ComputingVol. 127
Heidelberg University (DE), Artificial Intelligence in Medicine (Canada) (CA)
Openalex Percentile: Top 63%
Advanced Memory and Neural Computing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.