arXiv AI

WeightBench: Evaluating Language Models as Weight-Space Programmers

WeightBench is a benchmark designed to evaluate large language models (LLMs) on their ability to program in weight space, a capability known as Weight‑Space Programming (WSP). The benchmark comprises 42 tasks across five tracks—reading, fixing, writing weights, recognizing impossible edits, and data‑free compression—testing LLMs on networks ranging from 2K‑parameter control policies to 7B‑parameter language models. Results show that top agents can read small networks and write control policies without execution, but struggle with patching language models, compressing them without data, or distinguishing impossible edits.

arXiv Computation and Language
1d ago

Weight-Space Programming Writes In-Context Learning and Matches Fine-Tuning in Language Models

The paper explores weight‑space programming, a technique that allows a language model to modify another model’s weights without gradient descent. By providing examples, a weaker model can learn a task entirely from the prompt, achieving performance comparable to in‑context learning and fine‑tuning across six tasks and multiple model families. The edits are sparse, targeting near‑silent MLP units, and the method generally preserves perplexity while sometimes being sensitive to wording changes.

By Konstantinos Skianis, Aristidis Likas
arXiv AI
Nov 14

Compiling Known Rules into Compact Neural Agents: Weight-Space Programming on Unseen Games

The paper introduces weight‑space programming (WSP), a method that uses language models to directly generate neural network weights without training. In experiments on 20 unpublished ARC‑AGI‑3‑style game families, a 57k‑parameter recurrent architecture produced agents that achieved up to 56% success on unseen levels, while Python‑based writers reached 97‑100% success. The resulting networks are highly sparse and integer‑based, yet they are fragile to standard PPO fine‑tuning and offer limited advantage over traditional Python programs.

By Jens Lehmann
arXiv AI
Nov 6

Can an LLM Actually Reason and Program about Neural Network's Weights or is it just memorization on steroids? Exploring "Weight-Space Programming"

The paper investigates whether large language models (LLMs) can truly reason about neural network weights or merely perform local arithmetic combined with memorized dataset priors. Using Claude Opus 5.5, the authors test the model’s ability to read raw weights of small convolutional networks without tools or forward passes, finding that the model can execute accurate local calculations (e.g., batch‑normalization statistics) but relies heavily on familiar dataset labels and priors for semantic judgments. The study concludes that zero‑shot weight reading is better explained by local arithmetic plus dataset priors rather than genuine weight‑flow tracing, and proposes a protocol for auditing future weight‑space claims.

By Nazmus Sakib Ahmed
arXiv AI
Nov 16

Can LLMs Write Backdoors? An Empirical Security Study of Weight-Space Programming

The study investigates whether large language models (LLMs) can use weight‑space programming (WSP) to inject backdoors into neural networks without traditional training methods. Experiments with five LLMs across an MLP, ResNet‑18, and a Qwen model show that backdoors can be successfully inserted while largely preserving clean performance, often with very few parameter changes. The effectiveness varies by LLM and architecture, with GPT‑6 Astra achieving the broadest success.

By Zhaojia Wang, Jiucui Lu, Zheng Li
arXiv AI
6d ago

Zero-Shot Weight-Space Programming for Prediction and Classification of Target Variables in Structured Datasets

The paper presents a method called zero‑shot weight‑space programming, where a large language model is given a small dataset and a feed‑forward network architecture and writes out every weight and bias directly, without any optimization or gradient descent. The resulting frozen networks achieve closed‑form optimality on linear problems, match irreducible error on several synthetic tasks, and outperform gradient‑descent baselines on two benchmarks, while failing on oblique‑structured problems that can be mitigated by alternative constructors. The study demonstrates that language models can perform statistical inference and parameter synthesis purely from data and architecture specifications.

By Eduardo C. Garrido-Merch\'an
arXiv AI
Oct 26

Benchmarks Are Surprisingly Compaction-Friendly

The paper investigates how context compaction—losing information to free up a language model’s context window—affects performance on long‑horizon agentic tasks. Using the OpenCode scaffold and five compaction strategies, the authors evaluate three frontier models on PaperBench, ProgramBench, and PostTrainBench, finding that compaction thresholds largely do not hurt performance for 1M‑context models, but can degrade GPT‑5.3‑Codex on certain benchmarks. The study also shows that compaction can silently drop critical task constraints, especially on ProgramBench and real user‑agent sessions from SWE‑chat, yet current benchmarks remain largely compaction‑friendly because objectives are fixed and progress is stored externally.

By Jeanne Salle, Hardik Bhatnagar, Matthias Bethge, Sahar Abdelnabi, Maksym Andriushchenko
arXiv Machine Learning
Nov 6

WeightLoop: Weight-Space Programming with Experimental Feedback

WeightLoop is a framework that uses experimental feedback to update language model predictors in weight space. It employs GPT-6 Astra to generate a reusable parameter‑editing program that, upon receiving new assay results, identifies prediction errors, validates candidate edits, and applies the chosen changes to the model. The editor remains fixed while the predictor evolves, allowing repeated updates without further LLM calls or gradient retraining and preserving the original inference interface.

By Mengran Li, Bo Li, Weijing Zhao, Chengyang Zhang, Boyu Zhang, Jinfeng Xu, Zelin Zang, Victor C. M. Leung, Stan Z. Li
arXiv AI
Oct 28

BUSTA: Teaching Small Language Models to Reason About Binary Execution

The paper introduces BUSTA, a method for training small language models to reason about binary execution. By fine‑tuning Qwen3‑1.7B and Nemotron‑3‑Nano with Group Relative Policy Optimization, the authors improve the models’ ability to predict input register values for a given x86‑64 basic block, raising accuracy from 73.2% to 85.3% and from 63.3% to 95.2% respectively. The fine‑tuned Nemotron‑3‑Nano achieves performance within four points of frontier models while using far fewer parameters, and the authors release both the fine‑tuned models and the training dataset.

By Ritika Poddar, Aidan Fennelly, Deirdre Murphy, Eric Wolos, Corre L. Steele, Michael Doyle
arXiv AI
Oct 16

How to Train Your Little Dragon: Teaching a Small Language Model to Construct and Refine GPU Optimization Scripts

The paper introduces HOW TO TRAIN YOUR LITTLE DRAGON, a method for teaching a small language model to generate and refine GPU optimization scripts. Using a compact, lossless representation of compiler traces, the authors train the model on 108,594 examples derived from TVM MetaSchedule, first with supervised fine‑tuning and then with reinforcement learning that rewards correctness and performance. After training, an 8‑billion‑parameter model achieves over 91% correctness in both construction and refinement tasks and outperforms several much larger LLMs on kernel performance.

By Annabelle Sujun Tang, Wei Tang, Songyao Jiang, Tianhui Li, Shengzhe Xu, Jiin Woo, Kaan Ozkara, Youngsuk Park, Zhen Jia, Hadi Esmaeilzadeh