paper-with-me

홈 › Papers

Data Generation for Hardware-Friendly Post-Training Quantization

2024-10-29 · Lior Dikstein, Ariel Lapid, Arnon Netzer, Hai Victor Habi

Zero-shot quantization (ZSQ) using synthetic data is a key approach for post-training quantization (PTQ) under privacy and security constraints. However, existing data generation methods often struggle to effectively generate data suitable for hardware-friendly quantization, where all model layers are quantized. We analyze existing data generation methods based on batch normalization (BN) matching and identify several gaps between synthetic and real data: 1) Current generation algorithms do not optimize the entire synthetic dataset simultaneously; 2) Data augmentations applied during training are often overlooked; and 3) A distribution shift occurs in the final model layers due to the absence of BN in those layers. These gaps negatively impact ZSQ performance, particularly in hardware-friendly quantization scenarios. In this work, we propose Data Generation for Hardware-friendly quantization (DGH), a novel method that addresses these gaps. DGH jointly optimizes all generated images, regardless of the image set size or GPU memory constraints. To address data augmentation mismatches, DGH includes a preprocessing stage that mimics the augmentation process and enhances image quality by incorporating natural image priors. Finally, we propose a new distribution-stretching loss that aligns the support of the feature map distribution between real and synthetic data. This loss is applied to the model's output and can be adapted to various tasks. DGH demonstrates significant improvements in quantization performance across multiple tasks, achieving up to a 30% increase in accuracy for hardware-friendly ZSQ in both classification and object detection, often performing on par with real data.

📄 PDF Abstract BibTeX arXiv:2410.22110

Code (1)

sony/model_optimization 공식 구현 pytorch

Tasks

Data AugmentationGPUobject-detectionObject DetectionQuantization

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically
Batch Normalization 설명 없음

Similar Papers 제목 키워드 기반

HPTQ: Hardware-Friendly Post Training Quantization

2021-09-19 · Hai Victor Habi, Reuven Peretz, Elad Cohen, Lior Dikstein 외

Neural network quantization enables the deployment of models on edge devices. An essential requirement for their hardware efficiency is that the quantizers are hardware-friendly: uniform, symmetric, and with power-of-two…

object-detectionObject DetectionPose EstimationQuantization+1

SQ-format: A Unified Sparse-Quantized Hardware-friendly Data Format for LLMs

2025-12-05 · Ruixuan Huang, Hao Zeng, Hantao Huang, Jinyuan Shi 외 arxiv

Post-training quantization (PTQ) plays a crucial role in the democratization of large language models (LLMs). However, existing low-bit quantization and sparsification techniques are difficult to balance accuracy and eff…

Real-Time Cellist Postural Evaluation With On-Device Computer Vision

2026-04-19 · Paolo Wang, Michael Zhang, Shrinand Perumal, Ekaterina Tszyao 외 arxiv

Posture is a critical factor for beginning instrumental learners. Most students receive instruction only once a week, and during the intervals between lessons they have little or no feedback on their physical posture. As…

Lightweight Embedded FPGA Deployment of Learned Image Compression with Knowledge Distillation and Hybrid Quantization

2025-03-05 · Alaa Mazouz, Sumanta Chaudhuri, Marco Cagnanzzo, Mihai Mitrea 외

Learnable Image Compression (LIC) has shown the potential to outperform standardized video codecs in RD efficiency, prompting the research for hardware-friendly implementations. Most existing LIC hardware implementations…

Image CompressionKnowledge DistillationQuantization

ADFQ-ViT: Activation-Distribution-Friendly Post-Training Quantization for Vision Transformers

2024-07-03 · Yanfeng Jiang, Ning Sun, Xueshuo Xie, Fei Yang 외

Vision Transformers (ViTs) have exhibited exceptional performance across diverse computer vision tasks, while their substantial parameter size incurs significantly increased memory and computational demands, impeding eff…

Attributeimage-classificationImage ClassificationInstance Segmentation+4