Manuscript Offprint

arXiv:2610.23222

qGAMMA: A Framework for Optimal DNN Mapping on Multi-Precision Accelerators

Leandro Fiorin, Luigi Altamura, Cristina Silvano

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Leandro Fiorin 1^{1}[0000-0003-2630-1509], Luigi Altamura 2∗^{2*}[0009-0000-2070-3932], and Cristina Silvano 1^{1}[0000-0003-1668-0883]

1^{1} Dipartimento di Elettronica e Informazione, Politecnico di Milano, Milano, Italy.

{leandro.fiorin, cristina.silvano}@polimi.it

2^{2} Department of Computer Science and Engineering, Chalmers University of Technology and University of Gothenburg, SE-41296 Gothenburg, Sweden

altamura@chalmers.se

Abstract. This work describes qGAMMA, a flexible framework for exploring and optimizing the mapping of mixed-precision Deep Neural Network (DNN) models onto general-purpose spatial accelerators that support a range of fixed- and floating-point precisions. qGAMMA navigates the design space using a domain-specific genetic algorithm and an analytical performance model based on hardware synthesis results. The framework identifies the optimal mapping and accelerator configuration that minimizes target metrics. Extensive evaluations across DNN workloads show that qGAMMA offers valuable insights for designing mixed-precision applications, enabling better trade-offs between performance, energy efficiency, and resource utilization.

Keywords: DNN accelerators · Optimization · Mapping.

1 Introduction

As DNNs become increasingly computationally demanding, efficient hardware accelerators have become essential, particularly for resource-constrained platforms. Recent research has focused on low- and mixed-precision computation to reduce storage and computational overhead in DNN accelerators. By processing each DNN layer with a different precision, these approaches offer greater flexibility in balancing efficiency and accuracy [11,13,16][11,13,16]. However, optimizing and fine-tuning the execution of mixed-precision DNN models on accelerators equipped with multiple precision pipelines (integer and/or floating point) introduces significant complexities largely unaddressed in system-level optimization.

This work introduces qGAMMA, a framework designed to optimize the mapping of mixed-precision DNN models onto accelerators that support multiple precision pipelines. Specifically, qGAMMA enables designers to explore trade-offs between mapping strategies, parallelization, and precision, offering valuable insights into leveraging mixed-precision computations for optimal performance.

∗^{*} This work was performed while at Politecnico di Milano.

L. Fiorin et al.

Figure

(a)

(b)

Fig. 1: An example of (a) CNN computation and (b) dataflow structure.

To the best of our knowledge, qGAMMA is the first tool specifically developed to tackle this optimization challenge.

In this work, we use the term mixed-precision when discussing DNN models in which each layer is potentially computed using a different precision, while the term multi-precision is used to indicate the availability in the accelerator of hardware modules supporting computations in different precisions.

The main contributions of this work are as follows:

– qGAMMA: A framework for optimizing the mapping of mixed-precision DNN models on multi-precision accelerators;

– Architectural template: A configurable accelerator template that models state-of-the-art multi-precision architectures, included in qGAMMA to support the exploration process;

– Performance estimation tool: An analytical tool for estimating the performance of multi-precision accelerators, based on the proposed architectural template;

– Heuristic search optimization: The use of heuristics to prune the search space of qGAMMA, filtering out inefficient mappings and improving optimization efficiency;

– Experimental validation: A comprehensive experimental campaign showing the effectiveness of qGAMMA in estimating and optimizing performance.

This paper is organized as follows. Section 2 provides the relevant background and reviews the related work, while Section 3 describes the target accelerator architecture template. Section 4 presents the key features of the qGAMMA framework. Section 5 discusses experimental evaluations, while Section 6 concludes the paper with final remarks.

Table 1: Comparison of mapping frameworks' characteristics in previous works and this work. qGAMMA is the first tool to support mixed-precision mapping on multi-precision spatial architectures.

FrameworkExploration methodMult. precision modelsMixed-precision
Timeloop [12]Random samplingYesNo
GAMMA [9]Genetic algorithmNoNo
LOMA [14]Constrained brute-forceNoNo
CoSA [6]Mixed ILP formulationNoNo
SALSA [8]Simulated annealingNoNo
This workGenetic algorithm + heuristicsYesYes

References (16)