Saved in:
Bibliographic Details
Main Authors: Ferrari, Victor, Pereira, Marcio, Alvarenga, Lucas, Leite, Gustavo, Araujo, Guido
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2511.18222
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912726079504384
author Ferrari, Victor
Pereira, Marcio
Alvarenga, Lucas
Leite, Gustavo
Araujo, Guido
author_facet Ferrari, Victor
Pereira, Marcio
Alvarenga, Lucas
Leite, Gustavo
Araujo, Guido
contents This paper proposes SConvTransform, a Transform dialect extension that provides operations for optimizing 2D convolutions in MLIR. Its main operation, SConvOp, lowers Linalg convolutions into tiled and packed generic operations through a fully declarative transformation pipeline. The process is guided by a Convolution Slicing Analysis that determines tile sizes and data layout strategies based on input and filter shapes, as well as target architecture parameters. SConvOp handles edge cases by splitting irregular regions and adjusting affine maps where needed. All packing and tiling operations are derived from a parametric set of affine equations, enabling reusable and analyzable transformations. Although functional correctness was the primary goal of this work, the experimental evaluation demonstrates the effectiveness of SConvTransform, achieving good enough performance across different target architectures. Future work will focus on optimizing performance and porting to other target devices. When applied to standard convolution configurations, the generated code achieves up to 60% of peak performance on ARM SME and 67% on Intel AVX512. These results validate the benefit of combining static shape analysis with structured tiling and packing strategies within the MLIR Transform dialect. Furthermore, the modular design of SConvTransform facilitates integration with future extensions, enabling continued optimization of convolution workloads through MLIR's extensible compilation infrastructure.
format Preprint
id arxiv_https___arxiv_org_abs_2511_18222
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Using MLIR Transform to Design Sliced Convolution Algorithm
Ferrari, Victor
Pereira, Marcio
Alvarenga, Lucas
Leite, Gustavo
Araujo, Guido
Computer Vision and Pattern Recognition
Machine Learning
Performance
This paper proposes SConvTransform, a Transform dialect extension that provides operations for optimizing 2D convolutions in MLIR. Its main operation, SConvOp, lowers Linalg convolutions into tiled and packed generic operations through a fully declarative transformation pipeline. The process is guided by a Convolution Slicing Analysis that determines tile sizes and data layout strategies based on input and filter shapes, as well as target architecture parameters. SConvOp handles edge cases by splitting irregular regions and adjusting affine maps where needed. All packing and tiling operations are derived from a parametric set of affine equations, enabling reusable and analyzable transformations. Although functional correctness was the primary goal of this work, the experimental evaluation demonstrates the effectiveness of SConvTransform, achieving good enough performance across different target architectures. Future work will focus on optimizing performance and porting to other target devices. When applied to standard convolution configurations, the generated code achieves up to 60% of peak performance on ARM SME and 67% on Intel AVX512. These results validate the benefit of combining static shape analysis with structured tiling and packing strategies within the MLIR Transform dialect. Furthermore, the modular design of SConvTransform facilitates integration with future extensions, enabling continued optimization of convolution workloads through MLIR's extensible compilation infrastructure.
title Using MLIR Transform to Design Sliced Convolution Algorithm
topic Computer Vision and Pattern Recognition
Machine Learning
Performance
url https://arxiv.org/abs/2511.18222