paper-with-me

Papers

Towards Efficient Pre-training: Exploring FP4 Precision in Large Language Models

2025-02-17 · Jiecheng Zhou, Ding Tang, Rong Fu, Boni Hu, Haoran Xu, Yi Wang, Zhilin Pei, Zhongling Su, Liang Liu, Xingcheng Zhang, Weiming Zhang

The burgeoning computational demands for training large language models (LLMs) necessitate efficient methods, including quantized training, which leverages low-bit arithmetic operations to reduce costs. While FP8 precision has shown potential, leveraging FP4 remains challenging due to inherent quantization errors and limited representation capability. Based on the Transformer architecture, we present an FP4 training scheme for LLMs, overcoming these obstacles through mixed-precision quantization strategies tailed for different modules and training stages. This allows us to apply the precision level suitable to distinct components within the model, ensuring that multi-head attention and linear layers are handled appropriately. Our pretraining recipe ensures stability in backpropagation by incorporating fine-grained quantization methods with a target precision training schedule. Experimental results demonstrate that our FP4 training scheme achieves accuracy comparable to BF16 and FP8, with smaller theoretical computational cost. With the advent of next-generation hardware supporting FP4, our method sets the foundation for efficient ultra-low precision training.

📄 PDF Abstract BibTeX arXiv:2502.11458

Code (0)

등록된 구현이 없습니다.

Tasks

Quantization

Methods 이 논문이 사용한 방법론

Attention 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Residual Connection 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Multi-Head Attention 설명 없음
Position-Wise Feed-Forward Layer 설명 없음

Similar Papers 제목 키워드 기반

BitSkip: An Empirical Analysis of Quantization and Early Exit Composition in Transformers

2025-10-27 · Ramshankar Bhuvaneswaran, Handan Liu arxiv

The pursuit of efficient Large Language Models (LLMs) has led to increasingly complex techniques like extreme quantization and dynamic routing. While individual benefits of these methods are well-documented, their compos…

Exploring the Capacity of a Large-scale Masked Language Model to Recognize Grammatical Errors

2021-08-27 · Findings (ACL) 2022 5 · Ryo Nagata, Manabu Kimura, Kazuaki Hanawa

In this paper, we explore the capacity of a language model-based method for grammatical error detection in detail. We first show that 5 to 10% of training data are enough for a BERT-based error detection method to achiev…

Grammatical Error DetectionLanguage ModelingLanguage Modelling

With Shared Microexponents, A Little Shifting Goes a Long Way

2023-02-16 · Bita Rouhani, Ritchie Zhao, Venmugil Elango, Rasoul Shafipour 외

This paper introduces Block Data Representations (BDR), a framework for exploring and evaluating a wide spectrum of narrow-precision formats for deep learning. It enables comparison of popular quantization standards, and…

QuantizationRecommendation Systems

Exploring Precision and Recall to assess the quality and diversity of LLMs

2024-02-16 · Florian Le Bronnec, Alexandre Verine, Benjamin Negrevergne, Yann Chevaleyre 외

We introduce a novel evaluation framework for Large Language Models (LLMs) such as \textsc{Llama-2} and \textsc{Mistral}, focusing on importing Precision and Recall metrics from image generation to text generation. This …

DiversityImage GenerationText Generation

Exploring Large Language Models for Hate Speech Detection in Rioplatense Spanish

2024-10-16 · Juan Manuel Pérez, Paula Miguel, Viviana Cotik

Hate speech detection deals with many language variants, slang, slurs, expression modalities, and cultural nuances. This outlines the importance of working with specific corpora, when addressing hate speech within the sc…

Hate Speech Detection