NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Precision As You Need: Stochastic Computing Is a Dense Adaptive Quantizer

Haoran Jin, Kangqi Zhang, Jirong Yang, Barry Lyu, Qiuyi Ding, Ruijie Gao, Nathan Bleier

NeurIPS page · OpenReview · Open on the map

Category: Efficient LLM Inference & Training › Low-bit LLM Quantization · Type: new method · Keywords: stochastic computing, dense adaptive quantizer, mixed-precision inference, vision transformers, GPU library, per-row policy

Areas: Model Architectures & Sequence Modeling › Language Model Architectures › Efficient Inference

Summary

The paper proposes Stochastic Computing (SC) as a dense adaptive quantizer that controls precision via bit-stream length, enabling fine-grained mixed-precision inference for vision transformers without retraining.

Explained to a 5-year-old

Computers that look at pictures need to do lots of math, which can be slow. The researchers found a trick to change how precise those math calculations are, so they can use less precision when it’s safe. They built a special software tool that lets the precision be set per picture part, like giving each part a different amount of detail. This helps the models run faster and use less memory without needing to retrain them. The result is a more flexible way to make AI picture-thinking faster and cheaper.

Explained to a 5-year-old, longer

Modern AI systems that look at images have to multiply lots of numbers, which takes a lot of computer power. Usually these numbers are stored in fixed-size blocks, like 8-bit or 16-bit, which limits how much you can shrink the computation. The researchers noticed that you can think of precision as a length of a stream of bits, and you can make that stream longer or shorter. By using a longer stream you get more precise results, and by using a shorter stream you get results faster but maybe a bit less accurate. They created a new software library that works on regular GPUs to do this kind of variable-precision math. This library lets you tell each part of the calculation how long its bit stream should be, so some parts can be quick and some can be very accurate. They also designed a rule that decides, on the fly, how to split the total allowed computation budget among the different parts. Because the rule is simple, you don’t need to retrain the whole model; you just run it with the new library. They tested this idea on several picture-related tasks, like telling what’s in a photo, finding objects, cutting them out, generating new pictures, and planning actions. The results showed that the new method can keep the same accuracy as the old fixed-precision methods while using less overall computation. This makes it possible to run vision AI on smaller devices or with less energy, which could be useful for phones, drones, or other gadgets. In short, they gave computers a more flexible way to trade off speed and accuracy for image tasks.

For a technical reader

The paper introduces a GPU-friendly implementation of stochastic computing that treats precision as a variable-length bit stream rather than a fixed bit-width. It adds a runtime policy that automatically assigns stream lengths per matrix row (or token) to meet a target average precision budget, eliminating the need for model retraining. This allows vision transformers to run with mixed-precision inference where each computation can be more or less precise as needed, keeping accuracy while reducing compute and memory. The authors evaluate the approach on classification, detection, segmentation, generation, and planning tasks, showing it matches the performance of traditional INT quantizers at comparable bit budgets. The result is a practical substrate for fine-grained, adaptive quantization that can be dropped into existing pipelines on modern GPUs.

Problem

Modern transformer-based vision models rely heavily on matrix multiplications, but existing quantization techniques are limited to a small set of fixed-width formats, restricting efficiency on conventional accelerators. This creates a need for a flexible precision control mechanism that can adapt per-token or per-row without retraining.

Method

The approach builds a GPU library that emulates stochastic-computing matrix multiplication, exposing stream lengths as kernel arguments. It introduces a dynamic per-row mixed-precision policy that assigns stream lengths per token or group to meet an average budget, using the same hardware across schedules. This enables fine-grained, adaptive precision without any model retraining.

Results

The approach matches the accuracy of fixed-format INT quantization while using lower average stream lengths, and per-row mixed precision preserves accuracy at reduced precision budgets.

Contributions

It introduces a software-level substrate for stochastic computing that provides dense adaptive quantization, a dynamic per-row mixed-precision policy that requires no retraining, and an end-to-end evaluation across multiple vision tasks demonstrating feasibility.

Practical relevance

This work shows that stochastic computing can be implemented on GPUs to enable flexible, memory-efficient inference for vision transformers, opening a path to more adaptable hardware-software co-design.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction