arXiv(opens in a new tab)cs.LGAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.26926

A Layer Importance Metric for Quantization Accounting for the Speed-Quality Trade-off in Autoregressive Models

Artem Safronov

Abstract

Small large language models (sLLMs) are now deployed on devices with limited memory and compute budget. Within the autoregressive setting, inference is memory-bandwidth bound: typical homogeneous quantization is typically detrimental to such models due to their compactness, as their architectures do not retain much redundancy, and in particular a handful of components display extremely poor tolerance to lower precision.

This paper introduces a composite metric that combines two orthogonal assessment criteria for such components: the information retention after quantization, captured by a normalized coefficient, and the gains in throughput that can be expected from accelerating individual layers, analytically estimated using a roofline-based latency model. Using an architectural profiling benchmark on Gemma 3 1B, we identify the Feed-Forward Network (FFN) blocks and the embedding matrix as the most promising candidates for accelerated inference, and we estimate for each candidate a normalized quality score, computed via simulated quantization, and a normalized speed score, computed without any model execution. The metric uses a single prioritization coefficient to combine the two scores into a composite value, which can be tuned to prioritize speed vs quality according to a specific application's needs. The metric is general and can be applied to blocks of layers (such as FFNs in the transformer), their internal projections (such as the feed forward network within a transformer block), or single transformer layers, with no modifications to the computation.

We evaluated our method on multiple model architectures, measuring around 4% error in predicted speedups on average, and demonstrated that it enables significantly better resource allocation decisions than existing approaches, which usually rely on extensive evolutionary search strategies, domain-specific inference accelerators, or require access to expensive Shapley-value approximations. In short, our analytical approach makes sLLM quantization both faster, easier, and more intuitive, turning a trial-and-error process into a mathematical exercise.

Keywords: quantization, small language models, sLLM, roofline model, SQNR, inference acceleration, model compression

1 Introduction

The current practice in large language model (LLM) design appears to be contradictory, in that while model architectures become increasingly complex, their physical realization is subject to rather strict limitations imposed by memory bus widths, battery capacity, or the available silicon area. AI assistants are now omnipresent in smartphones and other local machines where they perform a variety of non-critical tasks such as content creation and web browsing [23]. Yet even in this setting, when an LLM is used for generic-purpose assistance, the emphasis is placed on the model's ability to operate in a memory-constrained environment rather than perform hundreds of billions of operations per second; put otherwise, a compactly represented LLM is significantly more valuable.

than a large one at the same level of functional complexity. Now, the critical question is: how to achieve a high degree of model reduction while preserving the response quality, as witnessed by the recent advances in knowledge distillation and parameter sharing.

It is not accidental that currently available small LLMs (Llama 3 1B/3B, Gemma 3 1B, Qwen 3 1.7B, etc.) are the result of aggressive model distillation: a large-scale LLM possesses ample resources to withstand the pruning of its parameter count, which has little effect on its accuracy, while an sLLM (small LLM) does not have these advantages. If post-training quantization (PTQ) is applied to an sLLM, it may not produce acceptable results: the internal structure of the model remains intact, but its behavioral patterns are altered, so that the response quality decreases substantially.

Another issue is that modern accelerators are often memory-bandwidth-constrained [3]: the majority of the time spent in autoregressive decoding is occupied by offloading weights from video memory, not performing arithmetic operations, which also appears to be the case when naively implementing the attention mechanism [16].

Thus, the utilization of a GPU in this scenario is significantly lower than could be the case, and the user must wait for the next token to be generated.

A uniform reduction in the precision of weights and activations, applicable to each layer of the model, is not the only possibility; indeed, different network layers may respond differently to such a reduction. Some layers are relatively inert and can safely undergo aggressive quantization without noticeable effects on the quality of generation, while others store crucial information that should be left untouched. Several methods have been developed to date that allow one to quantify different elements of the model with varying degrees of precision. However, each of them is limited by certain design decisions: CARVQ [4] and IMPQ [6] utilize multi-level vector quantization or require extensive computation to estimate each component's contribution to the total model performance using Shapley-value estimation [21], while HAPM [5] requires specialized inference software to demonstrate its effectiveness. Thus, none of these approaches provides a practical solution for easily identifying the set of layers within an sLLM that could benefit from higher precision.

The paper suggests that in order to achieve the best possible trade-off between performance and quality, one must move away from uniform quantization and instead attempt to find groups of operations within the model that contribute the most to its quality. In other words, it is more useful to spend computational resources (measured in FLOPS) on operations that preserve information rather than discard it.

We propose a method by which one can assess the quality of an sLLM quantization configuration using a single metric that estimates the cost-quality trade-off. The paper reports the following results:

• profiling the Gemma 3 1B architecture to identify the blocks that contribute most to inference latency, and justifying the choice of the FFN and embedding matrix as priority quantization targets;

• obtaining a normalized quality score for the FFN and Embedding blocks via the SQNR coefficient using the SA-PTQ operator;

• obtaining a normalized speed score for each block based on an analytical roofline model, without re-running the model;

  • combining both scores into an integrated metric with a priority parameter α\alpha, allowing the balance between speed and quality to be shifted depending on the requirements of a specific task.

The analysis presented confirms the applicability of the metric on standard hardware without quantizing the model, and substantiates the possibility of extending it to layer-wise heterogeneous quantization.

Goal of the present work. The goal is to develop an analytical metric for estimating layer importance that accounts for the trade-off between inference speed and generation quality in autoregressive models. This tool is intended to identify structural blocks and layers whose quantization will provide the maximum hardware gain at minimal information loss.

References (22)