W-ISA: Transactional Execution of Weight-Space Intervention Programs
Abstract
We present W-ISA, a software instruction set and transactional runtime for executing weight-space intervention programs on pretrained language models. Shape-checked instructions express parameter updates, projections, ablations, and rank-one transformations. The runtime applies these programs within request-scoped execution contexts and restores saved parameters after completion or interruption. Activation-based match-action rules connect measured model states to intervention selection. We evaluate restoration and replay on SmolLM-135M-Instruct and Qwen2.5-1.5B-Instruct, and compare materialized rank-one updates with equivalent PyTorch hooks on the latter. In 45 timed requests, both intervention implementations produce identical greedy sequences at 32, 128, and 512 tokens; their maximum prompt-logit difference is 0.000184. On the complete WikiText-2 raw test split, the combined SmolLM attention-head ablation and MLP projection changes perplexity from 22.2353 to 22.3188, a relative increase of 0.3754%. W-ISA separates intervention specification, execution, and measurement, making parameter-level experiments reproducible and composable.
Create a lesson
Related papers
Writing Weights or Training Them? Spatial Reasoning through Weight-Space Programming and Low-Rank Adaptation
Shared title terminology · Yalin Yang, Xiao Huang, Yanan Wu et al.
Weight-Space Programming of Policies and Their Verification via Model Checking
Shared title terminology · Dennis Gross
NCP: Verifier-Guided Optimization of Weight-Space Control Policies
Shared title terminology · Ekrem Aksoy
Recoverable Symbols, Unstable Execution: Auditing Internal Pathways and Decision Identity in Visual State Tracking
Shared title terminology · Ruiqi Liu, Jinming Li, Mo Wang et al.
GRACE: Controlled Evidence Interventions for Diagnosing and Improving Knowledge Integration in GraphRAG
Shared title terminology · Minh Pham, Quang Nguyen, Phong Kieu et al.
What Does Matching a Human Intervention Effect Establish? Benchmark Checks for LLM Simulations
Shared title terminology · Tengfei Shao, Asma Rezaei, Ali Reza Kamali