mlsanityData to 24 Nov 2026

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

arXiv 2611.27089 ↗Submitted 20 Nov 2026Announced 23 Nov 2026cs.AI cs.LGcited by 0

On the map: LLM reasoning → Spatial and embodied reasoning

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Spatial and embodied reasoning, one of 17 directions in LLM reasoning. Builds on 43 of its 51 references that are in the map. Submitted 20 Nov 2026, announced 23 Nov 2026.

Builds on

43 of 51 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024Advancing Spatial Reasoning in Large Language Models: An In-Depth Evaluation and Enhancement Using the StepGame Benchmark8 Jan
  2. 2022StepGame: A New Benchmark for Robust Multi-Hop Spatial Reasoning in Texts18 Apr

Other references · 41

  1. 2020Language Models are Few-Shot Learnerscited by 33,113
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,963
  3. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,852
  4. 2016Overcoming catastrophic forgetting in neural networkscited by 4,989
  5. 2022Large Language Models are Zero-Shot Reasonerscited by 4,507
  6. 2019Parameter-Efficient Transfer Learning for NLPcited by 4,397
  7. 2023Let's Verify Step by Stepcited by 4,259
  8. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 4,046
  9. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,931
  10. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,620
  11. 2019The Curious Case of Neural Text Degenerationcited by 3,022
  12. 2022Locating and Editing Factual Associations in GPTcited by 2,951
29 more
  1. 2016Understanding intermediate layers using linear classifier probescited by 1,541
  2. 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,427
  3. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,424
  4. 2023Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Promptingcited by 1,324
  5. 2022Editing Models with Task Arithmeticcited by 1,272
  6. 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,174
  7. 2018Experience Replay for Continual Learningcited by 1,143
  8. 2023Steering Language Models With Activation Engineeringcited by 1,128
  9. 2022Mass-Editing Memory in a Transformercited by 1,110
  10. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 971
  11. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 934
  12. 2016Training Deep Nets with Sublinear Memory Costcited by 923
  13. 2024DoRA: Weight-Decomposed Low-Rank Adaptationcited by 842
  14. 2022Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distributioncited by 796
  15. 2020Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuningcited by 718
  16. 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 709
  17. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 690
  18. 2021Knowledge Neurons in Pretrained Transformerscited by 635
  19. 2021Editing Factual Knowledge in Language Modelscited by 581
  20. 2021Fast Model Editing at Scalecited by 543
  21. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 538
  22. 2018Measuring the Intrinsic Dimension of Objective Landscapescited by 396
  23. 2024LoRA Learns Less and Forgets Lesscited by 387
  24. 2023Editing Large Language Models: Problems, Methods, and Opportunitiescited by 386
  25. 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 339
  26. 2023Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Modelscited by 262
  27. 2022Exploring Length Generalization in Large Language Modelscited by 219
  28. 2023Understanding Catastrophic Forgetting in Language Models via Implicit Inferencecited by 158
  29. 2021SpartQA: : A Textual Question Answering Benchmark for Spatial Reasoningcited by 83

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Can an LLM Actually Reason and Program about Neural Network's Weights or is it just memorization on steroids? Exploring "Weight-Space Programming"
  2. 2026What Does Weight-Space Programming Add to Diffusion Editing? Program Construction versus Score-Guided Refinement
  3. 2026Weight Space Programming for Vision Language Model Repair
  4. 2026Just sort it! A note on the LP behind rank-one anti-loop edits
  5. 2023Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Models
  6. 2025From Templates to Natural Language: Generalization Challenges in Instruction-Tuned LLMs for Spatial Reasoning
  7. 2025Stuck in the Matrix: Probing Spatial Reasoning in Large Language Models
  8. 2024Dspy-based Neural-Symbolic Pipeline to Enhance Spatial Reasoning in LLMs