LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale
Paper · 2022 · Tim Dettmers, Mike Lewis, Younes Belkada et al.
Summary
An already trained language model can remain unusable if its parameters exceed the memory available on a researcher’s GPUs. LLM.int8() tackles this deployment barrier by changing how the largest learned transformations are represented and calculated. The paper introduces an inference procedure that converts those transformations to mostly 8-bit integer arithmetic, while preserving the predictive quality measured with their higher-precision counterparts. Its central demonstration reaches OPT checkpoints with 175B parameters. Conversion does not require an additional learning stage before the checkpoint can be used.
The challenge is not simply that integers represent fewer values than floating-point numbers. Inside the transformers studied by the authors, a few feature coordinates acquire unusually large magnitudes. These coordinates recur across token positions and layers, and they contribute substantially to prediction. Around the 6.7B scale, the authors observe a marked change: exceptional values become widespread throughout the network, in spite of remaining confined to a small set of feature dimensions. Their example at that scale contains about 150,000 exceptional occurrences per sequence, concentrated in 6 coordinates. A quantizer that stretches its numerical range to include these values loses resolution for ordinary values; deleting the exceptional coordinates instead causes severe predictive damage.
LLM.int8() addresses these problems with complementary mechanisms. Vector-wise quantization assigns scales to individual input rows and weight columns, so each inner product receives a reconstruction scale appropriate to its operands. Mixed-precision decomposition then redirects exceptional feature dimensions into a separate 16-bit multiplication. The remaining contribution is calculated with quantized operands and accumulated before reconstruction. More than 99.9% of values participate in the integer path, according to the authors. For BLOOM-176B, they report a memory-footprint reduction of 1.96x. The protected computation is therefore small enough to preserve most of the storage benefit.
The evaluation combines C4 validation perplexity, zero-shot task accuracy, internal feature interventions, and execution benchmarks. Vector-wise quantization alone works through 2.7B parameters in the reported predictive comparison, but larger checkpoints require explicit treatment of exceptional dimensions. With both components, LLM.int8() preserves the measured predictive performance across the tested OPT range through 175B. The practical consequence is that OPT-175B and BLOOM-176B can operate on a server containing consumer GPUs. Whether arithmetic becomes faster depends on the workload: large multiplications gain speed, setup overhead hurts smaller ones, and full BLOOM generation runs slightly more slowly than the higher-precision baseline. Alongside integration with Hugging Face Transformers, the authors make their implementation available through bitsandbytes. Their established result concerns inference through selected linear layers; integer attention, training, and fine-tuning remain separate challenges.
Interesting ideas
Allocate accuracy according to consequence. A uniform numerical representation can spend resources on values that tolerate approximation while mishandling a small consequential subset. The authors identify exceptional coordinates, test their importance, and reserve greater precision for their contribution. This principle can guide approximate numerical software, compressed representations, and selective verification: preserve the parts whose errors most affect the final result.
Choose boundaries from the computation. Each entry of a matrix product combines an input row with a weight column. Attaching normalization to those vectors makes reconstruction follow the operation’s actual structure. The broader lesson is to organize an approximation around interacting units, rather than convenient storage boundaries. The same reasoning helps when choosing blocks, partitions, or local statistics in other numerical procedures.
Inspect the axis along which difficulty repeats. More normalization constants improve precision, but their orientation determines what they isolate. The troublesome values in this study recur along feature columns, while input normalization operates along token rows. Recognizing that mismatch explains why a refined quantizer still fails. Similar analysis can reveal why a statistical correction or partitioning strategy leaves the dominant error pattern untouched.
Evaluate whether scaling still helps. An optimization can appear successful on a small checkpoint yet destroy the benefits of a larger one. The paper examines whether predictive quality continues improving as capacity increases after conversion. For efficient models and compression, this is a stronger evaluation pattern than demonstrating savings at a single favorable operating point.
Connect observations to controlled interventions. Large activations alone do not establish functional importance. The authors remove selected coordinates, compare them with random coordinates, and distinguish isolated attention effects from errors propagated through the network. This design connects descriptive statistics with behavior while preserving clarity about what each intervention measures. It transfers naturally to feature analysis, rule inspection, and studies of learned representations.
Account for the complete execution path. Integer multiplication, input conversion, output reconstruction, exceptional-case handling, and communication incur different costs. Measuring only the fastest primitive would misrepresent the application. The paper’s layered benchmarks show why a memory improvement can remain useful even without lower generation latency. This accounting principle applies to any optimization that introduces preparation or coordination work.
Deep dive: LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale
Understand how LLM.int8() reduces transformer memory, preserves important outlier features, and tests the accuracy and speed of integer inference. · about 37 minutes to read
How Mova uses it
Mova is a transparent language system implemented in Rust. Its default language pipeline relies on explicit structure, rules, and learned statistical parameters; it also has a separate neural GPU parser. That distinction matters here. The paper directly concerns dense transformer arithmetic, so its numerical procedure is a plausible subject for investigation around the GPU parser, rather than an established replacement for Mova’s native CPU mechanisms.
The connections below are proposed interpretations of the paper against Mova’s documented mechanisms. A status mark identifies overlap with that documented scope. It does not report an experiment applying LLM.int8() to Mova, and a proposal marked new may overlap with work outside the available implementation record.
Idea: Reserve numerical precision for influential coordinates. Where: “The Core of LLM.int8(): Mixed-precision Decomposition.” Area: numerical computation. Mova: нове. A possible experiment would examine whether the GPU parser’s dense transformations contain a small subset of coordinates that need separate treatment during quantization. The paper establishes this pattern for its evaluated transformers; the corresponding distribution in Mova is unknown. Why Mova: selective precision could reduce a neural component’s memory demand without imposing approximation on the rule-based core.
Idea: Align normalization with the operands of an operation. Where: “Vector-wise Quantization.” Area: mathematics and implementation. Mova: нове. Any prospective quantized multiplication in the GPU parser could associate scales with the input rows and weight columns that form its inner products. This would give reconstruction an explicit mathematical contract. It would require comparison with the parser’s original arithmetic before adoption. Why Mova: the scale metadata would make a compressed operation easier to inspect and validate.
Idea: Measure the direction of recurring exceptions. Where: “Interpretation of Quantization Performance.” Area: statistical analysis. Mova: нове. Before selecting a compression scheme, Mova could collect activation summaries separately along token positions and feature coordinates. This would test whether the proposed grouping actually isolates difficult values. No such activation study is established by the digest. Why Mova: it would prevent spending engineering effort on a partition that leaves the main numerical problem intact.
Idea: Evaluate an optimization across operating scales. Where: “Experimental Setup” and “Main Results.” Area: evaluation. Mova: частково є (CPU/GPU comparisons and published approximant agreement). Existing comparisons distinguish exact stages from approximate ones. A further experiment could vary the size or workload of a proposed compressed component and ask whether the original benefit of increasing resources survives conversion. Why Mova: a favorable result on a small probe would become less likely to conceal failure under a larger workload.
Idea: Test selected features against random controls. Where: “Measuring the Effect of Outlier Features.” Area: evaluation and interpretability. Mova: частково є (school controls and regression gates). Mova already uses controls to challenge interpretations of performance. The paper suggests an additional feature-level design: remove deliberately selected information and compare the outcome with removing a matched amount of randomly chosen information. Why Mova: this could distinguish an explanatory feature group from one that merely looks unusual.
Idea: Include preparation and coordination in cost measurements. Where: “Inference Speedups and Slowdowns.” Area: systems evaluation. Mova: частково є (tools/jobs, tools/twin, and dictionary-index measurements). Mova records resource estimates and actual execution costs in several tools. A quantization experiment should similarly separate arithmetic time from conversion, reconstruction, and exceptional-case overhead, then measure the complete parser invocation. Why Mova: the decision to adopt an optimization should reflect the workflow that actually pays its costs.
Idea: Separate compressed storage from low-precision computation. Where: “Related work,” discussion of GLM-130B. Area: representation and systems design. Mova: частково є (pack provides compressed storage with reconstruction). Mova already compresses data without requiring consumers to calculate directly on the compressed bytes. The paper’s comparison suggests evaluating the same distinction for learned weights: storage compression and integer multiplication are independently testable choices. Why Mova: a useful memory reduction might be possible even when integer arithmetic offers no practical advantage.
Idea: Keep approximation distinct from exact reconstruction. Where: “Int8 Matrix Multiplication with 16-bit Float Inputs and Outputs.” Area: mathematical contracts. Mova: вже є (CPU/GPU exactness classes and pack byte-exact storage). Mova’s documentation already distinguishes exact execution from measured approximants. A quantized linear transformation would belong to the latter category unless stronger evidence established otherwise. The paper’s approximate reconstruction equations support carrying that distinction into any implementation record.
Idea: Assess output behavior as well as numerical error. Where: “Experimental Setup.” Area: evaluation. Mova: частково є (school assessments and GPU agreement measurements). A proposed quantized parser should be assessed on its linguistic outputs and downstream effects, alongside intermediate numerical discrepancies. The paper uses predictive metrics because small arithmetic changes can have unequal functional consequences. Why Mova: low array error would not by itself establish preservation of dependency trees or answers.
Idea: Use probability-sensitive diagnostics before relying on final choices. Where: “Experimental Setup,” language-modeling evaluation. Area: evaluation. Mova: нове. For a neural component that exposes scores, Mova could investigate whether score-distribution changes reveal damage before the selected tree changes. The relevant diagnostic would have to fit the parser; C4 perplexity is not automatically appropriate. Why Mova: it could detect a weakening numerical margin that a discrete output comparison misses.
Idea: Distinguish local disturbance from propagated failure. Where: “Measuring the Effect of Outlier Features.” Area: causal evaluation design. Mova: нове. An experiment could measure a perturbation at a single parser stage while preserving ordinary downstream inputs, then separately allow the perturbation to flow through the complete language pipeline. These would answer different questions. Why Mova: the distinction could locate an error’s origin and reveal how much later components amplify it.
Idea: Compare symmetric and asymmetric representations empirically. Where: “8-bit Data Types and Quantization” and “Interpretation of Quantization Performance.” Area: numerical statistics. Mova: нове. If Mova investigates integer arithmetic, it could first inspect whether each relevant distribution occupies both sides of zero. The paper explains why one-sided values can favor an asymmetric mapping, but Mova’s corresponding distributions are unknown. Why Mova: representation choice could follow measured data shape instead of a general preference for a format.
Idea: Reassess a component after another component changes. Where: “Interpretation of Quantization Performance.” Area: ablation design. Mova: частково є (regression-gated rules and held-out self-play). Zeropoint quantization loses its advantage once decomposition handles exceptional dimensions. Mova could apply this interaction test to rule collections and numerical components: a mechanism useful in isolation may become redundant after another repair. Why Mova: removing unnecessary complexity can be as valuable as adding a successful mechanism.
Idea: Separate descriptive selection from execution-time admission. Where: “Finding Outlier Features” and “The Core of LLM.int8(): Mixed-precision Decomposition.” Area: data analysis and interfaces. Mova: частково є (reviewed dictionary selectors are distinct from dictionary admission). The paper uses persistence conditions to analyze features, while the multiplication procedure uses a magnitude-based exceptional set. Mova should preserve comparable distinctions between a pattern selected for study and a condition that authorizes an operational change. Why Mova: analytical convenience should not silently become an execution rule.
Idea: Record how empirical thresholds were chosen. Where: “Finding Outlier Features.” Area: statistics and provenance. Mova: частково є (routing thresholds, evidence logs, and source-bound checks). A future numerical threshold could retain its measurement domain, selection procedure, and failure cases. The paper’s threshold reasoning is inspectable because it relates choices to observed recurrence and predictive degradation. Why Mova: explicit threshold provenance would make later revision more accountable.
Idea: Examine more than parameter count. Where: “Measuring the Effect of Outlier Features,” quantitative findings. Area: scaling analysis. Mova: нове. Performance or error patterns could be plotted against achieved task quality as well as implementation size or training volume. In the paper, changing the horizontal variable changes whether emergence appears abrupt. Why Mova: this could expose a smoother predictor of failure than a coarse resource measure.
Idea: Distinguish occurrences from distinct structural causes. Where: “Emergent Large Magnitude Features in Transformers at Scale.” Area: data aggregation. Mova: частково є (dictindex separates occurrences, features, and reviewed selectors). Many observed failures might trace to a small recurring set of structural conditions. Mova could retain both event counts and unique-condition counts when analyzing parser or dictionary errors. Why Mova: this would help prioritize a compact rule repair over treating every occurrence independently.
Idea: Route whole structural units when the evidence repeats there. Where: “The Core of LLM.int8(): Mixed-precision Decomposition.” Area: algorithm design. Mova: нове. The paper protects entire feature dimensions because their exceptional behavior recurs along those dimensions. A Mova hypothesis is to route a coherent linguistic construction or typed relation to a specialized check when isolated-token handling repeatedly misses the same pattern. Why Mova: the unit of intervention could match the unit of recurring failure.
Idea: Look for small, costly exception sets in deterministic systems. Where: “Int8 Matrix Multiplication at Scale.” Area: rules and data processing. Mova: частково є (closed morphological exceptions and bounded French repairs). Mova already combines broad procedures with explicitly limited exceptions. The paper encourages testing whether expensive handling can be confined to a small set identified by functional consequences. Why Mova: selective work could preserve correctness while reducing repeated processing of ordinary cases.
Idea: Validate a phenomenon across implementations. Where: “Finding Outlier Features.” Area: reproducibility. Mova: частково є (multiple-parser agreement and CPU/GPU comparisons). The paper checks training and inference software from different sources. Mova could similarly ask whether a suspected language phenomenon survives alternative parser outputs, rather than arising from one implementation. Why Mova: cross-implementation evidence would help separate linguistic regularities from software-specific artifacts.
Idea: Test robustness across architectural variations. Where: “Detailed Outlier Feature Data.” Area: evaluation. Mova: нове. A numerical finding in one GPU-parser configuration could be checked after changes to initialization or architecture before becoming a general engineering assumption. The paper’s robustness observations motivate this test but do not predict its outcome for Mova. Why Mova: durable design decisions should not depend on an accidental property of one configuration.
Idea: Keep isolated components and combined configurations in the same evaluation. Where: “Main Results” and “Interpretation of Quantization Performance.” Area: ablation design. Mova: частково є (rules-audit, skip controls, and gated self-play). Mova already has mechanisms for comparing rule configurations. The paper reinforces testing the complete combination as well as each addition, because normalization and decomposition address different obstacles. Why Mova: useful individual changes do not establish that their composition preserves behavior.
Idea: Treat inference, training, and fine-tuning as separate numerical regimes. Where: “Training Results” and “Fine-tuning Results.” Area: machine learning and evaluation. Mova: частково є (separate teacher, training, and assessment paths). A compressed GPU-parser inference result should not authorize the same arithmetic during training. The paper’s learning experiments show that the protected subset may need to change. Why Mova: scope-specific validation would prevent a successful deployment optimization from entering learning without evidence.
Idea: Explain deterministic comparisons without overstating certainty. Where: “Checklist,” discussion of error bars. Area: statistics. Mova: вже є (fixed seeds, repeated-result checks, and deterministic native inference). The paper explains why repeating the same deterministic conversion does not create new experimental variation. Mova can retain identical-run checks while separately identifying variation across datasets, independently trained parameters, and task families. Reproducibility and coverage answer different questions.
Idea: Preserve semantics while changing representation. Where: “Int8 Matrix Multiplication with 16-bit Float Inputs and Outputs.” Area: interfaces. Mova: частково є (typed groupant observations and explicit worker interfaces). A prospective quantized operator could expose the same input and output types while declaring its changed numerical contract internally. Why Mova: a stable interface would make reference comparisons and substitution possible without hiding approximation assumptions.
Idea: Measure accessibility independently of acceleration. Where: “Broader Impacts” and “End-to-end benchmarks.” Area: resource evaluation. Mova: частково є (resource-aware jobs and measured storage). A smaller memory requirement can enable a task even when elapsed time does not improve. Mova could report the workloads that become runnable separately from speed claims. Why Mova: resource-constrained users need to know whether an operation fits, as well as how quickly it finishes.
Idea: Use structural hypotheses to guide measurement, not to replace it. Where: “Measuring the Effect of Outlier Features,” discussion of floating-point instability. Area: scientific reasoning. Mova: частково є (source-bound evidence, gaps, and reviewed learning proposals). The authors distinguish their instability hypothesis from the demonstrated inference results. Mova could preserve the same boundary when a plausible mechanism suggests a new rule or optimization. Why Mova: a convincing explanation should generate a test rather than become admitted knowledge by itself.
The problem and its context
A checkpoint can be available but impractical to run
Training and inference place different demands on a researcher. Once training has finished, a checkpoint can be distributed, but using it still requires storing and accessing its learned parameters. Larger transformers can therefore remain beyond reach even when their weights are publicly released.
The authors target the transformations that dominate that storage. For transformers at or above 6.7B parameters, they attribute 95% of parameters to feed-forward layers and attention projections. The same operations account for 65-85% of computation in the work they cite. Most remaining parameters belong to embeddings, with a smaller contribution from normalization and biases.
This concentration makes linear transformations an attractive intervention point. Reducing their representation width affects much of the checkpoint without requiring every operation to be redesigned. The paper focuses on the learned projection matrices around attention, together with feed-forward transformations. It leaves the attention function itself outside the integer method.
The objective is demanding because memory reduction alone does not establish usefulness. A compressed checkpoint that loses the predictive benefit of its original size may be a poor substitute. LLM.int8() therefore evaluates whether numerical conversion preserves the quality that made the larger checkpoint valuable.
Earlier low-precision work had narrower evidence
The paper describes much transformer quantization research as centered on BERT and RoBERTa. These are masked-language architectures, whereas the main experiments here concern autoregressive prediction.
Among the earlier approaches, the authors discuss Q8BERT, QBERT, and product quantization with quantization noise. They also identify more aggressive representations and work combining quantization with pruning. Their account emphasizes that making these systems usable frequently involves quantization-aware adjustment or a post-training procedure.
The introduction characterizes the existing evidence as mostly below 350M parameters. The unresolved question is whether a checkpoint with billions of parameters can be converted directly while retaining predictive quality. That scale changes both the amount of storage involved and the distribution of internal values.
The paper does not claim that assigning scales to rows and channels was newly invented. Its appendix relates vector-wise multiplication to channel-wise convolutional quantization combined with row normalization. It also acknowledges earlier matrix-multiplication use for BERT-sized systems. Its contribution is the large-scale autoregressive investigation and the additional decomposition required when that normalization becomes insufficient.
Why unusual features obstruct ordinary quantization
Quantization maps a broad set of real-valued quantities onto a restricted collection of representable values. A shared scale determines which real-valued differences remain distinguishable. If a rare large value forces the scale to cover a wide interval, smaller values may collapse onto the same integer.
The relevant exceptional values are structured. They recur in specific hidden-state coordinates across many positions. This differs from scattered numerical noise: the same columns repeatedly determine the required range of many rows.
Their importance also rules out an easy shortcut. Removing them changes attention and greatly worsens language prediction. The numerical problem is therefore to retain their contribution without letting them dictate the resolution of the entire integer computation.
This connects an engineering objective with interpretability. Identifying the distribution of internal values is useful because it reveals where an approximation fails. Intervening on those values then tests whether the proposed explanation corresponds to functional importance.
The authors place their analysis alongside earlier studies linking exceptional dimensions with layer normalization and token frequency. They extend that discussion by examining autoregressive systems across scale and by showing how the observed structure constrains integer multiplication.
Parallel approaches pursued finer partitions
The related-work discussion identifies nuQmm and ZeroQuant as parallel efforts. Both use group-wise quantization, assigning normalization more finely than the vector-wise scheme studied here. The authors describe that finer granularity as beneficial for precision, while requiring specialized CUDA implementations.
The largest checkpoints reported in their comparison are 2.7B for nuQmm and 20B for ZeroQuant. They credit ZeroQuant with preserving predictive performance for its 8-bit 20B setting. LLM.int8() therefore sits within an active effort to make larger transformers practical, rather than establishing that every competing approach fails.
Its particular contribution is to protect a measured exceptional structure explicitly. The paper presents this decomposition as compatible with finer-grained quantization. Better partitions and selective precision can address different aspects of the same numerical problem.
The method, step by step
Begin with the linear transformation
A hidden-state matrix contains one row per sequence position and one column per feature. A learned weight matrix maps those input features to output coordinates. Multiplication forms each output entry by combining one input row with one weight column.
The paper denotes the input shape by s × h and the weight shape by h × o. Here s represents sequence length, h the input feature width, and o the output width. The shared h axis is especially important: separating a feature requires selecting both its input column and the matching weight row.
The complete procedure retains floating-point inputs and outputs while replacing most of the central multiplication with integer arithmetic.
The computation inside an LLM.int8() linear layer
The steps in order.
The branches contribute to the same output matrix. This is decomposition of a calculation, instead of a choice between alternative predictions.
Map values into the integer range
The simpler background scheme is absolute-maximum quantization, or absmax. It chooses a multiplier from the largest magnitude in the quantization unit, then rounds scaled values into the interval [-127, 127].
X_i8 = round(127 · X_f16 / max_ij |X_f16,ij|) = round(s_x · X_f16)
X_f16 denotes the floating-point input matrix. X_i8 contains its integer representation. The indices i and j identify entries, and max_ij selects the largest absolute entry among those sharing the scale. The multiplier s_x is 127 divided by that magnitude. The operation round selects a nearest integer.
The infinity-norm expression in the paper denotes this same maximum-magnitude normalization. The practical consequence is straightforward: every value sharing the multiplier also shares the resolution chosen to accommodate the largest one.
Absmax is symmetric around zero. That symmetry is convenient, but it can leave part of the integer interval unused when the input values occupy only one side of zero.
Compare an asymmetric mapping
Zeropoint quantization uses an input’s minimum and maximum to describe its dynamic range. The paper gives the normalized range multiplier as:
nd_x = (2 · 127) / (max_ij X_f16,ij − min_ij X_f16,ij)
The quantity nd_x is the scaling multiplier for X_f16. The maximum and minimum are taken over entries sharing the quantization unit. Their difference measures the occupied real-valued interval.
The accompanying offset is intended to let an asymmetric distribution use the available integer range more fully. For example, the authors discuss non-negative activations: a symmetric representation otherwise reserves negative integer values for data that never appear.
The background presentation writes its zeropoint expression as follows:
zp_x_i16 = round(X_f16 · min_ij X_f16,ij)
Here zp_x_i16 names the offset associated with the quantized input. X_f16 is the matrix, and the minimum is a scalar selected from that matrix. This displayed expression is dimensionally ambiguous as a definition of a single offset: multiplying a matrix by its minimum does not itself identify a scalar zeropoint. The intended role of an accompanying offset is clearer in the subsequent multiplication equations. LLM.int8() ultimately uses absmax for its ordinary path, so this background ambiguity does not define its core algorithm.
The scaled integer values are displayed separately:
X_i8 = round(nd_x · X_f16)
X_i8 is the rounded integer matrix, and nd_x is the dynamic-range multiplier. The paper handles the offset in the arithmetic operation rather than explicitly including it in this displayed mapping.
For individual operands, the described multiplication is:
C_i32 = (A_i8 + zp_a_i16) · (B_i8 + zp_b_i16)
A_i8 and B_i8 are integer operands. Their offsets are zp_a_i16 and zp_b_i16. C_i32 is accumulated using the wider integer representation indicated by its suffix.
The paper explains that an implementation without the combined instruction must expand this calculation:
C_i32 = A_i8 · B_i8 + A_i8 · zp_b_i16 + B_i8 · zp_a_i16 + zp_a_i16 · zp_b_i16
The symbols retain their previous meanings. The first product is the direct Int8 multiplication. The remaining terms correct for the offsets using wider arithmetic. This additional work explains why improved representational efficiency does not necessarily mean faster execution.
Reconstruct the result after multiplication
Integer multiplication produces a result in scaled units. Returning to floating-point units requires undoing the operand multipliers.
C_f16 = X_f16 · W_f16 ≈ C_i32 / (c_x · c_w) = S · C_i32 ≈ S · Q(X_f16) · Q(W_f16)
W_f16 is the learned weight matrix, and C_f16 is the floating-point output of the original transformation. Q denotes the chosen quantizer. C_i32 is the accumulated product of quantized operands. The input and weight multipliers are c_x and c_w; S is their reciprocal product.
The approximation signs acknowledge rounding error. Rescaling restores units, but it cannot recover distinctions already discarded during quantization. The method must therefore control which distinctions are lost.
The floating-point interface is useful because later operations can consume the reconstructed result without requiring a fully integer transformer. This is also why quantization and dequantization overhead belong in the performance assessment.
Refine the scale for each contributing vector
Vector-wise quantization attaches a separate multiplier to every input row and every weight column. The reconstruction scale for an output entry combines the two multipliers belonging to its operands.
C_f16 ≈ C_i32 / (c_x ⊗ c_w) = S ⊙ C_i32 ≈ S ⊙ [Q(X_f16) · Q(W_f16)]
The vectors c_x and c_w contain input-row and weight-column multipliers. Their outer product, written ⊗, creates a matrix of paired multipliers. Division is entry-wise. S contains the corresponding reciprocal values, and ⊙ indicates entry-wise multiplication. The bracketed product is ordinary matrix multiplication between quantized operands.
This arrangement prevents an extreme value in one weight column from choosing the scale for every other column. Different input rows can also adapt independently. The reconstruction metadata follows the inner products that generate the output.
However, repeated exceptional feature columns remain difficult. If such a column contains large values across many token positions, many input rows still inherit a wide range. Refining the row scales does not isolate the troublesome feature axis.
Redirect exceptional dimensions
Mixed-precision decomposition changes the set of values exposed to integer quantization. The method identifies feature coordinates containing a magnitude above threshold α and collects their indices in O. The authors use α = 6.0 for the reported inference procedure.
The resulting multiplication can be expressed as:
C_f16 ≈ Σ_(k∈O) X_f16[:,k] · W_f16[k,:] + S_f16 ⊙ Σ_(k∉O) X_i8[:,k] · W_i8[k,:]
The index k traverses input features. O is the selected exceptional set. X[:,k] identifies an input feature column, and W[k,:] its corresponding weight row. The first sum calculates the exceptional contribution with floating-point operands. The second calculates the contribution of all remaining features with integer operands. S_f16 restores the ordinary branch’s scales.
Protecting whole dimensions fits the observed recurrence. A dimension can contain many exceptional occurrences, yet selecting it once isolates their contribution along the multiplication’s shared axis.
For the feature study through 13B parameters, the authors report that the selected set contains no more than 7 dimensions. They estimate roughly 0.1% additional memory for this protection. The feasibility of the method depends on that concentration: expensive treatment remains limited even when exceptional occurrences are numerous.
Distinguish conversion from descriptive analysis
The inference procedure starts with pretrained parameters. It does not learn replacement weights or require another optimization stage to repair conversion damage. The implementation performs quantization and the selective calculation around existing linear transformations.
The paper’s feature-analysis criteria have a different purpose. To characterize recurring dimensions, the authors require magnitude at least 6.0, occurrence in at least 25% of layers, and presence in at least 6% of sequence positions. These persistence filters select an interpretable subset for analysis.
The runtime decomposition does not require those same cross-layer persistence conditions. It selects dimensions from exceptional magnitudes in the input being processed. Confusing the two procedures would turn a descriptive sampling rule into an unwarranted deployment requirement.
The analysis thresholds are empirical. The authors choose persistence conditions that retain a recurring feature in their smallest checkpoint while excluding much rarer alternatives. Their magnitude choice is connected to the disappearance of perplexity degradation under decomposition. These choices are measured operating decisions, rather than universal constants.
Experiments and results
What the predictive experiments measure
The language-prediction study evaluates dense autoregressive checkpoints ranging from 125M to 13B parameters. These were pretrained using fairseq. Their training material includes English Wikipedia and Books, alongside CC-News and OpenWebText. The authors additionally name CC-Stories and English CC100.
Conversion quality is assessed on C4 validation text. C4 is associated with the text-to-text transfer-learning work and derives from Common Crawl. The authors use NVIDIA A40 GPUs for this evaluation.
The metric is perplexity: a measure of predictive probability assigned to observed text, with lower values indicating better prediction. It is sensitive to changes in probabilities even when the most likely token remains unchanged. That makes it useful for identifying numerical degradation.
The second predictive study uses OPT and the EleutherAI evaluation harness. Its headline comparison averages zero-shot accuracy across PIQA and LAMBADA, together with WinoGrande and HellaSwag. This tests task behavior without adapting each checkpoint to those tasks during the comparison.
These evaluations answer related but distinct questions. Perplexity examines the quality of the probability distribution over text. Zero-shot accuracy examines whether converted computation preserves successful task decisions.
Which quantizers survive increasing scale
The C4 comparisons include tensor-wise absmax, row-wise quantization, and asymmetric zeropoint schemes. Vector-wise quantization tests whether scales aligned with both operands are sufficient. LLM.int8() adds the separate exceptional-dimension calculation.
The authors report that several ordinary schemes stop benefiting from greater checkpoint size after 2.7B parameters. In that regime, a larger quantized checkpoint can have worse perplexity than a smaller one. Zeropoint quantization remains effective longer, but it also fails beyond 6.7B in the reported scaling comparison.
Vector-wise quantization preserves predictive performance through 2.7B parameters. At larger scales, its input-row normalization remains exposed to exceptional feature columns. The complete method preserves the C4 behavior through the tested 13B endpoint.
The paper’s prose describes these trends but does not state the individual numerical cells of the C4 comparison. An exact perplexity chart would therefore imply unsupported precision. The supported result is the direction of the comparisons and the difference between normalization alone and normalization with decomposition.
In the OPT study, LLM.int8() matches the measured 16-bit accuracy across checkpoints from 125M through 175B parameters. The absmax vector-wise baseline deteriorates strongly and approaches random task behavior. This extends the predictive evidence beyond the sizes used for the detailed C4 and feature analyses.
The distinction between those experimental ranges matters. The paper demonstrates useful behavior at the largest OPT scale, but its most detailed numerical explanation is developed on smaller systems. The larger demonstration tests whether the procedure remains effective, instead of repeating every internal analysis.
What removing the exceptional coordinates does
The authors directly intervene on hidden states to test whether unusual magnitudes identify important information. In the attention experiment, they remove selected coordinates before the projection layers and measure the largest softmax probability.
Feature-removal experiment, approximate mean leading attention probability
The unmodified setting retains a substantially stronger leading attention probability.
The numbers
| System or setting | mean top-1 softmax probability % |
|---|---|
| Unmodified setting used as reference (this paper) | 40 |
| Exceptional feature dimensions set to zero | 20 |
The displayed values are approximate, as described in the paper. This is an attention statistic, not a downstream accuracy score. A lower leading probability indicates a change in the concentration of the attention distribution; its connection to predictive importance is strengthened by the separate perplexity intervention.
For that second intervention, altered hidden states are allowed to affect subsequent computation. Removing exceptional dimensions increases validation perplexity by 600-1000%. Removing random dimensions instead produces about 0.1% perplexity degradation.
These results reject the interpretation that the large values are merely expendable numerical anomalies. Their contribution must survive compression. The successful decomposition then shows a practical way to preserve it while quantizing most other values.
Memory savings and executable configurations
Most values remain in the lower-precision branch. The authors describe an approximately 50% memory reduction relative to the targeted 16-bit representation, with BLOOM-176B yielding a measured 1.96x footprint reduction.
The practical deployment claim is that OPT-175B and BLOOM-176B become runnable on a single server equipped with consumer GPUs. This addresses a capacity barrier: a checkpoint that previously exceeded available memory can now be used.
That claim should be distinguished from compressing every inference object. The method targets learned linear transformations and retains floating-point treatment elsewhere. Its reported footprint incorporates the implementation’s scales and exceptional handling; it is more informative than assuming that the entire application shrinks according to the operand width alone.
The authors also test configurations that exploit reduced memory through fewer GPUs or larger batches. These choices change what can be executed, even when they do not lower the time required for each generated token.
Runtime changes with matrix size and accounting scope
The matrix benchmarks show that integer arithmetic needs sufficiently large operations to occupy the GPU effectively. The appendix places this favorable regime at a model dimension of 4096 or above.
For a model dimension of 5140 and hidden width 20,560, raw Int8 multiplication is described as two times faster than the comparison using cuBLAS. Including quantization and reconstruction reduces the reported speedup to 1.6x. The extra stages consume part of the arithmetic advantage.
At dimensions of 2560 or smaller, the measured procedure is slower. Mixed-precision decomposition adds further overhead; the detailed appendix discussion identifies speedups after that addition only for the 13B and 175B settings.
Kernel choice also matters. The authors report that their custom quantization kernels perform better than combinations relying on default PyTorch and NVIDIA-provided operations. Their proposed decomposition remains an opportunity for additional kernel optimization, instead of a cost-free adjustment.
Complete BLOOM-176B generation tells a more restrained story. Hugging Face inference uses cached attention values and distributed execution. Communication accounts for part of the elapsed time, so faster local arithmetic changes only part of the application.
The resulting integer configuration is slightly slower overall, while remaining close to the reference’s per-token latency. The primary demonstrated benefit is therefore memory access to a large checkpoint. Arithmetic acceleration is real under favorable conditions, but it does not become a general generation-speed claim.
What the ablations show
Normalization and selective precision address separate errors
The paper offers component comparisons, interventions, and descriptive analyses rather than relying on a single headline score. Together they explain why the combined procedure is useful.
Vector-wise normalization improves the precision of individual inner products. Its benefit before the strongest exceptional-feature regime shows that coarse scaling is already a problem. Larger inputs and weights require more careful allocation of the available integer levels.
Decomposition addresses a different failure. It prevents exceptional feature columns from setting the range of ordinary input values. This changes which coordinates enter the quantizer, rather than merely changing the scale assigned to an unchanged matrix.
Even after decomposition, vector-wise quantization remains better than row-wise quantization. The authors interpret this as evidence that weight precision still matters. Protecting exceptional input coordinates does not eliminate the need to represent the remaining weight columns carefully.
The complete method thus combines two mechanisms with distinct roles. An account that attributes all success to the high-precision branch would overlook the surviving advantage of vector-wise scaling.
Why asymmetric quantization helps before decomposition
Most exceptional feature distributions are one-sided: their values remain positive or remain negative across the sequence dimension. Symmetric absmax then devotes some available levels to a region containing little or no data.
Zeropoint quantization uses the occupied interval more efficiently. This explains why it remains useful beyond the point where symmetric alternatives become unreliable. The baseline comparison is evidence about distribution shape as well as numerical accuracy.
However, this advantage does not persist indefinitely. At 13B parameters, exceptional magnitudes and accumulated error still cause degradation. More efficient use of a fixed integer range cannot guarantee adequate precision for arbitrarily broad distributions.
Once decomposition removes the problematic coordinates, the benefit of asymmetric mapping disappears. In the authors’ interpretation, this indicates that the values left over have enough symmetry for absmax. Their final design therefore avoids offset-related arithmetic where it no longer improves predictive behavior.
The removal control separates rarity from importance
Exceptional dimensions account for only a small share of input coordinates, but their removal causes large changes. Rarity alone is consequently a poor guide to which information can be discarded.
The attention experiment isolates effects within each layer. Regular outputs continue through the remaining computation, preventing earlier interventions from contaminating later measurements. This makes the observed attention change easier to attribute to the local missing coordinates.
The perplexity experiment deliberately allows the intervention to propagate. It measures how the disturbance affects the full predictive calculation. This captures consequences that an isolated internal statistic cannot establish.
Removing 7 random dimensions provides the comparison. The leading attention probability falls by only 0.02-0.3%, and perplexity rises by about 0.1%. The targeted dimensions are therefore unusually influential under the chosen intervention.
These experiments do not establish that every ordinary feature can be removed harmlessly. They show that the selected exceptional set is much more consequential than a similarly sized random set.
A sharp boundary becomes smoother under another measurement
Organized by parameter count, exceptional-feature prevalence changes sharply between 6B and 6.7B. The share of affected layers moves from 65% to 100%, while affected sequence positions move from 35% to 75%.
That change coincides with the failure of ordinary quantization. It helps explain why increasing checkpoint size can abruptly undermine a procedure that worked on smaller systems.
The same observations look different when arranged by C4 perplexity. The authors describe a smoother exponential relationship as predictive quality improves. Exceptional-feature counts increase monotonically with decreasing perplexity in the analyzed collection, while the relationship with parameter count is not monotonic.
This supports a more cautious interpretation of emergence. The observed parameter boundary is not established as a universal threshold for all transformers. Achieved predictive quality may summarize influences that parameter count alone misses.
The authors point to training-data quantity and quality as possible additional factors, drawing on work including Training Compute-Optimal Large Language Models. Their analysis does not independently manipulate those factors, so it cannot identify each factor’s causal contribution.
The concentration is structural, not just numerical
At a sequence length of 2048, the 6.7B example contains about 150k exceptional occurrences across the transformer, but only 6 distinct hidden coordinates account for them. The analytical distinction is between repeated events and unique feature dimensions.
That concentration explains why a small protected branch can handle a widespread phenomenon. Counting every occurrence as an unrelated exception would make the problem appear much less sparse than it is along the shared feature axis.
The appendix describes ordinary feature magnitudes as usually within [-3.5, 3.5], while exceptional magnitudes can be 3-20x larger. The resulting range mismatch provides a concrete reason for loss of integer resolution.
The paper also hypothesizes a connection to floating-point training instability. It discusses products involving magnitudes of 60 and the stated floating-point limit of 65,535. This is a proposed explanation requiring further investigation, instead of a demonstrated cause of training failures.
Software checks broaden the evidence
The authors examine four GPT-2 checkpoints using OpenAI software and five Meta AI checkpoints using fairseq. They additionally include GPT-J, associated with Tensorflow-Mesh.
Inference analysis uses both fairseq and Hugging Face Transformers. Seeing the phenomenon across these implementations reduces the likelihood that it arises from a single code path.
The appendix also describes persistence under variations involving rotary embeddings, embedding normalization, residual scaling, and initialization. These observations strengthen the case that the pattern is not narrowly tied to one implementation choice.
They remain empirical coverage checks. Their breadth supports the explanation within the tested collection, but does not prove that every architecture will develop identical exceptional coordinates.
Learning requires a different protected computation
The exploratory training experiments compare integer configurations with 32-bit references. They vary feed-forward computation, attention projections, and the attention function.
For language prediction, the attention-projection setting degrades the 1.1B system but not the 209M setting. Translation experiments on WMT14+WMT16 also show degradation. Mixed-precision decomposition improves some outcomes slightly without generally restoring the reference.
The translation metric is BLEU, reported as the median across three random seeds. The language-training material includes Books and OpenWebText, together with CC-News and CC-Stories.
Fine-tuning uses RoBERTa-large on GLUE and reports median performance over 5 random seeds. Integer feed-forward layers retain performance in this setting. Including attention projections requires a larger protected subset: at least the top 2% of dimensions by magnitude receive 16-bit treatment.
This finding limits a direct transfer from inference. The successful inference decomposition does not establish sufficient numerical protection while parameters are changing. Selective precision remains useful, but its allocation is specific to the task and optimization regime.
Limitations
Boundaries stated by the authors
The numerical format is the first explicit limitation. The work evaluates Int8 rather than FP8. The explanation draws on hardware support available at the time of the study, so its historical observation should not be interpreted as asserting anything about subsequent devices.
The authors expect some insights to transfer to floating-point alternatives, but they do not test that expectation. Different exponent and fraction allocations change numerical error, so the Int8 evidence does not establish the best representation for another datatype.
Scale is another stated boundary. The main predictive demonstration reaches 175B parameters, while BLOOM-176B supplies additional deployment and runtime evidence. The authors acknowledge that larger systems might develop properties that disrupt their procedure.
The attention function remains outside the integer multiplication method. Its lack of learned parameters makes it less central to the paper’s storage objective, but it still contributes computation. Preliminary investigation suggests that converting it would require additional techniques.
Training and fine-tuning also remain unresolved beyond the exploratory findings. The appendices contain meaningful tests, so learning is not wholly absent from the paper. Those tests expose degradation and do not establish a general low-precision learning solution.
What benchmark preservation does not establish
A careful reading must separate preserved predictive metrics from identical arithmetic. The equations contain approximations because quantization discards distinctions. Matching validation perplexity or task accuracy does not imply equality of every output probability.
It also does not imply identical generated text for every possible input. A numerical change can leave an aggregate metric stable while altering particular decisions. The paper establishes performance preservation under its evaluations, rather than universal equivalence between representations.
The detailed feature study reaches 13B parameters. Its dimension counts and persistence measurements therefore have narrower direct coverage than the largest OPT accuracy experiment. Success at the larger scale supports the method’s use, but does not automatically supply the same internal characterization there.
The magnitude threshold is empirical. A value of 6.0 works for the reported inference procedure, but the experiments do not prove that it is optimal for every architecture or distribution. The analysis thresholds likewise organize a particular investigation.
This matters because the method depends on a small exceptional set. If another system spreads influential extremes across many dimensions, preserving them could cost more memory and computation. The paper does not establish a universal bound on that set.
What the intervention can explain
Zeroing a feature is a strong perturbation. Quantization usually introduces smaller changes instead of removing a coordinate’s contribution entirely. The removal experiment establishes importance, but it does not provide a complete quantitative relationship between rounding error and predictive damage.
The combined evidence is stronger than the intervention alone. Ordinary quantization fails where exceptional features become widespread, and selectively protecting those features restores measured quality. Together these observations support the proposed mechanism.
Even so, the paper does not establish that exceptional coordinates explain every difficulty in low-precision transformers. Its attention and training results already indicate additional obstacles.
The relationship with perplexity also remains observational. Rearranging measurements by predictive quality produces a smoother trend, but does not isolate training data, architecture, or optimization as independent causes. The authors’ broader interpretation is plausible without being a controlled causal decomposition.
What the runtime evidence can support
Raw multiplication benchmarks isolate a favorable primitive. An application additionally pays for quantization, decomposition, reconstruction, and communication. The paper measures these distinctions, and its full-generation result is correspondingly modest.
The evaluated kernel implementations also influence the outcome. The authors identify opportunities for more specialized decomposition kernels. That observation motivates future engineering; it is not evidence of a speedup already achieved.
Memory access and speed should therefore be assessed separately. Fitting a large checkpoint into available devices is a substantial practical result even when each generated token takes slightly longer.
The footprint result likewise applies to the measured implementation. It does not establish an identical reduction for every batch arrangement, sequence length, or object retained during generation. The method compresses its targeted learned transformations, instead of every source of memory consumption.
Reproducibility, uncertainty, and access
For the main inference experiments, the authors explain that each checkpoint’s conversion and evaluation are deterministic. Repeating the identical procedure would not create independent variation, so they compare checkpoints at different scales and do not report repeated-run error bars.
That establishes reproducibility of the measured operation, but not uncertainty across independently trained checkpoints with the same nominal configuration. The exploratory learning experiments use repeated seeds because optimization introduces a different source of variation.
The broader-impact discussion also recognizes that lower resource requirements do not determine who benefits. Researchers with limited hardware may gain access, while organizations already owning many GPUs can increase deployment capacity. The numerical method alone cannot establish that resource disparities will shrink.
What came after
A documented transfer with different arithmetic
The clearest implementation connection identified by the authors is GLM-130B. They describe it as parallel work using insights from their analysis to obtain performance-preserving 8-bit quantization.
Its arithmetic choice differs. The paper states that GLM-130B retains 16-bit matrix multiplication while storing weights with 8-bit values. This is an important distinction: a reduced storage format does not require direct integer multiplication.
The transfer therefore concerns a diagnosis and a design opportunity, rather than necessarily the complete LLM.int8() procedure. Understanding which quantities resist compression can inform systems that place the low-precision boundary elsewhere.
Subsequent quantization work addresses additional regimes
GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers belongs to the citing quantization literature. Its title identifies post-training conversion of generative transformers as its subject, placing it close to the practical deployment question of LLM.int8(). The citation relationship does not by itself specify which normalization or exceptional-feature mechanisms it adopts.
QLoRA: Efficient Finetuning of Quantized LLMs moves the stated objective towards fine-tuning quantized checkpoints. That is a natural neighboring question because the original paper’s learning experiments show that inference success does not settle optimization. Its title supports this connection in scope, without establishing that its procedure uses the same exceptional set.
OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models foregrounds calibration. It represents a later citing approach to the broader task of choosing effective low-precision representations. A specific claim about inherited decomposition or comparative accuracy would require evidence beyond the citation and title.
LLM-QAT: Data-Free Quantization Aware Training for Large Language Models identifies quantization-aware training as its setting. It addresses the interaction between learning and numerical representation, a boundary that LLM.int8() explicitly leaves open. This is a different intervention point from immediate conversion for inference.
These works illustrate several research directions around the same resource problem. Post-training procedures, calibration, and learning-time adaptation should not be treated as interchangeable implementations of one method.
Attention-cache compression targets another memory object
KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantization names the key–value cache as its compression target. KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache likewise focuses on cache representation.
Their stated subjects extend memory optimization beyond learned parameter matrices. This distinction matters because LLM.int8() prioritizes transformations that dominate parameter storage and does not solve integer attention generally.
The paper’s transferable lesson is to examine the distribution and functional role of the object being compressed. It does not establish that cached attention values share the same exceptional-coordinate pattern as the hidden states in its multiplication study.
Likewise, the presence of “asymmetric” in KIVI’s title does not establish a direct implementation inheritance from the zeropoint comparison here. It identifies a related representation choice, while the compressed object and procedure require their own evidence.
Serving research broadens the system objective
FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU names throughput under a restricted device configuration as its objective. Its subject connects naturally with the access problem that motivates LLM.int8(), while placing that problem within a larger execution system.
Splitwise: Efficient generative LLM inference using phase splitting identifies execution phases as an organizational choice. Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Serve makes the relationship between throughput and latency explicit.
The original paper’s benchmarks explain why these system concerns matter alongside numerical representation. Reducing parameter memory, accelerating multiplication, and improving complete generation are different objectives. Communication and preparation can limit the application even when arithmetic becomes cheaper.
The listed citations establish that these works engage with the surrounding research. They do not establish particular combinations with bitsandbytes or a shared exceptional-feature implementation.
Compression is broader than quantization
SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shot and LLM-Pruner: On the Structural Pruning of Large Language Models identify pruning as their subject. Their connection is the broader effort to reduce the resources needed by large checkpoints.
The distinction from LLM.int8() is conceptual. This paper preserves the contribution of exceptional coordinates while changing the representation used for most arithmetic. Pruning, as named in those titles, concerns removing parts of a system. Their citation relationship does not establish that the same features should be removed, or that the outlier-removal experiment serves as a pruning recipe.
That caution follows directly from the original intervention: a small coordinate set can matter greatly. Compression decisions require evidence about consequences, whether the proposed change removes information or represents it with fewer distinctions.
A reference point in broader accounts
Later citing works also include A Survey of Large Language Models and A Comprehensive Overview of Large Language Models. Technical reports such as Qwen and The Falcon Series of Open Language Models place it within wider discussions of large-transformer development.
Those citations should not be read as proof that every reported system deploys LLM.int8(). A work can cite a numerical baseline, an observed phenomenon, or a resource-management contribution without adopting the full implementation.
The contribution that these connections make available is precise: numerical compression benefits from understanding where important information resides. LLM.int8() measures a concentrated source of difficulty, demonstrates its functional significance, and reorganizes multiplication around it. Its continuing relevance lies in that combination of diagnosis, selective computation, and evaluation at both the predictive and system levels.
Cite
Cite as Tim Dettmers, Mike Lewis, Younes Belkada and Luke Zettlemoyer. 2022. LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale. arXiv:2208.07339.
@misc{dettmers2022llm,
title = {{LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale}},
author = {Tim Dettmers, Mike Lewis, Younes Belkada and Luke Zettlemoyer},
year = {2022},
doi = {10.48550/arxiv.2208.07339},
eprint = {2208.07339},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2208.07339}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/dettmers-2022-llm-int8-8-bit-matrix/
References
- Artetxe, M., Bhosale, S., Goyal, N., Mihaylov, T., Ott, M., Shleifer, S., Lin, X. V., Du, J., Iyer, S., Pasunuru, R., et al. (2021). Efficient large scale language modeling with mixtures of experts. arXiv preprint arXiv:2112.10684. our card
- Bai, H., Zhang, W., Hou, L., Shang, L., Jin, J., Jiang, X., Liu, Q., Lyu, M. R., and King, I. (2021). Binarybert: Pushing the limit of bert quantization. ArXiv, abs/2012.15701. our card
- Bondarenko, Y., Nagel, M., and Blankevoort, T. (2021). Understanding and overcoming the challenges of efficient transformer quantization. arXiv preprint arXiv:2109.12948. our card
- Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. (2020). Language models are few-shot learners. arXiv preprint arXiv:2005.14165. our card
- Cambier, L., Bhiwandiwalla, A., Gong, T., Elibol, O. H., Nekuii, M., and Tang, H. (2020). Shifted and squeezed 8-bit floating point format for low-precision training of deep neural networks. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net. OpenAlex ↗ · Scholar ↗
- Chen, J., Gai, Y., Yao, Z., Mahoney, M. W., and Gonzalez, J. E. (2020). A statistical framework for low-bitwidth training of deep neural networks. Advances in Neural Information Processing Systems, 33:883–894. OpenAlex ↗ · Scholar ↗
- Choi, J., Venkataramani, S., Srinivasan, V., Gopalakrishnan, K., Wang, Z., and Chuang, P. (2019). Accurate and efficient 2-bit quantized neural networks. In Talwalkar, A., Smith, V., and Zaharia, M., editors, Proceedings of Machine Learning and Systems 2019, MLSys 2019, Stanford, CA, USA, March 31 - April 2, 2019. mlsys.org. OpenAlex ↗ · Scholar ↗
- Courbariaux, M. and Bengio, Y. (2016). Binarynet: Training deep neural networks with weights and activations constrained to +1 or -1. CoRR, abs/1602.02830. OpenAlex ↗ · Scholar ↗
- Courbariaux, M., Bengio, Y., and David, J. (2015). Binaryconnect: Training deep neural networks with binary weights during propagations. In Cortes, C., Lawrence, N. D., Lee, D. D., Sugiyama, M., and Garnett, R., editors, Advances in Neural Information Processing Systems 28: Annual Conference on Neural Information Processing Systems 2015, December 7-12, 2015, Montreal, Quebec, Canada, pages 3123–3131. our card
- Courbariaux, M., Bengio, Y., and David, J.-P. (2014). Training deep neural networks with low precision multiplications. arXiv preprint arXiv:1412.7024. OpenAlex ↗ · Scholar ↗
- Dettmers, T., Lewis, M., Shleifer, S., and Zettlemoyer, L. (2022). 8-bit optimizers via block-wise quantization. 9th International Conference on Learning Representations, ICLR. our card
- Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. (2018). Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805. our card
- Dong, Z., Yao, Z., Gholami, A., Mahoney, M. W., and Keutzer, K. (2019). Hawq: Hessian aware quantization of neural networks with mixed-precision. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 293–302. OpenAlex ↗ · Scholar ↗
- Esser, S. K., McKinstry, J. L., Bablani, D., Appuswamy, R., and Modha, D. S. (2019). Learned step size quantization. arXiv preprint arXiv:1902.08153. OpenAlex ↗ · Scholar ↗
- Fan, A., Stock, P., Graham, B., Grave, E., Gribonval, R., Jegou, H., and Joulin, A. (2020). Training with quantization noise for extreme model compression. arXiv preprint arXiv:2004.07320. OpenAlex ↗ · Scholar ↗
- Gao, J., He, D., Tan, X., Qin, T., Wang, L., and Liu, T.-Y. (2019). Representation degeneration problem in training natural language generation models. arXiv preprint arXiv:1907.12009. our card
- Gao, L., Tow, J., Biderman, S., Black, S., DiPofi, A., Foster, C., Golding, L., Hsu, J., McDonell, K., Muennighoff, N., Phang, J., Reynolds, L., Tang, E., Thite, A., Wang, B., Wang, K., and Zou, A. (2021). A framework for few-shot language model evaluation. OpenAlex ↗ · Scholar ↗
- Gholami, A., Kim, S., Dong, Z., Yao, Z., Mahoney, M. W., and Keutzer, K. (2021). A survey of quantization methods for efficient neural network inference. arXiv preprint arXiv:2103.13630. OpenAlex ↗ · Scholar ↗
- Gokaslan, A. and Cohen, V. (2019). Openwebtext corpus. urlhttp://Skylion007. github. io/OpenWebTextCorpus. OpenAlex ↗ · Scholar ↗
- Gong, R., Liu, X., Jiang, S., Li, T., Hu, P., Lin, J., Yu, F., and Yan, J. (2019). Differentiable soft quantization: Bridging full-precision and low-bit neural networks. In 2019 IEEE/CVF International Conference on Computer Vision, ICCV 2019, Seoul, Korea (South), October 27 - November 2, 2019, pages 4851–4860. IEEE. OpenAlex ↗ · Scholar ↗
- Henighan, T., Kaplan, J., Katz, M., Chen, M., Hesse, C., Jackson, J., Jun, H., Brown, T. B., Dhariwal, P., Gray, S., et al. (2020). Scaling laws for autoregressive generative modeling. arXiv preprint arXiv:2010.14701. our card
- Hoffmann, J., Borgeaud, S., Mensch, A., Buchatskaya, E., Cai, T., Rutherford, E., Casas, D. d. L., Hendricks, L. A., Welbl, J., Clark, A., et al. (2022). Training compute-optimal large language models. arXiv preprint arXiv:2203.15556. our card
- Ilharco, G., Ilharco, C., Turc, I., Dettmers, T., Ferreira, F., and Lee, K. (2020). High performance natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: Tutorial Abstracts, pages 24–27, Online. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Jin, Q., Ren, J., Zhuang, R., Hanumante, S., Li, Z., Chen, Z., Wang, Y., Yang, K., and Tulyakov, S. (2022). F8net: Fixed-point 8-bit only multiplication for network quantization. arXiv preprint arXiv:2202.05239. OpenAlex ↗ · Scholar ↗
- Khudia, D., Huang, J., Basu, P., Deng, S., Liu, H., Park, J., and Smelyanskiy, M. (2021). Fbgemm: Enabling high-performance low-precision deep learning inference. arXiv preprint arXiv:2101.05615. OpenAlex ↗ · Scholar ↗
- Kovaleva, O., Kulshreshtha, S., Rogers, A., and Rumshisky, A. (2021). Bert busters: Outlier dimensions that disrupt transformers. arXiv preprint arXiv:2105.06990. our card
- Li, R., Wang, Y., Liang, F., Qin, H., Yan, J., and Fan, R. (2019). Fully quantized network for object detection. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 2810–2819. Computer Vision Foundation / IEEE. OpenAlex ↗ · Scholar ↗
- Lin, Y., Li, Y., Liu, T., Xiao, T., Liu, T., and Zhu, J. (2020). Towards fully 8-bit integer inference for the transformer model. arXiv preprint arXiv:2009.08034. OpenAlex ↗ · Scholar ↗
- Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., and Stoyanov, V. (2019). Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692. our card
- Luo, Z., Kulmizev, A., and Mao, X. (2021). Positional artefacts propagate through masked language model embeddings. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 5312–5327, Online. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Macháček, M. and Bojar, O. (2014). Results of the wmt14 metrics shared task. In Proceedings of the Ninth Workshop on Statistical Machine Translation, pages 293–301. OpenAlex ↗ · Scholar ↗
- Mellempudi, N., Srinivasan, S., Das, D., and Kaul, B. (2019). Mixed precision training with 8-bit floating point. CoRR, abs/1905.12334. OpenAlex ↗ · Scholar ↗
- Nagel, S. (2016). Cc-news. OpenAlex ↗ · Scholar ↗
- Ott, M., Edunov, S., Baevski, A., Fan, A., Gross, S., Ng, N., Grangier, D., and Auli, M. (2019). fairseq: A fast, extensible toolkit for sequence modeling. arXiv preprint arXiv:1904.01038. our card
- Ott, M., Edunov, S., Grangier, D., and Auli, M. (2018). Scaling neural machine translation. arXiv preprint arXiv:1806.00187. our card
- Park, G., Park, B., Kwon, S. J., Kim, B., Lee, Y., and Lee, D. (2022). nuqmm: Quantized matmul for efficient inference of large-scale generative language models. arXiv preprint arXiv:2206.09557. OpenAlex ↗ · Scholar ↗
- Puccetti, G., Rogers, A., Drozd, A., and Dell'Orletta, F. (2022). Outliers dimensions that disrupt transformers are driven by frequency. arXiv preprint arXiv:2205.11380. OpenAlex ↗ · Scholar ↗
- Qin, H., Gong, R., Liu, X., Bai, X., Song, J., and Sebe, N. (2020). Binary neural networks: A survey. CoRR, abs/2004.03333. OpenAlex ↗ · Scholar ↗
- Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., and Sutskever, I. (2019). Language models are unsupervised multitask learners. OpenAI blog, 1(8):9. OpenAlex ↗ · Scholar ↗
- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., and Liu, P. J. (2019). Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv preprint arXiv:1910.10683. our card
- Rastegari, M., Ordonez, V., Redmon, J., and Farhadi, A. (2016). Xnor-net: Imagenet classification using binary convolutional neural networks. In Leibe, B., Matas, J., Sebe, N., and Welling, M., editors, Computer Vision - ECCV 2016 - 14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part IV, volume 9908 of Lecture Notes in Computer Science, pages 525–542. Springer. OpenAlex ↗ · Scholar ↗
- Sennrich, R., Haddow, B., and Birch, A. (2016). Edinburgh neural machine translation systems for wmt 16. arXiv preprint arXiv:1606.02891. our card
- Shazeer, N., Cheng, Y., Parmar, N., Tran, D., Vaswani, A., Koanantakool, P., Hawkins, P., Lee, H., Hong, M., Young, C., et al. (2018). Mesh-tensorflow: Deep learning for supercomputers. Advances in neural information processing systems, 31. our card
- Shen, S., Dong, Z., Ye, J., Ma, L., Yao, Z., Gholami, A., Mahoney, M. W., and Keutzer, K. (2020). Q-bert: Hessian based ultra low precision quantization of bert. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 8815–8821. OpenAlex ↗ · Scholar ↗
- Sun, X., Choi, J., Chen, C., Wang, N., Venkataramani, S., Srinivasan, V., Cui, X., Zhang, W., and Gopalakrishnan, K. (2019). Hybrid 8-bit floating point (HFP8) training and inference for deep neural networks. In Wallach, H. M., Larochelle, H., Beygelzimer, A., d'Alché-Buc, F., Fox, E. B., and Garnett, R., editors, Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 4901–4910. OpenAlex ↗ · Scholar ↗
- Timkey, W. and van Schijndel, M. (2021). All bark and no bite: Rogue dimensions in transformer language models obscure representational quality. arXiv preprint arXiv:2109.04404. our card
- Trinh, T. H. and Le, Q. V. (2018). A simple method for commonsense reasoning. arXiv preprint arXiv:1806.02847. our card
- Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., and Polosukhin, I. (2017). Attention is all you need. arXiv preprint arXiv:1706.03762. our card
- Wang, N., Choi, J., Brand, D., Chen, C., and Gopalakrishnan, K. (2018). Training deep neural networks with 8-bit floating point numbers. In Bengio, S., Wallach, H. M., Larochelle, H., Grauman, K., Cesa-Bianchi, N., and Garnett, R., editors, Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, December 3-8, 2018, Montréal, Canada, pages 7686–7695. OpenAlex ↗ · Scholar ↗
- Wei, X., Zhang, Y., Zhang, X., Gong, R., Zhang, S., Zhang, Q., Yu, F., and Liu, X. (2022). Outlier suppression: Pushing the limit of low-bit transformer language models. arXiv preprint arXiv:2209.13325. OpenAlex ↗ · Scholar ↗
- Wenzek, G., Lachaux, M.-A., Conneau, A., Chaudhary, V., Guzmán, F., Joulin, A., and Grave, E. (2020). CCNet: Extracting high quality monolingual datasets from web crawl data. In Proceedings of the 12th Language Resources and Evaluation Conference, pages 4003–4012, Marseille, France. European Language Resources Association. our card
- Wolf, T., Debut, L., Sanh, V., Chaumond, J., Delangue, C., Moi, A., Cistac, P., Rault, T., Louf, R., Funtowicz, M., et al. (2019). Huggingface's transformers: State-of-the-art natural language processing. arXiv preprint arXiv:1910.03771. our card
- Wu, H., Judd, P., Zhang, X., Isaev, M., and Micikevicius, P. (2020). Integer quantization for deep learning inference: Principles and empirical evaluation. arXiv preprint arXiv:2004.09602. OpenAlex ↗ · Scholar ↗
- Yao, Z., Aminabadi, R. Y., Zhang, M., Wu, X., Li, C., and He, Y. (2022). Zeroquant: Efficient and affordable post-training quantization for large-scale transformers. arXiv preprint arXiv:2206.01861. our card
- Yao, Z., Dong, Z., Zheng, Z., Gholami, A., Yu, J., Tan, E., Wang, L., Huang, Q., Wang, Y., Mahoney, M., et al. (2021). Hawq-v3: Dyadic neural network quantization. In International Conference on Machine Learning, pages 11875–11886. PMLR. OpenAlex ↗ · Scholar ↗
- Zafrir, O., Boudoukh, G., Izsak, P., and Wasserblat, M. (2019). Q8bert: Quantized 8bit bert. In 2019 Fifth Workshop on Energy Efficient Machine Learning and Cognitive Computing-NeurIPS Edition (EMC2-NIPS), pages 36–39. IEEE. our card
- Zeng, A., Liu, X., Du, Z., Wang, Z., Lai, H., Ding, M., Yang, Z., Xu, Y., Zheng, W., Xia, X., et al. (2022). Glm-130b: An open bilingual pre-trained model. arXiv preprint arXiv:2210.02414. our card
- Zhang, D., Yang, J., Ye, D., and Hua, G. (2018). Lq-nets: Learned quantization for highly accurate and compact deep neural networks. In Proceedings of the European conference on computer vision (ECCV), pages 365–382. OpenAlex ↗ · Scholar ↗
- Zhang, S., Roller, S., Goyal, N., Artetxe, M., Chen, M., Chen, S., Dewan, C., Diab, M., Li, X., Lin, X. V., et al. (2022). Opt: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068. our card
- Zhang, W., Hou, L., Yin, Y., Shang, L., Chen, X., Jiang, X., and Liu, Q. (2020). Ternarybert: Distillation-aware ultra-low bit bert. In EMNLP. our card
- Zhao, C., Hua, T., Shen, Y., Lou, Q., and Jin, H. (2021). Automatic mixed-precision quantization search of bert. arXiv preprint arXiv:2112.14938. OpenAlex ↗ · Scholar ↗
- Zhu, C., Han, S., Mao, H., and Dally, W. J. (2017). Trained ternary quantization. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net. OpenAlex ↗ · Scholar ↗
- Zhu, Y., Kiros, R., Zemel, R., Salakhutdinov, R., Urtasun, R., Torralba, A., and Fidler, S. (2015). Aligning books and movies: Towards story-like visual explanations by watching movies and reading books. In Proceedings of the IEEE international conference on computer vision, pages 19–27. our card