# Poster 29123

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/29123

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi everyone, my name is Dang Nguyen and today I'm excited to share our work on mini-batch courses for memory-efficient language model training on data mixtures. As we all know, training large language models is extremely memory -intensive for an LLM with N million parameters.
MIST Precision Training requires 18N GB of GPU memory. Example, figure 1 illustrates that an RTX 4090 can train models up to only 1.3 billion parameters. This memory bottleneck significantly limits the accessibility and scalability of training LLMs.
However, we can reduce CPU memory from either model or training techniques or data perspective. It's possible to combine all three strategies to further reduce CPU memory consumption. However, in this work we focus on the data-centric approach.
Leveraging core set selection to optimize memory efficiency and improve the model performance. It has been theoretically proved that training with larger mini batch size improves the convergence speed. Therefore, we aim to try mini batch core set.
that can mimic the training dynamics of large mini-batches by solving a gradient matching problem. However, finding mini -batch process for LLMs presents three challenges. The first one is highly imbalanced language data. For instance,
As shown in Figure 3, the largest data source is nearly 300 times the size of the smallest one. Secondly, the idiom optimizer makes the selection more complex. Thirdly, extremely high dimensional awareness makes the direct selection computationally expensive.
To address these challenges, we propose Quantsys for training LLMs or C-O-N in short, which consists of three components. The first one is a balanced sampling strategy, which retains all the data from underrepresented sources.
While selectively samples for dominant sources, the second component is an atom-like radiant normalization scheme designed to replicate the atom update rules. The third component tackles the challenge of high-dimensional radians.
In LAMs, first, we employ zero -order gradient to estimate the gradient for only the last B production matrix. Secondly, we further enhance the efficiency by specifying the gradient pertaining only about 1% largest elements.
To validate the effectiveness of our method with Phi-2 and Phi-2 with low-rank or mask-instruct dataset, our method as shown in figure 4 improves accuracy, reduces time, and memory, specifically compared to standard Phi -2.
With a bus size of 256, our approach, using a bus size four times smaller, achieves a 2.7 speed-up and reduces memory consumption by 45%. Thank you for listening!
