Adding website addresses during training helps LLMs learn faster and better.
MeCo prepends metadata like URLs to training documents during initial training, then uses a cooldown phase without metadata, achieving same performance with 33% less data.
-----
https://arxiv.org/abs/2501.01956
π€ Original Problem:
β LLMs process all web content equally, ignoring crucial source context that helps humans understand content quality and intent
β This makes it hard for models to learn appropriate behaviors for different content types (like distinguishing between factual articles and memes)
-----
π οΈ Solution in this Paper:
β MeCo (Metadata Conditioning then Cooldown) adds source URLs before each training document
β First 90% of training uses metadata-augmented data like "URL: en.wikipedia.org \n\n [document]"
β Final 10% uses standard data without metadata as cooldown phase
β Loss is calculated only on document tokens, not metadata tokens
β Cross-document attention is disabled for 25% faster training
-----
π‘ Key Insights:
β Metadata grouping is key - hashed URLs work as well as real ones
β Model-generated topics can replace URLs as metadata
β 10-20% cooldown length is optimal
β Works better with billion-parameter models
-----
π Results:
β Matches baseline performance using 33% less training data
β Consistent gains across model scales (600M to 8B parameters)
β Using wikipedia.org URL reduces toxic generations several-fold
β 6% improvement on zero-shot commonsense tasks with factquizmaster.com URL
------
Are you into AI and LLMsβ Join my daily AI newsletter. I will send you 7 emails a week analyzing the highest signal AI developments. ββ
π https://rohanpaul.substack.com/










