In model compression, artifacts are not visual glitches but predictable performance degradations like accuracy drops or output divergence. They arise from lossy compression methods that discard information deemed less critical, such as reducing numerical precision in quantization or removing parameters in pruning. These artifacts are the measurable cost of achieving a smaller, faster model for on-device deployment.
Primary Causes of Compression Artifacts
Compression artifacts are not random errors but predictable distortions arising from specific algorithmic operations. Understanding these root causes is essential for diagnosing and mitigating performance degradation in compressed models.
Quantization Error
The fundamental numerical discrepancy introduced when mapping continuous floating-point values to a finite set of discrete integer levels. This process inherently loses information.
- Round-off Error: The difference between the original FP32 value and its nearest representable quantized integer.
- Clipping/Saturation: Values outside the quantization range are clamped to the minimum or maximum, destroying information about the distribution's tails.
- Granularity: Lower bit-widths (e.g., INT4 vs. INT8) increase the step size between discrete levels, amplifying this error. This noise propagates through the computational graph, accumulating in deeper layers.
Loss of Representational Capacity
Compression reduces the model's parameter space, directly limiting its ability to represent complex functions learned during training.
- Parameter Reduction (Pruning): Removing weights reduces the degrees of freedom in the model. While many weights are redundant, aggressive pruning can excise critical, non-redundant connections.
- Precision Reduction (Quantization): Lower bit-widths shrink the number of unique values a weight or activation can take. A 4-bit weight can represent only 16 values, whereas FP32 can represent billions, constraining the model's expressivity.
- Architectural Sparsity: Induced sparsity patterns may not align with the data flow needed for a specific task, creating bottlenecks in information propagation.
Activation Distribution Shift
Quantization parameters (scale/zero-point) are typically calibrated on a small, static dataset. If the activation statistics of real-world inference data differ significantly, quantization becomes misaligned.
- Out-of-Distribution Inputs: Data unlike the calibration set can produce activations outside the calibrated range, leading to severe clipping and distortion.
- Batch Norm Folding Errors: During post-training quantization, Batch Normalization statistics are folded into preceding layers. If the folding assumes a fixed activation range that doesn't hold during inference, error compounds.
- Dynamic Range Mismatch: Layers with highly variable activation ranges (e.g., attention layers in transformers) are particularly susceptible, as a single scale factor may poorly represent the entire distribution.
Disrupted Gradient Flow
Compression, especially when applied post-training, can break the smooth, learned gradient pathways that were optimized during training.
- Non-Differentiable Operations: The quantization function (rounding) has a zero gradient almost everywhere. During quantization-aware training, Straight-Through Estimators (STEs) provide a proxy gradient, but this is an approximation that can lead to suboptimal convergence.
- Pruned Connectivity: Removing weights creates dead pathways. While the remaining weights can compensate, the loss landscape becomes more chaotic and difficult to fine-tune.
- Increased Sensitivity: Compressed models often exhibit higher sensitivity to input perturbations, as the reduced capacity offers less buffering against noise.
Amplification of Numerical Instability
Operations that were stable in high precision can become unstable in low precision due to overflow, underflow, and catastrophic cancellation.
- Softmax/Attention in Low Precision: These functions involve exponentiation and summation. In INT8, large values can saturate, and small differences can vanish, flattening the output distribution.
- Accumulation in Integer Arithmetic: Summing many small integer values can lead to overflow if the accumulator bit-width is insufficient, a common issue in hardware without 32-bit integer accumulators.
- Underflow in Activation Functions: In very low precision (e.g., 4-bit), the quantization grid may not have a non-zero value small enough to represent the tails of functions like GELU or SiLU, causing a 'dead zone'.
Mismatched Hardware-Kernel Optimization
The theoretical benefits of a compression algorithm (e.g., sparsity) may not materialize due to inefficient execution on the target hardware.
- Inefficient Sparsity Patterns: Unstructured sparsity offers high theoretical compression but often leads to no speed-up on general-purpose hardware (GPUs/CPUs) due to lack of parallelization. Hardware requires structured (e.g., 2:4) or block-wise sparsity for acceleration.
- Kernel Overhead: The runtime cost of decoding sparse formats or dequantizing weights on-the-fly can negate the benefits of reduced memory bandwidth.
- Suboptimal Format Conversion: Transforming a model into a hardware-specific format (e.g., TFLite for mobile NPUs) may involve additional rounding or packing steps that introduce secondary artifacts not present in the original compressed checkpoint.




