Writing Weights or Training Them? Spatial Reasoning through Weight-Space Programming and Low-Rank Adaptation
Yalin Yang, Xiao Huang, Yanan Wu, Hao Yang, Ryan Zhenqi Zhou
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.
Create a lesson
Related papers
Training LLMs to Follow Reasoning Instructions with Minimal Edits
Shared title terminology · Alexandra Yakovleva, Luat Gia Khoi Nguyen, Juho Kannala et al.
Sage-Evolve-Preview:Adaptive Observation for Post-Training Self-Improvement
Shared title terminology · Yinhao Tang, Youqing Fang, Yanan Sun et al.
Altair-Nidhogg: Which Model-Merging Theories Hold for a One-Pass Decision Encoder? Soups, Task Arithmetic, TIES and DARE Against Joint Training and Prediction Ensembling
Shared title terminology · Mohammed Nayeem Khan, Navin Kumar R, Akhil P
Trained on Harm, Still Refusing: A Training-Time Defense for Code Generation
Shared title terminology · Miaoqing Tian, Ruohan Li, Qian Lu et al.
AMARIS: Merging Generalist and Specialist LLMs via Adaptive Subspace Inheritance
Shared title terminology · Hwee Young Kang, Irwin De Tao Chin, Wen-Haw Chong et al.
EcomWriteBench: A Real-World Benchmark for E-commerce Writing Tasks
Shared title terminology · Kaicheng Liang, Jingyi Cui, Hongwei Wen et al.