All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Security
Security
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Research Proposal: Measuring LLM Perplexity Scaling Laws Across Codebase Sizes for Safer Software

By

Gwern

1d ago· 15 min readenInsight

Summary

This research proposal explores empirically measuring how coding LLM perplexity scales with codebase size to estimate scaling laws of 'predictability' across programming languages. Using Lean as a test case for formal languages, the author argues that languages with better scaling law exponents will become easier for LLMs to understand, fix, and write, potentially leading to safer and more secure software. The proposal suggests both expensive approaches (training from scratch) and cheap approaches (measuring perplexity over increasingly large context windows) to investigate this relationship.

Source

bskyResearch Proposal: Measuring LLM Perplexity Scaling Laws Across Codebase Sizes for Safer Softwaregwern.net

Key quotes

· 3 pulled
Codebases, and programming languages, which have better exponents in their scaling laws will eventually become easier for LLMs to understand, fix, and write.
Research idea: empirically measure the scaling of coding LLM perplexity over codebase size to estimate the scaling laws of 'predictability' by programming language or other factors.
We can measure this in contemporary LLMs expensively, by training from scratch and finetuning, or cheaply, by measuring perplexity over increasingly large context windows of source code.
Snippet from the RSS feed
Research proposal for measuring how coding LLM perplexity scales with codebase context size, using Lean as a test case for whether formal languages have better predictability exponents and could lead to safer, more secure software worldwide.

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.