arXiv Computation and Language

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.

arXiv AI
Nov 16

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.

By Aayush Marasini, Barsat Khadka, Nick Rahimi
arXiv Machine Learning
6d ago

What Does Weight-Space Programming Add to Diffusion Editing? Program Construction versus Score-Guided Refinement

The paper investigates weight‑space programming (WSP) for diffusion concept editing, where a language model generates executable weight updates that define training contexts, preservation constraints, and update directions. Experiments on 24 TIMED test edits for Stable Diffusion 1.4 show that the preregistered rewrite pipeline offers no advantage over a strong shared‑panel baseline, but exploratory one‑shot Astra programs improve fresh‑scene VLM joint success by +10.0 points, while CLIP relative match remains unchanged. Further probing and rewriting of Astra programs raises CLIP by +6.2 points but reduces joint success by -9.7, indicating that program construction and score‑guided revision should be treated as distinct stages in a WSP pipeline.

By Zitian Gao, Jingyi Xu, Ziqi Han, Chengkai Lei, Ye Liu, Liangliang Shi
Hugging Face Trending Papers
Jul 14

The Illusion of Robustness: Aggregate Accuracy Hides Prediction Flips under Task-Irrelevant Context

As large language models (LLMs) grow more capable, they are increasingly deployed in context-rich settings where task inputs are often accompanied by long, partially irrelevant context. In a controlled setting, we find that state-of-the-art models often appear robust to task-irrelevant context at the aggregate level: prepending it to benchmark questions causes little change in overall accuracy.

arXiv Computation and Language
Sep 11

Larger Context Window, Fewer Overcorrections: Optimizing Prompts and Batching for Minimal-Edit Grammatical Error Correction

The paper presents a prompt-based method for minimal-edit grammatical error correction (GEC) that reduces overcorrection in large language models (LLMs). It introduces taxonomy-based instructions, batch prompting to regularize overcorrection, and LLM-assisted prompt optimization, achieving an $F_{0.5}$ score of 78.32 on BEA-2019 with Gemini 3.1-Pro. This approach narrows the performance gap to fine-tuned models while avoiding their infrastructure demands.

By Kateryna Karpo, Artem Chernodub
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
Sep 3

Language Models Can Control Their Own Attention

The paper introduces Declarative Attention (DA), a protocol that lets language models explicitly declare which parts of their context to focus on during generation. By partitioning decoding into full-context, region-specific, and recent-output-only modes, the inference engine can skip large portions of the KV cache, dramatically reducing attended tokens. Experiments on 15 long-context tasks with off-the-shelf models show significant savings (52.0% and 31.1% reductions) with only modest accuracy drops that diminish as model size increases.

By Namgyu Ho, Huzama Ahmad, Woosung Koh, Se-Young Yun, Tal Schuster, Cicero Nogueira dos Santos