Share from 0:00
0:00
/

To Code, or Not To Code? Exploring Impact of Code in Pre-training

Generated this podcast with Google's Illuminate.

Code improves non-code tasks. πŸ”₯

Adding 25% code to LLM training creates better language models for everything, not just coding. Seems it teaches LLMs to think logically, improving their overall intelligence

--------

https://arxiv.org/pdf/2408.10914

πŸ” Key insights from the paper:

β€’ Optimal code proportion: 25% code in pre-training data yields the best overall performance. But the study lacks granularity between 0% and 25%. Exploring 10% or 20% could reveal a more precise optimal point.

However, the paper doesn't explore math benchmarks, which could provide additional insights.

β€’ Linear code performance: Code task performance increases linearly with the proportion of code data, explaining the effectiveness of dedicated code models.

β€’ Impact of high-quality code: Even a small amount (10%) of high-quality synthetic code data significantly boosts performance, with 9% gain in NL reasoning and 44.9% in code benchmarks. This highlights the importance of data quality over quantity.

ResultsπŸ“Š:

β€’ Best variant: 8.2% increase in NL reasoning, 4.2% in world knowledge

β€’ 6.6% improvement in generative win-rates

β€’ 12x boost in code performance

β€’ Cooldown with code: 3.6% gain in NL reasoning, 10.1% in world knowledge, 20% in code

β€’ High-quality synthetic code (10% of data): 9% gain in NL reasoning, 44.9% in code benchmarks

Discussion about this video

User's avatar

Ready for more?