{"slug": "perplexity-intelligence-and-pretraining-corpus-mix", "title": "Perplexity, intelligence and pretraining corpus mix", "summary": "A blog post published earlier today argues that raising the share of code in pretraining data lowers evaluation log-perplexity, citing the SAIL-SG RegMix project, whose data show code log-perplexity tracking code content with an r² of 0.75 and a p-value of about 4×10⁻²⁰. The post responds to OpenAI's blog \"Perplexity and Intelligence\" and contends OpenAI should have used a more balanced corpus to generate its log-perplexity figures, while conceding the data cannot confirm OpenAI is increasing code in its pretraining or explain the full drop in log-perplexity.", "body_md": "# Perplexity, intelligence and pretraining corpus mix\n\nEarlier today, I published [a blog post](https://micjm.com/blog/lowering-perplexity-without-scaling/) showing that if you increase the proportion of code in pretraining, you will get lower log-perplexity in evaluation. This was in response to [OpenAI’s blog](https://openai.com/index/perplexity-and-intelligence/) today.\n\nAfter publishing, I found [a project](https://github.com/sail-sg/regmix) that had actually randomized contents of pretraining and published log-perplexities on the various components. Basically, they’d already done an experiment to prove the relationship I was alleging.\n\nHere’s the data from their experiment, you can see how closely log-perplexity for code tracks code content.\n\nThe r² of this chart is 0.75 and the p-value of this relationship is about 4×10⁻²⁰.\n\nFor fun, I asked an agent to cherrypick the data and generate a similar chart to OpenAI’s, just using the various points here. We even have an impressive internal model (that’s just 50% code in pretraining).\n\nDo we know that OpenAI is increasing the component of code in its pretraining over time? No, but I think it’s a good bet. Can we say that this explains the full drop in log-perplexity? Absolutely not and it’s unlikely. Can we say that there is some confounding here and that OpenAI should have used a more balanced corpus to generate log-perplexity? I think so.", "url": "https://wpnews.pro/news/perplexity-intelligence-and-pretraining-corpus-mix", "canonical_source": "https://micjm.com/blog/perplexity-intelligence-pretraining-corpus-mix/", "published_at": "2026-11-22 23:05:36+00:00", "updated_at": "2026-11-23 01:11:31.282730+00:00", "lang": "en", "topics": ["large-language-models", "ai-research", "machine-learning"], "entities": ["OpenAI", "SAIL-SG", "RegMix"], "also_reported_by": [], "takeaway": "RegMix data show code log-perplexity tracks code share in pretraining with r² of 0.75 and p-value of about 4×10⁻²⁰, so corpus mix confounds perplexity comparisons across models.", "recommendation": {"advice": "When comparing log-perplexity across models, control for pretraining corpus mix, since code share alone explains much of the variance (r² 0.75 in RegMix data).", "playbook": "training-data", "playbook_url": "https://wpnews.pro/playbooks/training-data"}, "alternates": {"html": "https://wpnews.pro/news/perplexity-intelligence-and-pretraining-corpus-mix", "markdown": "https://wpnews.pro/news/perplexity-intelligence-and-pretraining-corpus-mix.md", "text": "https://wpnews.pro/news/perplexity-intelligence-and-pretraining-corpus-mix.txt", "jsonld": "https://wpnews.pro/news/perplexity-intelligence-and-pretraining-corpus-mix.jsonld"}}