Language Modeling by Language Models

Junyan Cheng, Peter Clark, Kyle Richardson
6/25/2025
cs.AIcs.CLcs.MA

No official code found. Best implementation: allenai/genesys (168 stars, Apache-2.0, last commit 2025-10-07).

Abstract

Can we leverage LLMs to model the process of discovering novel language model (LM) architectures? Inspired by real research, we propose a multi-agent LLM approach that simulates the conventional stages of research, from ideation and literature search (proposal stage) to design implementation (code generation), generative pre-training, and downstream evaluation (verification). Using ideas from scaling laws, our system, Genesys, employs a Ladder of Scales approach; new designs are proposed, adversarially reviewed, implemented, and selectively verified at increasingly larger model scales (14M$\sim$350M parameters) with a narrowing budget (the number of models we can train at each scale). To help make discovery efficient and factorizable, Genesys uses a novel genetic programming backbone, which we show has empirical advantages over commonly used direct prompt generation workflows (e.g., $\sim$86\% percentage point improvement in successful design generation, a key bottleneck). We report experiments involving 1,162 newly discovered designs (1,062 fully verified through pre-training) and find the best designs to be highly competitive with known architectures (e.g., outperform GPT2, Mamba2, etc., on 6/9 common benchmarks). We couple these results with comprehensive system-level ablations and formal results, which give broader insights into the design of effective autonomous discovery systems.

View on arXivView PDF

Code Implementations(1)

allenai/genesysCommunity100%
Apache-2.0

Source code and utilities for the Genesys distributed language model architecture discovery system.

16823Go, ShellJul 3, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{cheng2025language,
  title  = {Language Modeling by Language Models},
  author = {Junyan Cheng and Peter Clark and Kyle Richardson},
  year   = {2025},
  eprint = {2506.20249},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.20249v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.20249.svg)](https://codeofpaper.com/paper/2506.20249)

Discussion