cs.AINov 20, 2026

Writing Weights or Training Them? Spatial Reasoning through Weight-Space Programming and Low-Rank Adaptation

Authors: Yalin Yang, Xiao Huang, Yanan Wu, Hao Yang, Ryan Zhenqi Zhou

Organizations: West Virginia GIS Technical Center, West Virginia University, Morgantown, WV 26505, USA · Department of Environmental Science, Emory University, Atlanta, GA, USA · Department of Geography, University of Central Arkansas, Conway, AR 72035, USA · Systems Engineering Program, Cornell University, Ithaca, NY 14853, USA · 

Abstract

Weight-space programming lets a language model inspect and edit another model's weights, offering an alternative to gradient-based adaptation. We evaluated both approaches using Qwen3.5-0.8B on a fixed reference-frame task (128 items), StepGame (200 items), and two untrained distance-comparison tasks. With thinking enabled, the public patch (p50c) raised mean accuracy from 0.0% to 22.1% on the reference-frame task and from 19.2% to 33.7% on StepGame across three sampling seeds. Randomly permuting its weight change removed the gain. Further closed-form edits did not improve on p50c, whereas a rank-1 LoRA adapter trained on worked solutions reached 100% and 98.8%, respectively, with 0.09% trainable parameters. Removing the worked solutions from supervision prevented the adapter from passing the learning gate. The trained adapters reached 82% accuracy on unseen StepGame sentence templates, 42% on held-out difficulty levels 6-10 after training on levels 1-5, and 33-50% on unseen heading-answer combinations. Their target gains coincided with a sharp decline on the distance tasks: accuracy fell from 94% and 92% under p50c to 0-2%, and their outputs applied the StepGame solution template to distance questions. With thinking disabled and reasoning requested in the visible answer, the base model also solved the distance tasks while remaining weak on the target tasks. The comparison reveals a trade-off between improving spatial task performance and preserving neighbouring skills: the public edit restored completion while preserving distance performance, whereas supervised adaptation produced much larger target gains together with interference across tasks.

Figures & tables

Explore similar work

CardsList
  1. Exploring Weight-Space Programming: Capabilities, Generalization, and Limitations

    Nov 6, 2026Junru Hu, Cheng Tang, Wei Li +5Weight-Space ProgrammingWeight-Space Learning

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

    Nov 19, 2026Konstantinos Skianis, Aristidis LikasWeight-Space ProgrammingIn-Context Learning

  3. WeightBench: Evaluating Language Models as Weight-Space Programmers

    Nov 13, 2026Aayush Marasini, Barsat Khadka, Nick RahimiWeight-Space ProgrammingLLM Evaluation