[KongchangAI]
· 2 min read· 1,288 words

WeightBench: Can LLMs Program Neural Network Weights Directly?

WeightBench: Can LLMs Program Neural Network Weights Directly?

WEIGHTBENCH systematically evaluates LLM capability boundaries in directly reading and writing neural network parameters across 42 tasks in five tracks.

The article introduces Weight-Space Programming (WSP), where language models read, repair, or write neural network parameters without gradient descent. The WEIGHTBENCH benchmark covers five tracks and 42 tasks, from 2K-parameter control policies to 7B language models. Frontier models can read small networks and write working control policies, but struggle with repairing LLMs, data-free compression, and distinguishing impossible from difficult edits. Claude Opus 5.5 scores 0.535 macro-average; GPT-6.1-sol scores 0.568 on 38 tasks. The sandbox framework, task registry, and leaderboard are open-sourced.

Large language models are moving from text generation toward direct manipulation of neural network parameters. Recent research calls this capability Weight-Space Programming (WSP): models can read a network's training objective, repair a broken network, or even write a working network from scratch — all without gradient descent. To systematically evaluate this new paradigm, researchers introduced the WEIGHTBENCH benchmark, covering 42 WSP tasks across five tracks: reading weights, repairing weights, writing weights, identifying impossible edits, and data-free compression. The networks under test range from 2K-parameter control policies to 7B-parameter language models.

WeightBench benchmark overview

Five Tracks: From Reading to Compression

WEIGHTBENCH breaks weight-space programming into five capability dimensions. Reading weights requires the model to understand what a network was trained to do; repairing weights involves parameter-level corrections to a broken network; writing weights requires the model to directly generate a working control policy without running the network or relying on gradient descent. Identifying impossible edits examines whether the model can distinguish between "hard to fix" and "fundamentally impossible" edit requests; data-free compression tests the model's ability to compress a network in the absence of the original training data. Together, these five task types map out the capability boundaries of WSP.

Weight space refers to the set of all trainable parameters of a neural network. Think of it as a high-dimensional vector space: each point corresponds to a specific set of parameters, and thus to a particular way the network behaves. Traditional training moves gradually through this space via gradient descent, seeking positions where the loss decreases; weight-space programming instead asks a language model to "read and write" directly in that space — either inferring the training objective from the parameters or rewriting the parameters to a position that accomplishes a new task. The key to understanding this concept is distinguishing "parameters" from "activations": the former are the static knowledge carriers stored in the network, while the latter are the intermediate representations dynamically produced as an input passes through the network. WSP operates on the former rather than the latter, and therefore does not rely on forward propagation to produce training signals.

Macro-average is a common aggregation method in benchmark evaluation: first compute the score for each task (or each track) separately, then take an unweighted arithmetic mean across all tasks. Its counterpart is the micro-average, which weights by sample count and lets tasks with more samples dominate the total score. WEIGHTBENCH uses macro-averaging, meaning all 42 tasks carry equal weight regardless of size — a small control-policy task contributes to the final score just as much as a 7B language model task. This makes the score more reflective of breadth than depth of capability, and explains why the gaps between models may look modest yet correspond to significant differences in ability.

Frontline Model Performance and Shortcomings

Experimental results show that frontier agents can already read small networks and write working control policies without running them. But models still fall short when it comes to repairing language models, data-free compression, and distinguishing impossible edits from difficult ones. According to the paper, across all 42 tasks, Claude Opus 5.5 achieves a macro-average score of 0.535, Sonnet 5.5 scores 0.466, Haiku 5.5 scores 0.402, and DeepSeekAd v4-flash scores 0.215. On the 38 tasks that Opus actually ran, GPT-6.1-sol achieves a score of 0.568, slightly above Opus's 0.546.

These numbers send two signals. First, weight-space programming is not out of reach — reading and writing small control policies has entered the realm of the feasible. Second, when it comes to large-scale language models, directly manipulating weights remains an open problem, with model performance on compression and repair clearly lagging behind reading and writing.

Challenges and Significance of Benchmark Design

Building a WSP benchmark is not easy. Weight-space programming lacks an intermediate representation comparable to that of traditional code generation, so evaluation must rely on the network's actual behavior or parameter-level metrics. WEIGHTBENCH provides an OS-level sandbox testing framework that ensures models manipulate weights in a controlled environment, avoiding impact on the host system. The public release of the task registry and live leaderboard also provides a reproducible foundation for future research.

The value of this benchmark lies in bringing scattered WSP capabilities into a unified evaluation framework. Prior work often demonstrated model potential on a single task, whereas WEIGHTBENCH's multi-track design reveals imbalances across capabilities: reading is stronger than writing, writing is stronger than repairing, and repairing is stronger than compression. This fine-grained profile helps researchers pinpoint bottlenecks rather than vaguely claiming that models "understand" weights.

An OS-level sandbox is an isolated execution environment that uses technologies such as namespaces, cgroups, or virtualization to restrict the filesystem, network, and process access of the program under test to a controlled scope. In WSP evaluation, models need to directly read and write neural network parameter files and may even execute code that loads weights; if unchecked, this could damage the host environment or escape to external systems. The sandbox ensures these operations act only on isolated copies and can be fully rolled back after the task ends. Unlike "application-level" protections that merely filter inputs and outputs, OS-level isolation intercepts system calls at a lower layer, and can therefore accommodate weight files in arbitrary formats and loading logic from arbitrary frameworks — which is the technical basis for the benchmark's reproducibility.

Parameter-level metrics refer to evaluation methods that compare weight tensors directly rather than running the network — for example, the norm of parameter differences, per-layer cosine similarity, or the perturbation magnitude of specific channels. They complement behavioral metrics (checking whether outputs are correct on test inputs): behavioral metrics are closer to practical use but costly for large models and can be fooled by "surface-level fixes"; parameter-level metrics are cheap and localizable but not necessarily correlated with functional recovery. WEIGHTBENCH adopts both types of metrics precisely so that, in the absence of an intermediate representation, it can still make interpretable judgments about WSP results.

The Next Step for Weight-Space Programming

From a broader perspective, WSP represents an approach distinct from the mainstream fine-tuning paradigm. Traditional methods change network behavior through data-driven gradient updates, whereas weight-space programming attempts to make language models act directly as "weight programmers," replacing optimization with reasoning. If this capability matures, model debugging, network compression, and zero-shot policy generation could all benefit. But current results remind us that models still lack the ability to recognize their own capability boundaries — failing to distinguish "can't do it" from "hard to do" is precisely the key obstacle to making automated weight manipulation practical.

WEIGHTBENCH's code, task registry, sandbox framework, and leaderboard are all publicly available, providing the community with a starting point to advance WSP research together. As model capabilities improve, the benchmark itself will need to evolve to cover larger-scale networks and more complex editing scenarios.

One-line Summary

WEIGHTBENCH systematically evaluates the capability boundaries of LLMs in directly reading and writing neural network parameters through 42 tasks across five tracks.

Paragraph Summary

The article introduces Weight-Space Programming (WSP), a new paradigm in which language models can read, repair, or even write neural network parameters from scratch without gradient descent. To systematically evaluate this capability, researchers introduced the WEIGHTBENCH benchmark, covering five tracks — reading weights, repairing weights, writing weights, identifying impossible edits, and data-free compression — with 42 tasks in total, spanning networks from 2K-parameter control policies to 7B language models. Results show that frontier models can already read small networks and write working control policies, but fall notably short on repairing language models, data-free compression, and distinguishing "impossible" from "difficult" edits. Claude Opus 5.5 achieves a macro-average of 0.535, and GPT-6.1-sol scores 0.568 on 38 tasks. The benchmark's sandbox framework, task registry, and leaderboard are all open-sourced.

#WeightBench#weight-space programming#LLM#neural network parameters#benchmark#model compression
Share:

Related articles