Share from 0:00
0:00
/

"How to Train Long-Context Language Models (Effectively)"

Generated this podcast with Google's Illuminate.

Careful data engineering enables small 8B param LLMs to process documents upto 512K tokens.

πŸ“š https://arxiv.org/pdf/2410.02660

Solution in this Paper πŸ› οΈ:

β€’ Establishes robust evaluation protocol using diverse long-context tasks

β€’ Optimizes data mix: 60% long data (30% code, 30% books), 40% high-quality short data

β€’ Scales training to 40B tokens: 20B at 64K length, 20B at 512K length

β€’ Uses increased RoPE frequency base and disables cross-document attention

β€’ Performs supervised fine-tuning with short-context instruction data (UltraChat)

-----

Key Insights from this Paper πŸ’‘:

β€’ Evaluating after supervised fine-tuning reveals long-context abilities better

β€’ Training on longer sequences (512K) improves performance on shorter contexts (64K)

β€’ Short-context instruction data sufficient for strong long-context performance

β€’ Mixing long data with high-quality short data crucial for maintaining overall capabilities

-----

Results πŸ“Š:

β€’ ProLong-8B achieves state-of-the-art performance among 10B-scale models at 128K context

β€’ Outperforms Llama-3.1-8B on most long-context tasks with only 5% of training data

β€’ Effectively processes up to 512K tokens

β€’ Maintains strong short-context performance

Discussion about this video

User's avatar

Ready for more?