Searcharxiv⌕ Search

arXiv · 2611.27089

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

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Yalin Yang, Xiao Huang, Yanan Wu, Hao Yang, Ryan Zhenqi Zhou. 2026-11-20. Writing Weights or Training Them? Spatial Reasoning through Weight-Space Programming and Low-Rank Adaptation. https://searcharxiv.com/abs/2611.27089

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Searcharxiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

VeRA: Verified Reasoning Data Augmentation at Scale

Static benchmarks wear out: their problems circulate widely and can enter training data, and their scores saturate as models improve. Renewing a benchmark requires new problems with reliable answers, which are expensive to write by hand at competition level. We introduce VeRA (Verified Reasoning Data Augmentation), in which a language model automatically compiles each benchmark problem into an executable specification: a question template, a generator of valid inputs, and a program that computes the answer. Once its programs pass automatic checks, a specification yields many fresh, code-labeled problems at almost no cost, and people are needed only to audit. VeRA-E (equivalent) draws new instances of the same computation. VeRA-H (hardened) modifies the computation to create harder problems where scores saturate; because code computes every answer, the language model that writes them never has to solve them. VeRA-H Pro keeps the hardest of up to five such candidates, as ranked by a judge. Across 16 frontier models, fresh instances of AIME 2024 problems lower accuracy from 84.46% to 70.25%, and every model drops. GSM8K and the less-circulated Beyond-AIME, compiled by the same pipeline, stay essentially unchanged, so the drop reflects familiarity with specific problems, not an artifact of rewriting. On the near-saturated AIME 2024 II problems, VeRA-H Pro lowers accuracy from 84.91% to 58.57%. Expert audits back the labels, with all 220 audited fresh instances accepted and 95.1% of hardened candidates usable after repair. Compiling all 1,319 GSM8K problems cost about USD 100. VeRA thus makes benchmarks renewable by construction: wherever code can compute the answer, a benchmark can be refreshed whenever its problems leak or models catch up.

cs.AI↗

ScrapMem: A Bio-Inspired Framework for On-Device Personalized Agent Memory via Optical Forgetting

Long-term personalized memory for LLM agents is challenging on resource-limited edge devices because multimodal histories grow continually and are costly to store. To address this challenge, we propose ScrapMem, a bio-inspired framework that consolidates each day's heterogeneous records into a unified "Scrapbook Page." ScrapMem introduces Optical Forgetting, an optical compression mechanism that progressively reduces the resolution and JPEG quality of older pages, lowering storage costs while keeping recent evidence at higher fidelity. To preserve semantic consistency and support structured retrieval, we construct an Episodic Memory Graph (EM-Graph) that organizes semantic nodes into causal-temporal EM-Paths. This design separates a stable retrieval structure from aging visual evidence, allowing relevant episodes to remain accessible as page fidelity decreases. Under the common ATM-Bench protocol, ScrapMem without forgetting establishes a new non-oracle state of the art with 51.0% Joint@10 and reaches 70.3% Recall@10. Optical Forgetting reduces the persistent memory footprint by up to 93.0% relative to the raw corpus while retaining over 90% of No-Forget performance. ScrapMem offers a storage-efficient and interpretable approach to long-term multimodal memory for on-device LLM agents. The code is available on GitHub.

cs.AI↗

CatalyticMLLM: A Graph-Text Multimodal Large Language Model for Catalytic Materials

Property prediction and inverse structural design of catalytic materials are typically modeled as two independent tasks: the former predicts target properties from given structures, whereas the latter generates candidate structures conditioned on desired properties. Although this decoupled paradigm facilitates the construction of a ``generation--evaluation--screening'' workflow, the two models may have different domains of applicability because they are trained on different data distributions. Consequently, during closed-loop optimization, the generative model may produce structures that fall outside the reliable applicability domain of the evaluation model, while prediction errors from the evaluator may accumulate over successive iterations, ultimately degrading inverse-design performance. In this work, we propose CatalyticMLLM, a unified graph--text multimodal large language model for catalytic materials that integrates \textbf{property prediction} and \textbf{inverse design} within a single model and a shared representation space. Under this unified framework, CatalyticMLLM not only performs reliable property prediction by jointly leveraging three-dimensional structures and textual information, but also generates and screens physically feasible CIF candidates conditioned on target properties, thereby establishing a closed-loop workflow of ``inverse design--prediction--screening--redesign.'' Experimental results demonstrate that the unified paradigm outperforms decoupled baselines in both catalytic relaxation-energy prediction and inverse-design tasks, validating the effectiveness of jointly modeling property prediction and structure generation within a single multimodal model.

cs.AI↗