GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers
Paper · 2022 · Elias Frantar, Saleh Ashkboos, Torsten Hoefler et al.
Summary
Keeping a trained language model available for use can require more accelerator memory than an individual device provides. GPTQ investigates whether much of that storage can be removed without another training run. Its target is the numerical precision of the learned weights: the values multiplied by intermediate inputs throughout the network. The paper gives GPT3-175B as a motivating example, with FP16 parameters occupying 326GB when memory is counted in multiples of 1024. Reducing this footprint could change which hardware can run such a system, but only if the compressed weights preserve its predictions.
GPTQ makes rounding decisions using examples of the computation it wants to retain. For each linear layer, it records calibration inputs and tries to reproduce the original outputs using weights restricted to a small set of permitted values. Rounding introduces a disturbance. Instead of accepting each disturbance independently, GPTQ adjusts weights that have not yet been committed, allowing their later quantization choices to compensate. A matrix derived from input correlations tells the procedure how these adjustments interact. This is the paper’s use of second-order information: curvature of a local reconstruction objective, rather than curvature of the entire language-training objective.
The underlying compensation principle comes from Optimal Brain Quantization, or OBQ. GPTQ changes its organization so that the calculations become practical at much greater scale. All output rows follow a common column order, allowing them to share expensive matrix information. Corrections are accumulated within column blocks before larger updates are performed, improving accelerator utilization. A Cholesky factorization supplies the required inverse-Hessian information more reliably than repeated elimination updates. Using an A100 GPU with 80GB of memory, the authors can apply these changes together to quantize OPT-175B and BLOOM-176B in roughly four GPU hours.
Experiments span OPT and BLOOM variants ranging from 125M to 176B parameters. At 3-bit and 4-bit weight precision, GPTQ generally retains substantially better text-prediction performance than rounding each value independently to its nearest permitted level. Dividing weights into groups can improve accuracy further: for OPT-175B on WikiText2, the reported 3-bit perplexity changes from 8.68 with row-level quantization to 8.45 with group-size 1024. More aggressive settings become possible with smaller groups, although the information describing their grids increases actual storage beyond the nominal weight bitwidth.
The deployment study connects these numerical results to usable inference. With its embeddings and output layer retained in FP16, OPT-175B configured for 3-bit precision needs about 63GB of memory. The generation history needs approximately 9GB at the stated maximum of 2048 tokens, and the configuration fits on an 80GB A100. Specialized kernels also reduce generation latency by reading fewer weight bytes and decoding them during computation. On A6000 hardware, GPTQ execution reduces the average time per generated token to 132 milliseconds, compared with 589 milliseconds under FP16 execution. These measurements concern batch size 1 and generated sequences of length 128. They establish a practical benefit for that workload, while leaving activation quantization, batched acceleration, and broader behavioral preservation outside the demonstrated result.
Interesting ideas
Optimize the observable computation. An approximation should be judged by the outputs that matter to its surroundings. GPTQ uses calibration inputs to distinguish weight changes that look similar numerically but have different computational consequences. This principle applies beyond quantization: approximate indexes, simplified numerical procedures, and compact representations can all be assessed against the observations their users actually require.
Keep adjustable parts available for repair. A local approximation can create an error that other unfinished choices can partly absorb. GPTQ explicitly uses that freedom rather than rounding every weight in isolation. The general idea is useful in staged optimization and constrained approximation, provided the interaction between choices can be represented well enough to guide compensation.
Coordinate schedules to expose shared mathematics. Independent optimization orders can conceal common structure. Giving every output row the same processing order allows GPTQ to reuse input-dependent curvature information. Similar opportunities occur when several problems have different target values but share constraints, features, or a common operator. A small restriction on scheduling can unlock a much larger reduction in repeated work.
Postpone updates until they affect a decision. GPTQ does not immediately propagate every correction through every future column. It preserves the corrections needed for current decisions and combines the rest into larger operations. This is valuable in numerical and data-processing software where repeatedly touching large arrays costs more than the arithmetic performed on each entry. The requirement is a clear account of which dependencies must already be current.
Treat numerical stability as a scaling requirement. A calculation that behaves reliably on smaller inputs may fail when repeated across larger matrices. GPTQ’s factorized treatment of inverse information prevents failures that damping alone does not eliminate at its largest scale. The wider lesson is to examine intermediate representations, not merely asymptotic complexity, before assuming that a numerical method will scale.
Fit downstream stages to altered upstream outputs. The authors regenerate calibration activations after quantizing a Transformer block. Later blocks therefore receive signals from the partially compressed network they will actually inhabit. This principle applies to pipelines involving approximate parsing, feature extraction, retrieval, or numerical preprocessing: downstream validation should include changes introduced earlier in the chain.
Evaluate representation, quality, and execution separately. GPTQ measures prediction quality, accounts for storage overhead, and demonstrates an inference implementation. These are related but distinct achievements. A compact format may have expensive decoding, and a small average numerical error may conceal important task changes. Separating the questions makes engineering evidence more informative and prevents a storage claim from becoming an unsupported speed claim.
Deep dive: GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers
GPTQ compresses Transformer weights after training: how calibrated error compensation enables low precision, and what its experiments establish. · about 41 minutes to read
How Mova uses it
Mova is a transparent language system implemented in Rust, combining explicit linguistic processing, mathematical tools, and bounded execution. Its native CPU parser is based on perceptrons; its GPU parser is a separate neural component. GPTQ therefore has a possible direct numerical target in the GPU path, alongside broader lessons for rules, dictionaries, data processing, and evaluation. The available implementation record does not establish a GPTQ integration or a measured GPTQ benefit in Mova. The status marks below are proposed correspondences to existing mechanisms; they do not certify that the paper has been applied.
Idea: Choose a computational observation before choosing a compression scheme. Where: Methods, Layer-Wise Quantization. Area: evaluation and mathematical modeling. Mova could define the output that an approximation must preserve before reducing its representation: parser scores, tree decisions, frame roles, or a declared numerical response. Mova: частково є (groupants and vidtvorants describe selected observations and conformance boundaries). GPTQ supplies a concrete example of connecting a compact representation to an output-based objective. The transfer would require task-specific observations and validation instead of assuming that a small numerical discrepancy preserves linguistic meaning.
Idea: Test curvature-guided weight quantization on an appropriate component. Where: Methods, Optimal Brain Quantization and The GPTQ Algorithm. Area: numerical compression. A bounded experiment could examine learned matrices in gparse, preserving its original computation as the reference. Mova: нове. Why Mova: A successful result could reduce the resources needed by the optional GPU parser while leaving the rule-based CPU reference available for comparison. No such implementation or outcome is established, and the paper’s language-generation results do not predict the effect on dependency parsing.
Idea: Use remaining numerical freedom to compensate for committed approximations. Where: Methods, Optimal Brain Quantization. Area: optimization. A candidate Mova numerical compressor could update uncommitted parameters after fixing a quantized value, following the paper’s reconstruction geometry. Mova: нове. Why Mova: Coordinated numerical choices may preserve a component’s responses better than independent rounding. This proposal applies to adjustable numerical parameters; it gives no justification for changing dictionary meanings or logical facts to offset unrelated errors.
Idea: Share expensive structure through a common processing order. Where: The GPTQ Algorithm, Step 1. Area: algorithms. Mova could inspect repeated computations over common features or constraints and test whether a shared schedule permits reusable intermediate results. Mova: частково є (the mouse team shares a document parse and retained graph across specialist profiles). That existing sharing is not GPTQ’s matrix optimization. The paper suggests a further question: whether processing order itself prevents useful reuse in a specific Mova workload.
Idea: Delay corrections according to explicit dependencies. Where: The GPTQ Algorithm, Step 2. Area: data processing and performance. Mova could distinguish updates required for the next decision from updates that can safely accumulate before publication. Mova: частково є (dictionary indexing already publishes transactional batches, and storage groups records into compressed blocks). GPTQ’s delayed numerical corrections offer a related scheduling principle, but any transfer must prove that readers see all information required by their current operation.
Idea: Prefer stable representations for long numerical update sequences. Where: The GPTQ Algorithm, Step 3. Area: numerical mathematics. A future matrix-based approximation path could use factorization and conditioning checks instead of repeatedly modifying an inverse. Mova: нове. Why Mova: Preventing a numerically corrupted intermediate result is necessary if approximation decisions are to remain inspectable and repeatable. The existing deterministic design does not by itself establish numerical stability, and a suitable factorization depends on the actual objective.
Idea: Validate later stages using changed upstream behavior. Where: Experimental Validation, Setup. Area: pipeline evaluation. Mova could compare downstream frames, worlds, and answers after an upstream parser approximation, using the outputs that approximation actually produces. Mova: частково є (CPU and GPU execution distinguish exact stages from measured approximants, and the LL chain measures boundary information loss). GPTQ strengthens the case for evaluating the whole altered chain instead of substituting reference inputs at later boundaries.
Idea: Separate memory savings from latency improvements. Where: Experimental Validation, Practical Speedups. Area: systems evaluation. Mova could report compressed size, working memory, decoding cost, and task runtime as separate observations. Mova: вже є (storage measurements and dictionary-index measurements distinguish bytes, timings, cache scope, and coverage). GPTQ provides an additional example in which a specialized execution path is needed before compact weights produce lower latency. Its measured speedups would remain external evidence, not a Mova forecast.
Idea: Compare sophisticated selection against an identical simple representation. Where: Experimental Validation, Baselines. Area: experimental controls. A Mova approximation experiment could give a direct baseline and a more elaborate selector the same permitted values, inputs, and storage format. Mova: частково є (regression gates and school controls already compare alternatives, but a matched quantization-grid experiment is not established). This would help identify whether improvement comes from the algorithm or from quietly granting it a more expressive representation.
Idea: Record calibration provenance independently of evaluation provenance. Where: Experimental Validation, Setup, and Additional Language Generation Results. Area: data governance and evaluation. Mova could attach source identities and split relationships to every dataset used to construct an approximation. Mova: вже є (dictionary indexing retains source versions and excludes assessment material; corpus preparation preserves fingerprints and separate admission). The C4 qualification in GPTQ illustrates why generic calibration still needs a disclosed relationship to evaluation data.
Idea: Keep calibration observational instead of importing assessment answers. Where: Experimental Validation, Setup. Area: evaluation integrity. An approximation path could collect ordinary inputs and reference responses without using held-out task labels to choose its settings. Mova: вже є (teacher-separated assessment, frozen test handling, and distinct reviewed training admission). GPTQ’s use of generic text is relevant as an example of calibration without benchmark-specific supervision, although it does not erase the need to disclose dataset overlap.
Idea: Fit an oversized computation into memory through bounded working sets. Where: Experimental Validation, Setup. Area: resource management. Mova could partition a numerical preparation job so that only the active component and its required observations occupy accelerator memory. Mova: частково є (bounded workers, job limits, and block-oriented stores exist). GPTQ demonstrates that preparing an artifact can have a different memory requirement from executing its full reference. Any Mova partition would need its own dependency and memory measurements.
Idea: Include representation metadata in compression accounting. Where: Experimental Validation, Additional Tricks & 2-bit Quantization. Area: storage analysis. Mova could consistently include scales, dictionaries, indexes, provenance references, and other required metadata when comparing compact formats. Mova: вже є (prepared storage and dictionary-index measurements report stored bytes for their declared artifacts). GPTQ’s grouping results provide a useful illustration of why nominal element precision and complete storage cost are different quantities.
Idea: Explore local quantization grids as a separate variable. Where: Experimental Validation, Additional Tricks & 2-bit Quantization. Area: numerical representation. A prospective compressor for suitable Mova matrices could compare row-level grids with smaller local groups while holding the compensation algorithm fixed. Mova: нове. Why Mova: Local ranges might improve numerical reconstruction when a global range wastes available levels. The additional metadata and decoding work would have to count in the result, and no benefit for Mova is currently measured.
Idea: Distinguish solver blocks from representation groups. Where: The GPTQ Algorithm, Step 2, and Additional Tricks & 2-bit Quantization. Area: software interfaces. Mova could expose scheduling parameters separately from parameters that change the stored representation. Mova: нове. Why Mova: Clear separation would make experiments easier to interpret and prevent a runtime setting from being mistaken for a quality or storage setting. In GPTQ, the column block used for efficient updates and the group used to assign a grid perform different jobs.
Idea: Preserve exact storage alongside approximate computation. Where: Layer-Wise Quantization and Practical Speedups. Area: storage contracts. Mova could make an approximation artifact explicitly different from a byte-exact packed artifact. Mova: вже є (mova-pack promises exact reconstruction, while GPU stages can be declared approximants). GPTQ reinforces this distinction: recovering the stored quantized values exactly does not recover the original floating-point computation. Validation must name which of those promises an artifact makes.
Idea: Test broad quality and sensitive downstream decisions separately. Where: Experimental Validation, Language Generation and Zero-Shot Tasks. Area: linguistic evaluation. Mova could measure both aggregate component error and changes to frame roles, coreference links, world facts, or answers. Mova: частково є (parser benchmarks, frame evaluation, reader tests, and school traces cover different levels). The paper’s use of perplexity alongside task accuracy supports this layered evaluation design, without implying that its particular metrics suit Mova’s symbolic outputs.
Idea: Evaluate the actual checkpoint rather than trusting a size trend. Where: Experimental Validation, Language Generation, including the OPT-66B discussion. Area: diagnostic analysis. Mova could treat a component version as its own experimental object, recording inactive features, atypical distributions, and downstream failures. Mova: частково є (source/version identities and retained diagnostic results exist). GPTQ’s exception warns against inferring compressibility from parameter count or family membership. A causal explanation would still require a controlled investigation.
Idea: Label extrapolated runtime separately from measured runtime. Where: Experimental Validation, Runtime. Area: statistics and cost modeling. Mova could retain the assumptions behind projected resource costs and keep them distinct from receipts of completed runs. Mova: вже є (mova-twin separates prospective predictions from measurements, while job tooling logs estimates and actual use). GPTQ offers a concrete reason for this discipline: its largest comparisons mix executed quantization with extrapolated competing costs.
Idea: Include persistent execution state in memory budgets. Where: Experimental Validation, Practical Speedups. Area: systems planning. Mova could account for retained graphs, active documents, indexes, buffers, and worker state alongside the principal artifact. Mova: частково є (resource-bounded jobs and persistent worker state are explicit, but a unified deployment memory account is not established). GPTQ’s generation-history accounting shows why fitting weights alone is insufficient evidence that the full workload fits.
Idea: Measure the overhead of decoding a compact format. Where: Experimental Validation, Practical Speedups. Area: performance engineering. Mova could compare saved reads against decompression or unpacking work under the actual access pattern. Mova: вже є (dictionary-index queries expose visited blocks and cache effects; storage tools measure prepared compression). The transferable insight is workload sensitivity: a format beneficial for sequential reads may behave differently under sparse, repeated, or latency-sensitive access.
Idea: Keep unsupported capabilities outside a successful result. Where: Discussion, Summary and Limitations. Area: evidence and operational contracts. A Mova report could admit a compressed artifact for its tested use while explicitly leaving other workloads unestablished. Mova: вже є (configured capabilities, groupant boundaries, and exact-versus-approximant declarations constrain claims). GPTQ’s separation of weight storage, activation precision, and batching illustrates how a useful achievement can retain a narrow, reviewable scope.
Idea: Add behavioral checks beyond the leading aggregate metric. Where: Discussion, Ethical Concerns. Area: evaluation and bias analysis. Mova could assess whether an approximation alters distinctions such as evidential status or occupation-pronoun behavior even when overall accuracy remains similar. Mova: частково є (typed evidentials and coreference contrast evaluations already address such distinctions). The proposed connection is methodological; GPTQ does not establish the effects of compression on those Mova mechanisms.
Idea: Separate an attractive explanation from demonstrated causation. Where: The GPTQ Algorithm, Step 1, and Experimental Validation, Language Generation. Area: scientific reasoning. Mova’s analysis artifacts could distinguish an observed pattern, an author explanation, and an independently tested mechanism. Mova: частково є (typed evidence and source-bound groupants retain different kinds of support). GPTQ’s explanations for ordering behavior and a difficult checkpoint are useful hypotheses, but they should not acquire the status of controlled findings merely through repetition.
The problem and its context
Parameter storage can determine whether inference is possible
GPTQ begins with the cost of using a network after its expensive training has ended. The learned values still occupy memory, and inference must repeatedly access them. For a sufficiently large network, even a compact floating-point representation exceeds an individual accelerator’s capacity. Deployment then requires more devices or a more complicated arrangement of storage and computation.
The architectural setting is the Transformer, associated with Attention Is All You Need. The paper focuses on large generative descendants, including the systems discussed in Language Models are Few-Shot Learners and the openly released OPT family. Its question concerns inference feasibility instead of reducing the resources originally spent learning the weights.
A weight is a numerical coefficient used in the network’s calculations. Quantization restricts such coefficients to a smaller collection of representable values. The storage opportunity is straightforward: recording a low-precision index can require less space than recording a floating-point value. The computational difficulty lies in what those substitutions do to the network.
A small rounding error in an individual coefficient may seem harmless. Yet a layer combines many coefficients with inputs, and its output becomes part of later computations. Errors can interact, accumulate, or affect influential input directions. A successful compression method needs to preserve more than the visual similarity of the original and compressed weight arrays.
Post-training methods face an accuracy–cost conflict
The paper divides quantization approaches according to when precision constraints enter the process. Some methods incorporate quantization during training or fine-tuning. Since discrete rounding does not provide the ordinary smooth derivatives used by optimization, these approaches introduce approximations that make learning possible.
That can produce accurate low-precision networks, but further optimization becomes burdensome when the network is extremely large. The same scale that makes inference expensive also makes retraining unattractive. GPTQ therefore concentrates on post-training quantization: transforming an existing set of weights using calibration observations and limited additional computation.
The term one-shot belongs to this distinction. It does not imply that every internal calculation happens in a single pass. GPTQ repeatedly updates unquantized weights and processes calibration activations through newly compressed blocks. What it avoids is another network-wide training procedure.
Earlier post-training research had developed accurate ways to choose quantized values. The paper describes AdaRound as optimizing rounding preferences with a penalty that increasingly favors permitted grid points. BitSplit builds a representation progressively by handling residual error. AdaQuant employs straight-through estimation, and BRECQ uses Fisher information while reconstructing residual blocks.
These methods make an important point: nearest-value rounding is not generally the best way to preserve a layer’s response. However, a more informed choice can require substantial optimization. According to GPTQ’s authors, methods practical for vision networks with approximately 100 million parameters did not scale affordably to their much larger targets.
OBQ offers useful mathematics at an impractical cost
Optimal Brain Quantization is GPTQ’s immediate algorithmic starting point. It extends ideas from Optimal Brain Surgeon, a pruning framework, to discrete weight replacement. Instead of deciding which coefficient to remove, OBQ decides which coefficient to round next and how the remaining coefficients should change afterwards.
The local objective makes this possible. A linear layer’s squared reconstruction error has a fixed quadratic structure for given inputs. Second-order information can therefore describe how coordinated changes affect that error. OBQ uses this structure both to select a rounding decision and to compensate for it.
Its expensive feature is the freedom given to each output row. Different rows can follow different greedy sequences, depending on their current values. That freedom prevents straightforward reuse of all the changing inverse-Hessian calculations.
The paper estimates that an unchanged OBQ approach would require at least 6 months to quantize GPT-175B, even disregarding memory limitations. This is an estimate about scalability, not a completed experiment. It nonetheless identifies the obstacle GPTQ must overcome: retaining valuable compensation without retaining all the repeated work.
Earlier large-scale approaches favored simple rounding
At very large scale, the related-work discussion emphasizes LLM.int8(), ZeroQuant, and nuQmm. The authors characterize their basic quantization procedures as relying on nearest-level rounding, whose low preparation cost makes it practical for enormous networks.
Their contributions address different aspects of the problem. LLM.int8() identifies troublesome activation dimensions and keeps those dimensions at higher precision. ZeroQuant includes a more expensive layer-wise distillation option, but GPTQ reports that its application reaches only 1.3 billion parameters. NuQmm develops kernels for a binary-coded representation and studies acceleration of individual layers.
GPTQ does not discard these deployment concerns. It adds a more sophisticated weight-selection procedure that can still finish at the scale of the largest evaluated networks. Its central claim is that useful second-order reasoning need not remain confined to much smaller systems.
The contrast becomes especially visible below 8-bit precision. A relatively fine grid can tolerate simple choices, while a coarser grid exposes their weaknesses. GPTQ investigates whether calibration-guided compensation can make those more aggressive representations accurate enough to be useful.
The method, step by step
Establish the layer and its permitted values
A linear layer maps input coordinates to output coordinates through a matrix of weights. Rows correspond to outputs; columns correspond to input features. Replacing the matrix changes how those features are combined.
Before choosing individual quantized weights, the method fixes a grid of allowed values. The main setup uses uniform spacing, separate row-level ranges, and asymmetric endpoints determined by minimum and maximum values. Asymmetry allows a range whose positive and negative extents are unequal.
Direct rounding maps every original coefficient to its closest grid value. GPTQ instead considers the coefficients together, using observed layer inputs to judge their collective effect. The grid remains fixed during the corresponding reconstruction problem, but weights awaiting quantization may move before their final values are selected.
GPTQ preparation and compressed execution
The steps in order.
This sequence contains several different kinds of blocks. A Transformer block bounds network loading. A solver block groups columns for efficient updates. An optional quantization group defines which weights share representation parameters. Their purposes should remain distinct.
Express preservation as reconstruction
The authors formulate the numerical task through a layer’s responses to calibration inputs.
argmin over Ŵ of ‖WX − ŴX‖₂²
W denotes the original weight matrix. X collects layer inputs associated with m calibration data points. Ŵ denotes a candidate matrix whose entries belong to the permitted quantization grid. WX is the reference output, and ŴX is the candidate output. The squared norm aggregates their discrepancy.
The objective evaluates behavior on the observed inputs, instead of measuring coefficient differences alone. If some input directions occur strongly or repeatedly, errors affecting those directions matter more to reconstruction. Relationships among input coordinates also matter because different coefficient changes may reinforce or offset one another.
The objective is still a surrogate for the final goal. GPTQ does not directly minimize the completed network’s perplexity or task error. It solves manageable local problems and then checks whether the assembled result retains useful performance.
Because the total reconstruction error separates across output rows, each row can be considered independently in the optimization. However, those rows share X. This combination—independent target rows with common input geometry—creates GPTQ’s principal opportunity for reuse.
Obtain curvature from calibration inputs
For a row whose remaining adjustable positions are indexed by F, the relevant Hessian is:
H_F = 2X_F X_Fᵀ
H_F is the second-derivative matrix of the row’s reconstruction objective over those positions. X_F retains the corresponding input coordinates. The superscript T indicates transpose. The factor 2 belongs to the derivative of the squared objective.
A Hessian describes how simultaneous parameter changes interact. Its off-diagonal structure reflects relationships between input features. Its inverse supplies the directions used by the compensation rule.
This is much narrower than constructing a Hessian for the entire network. The layer objective is quadratic in its weights, so the curvature is fixed by the calibration inputs. No repeated network-training differentiation is required to refresh it as weights change.
The word approximate therefore needs careful interpretation. GPTQ uses the geometry of a local reconstruction problem to preserve a much larger computation. Even where the local quadratic structure is exact, its relationship to final language behavior remains something the experiments must establish.
Understand OBQ’s greedy decision
OBQ evaluates the cost of quantizing each available weight while optimally adjusting the others.
q = argmin over q of (quant(w_q) − w_q)² / [H_F⁻¹]qq
q indexes a candidate position. w_q is its current value, which may already include compensation from earlier steps. quant maps that value to its nearest permitted grid point. H_F⁻¹ is the inverse Hessian for the remaining adjustable coordinates, and its qq entry is the corresponding diagonal element.
The numerator records the squared rounding displacement. The denominator incorporates the geometry of possible compensation. A coefficient with a larger raw displacement may still be inexpensive to quantize if other adjustable coefficients can effectively absorb its effect.
This is a greedy rule: it chooses the best next commitment under the current state. Subsequent costs can change because earlier compensation moves unquantized weights. The resulting order need not be the same for different rows.
That row-specific ordering is useful flexibility, but it creates expensive divergence between otherwise related subproblems. GPTQ’s first modification challenges whether preserving that flexibility is worth its computational price.
Apply compensation after committing a weight
For a selected position, OBQ computes the following adjustment:
δ_F = −((w_q − quant(w_q)) / [H_F⁻¹]qq) · (H_F⁻¹)_:,q
δ_F is the update over the adjustable coordinates. The rounding residual is w_q minus its quantized replacement. The qq diagonal term provides normalization, and the q column of the inverse Hessian distributes the correction. The colon means that every row of that column is selected.
The procedure does not save a hidden full-precision copy to recover the original coefficient during inference. Instead, it changes future decisions. Later weights will eventually be quantized too, but their updated values may lead to a better collective assignment.
This is why GPTQ can use the same grid as direct rounding and still obtain different results. The available storage values have not become more expressive. The algorithm has become more effective at choosing a combination of them.
Compensation also explains why processing order can matter. A difficult rounding decision made early has many remaining coordinates available for adjustment. The same decision made late has fewer degrees of freedom.
Remove a committed coordinate from inverse information
OBQ avoids rebuilding an inverse from scratch after every commitment. Its elimination update is:
H_−q⁻¹ = (H⁻¹ − H⁻¹_:,q H⁻¹_q,: / [H⁻¹]qq)_−q
H⁻¹ is the inverse before removal. The selected column and row form an outer-product correction. The diagonal element normalizes it. The final −q subscript removes the committed coordinate’s row and column, yielding the inverse for the smaller adjustable set.
This reduces the cost of an individual transition, but the original procedure still performs many such transitions across independently ordered rows.
T_OBQ = O(d_row · d_col³)
T_OBQ denotes the scaling of OBQ runtime for a weight matrix with d_row output rows and d_col input columns. O expresses asymptotic growth instead of a measured duration. The cubic dependence on column count makes large layers especially expensive.
The paper’s motivation is therefore not that OBQ lacks an efficient local update. It is that a locally efficient update remains too costly when repeated under its original organization.
Make all rows follow a common column order
GPTQ chooses the same sequence of column positions for every output row. The authors report that arbitrary ordering usually sacrifices little relative to greedy ordering, particularly in large layers.
Their suggested explanation concerns compensation freedom. Greedy selection tends to postpone expensive choices. When those choices finally occur, fewer unquantized weights remain to offset them. Some apparent benefit of choosing easy weights first may consequently disappear.
The computational effect is more direct than that explanation. At each stage, all rows now have the same remaining coordinate set F. Since the Hessian depends on X_F rather than the row’s coefficient values, the required inverse information is shared.
T_GPTQ = O(d_col² · max{d_row, d_col})
T_GPTQ is the resulting per-layer runtime scaling. The dimensions retain their earlier meanings. The maximum accounts for the larger of the work associated with weight updates and the work associated with the common matrix information.
The authors express the asymptotic improvement relative to OBQ as:
improvement factor = Θ(min{d_row, d_col})
The minimum selects the smaller layer dimension. Θ describes the order of the improvement, instead of a fixed hardware-independent speedup. The paper says that the relevant dimensions often make this factor around 1000× in practice.
The important trade is a restricted schedule in exchange for shared mathematics. GPTQ keeps curvature-guided correction while giving up row-specific greedy ordering.
Accumulate updates before touching the full matrices
A lower operation count does not automatically produce a fast accelerator implementation. An update can do little arithmetic while repeatedly reading and writing a large matrix. In that situation, memory bandwidth limits progress.
GPTQ processes B = 128 columns as an active solver block. It applies corrections inside that block as needed for rounding decisions. Corrections affecting later columns are postponed until the block is finished, then applied together.
The justification is dependency-based. A decision for the current column requires that column’s accumulated updates. It does not require every future column to have already received its own update. Deferral changes when work is performed without removing the information needed for the current decision.
The paper gives a multi-coordinate compensation rule. With weight residuals written as column vectors, the corresponding expression is:
δ_F = −(H_F⁻¹)_:,Q ([H_F⁻¹]QQ)⁻¹ (w_Q − quant(w_Q))
Q is the selected set of coordinates. w_Q contains their current weights. quant acts on those entries to produce their grid values. The QQ submatrix selects both rows and columns in Q, while :,Q selects the associated full columns. This column-vector arrangement expresses the same group compensation through a consistent orientation.
The inverse update for removing a coordinate group is:
H_−Q⁻¹ = (H⁻¹ − H⁻¹_:,Q ([H⁻¹]QQ)⁻¹ H⁻¹_Q,:)_−Q
H_−Q⁻¹ denotes the inverse after eliminating Q. The selected columns, central inverse, and selected rows together account for the group’s influence. The trailing subscript removes those coordinates.
This batching does not improve the formal arithmetic count. It improves how the arithmetic uses the hardware. The authors report an additional order-of-magnitude practical benefit for very large cases from addressing the memory-throughput bottleneck.
Stabilize the required inverse information
Repeated inverse updates can accumulate numerical error. The authors observe cases where the intermediate inverse becomes indefinite and compensation drives weights in damaging directions. Such failures become more likely at larger scale.
Damping provides an initial safeguard:
H⁻¹ = (2XXᵀ + λI)⁻¹
I is the identity matrix. λ is a small positive damping value added along the Hessian diagonal before inversion. The authors set it to 1% of the average diagonal value. X remains the calibration-input matrix.
Damping alone appears adequate for smaller networks in their observations, but the largest cases require a more reliable representation. GPTQ therefore avoids depending on a long chain of explicitly updated inverses.
For a fixed processing order, only a particular portion of each successive inverse is needed: the current row beginning at its diagonal. The paper relates the elimination sequence to a Cholesky decomposition. Its explanation identifies the square-root normalization:
normalization at q = √([H_Fq⁻¹]qq)
Fq is the adjustable coordinate set when position q is processed. The expression is the square root of that stage’s inverse-Hessian diagonal entry. It describes the scaling distinction involved in using Cholesky information rather than the raw elimination row.
An efficient Cholesky routine can prepare the needed information in advance. Combined with damping, this makes the method robust enough for the reported largest runs. It also adds a performance advantage through optimized factorization kernels.
Carry calibration through the partially compressed network
The calibration collection contains 128 random segments from C4, each with 2048 tokens. These segments supply ordinary text inputs rather than task-specific answer labels. Their intermediate activations define the reconstruction problems.
The implementation does not require the full uncompressed network to reside on the accelerator. It loads an active Transformer block, described as containing 6 layers, collects the relevant statistics, and quantizes that block.
The next block is prepared using outputs from the compressed upstream block. This requires sending calibration inputs through the newly quantized block again. The authors describe a noticeable accuracy improvement at negligible additional cost.
This procedure recognizes that upstream approximation changes downstream inputs. It does not solve all interactions globally, but it avoids calibrating every downstream stage against signals that will no longer occur in the completed compressed network.
The authors implement GPTQ in PyTorch and use the HuggingFace integrations for the evaluated families. They release an official implementation that includes both preparation and an execution path for the compressed representation.
Change representation granularity when useful
The basic row-level grid can be replaced by grids for groups of G consecutive weights. Each group receives its own quantization parameters, making the representation more responsive to local ranges.
Those parameters can be determined during GPTQ using the most recently updated weights. Grouping therefore fits naturally into the sequential compensation process.
However, local flexibility has a storage cost. Each group requires information beyond the low-precision codes for individual coefficients. Effective average storage must include that information.
This separates two experimental choices. The compensation algorithm chooses assignments within a representation. Group size changes the representation itself. Improvements from smaller groups should not be attributed entirely to better optimization.
Experiments and results
The comparisons and their conditions
The experimental program examines several questions instead of relying on a single benchmark. Vision networks allow comparisons with expensive quantizers. Smaller language networks permit direct comparison with OBQ. The OPT and BLOOM families test large-scale behavior. The deployment study examines actual memory requirements and token latency.
All quantization runs use an A100 with 80GB of memory, including runs preparing the largest evaluated checkpoints. That fact concerns the preparation procedure. It should not be confused with the hardware needed for uncompressed inference.
RTN is the principal large-scale accuracy baseline. It places each weight at its nearest grid point, using the same grid as GPTQ. This is a useful control: both methods have the same permitted numerical representation, but only GPTQ coordinates choices through compensation.
FP16 provides the reference behavior. The relevant comparison is therefore both whether GPTQ improves on RTN and whether it stays close enough to the reference for the intended use.
The main text-prediction metric is perplexity, evaluated on WikiText2, Penn Treebank, and C4. Lower values indicate better prediction under the evaluation. The paper emphasizes perplexity because quantization can disturb it noticeably even when some task accuracies appear more tolerant.
Smaller networks test the quality of the approximation
ResNet18 and ResNet50 provide standard post-training quantization comparisons. At 4-bit precision, GPTQ is broadly competitive with the accurate alternatives discussed by the authors. At 3-bit, the strongest alternatives perform somewhat better.
GPTQ nevertheless outperforms AdaQuant in the reported comparison. The authors emphasize its much shorter preparation time: the smaller cases take < 1 minute, contrasted with roughly 1 hour for earlier accurate procedures.
The language-side OBQ comparison uses BERT-base with SQuAD and OPT-125M with WikiText2. The BERT experiment broadens the check beyond generative OPT evaluation, while SQuAD supplies a task-oriented assessment.
GPTQ and OBQ are similar at 4-bit. At 3-bit, GPTQ performs slightly better in these comparisons. This is evidence that the shared-order simplification can preserve useful solver quality; it does not establish universal superiority over greedy OBQ.
The authors suggest that OBQ’s additional heuristics may be less suitable without adjustment outside vision. That explanation remains distinct from the observed result.
Large-scale preparation is measured; competing costs are projected
For the largest evaluated networks, GPTQ finishes quantization in approximately 4 GPU hours. The paper contrasts this with projected costs for methods based on straight-through estimation and adaptive rounding.
The straight-through estimate extrapolates from approximately 1 hour per 350 million parameters for an efficient ZeroQuant-LKD implementation. The adaptive-rounding estimate assumes 10× that cost, reflecting more optimization steps.
Under these assumptions, the authors describe roughly 3 weeks for the straight-through approach and half a year for adaptive rounding at their largest scale. They regard these projections as favorable to the competing methods because memory constraints are excluded and optimization-step counts are held constant with scale.
Those estimates help explain the feasibility gap, but they are not measured runs on the largest checkpoints. The direct experimental accomplishment is GPTQ’s completed preparation under its stated hardware budget.
This distinction is important when interpreting claims of speed. An algorithmic scaling improvement and a completed large run provide strong evidence of practicality. They do not determine the runtime of every possible future implementation of another approach.
Perplexity shows a clear separation from direct rounding
Across the evaluated families, GPTQ generally retains much better perplexity than RTN as precision becomes more aggressive. At 4-bit, its results often remain close to FP16. At 3-bit, direct rounding can collapse while GPTQ still preserves useful predictive behavior.
The authors report that BLOOM generally appears easier to quantize than OPT. They also observe that larger checkpoints typically tolerate quantization better. These are trends in the evaluated collection, not laws established by parameter count alone.
OPT-66B interrupts the general size trend. The paper associates its difficulty with a substantial fraction of inactive units in early layers. That observation indicates that properties of an individual trained checkpoint matter alongside its nominal size.
For OPT-175B, the paper’s family-wide perplexity discussion gives a 4-bit GPTQ loss of 0.14, compared with a 4.53-point RTN deterioration. The authors use this comparison to illustrate that a common grid can support very different outcomes depending on the assignment procedure.
The most explicit WikiText2 grouping comparison concerns the same checkpoint at 3-bit:
OPT-175B WikiText2 perplexity with 3-bit GPTQ
Finer grid assignment improves reconstruction sufficiently to lower perplexity.
The numbers
| System or setting | perplexity |
|---|---|
| Row-level quantization | 8.68 |
| Group-size 1024 (this paper) | 8.45 |
The chart isolates representation granularity within GPTQ. It does not compare a new solver against an unchanged representation. The group-size 1024 setting also adds < 0.05 bits per weight, which belongs in any storage interpretation.
Grouping enables more aggressive settings
The main row-wise experiments are complemented by 2-bit quantization with smaller groups. The authors find relatively limited gains from grouping at 4-bit, and from further reducing group size at 3-bit. At 2-bit, grouping becomes much more consequential.
For the largest checkpoints on WikiText2, the discussion describes about 3.5 points of perplexity deterioration with group-size 1024. With group-size 64, the deterioration is approximately 1, while average storage corresponds to 2.5 bit.
The nominal coefficient precision and effective storage precision differ because group parameters also occupy space. A comparison that reports only the coefficient codes would conceal part of the representation.
The authors also report that G = 32 yields a result 0.2 - 0.3 perplexity points worse than ordinary 3-bit quantization at the same memory consumption. They present this as an interesting possibility for implementation, not as a demonstrated faster kernel configuration.
These experiments show that the method can operate beyond its main settings. They also show why the most compressed configuration should not automatically be called the best configuration. It trades additional error against storage and representation flexibility.
Task evaluations complement text likelihood
The zero-shot studies include LAMBADA, ARC, and PIQA. Appendix captions additionally identify StoryCloze evaluations. The results broadly follow the perplexity pattern, but the paper notes that some task accuracies are more tolerant of 4-bit rounding.
At 3-bit, RTN again breaks down in the reported comparisons, whereas GPTQ remains substantially more useful. This strengthens the case that its benefit is not confined to one likelihood calculation.
However, similar overall task scores do not imply identical predictions. Discrete task accuracy can remain stable while individual answers change, and perplexity measures a different aspect of behavior. The paper’s use of multiple evaluations is therefore important.
C4 needs a separate qualification. Calibration segments come from its training data, and the appendix explicitly notes that C4 evaluation is not fully zero-shot. The procedure does not train on its evaluation answers, but the dataset relationship should still be disclosed.
The main claim is consequently task-agnostic calibration with broad evaluation, not complete separation from every evaluated data source.
Compact weights become a deployable generation configuration
The practical experiment concentrates on OPT-175B at 3-bit. Its approximately 63GB footprint includes embeddings and the output layer retained at FP16 precision. It is therefore not an entirely uniform low-precision network.
Generation also retains keys and values from previous positions. The authors account for roughly 9GB of this history at the maximum 2048-token setting. Including that state makes the capacity result more informative than counting parameters alone.
The resulting configuration fits on an 80GB A100. The paper states that the corresponding 4-bit configuration would not fully fit. Its reference FP16 execution uses 5 such GPUs, while the cited LLM.int8() configuration uses 3.
The latency experiment uses batch size 1 and generated sequences of length 128. Its kernels multiply a quantized matrix by a full-precision vector, decoding coefficients when required. This trades extra decoding arithmetic for less memory traffic.
OPT-175B A6000 generation latency at batch size 1
Specialized quantized execution reduces token latency with fewer devices.
The numbers
| System or setting | milliseconds per token |
|---|---|
| FP16 execution, 8 GPUs | 589 |
| GPTQ 3-bit execution, 2 GPUs (this paper) | 132 |
The reported A6000 acceleration is 4.46×. On A100 hardware, the compressed single-device execution is over 1.9× faster than the FP16 configuration.
The authors attribute almost all of this gain to their kernels, rather than reduced inter-device communication. Communication is negligible in the comparison setup they use. That matters because it locates the mechanism: fewer bytes are accessed during the memory-bound computation.
What the ablations show
The shared schedule retains useful accuracy
The comparison with OBQ examines GPTQ’s most consequential algorithmic simplification. Independent greedy row orders are replaced by a common order, enabling shared inverse information.
The smaller language experiments show similar results at 4-bit and a slight GPTQ advantage at 3-bit. This supports the decision to give up greedy ordering in the tested settings. The value of that evidence is practical: an inexpensive schedule can retain much of the useful compensation behavior.
It does not establish that arbitrary order is harmless for every layer. Nor does it isolate every difference between the implementations. OBQ includes additional heuristics, and the authors themselves suggest that their suitability may vary by domain.
The compensation-freedom explanation is plausible within the method: delaying difficult decisions reduces the remaining room for repair. But the reported comparisons do not separately manipulate that factor to establish it as the cause.
Smaller vision tests reveal a genuine tradeoff
The ResNet experiments place GPTQ alongside methods designed for accurate post-training compression at a manageable scale. Their role is to check whether scalability was obtained by making the numerical procedure too weak.
The answer is qualified. GPTQ is competitive at 4-bit, but it does not match the strongest alternatives at 3-bit. Its advantage combines acceptable accuracy with far lower preparation cost.
This matters for reading the large-scale comparisons. GPTQ’s success against RTN does not prove that every sophisticated quantizer would be less accurate if it could be run affordably. The paper’s main achievement is a useful combination of quality and feasible scale.
The vision results also discourage an overly simple ranking of algorithms. A method can be preferable for a deployment problem without obtaining the highest accuracy in every smaller benchmark.
Grouping changes the representational constraint
The group-size study varies how much local adaptation the grid permits. Its strongest benefits appear at the most aggressive precision.
This separates two sources of error. A solver may choose poorly among available values, or the available representation may itself be too restrictive. GPTQ improves selection, while grouping relaxes the representation locally.
At moderate precision, the additional flexibility has limited value in the reported experiments. At 2-bit, it becomes important enough to change whether the result is practically plausible.
The analysis does not make metadata disappear. Smaller groups require more parameters, so their apparent quality gains must be read together with actual storage cost. The paper’s average-bit discussion is essential to that interpretation.
Sequential calibration addresses a real pipeline mismatch
The authors compare quantization using original layer inputs with quantization using activations from the already compressed upstream network. They report a noticeable improvement for the latter procedure.
The mechanism follows the dependency structure. An upstream approximation changes downstream signals. Preparing a later block against untouched activations makes its reconstruction problem less representative of execution.
Regenerating activations addresses this mismatch without requiring full retraining. The authors describe the additional cost as negligible.
The discussion does not supply a numerical benchmark effect for this choice in isolation. Its evidence supports including the procedure, but not assigning it an invented share of the final accuracy improvement.
Stability and utilization solve different obstacles
The numerical analysis identifies failure under repeated inverse updates, especially at larger scale. Damping helps, but the factorized treatment is needed for reliable execution of the largest cases.
This is not simply an accuracy enhancement applied after an otherwise usable algorithm. Severe numerical failure can make a layer’s quantization arbitrarily poor. Preventing that failure is part of making the overall procedure viable.
The column-block optimization addresses another obstacle: hardware utilization. Its purpose is to avoid repeatedly moving large arrays for little arithmetic. The paper reports a substantial runtime benefit without claiming that batching changes the theoretical operation count.
These analyses should not be flattened into one unexplained speedup. Shared order changes algorithmic scaling; delayed updates improve implementation efficiency; factorization addresses reliability and supplies an additional performance benefit.
Family and size comparisons are informative rather than causal
BLOOM’s relative ease of quantization and the general improvement with checkpoint size help identify promising deployment settings. They do not establish why those patterns occur.
Changing checkpoint size changes more than a single controlled variable. Likewise, comparing families combines architectural and training differences that this study does not isolate.
The OPT-66B exception is therefore useful evidence against a universal size rule. Its association with inactive units suggests a diagnostic direction, but remains an association.
A careful reading treats these patterns as reasons to test an actual checkpoint. They are not substitutes for that test.
Limitations
Boundaries explicitly stated by the authors
The practical acceleration comes from reducing memory movement. GPTQ’s implementation does not demonstrate cheaper underlying multiplication through native mixed low-precision arithmetic.
The authors point to missing mainstream hardware support for combinations such as FP16 operands multiplied by INT4 weights. Their kernel instead reconstructs numerical values as needed. Decoding adds computation while reducing the volume of stored weight data that must be accessed.
Activations are not quantized in the reported method. The authors regard complementary approaches as possible, but the experiments do not establish the quality or speed of a combined low-precision activation pipeline.
The discussion also excludes demonstrated acceleration for batched execution. The practical measurements target latency-sensitive generation with the stated batch configuration. A workload dominated by matrix-matrix operations can have a different relationship between memory access and arithmetic.
These are meaningful boundaries because they identify what produced the measured gains. The paper does not establish that lowering weight precision accelerates every inference workload.
Reconstruction remains local and empirical
A careful-reader limitation is the gap between the optimization objective and complete behavioral equivalence. GPTQ preserves layer responses on calibration inputs. It does not prove that every possible input produces an equivalent response.
The input-derived matrix reflects the calibration distribution. Directions absent or poorly represented in that collection may receive inadequate protection. Generic web text is useful evidence for the evaluated workloads, but not a guarantee for every specialized domain.
The completed network also combines many local approximations. Sequential calibration makes downstream inputs more representative, but it does not turn the collection of local objectives into a globally optimal discrete network.
Similarly, the shared-order observation is empirical. The method does not prove that its selected order is optimal or that every row would obtain the same result under greedy ordering.
These limitations do not negate the measured performance. They explain why final task evaluation remains necessary after successful numerical reconstruction.
Compression claims require complete accounting
The smallest nominal weight bitwidth is not the same as the smallest complete deployment footprint. Group parameters add storage, and the practical configuration keeps some components in FP16.
The generation cache also consumes memory. Fitting the compressed coefficient representation does not alone establish that the intended sequence length and execution state fit.
The approximately 63GB parameter configuration is therefore useful precisely because the paper states its exceptions and separately discusses the history requirement. Removing those conditions would make the result less accurate.
The same issue applies to grouping. A representation with more locally adapted grids can improve perplexity while spending additional metadata. Comparisons should use the complete required representation rather than only the codes attached to individual weights.
Runtime comparisons have different evidence strength
GPTQ’s largest preparation runs are executed measurements. The largest competing preparation times are extrapolations based on smaller runs and assumptions about optimization work.
The authors disclose those assumptions and argue that they are favorable to the alternatives. Nonetheless, projected runtimes cannot determine the performance of an untested implementation.
The deployment comparison also depends on specialized kernels and particular hardware. A framework that stores the same quantized values but expands them inefficiently may not obtain the reported latency.
This is a limitation of generalization, not a flaw in measuring a concrete implementation. The result establishes that useful acceleration is possible under the stated conditions.
Aggregate quality leaves other behavior unresolved
The authors explicitly call for further work on transferability and bias. They recognize that preservation of leading accuracy measures does not settle these questions.
A careful reader can extend that caution to individual decisions. Similar perplexity or accuracy does not establish that every answer, linguistic distinction, or failure mode is unchanged.
The experiments cover broad size ranges within OPT and BLOOM, alongside smaller comparison networks. They do not demonstrate the same outcome for every architecture, checkpoint, language distribution, or application.
The C4 qualification is another boundary: calibration uses its training set, so its evaluation is not fully zero-shot. That relationship does not amount to benchmark-answer training, but it prevents an unrestricted claim of separation.
Finally, wider access has consequences beyond engineering. The authors see potential benefit in making large systems easier to run while acknowledging that accessibility increases the importance of understanding their limitations. Quantization addresses a resource barrier; it does not establish that every newly feasible deployment is reliable or appropriate.
What came after
Later citations cover several kinds of continuation
GPTQ is cited by later research on quantization, adaptation, pruning, and inference systems. These directions connect to different parts of its contribution: choosing numerical representations, preparing compressed artifacts, fitting execution into memory, and turning compact storage into useful performance.
A citation does not by itself identify an inherited algorithm. The later works named below have no accompanying methodological descriptions beyond their titles. Their subjects can therefore be located relative to GPTQ, but specific claims of adopting its compensation equations, matching its setup, or improving its results would require additional evidence.
This distinction preserves an important separation. Research can build on the problem GPTQ made practical without implementing GPTQ itself. It can also cite the work as a baseline or historical reference rather than as a component.
Quantization expanded toward adaptation and other representations
QLoRA: Efficient Finetuning of Quantized LLMs places quantized weights in a fine-tuning setting. That subject extends beyond GPTQ’s chosen boundary, which is compression without further network training. The established connection is the combination of compact representations with a different stage of use; the citation information does not specify a shared quantizer.
LLM-QAT: Data-Free Quantization Aware Training for Large Language Models concerns training-aware quantization. Its scope revisits the distinction GPTQ makes between post-training preparation and learning with quantization constraints. No direct quality comparison or technical dependence can be inferred from its title.
OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models keeps calibration central in its stated subject. GPTQ demonstrated that calibration-guided choices can remain feasible at very large scale. The later title indicates continued attention to that design space, without establishing which objective or update mechanism it uses.
SqueezeLLM: Dense-and-Sparse Quantization identifies a different representational emphasis. It belongs alongside the question of how coefficients should be stored, which GPTQ separates from the procedure selecting their values. The exact dense-and-sparse construction is not specified by the available citation information.
QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs points toward rotated representations and outlier handling. Numerical outliers already appear in GPTQ’s discussion of earlier large-scale quantization. The later work’s title identifies a related difficulty, but does not establish a particular relationship to GPTQ’s reconstruction solver.
Other memory objects and serving workloads became explicit targets
KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache targets the generation cache instead of the learned weight matrix. This connects directly to a resource GPTQ counts but does not compress in its practical example.
The conceptual relationship is complementary. Once weight storage shrinks, the remaining execution state still matters. GPTQ’s own capacity accounting explains why cache-focused work addresses an additional problem rather than duplicating its main numerical target.
Atom: Low-bit Quantization for Efficient and Accurate LLM Serving places quantization in a serving context. That scope connects representation quality to the workload in which the representation is executed. Its citation alone does not establish that it extends GPTQ’s kernels or solver.
FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU emphasizes throughput under a constrained device budget. GPTQ’s practical evaluation instead centers on token latency in its stated generation setup. These are related resource questions with different performance objectives.
Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Serve makes that distinction explicit in its title. It concerns the relationship between serving objectives that GPTQ does not jointly evaluate. The available information supports this connection in scope, rather than a claim about adopted quantization machinery.
PowerInfer: Fast Large Language Model Serving with a Consumer-grade GPU shares the goal of making execution feasible on more accessible hardware. Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads names a different intervention in generation. Neither title establishes that its acceleration derives from GPTQ’s weight approximation.
Pruning continued the broader compression discussion
SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shot moves the stated compression target towards pruning. GPTQ’s own method already has a conceptual connection to pruning through OBQ and Optimal Brain Surgeon.
That shared background makes the later citation scientifically relevant, but it is not enough to reconstruct SparseGPT’s algorithm. The available information establishes its one-shot pruning subject, not the exact calculations it borrows.
LLM-Pruner: On the Structural Pruning of Large Language Models identifies structural removal as another route to reduced resource demands. Quantization changes representable values; structural pruning changes what remains in the network. Their deployment consequences can intersect without making the techniques interchangeable.
GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints concerns another form of checkpoint transformation. Its title establishes a different computational object and preparation procedure. The citation record does not justify claiming that it uses GPTQ’s numerical compensation.
Broader accounts incorporated the compression problem
A Survey of Large Language Models and A Comprehensive Overview of Large Language Models cite GPTQ within broader treatments of the field. Their inclusion shows that post-training compression became part of the general discussion surrounding large language systems.
Later titles also place efficiency within adaptation frameworks and smaller-system research. LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Models concerns an efficient adaptation framework. MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategies concerns smaller systems and training strategies. The available citation information does not establish how either uses GPTQ.
What GPTQ contributes to these later discussions is a demonstrated conjunction of results: a sophisticated post-training weight procedure can finish at very large scale, preserve substantial predictive quality at low precision, and support a concrete memory-efficient execution path. Its analysis also leaves useful questions open. Which observations should calibration preserve? How should representation overhead be counted? Which workloads benefit from reduced memory traffic? Those questions remain separable, and the paper’s value lies partly in making each of them experimentally visible.
Cite
Cite as Elias Frantar, Saleh Ashkboos, Torsten Hoefler and Dan Alistarh. 2022. GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers. arXiv:2210.17323.
@misc{frantar2022gptq,
title = {{GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers}},
author = {Elias Frantar, Saleh Ashkboos, Torsten Hoefler and Dan Alistarh},
year = {2022},
doi = {10.48550/arxiv.2210.17323},
eprint = {2210.17323},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2210.17323}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/frantar-2022-gptq-accurate-post-training-quantization/
References
- Dan Alistarh, Demjan Grubic, Jerry Li, Ryota Tomioka, and Milan Vojnovic. QSGD: Randomized quantization for communication-efficient stochastic gradient descent. In Conference on Neural Information Processing Systems (NeurIPS), 2017. OpenAlex ↗ · Scholar ↗
- Emily M Bender, Timnit Gebru, Angelina McMillan-Major, and Shmargaret Shmitchell. On the dangers of stochastic parrots: Can language models be too big? In 2021 ACM Conference on Fairness, Accountability, and Transparency, 2021. OpenAlex ↗ · Scholar ↗
- Michael Boratko, Harshit Padigela, Divyendra Mikkilineni, Pritish Yuvraj, Rajarshi Das, Andrew McCallum, Maria Chang, Achille Fokoue-Nkoutche, Pavan Kapanipathi, Nicholas Mattei, et al. A systematic classification of knowledge, reasoning, and context within the ARC dataset. arXiv preprint arXiv:1806.00358, 2018. OpenAlex ↗ · Scholar ↗
- Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. In Conference on Neural Information Processing Systems (NeurIPS), 2020. our card
- Tri Dao, Daniel Y Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. FlashAttention: Fast and memory-efficient exact attention with io-awareness. arXiv preprint arXiv:2205.14135, 2022. OpenAlex ↗ · Scholar ↗
- Tim Dettmers, Mike Lewis, Younes Belkada, and Luke Zettlemoyer. LLM.int8(): 8-bit matrix multiplication for transformers at scale. arXiv preprint arXiv:2208.07339, 2022. our card
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In North American Chapter of the Association for Computational Linguistics (NAACL), 2019. our card
- Elias Frantar, Eldar Kurtic, and Dan Alistarh. M-FAC: Efficient matrix-free approximations of second-order information. In Conference on Neural Information Processing Systems (NeurIPS), 2021. OpenAlex ↗ · Scholar ↗
- Elias Frantar, Sidak Pal Singh, and Dan Alistarh. Optimal Brain Compression: A framework for accurate post-training quantization and pruning. arXiv preprint arXiv:2208.11580, 2022. Accepted to NeurIPS 2022, to appear. OpenAlex ↗ · Scholar ↗
- Amir Gholami, Sehoon Kim, Zhen Dong, Zhewei Yao, Michael W Mahoney, and Kurt Keutzer. A survey of quantization methods for efficient neural network inference. arXiv preprint arXiv:2103.13630, 2021. OpenAlex ↗ · Scholar ↗
- Babak Hassibi, David G Stork, and Gregory J Wolff. Optimal brain surgeon and general network pruning. In IEEE International Conference on Neural Networks, 1993. OpenAlex ↗ · Scholar ↗
- Torsten Hoefler, Dan Alistarh, Tal Ben-Nun, Nikoli Dryden, and Alexandra Peste. Sparsity in deep learning: Pruning and growth for efficient inference and training in neural networks. arXiv preprint arXiv:2102.00554, 2021. OpenAlex ↗ · Scholar ↗
- Itay Hubara, Yury Nahshan, Yair Hanani, Ron Banner, and Daniel Soudry. Improving post training neural quantization: Layer-wise calibration and integer programming. arXiv preprint arXiv:2006.10518, 2020. OpenAlex ↗ · Scholar ↗
- Itay Hubara, Yury Nahshan, Yair Hanani, Ron Banner, and Daniel Soudry. Accurate post training quantization with small calibration sets. In International Conference on Machine Learning (ICML), 2021. OpenAlex ↗ · Scholar ↗
- Hugo Laurençon, Lucile Saulnier, Thomas Wang, Christopher Akiki, Albert Villanova del Moral, Teven Le Scao, Leandro Von Werra, Chenghao Mou, Eduardo González Ponferrada, Huu Nguyen, et al. The BigScience corpus: A 1.6 TB composite multilingual dataset. 2022. OpenAlex ↗ · Scholar ↗
- Yuhang Li, Ruihao Gong, Xu Tan, Yang Yang, Peng Hu, Qi Zhang, Fengwei Yu, Wei Wang, and Shi Gu. BRECQ: Pushing the limit of post-training quantization by block reconstruction. In International Conference on Learning Representations (ICLR), 2021. OpenAlex ↗ · Scholar ↗
- Mitch Marcus, Grace Kim, Mary Ann Marcinkiewicz, Robert MacIntyre, Ann Bies, Mark Ferguson, Karen Katz, and Britta Schasberger. The penn treebank: Annotating predicate argument structure. In Human Language Technology: Proceedings of a Workshop held at Plainsboro, New Jersey, March 8-11, 1994, 1994. our card
- Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016. our card
- Markus Nagel, Rana Ali Amjad, Mart Van Baalen, Christos Louizos, and Tijmen Blankevoort. Up or down? Adaptive rounding for post-training quantization. In International Conference on Machine Learning (ICML), 2020. OpenAlex ↗ · Scholar ↗
- Markus Nagel, Marios Fournarakis, Rana Ali Amjad, Yelysei Bondarenko, Mart van Baalen, and Tijmen Blankevoort. A white paper on neural network quantization. arXiv preprint arXiv:2106.08295, 2021. OpenAlex ↗ · Scholar ↗
- Yury Nahshan, Brian Chmiel, Chaim Baskin, Evgenii Zheltonozhskii, Ron Banner, Alex M Bronstein, and Avi Mendelson. Loss aware post-training quantization. Machine Learning, 1100 (11):0 3245–3262, 2021. OpenAlex ↗ · Scholar ↗
- Denis Paperno, Germán Kruszewski, Angeliki Lazaridou, Quan Ngoc Pham, Raffaella Bernardi, Sandro Pezzelle, Marco Baroni, Gemma Boleda, and Raquel Fernández. The LAMBADA dataset: Word prediction requiring a broad discourse context. arXiv preprint arXiv:1606.06031, 2016. our card
- Gunho Park, Baeseong Park, Se Jung Kwon, Byeongwook Kim, Youngjoo Lee, and Dongsoo Lee. nuQmm: Quantized matmul for efficient inference of large-scale generative language models. arXiv preprint arXiv:2206.09557, 2022. OpenAlex ↗ · Scholar ↗
- Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. In Conference on Neural Information Processing Systems (NeurIPS), 2019. our card
- Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI blog, 10 (8):0 9, 2019. OpenAlex ↗ · Scholar ↗
- Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 210 (140):0 1–67, 2020. our card
- Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: 100,000+ questions for machine comprehension of text. In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2016. our card
- Sidak Pal Singh and Dan Alistarh. WoodFisher: Efficient second-order approximation for neural network compression. In Conference on Neural Information Processing Systems (NeurIPS), 2020. OpenAlex ↗ · Scholar ↗
- Sandeep Tata and Jignesh M Patel. PiQA: An algebra for querying protein data sets. In International Conference on Scientific and Statistical Database Management, 2003. OpenAlex ↗ · Scholar ↗
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Conference on Neural Information Processing Systems (NeurIPS), 2017. our card
- Peisong Wang, Qiang Chen, Xiangyu He, and Jian Cheng. Towards accurate post-training network quantization via bit-split and stitching. In International Conference on Machine Learning (ICML), 2020. OpenAlex ↗ · Scholar ↗
- Xiaoxia Wu, Zhewei Yao, Minjia Zhang, Conglong Li, and Yuxiong He. Extreme compression for pre-trained transformers made simple and efficient. arXiv preprint arXiv:2206.01859, 2022. OpenAlex ↗ · Scholar ↗
- Zhewei Yao, Reza Yazdani Aminabadi, Minjia Zhang, Xiaoxia Wu, Conglong Li, and Yuxiong He. ZeroQuant: Efficient and affordable post-training quantization for large-scale transformers. arXiv preprint arXiv:2206.01861, 2022. our card
- Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, et al. OPT: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068, 2022. our card
- Lianmin Zheng, Zhuohan Li, Hao Zhang, Yonghao Zhuang, Zhifeng Chen, Yanping Huang, Yida Wang, Yuanzhong Xu, Danyang Zhuo, Joseph E Gonzalez, et al. Alpa: Automating inter-and intra-operator parallelism for distributed deep learning. arXiv preprint arXiv:2201.12023, 2022. our card