SimReg: Achieving Higher Performance in the Pretraining via Embedding Similarity Regularization
Yan Sun, Guoxia Wang, Jinle Zeng, Jiabin Yang, Shuai Li, Li Shen, Dacheng Tao, Dianhai Yu, Haifeng Wang
NeurIPS page · Open on the map
Category: Efficient LLM Inference & Training › Efficient Sequence Modeling · Type: new method · Keywords: embedding similarity regularization, LLM pretraining, representation learning, contrastive loss, Mixture-of-Experts, zero-shot performance
Summary
SimReg introduces an embedding similarity regularization loss that improves LLM pretraining efficiency, accelerating convergence by over 30% and boosting zero-shot performance by over 1% across standard benchmarks.
Explained to a 5-year-old
Computers learn to understand words by looking at lots of text. Sometimes words that mean the same thing look different in the computer's memory. This makes the computer take a long time to learn and not work as well. The paper adds a rule that helps similar words look more alike and different words look apart. This rule helps the computer learn faster and do better without needing more training.
Explained to a 5-year-old, longer
Computers are taught to understand language by reading many sentences. They store each word as a number in their memory. Words that mean the same thing should have similar numbers. But sometimes these numbers are far apart, making learning harder. This makes the computer slower and less accurate. The paper suggests a simple rule to fix this problem. The rule looks at groups of words in a sentence. If two words have the same meaning, the rule pulls their numbers closer together. If two words have different meanings, the rule pushes their numbers apart. This makes the memory organization cleaner and more organized. As a result, the computer learns faster and performs better on new tasks. The rule also works for different kinds of computer models.
For a technical reader
The paper identifies that token embeddings in large language models often have high variance for same-meaning tokens and unwanted similarity for different-meaning tokens, which slows down pretraining. It introduces a regularization loss that pulls together embeddings of tokens sharing a ground-truth label within each sequence while pushing apart embeddings of tokens with different labels using a contrastive term. This loss enlarges the margins between classes, leading to more efficient representation learning. Experiments on dense and Mixture-of-Experts models show the loss accelerates convergence by over 30% and raises zero-shot downstream performance by more than 1% on standard benchmarks. The authors also provide ablation studies that guide hyper-parameter selection and demonstrate the loss’s effectiveness across architectures.
Problem
Large language model pretraining via next-token prediction suffers from high intra-class variance and inter-class similarity in token embeddings, which hinders efficient representation learning. This makes it difficult to achieve better performance and faster convergence during pretraining.
Method
The approach adds an embedding similarity regularization loss that pulls together token representations sharing the same ground-truth label within each sequence and pushes apart representations of tokens with different labels using a contrastive term, thereby enlarging classification margins.
Results
The approach accelerates training convergence by over 30% and improves average zero-shot downstream performance by over 1% across standard benchmarks.
Contributions
It proposes an embedding similarity regularization loss for LLM pretraining that enlarges classification margins and provides empirical evidence of faster convergence and higher zero-shot performance across dense and MoE models, along with ablation analyses.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction