paper-with-me

Papers

Soft Threshold Ternary Networks

2022-04-04 · Weixiang Xu, Xiangyu He, Tianli Zhao, Qinghao Hu, Peisong Wang, Jian Cheng

Large neural networks are difficult to deploy on mobile devices because of intensive computation and storage. To alleviate it, we study ternarization, a balance between efficiency and accuracy that quantizes both weights and activations into ternary values. In previous ternarized neural networks, a hard threshold {\Delta} is introduced to determine quantization intervals. Although the selection of {\Delta} greatly affects the training results, previous works estimate {\Delta} via an approximation or treat it as a hyper-parameter, which is suboptimal. In this paper, we present the Soft Threshold Ternary Networks (STTN), which enables the model to automatically determine quantization intervals instead of depending on a hard threshold. Concretely, we replace the original ternary kernel with the addition of two binary kernels at training time, where ternary values are determined by the combination of two corresponding binary values. At inference time, we add up the two binary kernels to obtain a single ternary kernel. Our method dramatically outperforms current state-of-the-arts, lowering the performance gap between full-precision networks and extreme low bit networks. Experiments on ImageNet with ResNet-18 (Top-1 66.2%) achieves new state-of-the-art. Update: In this version, we further fine-tune the experimental hyperparameters and training procedure. The latest STTN shows that ResNet-18 with ternary weights and ternary activations achieves up to 68.2% Top-1 accuracy on ImageNet. Code is available at: github.com/WeixiangXu/STTN.

📄 PDF Abstract BibTeX arXiv:2204.01234

Code (1)

weixiangxu/sttn 공식 구현 pytorch

Tasks

Quantization

Similar Papers 제목 키워드 기반

Implementation and Applications of a Ternary Threshold Logic Gate

2022-11-22 · Ahmet Unutulmaz, Cem Ünsalan

Reducing delay, power consumption, and chip area of a logic circuit are the main targets of a designer. Most of the times, the designer sacrifices power consumption and chip area to improve delay for a given technology n…

CAT-Q: Cost-efficient and Accurate Ternary Quantization for LLMs

2026-06-25 · Shigeng Wang, Chao Li, Yangyuxuan Kang, Jiawei Fan 외 arxiv

In this paper, we present CAT-Q, Cost-efficient and Accurate Ternary Quantization, for compressing and accelerating LLMs. Unlike existing state-of-the-art ternary quantization methods that rely on data-intensive and cost…

Deep Learning to Ternary Hash Codes by Continuation

2021-07-16 · Mingrui Chen, Weiyu Li, Weizhi Lu

Recently, it has been observed that {0,1,-1}-ternary codes which are simply generated from deep features by hard thresholding, tend to outperform {-1,1}-binary codes in image retrieval. To obtain better ternary codes, we…

Deep LearningImage RetrievalQuantizationRetrieval

Hyperspherical Loss-Aware Ternary Quantization

2022-12-24 · Dan Liu, Xue Liu

Most of the existing works use projection functions for ternary quantization in discrete space. Scaling factors and thresholds are used in some cases to improve the model accuracy. However, the gradients used for optimiz…

image-classificationImage Classificationobject-detectionObject Detection+1

ATP-Net: An Attention-based Ternary Projection Network For Compressed Sensing

2021-06-24 · Guanxiong Nie, Yajian Zhou

Compressed Sensing (CS) theory simultaneously realizes the signal sampling and compression process, and can use fewer observations to achieve accurate signal recovery, providing a solution for better and faster transmiss…

compressed sensingImage Reconstruction