Safe and Efficient Multi-Epoch... Note

Safe and Efficient Multi-Epoch Embedding Training

Large ID embedding tables at Pinterest are crucial for model advancements but historically constrained to single-epoch fine-tuning due to fragile training dynamics. Extending training beyond one epoch leads to significant model quality degradation and GPU waste from communication bottlenecks. The "one-epoch" phenomenon occurs because large capacity and sparse updates cause the model to memorize rather than generalize. Previous work enabled multi-epoch pre-training, but not multi-epoch post-training (fine-tuning) for Homefeed ranking models.Researchers discovered that the embedding table was the primary source of overfitting when training longer; freezing it resolved the issue and improved metrics. Gradient isolation strategies were explored to prevent overfitting by controlling which objectives updated the embedding table. While effective at preventing overfitting, these strategies did not surpass the performance of a fully frozen embedding table. Decoupling embedding optimization proved crucial, showing that the timing of embedding adaptation significantly impacts performance.Freezing the embedding table during initial epochs and then allowing it to adapt later yielded the best results, improving model performance over both one-epoch and fully frozen multi-epoch models. This delayed update strategy prevented the embeddings from overfitting too quickly, allowing the rest of the network to learn more generalizable patterns first. This method also successfully provided more optimization time for slower-adapting components like Vision Language Models (VLMs). The research established a practical recipe for multi-epoch fine-tuning of embedding tables, enhancing task-specific adaptation.To make longer training efficient, they addressed bottlenecks in distributed embedding lookup and synchronization. These efforts aimed to reduce idle GPU time caused by communication overhead, which is critical for the practical implementation of multi-epoch training.
CdXz5zHNQW_ujSSFqa4Y6.png