LFQ: Logit-aware Final-block Quantization for Boosting the Generation Quality of Low-Bit Quantized LLMs

TL;DR

LFQ method enhances low-bit quantized LLMs' generation quality by minimizing cross-entropy in the final block.

cs.AI 🔴 Advanced 2026-05-28 3 views
Jung Hyun Lee June Yong Yang Jungwook Choi Eunho Yang
quantization large language models generation quality cross-entropy low-bit

Key Findings

Methodology

The paper introduces Logit-aware Final-block Quantization (LFQ), which enhances block-wise PTQ by minimizing cross-entropy between logits of full-precision and quantized models in the final Transformer block. This approach aligns token probabilities and improves generation quality while maintaining performance on language modeling and understanding tasks.

Key Results

  • LFQ significantly improves generation quality on tasks like IFEval, GSM8K, MATH500, and AIME, achieving a 1-2% accuracy increase compared to full-precision baselines.
  • In the Qwen2.5-7B-Instruct model, LFQ enables 4-bit quantized models to nearly match full-precision performance on generation tasks.
  • LFQ consistently enhances performance across diverse model families, especially in long-form generation tasks.

Significance

LFQ addresses the generation quality degradation in traditional block-wise PTQ by introducing cross-entropy optimization in the final block. This method not only enhances accuracy in generation tasks but also opens new possibilities for deploying low-bit quantized models in practical applications.

Technical Contribution

LFQ introduces cross-entropy optimization at the logit level, overcoming the limitations of traditional MSE optimization. This innovation allows low-bit quantized models to better align with full-precision models' token probability distributions, providing new insights for applying quantization in generation tasks.

Novelty

LFQ is the first to introduce logit-level cross-entropy optimization in low-bit quantization, significantly improving generation quality compared to existing block-wise PTQ methods, especially in long-form generation.

Limitations

  • LFQ has slightly higher computational complexity than traditional PTQ due to cross-entropy calculations.
  • The method is primarily optimized for generation tasks, and its applicability to other tasks remains to be verified.

Future Work

Future research could explore LFQ's applicability across different tasks and model architectures, optimize its computational efficiency, and investigate its integration with other quantization techniques.

AI Executive Summary

As large language models continue to grow, low-bit quantization offers a practical solution for memory optimization. However, traditional block-wise post-training quantization (PTQ) performs poorly in generation tasks, especially in long-form generation and complex reasoning tasks. This paper introduces Logit-aware Final-block Quantization (LFQ), which significantly improves the generation quality of low-bit quantized models by minimizing the cross-entropy between the logits of full-precision and quantized models in the final Transformer block.

LFQ demonstrates exceptional performance across various generation tasks, including IFEval, GSM8K, MATH500, and AIME. In these tasks, LFQ enables low-bit quantized models to achieve generation accuracy close to full-precision baselines, particularly excelling in long-form generation. Experimental results show consistent performance improvements across different model families.

The technical contribution of LFQ lies in its innovative use of logit-level cross-entropy optimization, overcoming the limitations of traditional MSE optimization. This method not only enhances accuracy in generation tasks but also provides new possibilities for deploying low-bit quantized models in practical applications. However, LFQ has slightly higher computational complexity than traditional PTQ. Future research can further optimize its computational efficiency and explore its applicability across different tasks and model architectures.

Deep Analysis

Background

The success of large language models is largely attributed to their increasing parameter size, but this also significantly increases memory requirements. Quantization techniques reduce memory pressure by lowering data precision, with low-bit weight quantization being particularly attractive due to its high compression ratio and effective preservation of model quality. While traditional block-wise post-training quantization performs well in language modeling and understanding tasks, it falls short in generation tasks, especially in long-form generation.

Core Problem

Traditional block-wise post-training quantization performs poorly in generation tasks mainly because it fails to consider the unembedding layer (LM head) in block-wise optimization and relies on the mean squared error (MSE) objective. This misalignment leads to significant accuracy drops in generation tasks as the token probability distribution of the quantized model diverges from that of the full-precision model.

Innovation

LFQ addresses the generation quality degradation in traditional block-wise PTQ by introducing cross-entropy optimization in the final Transformer block. This ensures that the token probability distribution of the quantized model aligns with that of the full-precision model, thereby improving generation accuracy.

Methodology

  • �� LFQ applies cross-entropy optimization in the final Transformer block to align the logits of quantized and full-precision models.
  • �� The first to penultimate Transformer blocks continue to use MSE optimization.
  • �� By optimizing cross-entropy, LFQ ensures the token probability distribution of the quantized model matches the full-precision model.

Experiments

Experiments were conducted on various generation tasks, including IFEval, GSM8K, MATH500, and AIME, using different quantization configurations such as 4-bit and 3-bit group quantization. Results show that LFQ significantly improves generation quality across all tasks.

Results

LFQ significantly improves the accuracy of low-bit quantized models in generation tasks, achieving a 1-2% accuracy increase compared to full-precision baselines. It performs exceptionally well in long-form generation tasks.

Applications

LFQ can be applied in scenarios requiring efficient generation quality, such as intelligent assistants, automatic text generation, and complex reasoning tasks. Its low memory footprint and high generation quality make it widely applicable in resource-constrained devices.

Limitations & Outlook

LFQ has slightly higher computational complexity than traditional PTQ due to cross-entropy calculations. It is primarily optimized for generation tasks, and its applicability to other tasks remains to be verified. Future research can explore LFQ's applicability across different tasks and model architectures and optimize its computational efficiency.

Plain Language Accessible to non-experts

Imagine you're cooking in a kitchen. Traditional quantization methods are like cooking all ingredients in one big pot—simple but not very tasty. The LFQ method is like adding the right amount of seasoning to each dish at the end, ensuring each dish tastes as good as the original. By making fine adjustments at the last step, LFQ ensures the quality of the generated text matches that of the full-precision model.

ELI14 Explained like you're 14

Imagine you're playing a game that requires quick reactions. Traditional quantization methods are like using a slow controller—playable but not very responsive. The LFQ method is like upgrading your controller, allowing you to react faster in the game and beat your opponents! That's how LFQ improves model performance in generation tasks.

Glossary

Logit-aware Final-block Quantization (LFQ)

A method that applies cross-entropy optimization in the final Transformer block to improve the generation quality of low-bit quantized models.

Used to align the token probability distribution of quantized models with full-precision models.

Post-training Quantization (PTQ)

A quantization technique applied after model training to reduce computational and memory requirements.

Traditional PTQ performs poorly in generation tasks.

Mean Squared Error (MSE)

A loss function used to measure the difference between model predictions and actual values.

Traditional PTQ relies on the MSE objective.

Cross-entropy

A loss function used to measure the difference between two probability distributions.

LFQ uses cross-entropy optimization in the final block.

Language Model Head (LM Head)

The output layer of a model used to generate token probability distributions.

LFQ considers the LM head to improve generation quality.

Open Questions Unanswered questions from this research

  • 1 LFQ's applicability to non-generation tasks has not been verified, and future research could explore its performance across different tasks.
  • 2 LFQ has slightly higher computational complexity than traditional PTQ, and optimizing its efficiency is a future research direction.

Applications

Immediate Applications

Intelligent Assistants

LFQ can be used to enhance the response quality of intelligent assistants, especially in generating long texts.

Long-term Vision

Complex Reasoning Systems

LFQ can be used to develop more efficient complex reasoning systems, enhancing their applicability in resource-constrained environments.

Abstract

As large language models continue to scale, low-bit weight-only post-training quantization (PTQ) offers a practical solution to their memory-efficient deployment. Although block-wise PTQ is capable of matching the full-precision (FP) baseline on basic language modeling and understanding, its quality is degraded for generative tasks -- especially at longer responses and extended chains of thought, which is critical in boosting task accuracy. We attribute this shortfall to two factors: (i) the omission of the unembedding layer (the LM head) in block-wise optimization and (ii) the reliance on the mean squared error (MSE) objective. Both factors cause the token probability distribution of the quantized model to misalign with that of the FP model, yielding notable accuracy drops on text generation benchmarks. To rectify the discrepancy, we introduce Logit-aware Final-block Quantization (LFQ), a simple yet effective enhancement to block-wise PTQ that quantizes the final Transformer block by minimizing the cross-entropy between the logits of the FP model and those of its quantized counterpart. By aligning token probabilities at the logit level in the final block, LFQ consistently improves the accuracy of complex generation tasks over state-of-the-art block-wise PTQ across diverse model families, while maintaining parity with FP baselines on language modeling and understanding.

cs.AI