paper-with-me

Papers

PocketNN: Integer-only Training and Inference of Neural Networks via Direct Feedback Alignment and Pocket Activations in Pure C++

2022-01-08 · Jaewoo Song, Fangzhen Lin

Standard deep learning algorithms are implemented using floating-point real numbers. This presents an obstacle for implementing them on low-end devices which may not have dedicated floating-point units (FPUs). As a result, researchers in tinyML have considered machine learning algorithms that can train and run a deep neural network (DNN) on a low-end device using integer operations only. In this paper we propose PocketNN, a light and self-contained proof-of-concept framework in pure C++ for the training and inference of DNNs using only integers. Unlike other approaches, PocketNN directly operates on integers without requiring any explicit quantization algorithms or customized fixed-point formats. This was made possible by pocket activations, which are a family of activation functions devised for integer-only DNNs, and an emerging DNN training algorithm called direct feedback alignment (DFA). Unlike the standard backpropagation (BP), DFA trains each layer independently, thus avoiding integer overflow which is a key problem when using BP with integer-only operations. We used PocketNN to train some DNNs on two well-known datasets, MNIST and Fashion-MNIST. Our experiments show that the DNNs trained with our PocketNN achieved 96.98% and 87.7% accuracies on MNIST and Fashion-MNIST datasets, respectively. The accuracies are very close to the equivalent DNNs trained using BP with floating-point real number operations, such that accuracy degradations were just 1.02%p and 2.09%p, respectively. Finally, our PocketNN has high compatibility and portability for low-end devices as it is open source and implemented in pure C++ without any dependencies.

📄 PDF Abstract BibTeX arXiv:2201.02863

Code (2)

jaewoosong/pocketnn 공식 구현
ai-tech-research-lab/nitro-d

Tasks

Quantization

Methods 이 논문이 사용한 방법론

DFA 설명 없음

Similar Papers 제목 키워드 기반

NITRO-D: Native Integer-only Training of Deep Convolutional Neural Networks

2024-07-16 · Alberto Pirillo, Luca Colombo, Manuel Roveri

Quantization has become increasingly pivotal in addressing the steadily increasing computational and memory requirements of Deep Neural Networks (DNNs). By reducing the number of bits used to represent weights and activa…

Quantization

Batch Normalization-Free Fully Integer Quantized Neural Networks via Progressive Tandem Learning

2025-12-18 · Pengfei Sun, Wenyu Jiang, Piew Yoong Chee, Paul Devos 외 arxiv

Quantised neural networks (QNNs) shrink models and reduce inference energy through low-bit arithmetic, yet most still depend on a running statistics batch normalisation (BN) layer, preventing true integer-only deployment…

Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference

2017-12-15 · CVPR 2018 6 · Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu 외

The rising popularity of intelligent mobile devices and the daunting computational cost of deep learning-based models call for efficient and accurate on-device inference schemes. We propose a quantization scheme that all…

General ClassificationQuantization

Rescaling-Aware Training for Efficient Deployment of Deep Learning Models on Full-Integer Hardware

2025-10-13 · Lion Mueller, Alberto Garcia-Ortiz, Ardalan Najafi, Adam Fuks 외 arxiv

Integer AI inference significantly reduces computational complexity in embedded systems. Quantization-aware training (QAT) helps mitigate accuracy degradation associated with post-training quantization but still overlook…

I-ViT: Integer-only Quantization for Efficient Vision Transformer Inference

2022-07-04 · ICCV 2023 1 · Zhikai Li, Qingyi Gu

Vision Transformers (ViTs) have achieved state-of-the-art performance on various computer vision applications. However, these models have considerable storage and computational overheads, making their deployment and effi…

Quantization