NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Merge-Friendly Post-Training Quantization for Multi-Target Domain Adaptation

Juncheol Shin, Minsang Seok, Seonggon Kim, Eunhyeok Park

Abstract

Multi-Target Domain Adaptation (MTDA) via model merging offers a scalable path for deploying specialized AI models to edge devices. However, quantization—a prerequisite for such deployment—typically introduces discretization noise that hinders effective merging. We introduce HDRQ (Hessian and Distance Regularizing Quantization), which utilizes Hessian and distance regularization to maintain models within a shared, flat optimization basin. Our results demonstrate that HDRQ enables high-performance model merging at low bit-widths (e.g., W4A4), outperforming existing post-training quantization methods in both semantic segmentation and image classification benchmarks.

Introduction

In real-world applications like autonomous driving, AI models must adapt to diverse environments—from sunny highways to rainy urban centers. Multi-Target Domain Adaptation (MTDA) addresses this by adapting a source model to multiple target domains. Model merging has emerged as a highly efficient technique for MTDA, allowing developers to average the weights of domain-specific models to create a single multi-domain expert.

Comparison of naive quantization versus HDRQ in the model merging workflow.

The primary obstacle to this approach is quantization. Compressing models to 4-bit or 3-bit integers for edge deployment introduces "discretization noise," which sharpens the loss landscape and creates "error barriers" between models. When these quantized models are merged, the resulting weights often fall into high-error regions, negating the benefits of adaptation.

The HDRQ Method

To overcome these barriers, we propose HDRQ (Hessian and Distance Regularizing Quantization). HDRQ ensures that quantized models remain "merge-friendly" through three primary mechanisms:

  1. Hessian Regularization: By injecting random noise during quantization, HDRQ encourages the model to converge toward "flat" regions of the loss landscape. A flatter landscape is inherently more robust to the weight shifts that occur during merging.
  2. Distance Regularization: To keep domain-specific models within the same optimization basin, HDRQ penalizes the $L_2$ distance between the adapted weights and the original source weights. This ensures that different models remain close enough in weight space to be averaged effectively.
  3. Noise-Sampling-Based Rounding: This component addresses the ambiguity inherent in rounding averaged quantized weights, providing more stable updates during the merging process.

Geometric Insights: Flatness and Error Barriers

The success of HDRQ is rooted in its impact on the geometry of the loss landscape. Quantization typically makes the landscape jagged and steep. By regularizing the Hessian (the second-order derivative of the loss), HDRQ "sands down" these edges.

Loss landscape comparison between BRECQ, QDrop, and HDRQ. HDRQ exhibits a significantly smoother and flatter basin.

As shown in the loss landscape visualizations, standard PTQ methods like BRECQ and QDrop result in highly irregular basins. In contrast, HDRQ maintains a smooth, wide valley, which minimizes the performance drop-off (the "error barrier") when moving between two sets of model weights.

Experimental Evaluation

We evaluated HDRQ across two challenging tasks:

  • Semantic Segmentation: Using GTA as a source and Cityscapes/IDD as targets. In a W4A4 (4-bit weight/activation) configuration, HDRQ improved merged model performance by 4.21 mIoU over baseline PTQ methods.
  • Image Classification: On the Office-Home dataset (W3A3), HDRQ achieved a harmonic mean accuracy of 64.70%, significantly outperforming the baseline of 62.99%.

Crucially, HDRQ achieves these merging benefits without compromising the performance of individual, un-merged models, maintaining or even exceeding the accuracy of state-of-the-art PTQ techniques.

Conclusion

HDRQ bridges the gap between model compression and multi-domain adaptation. By focusing on the geometric properties of the loss landscape—specifically flatness and basin consistency—HDRQ enables the deployment of versatile, multi-target AI on resource-constrained edge hardware. Future research will explore the application of HDRQ to more complex merging strategies and extreme sub-3-bit compression.

Summary updated

BibTeX
@inproceedings{shin2025merge,
  author = {Juncheol Shin and Minsang Seok and Seonggon Kim and Eunhyeok Park},
  title = {{Merge-Friendly Post-Training Quantization for Multi-Target Domain Adaptation}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=aCBd1FeE5Z},
}
Figure