IWIBench: Evaluating gradient-free model-driven in-weight injectionIWIBench: Evaluating Gradient-Free Model Driven Intra-weight Injection
IWIBench evaluates large models' ability to rewrite Gemma 3 4B IT weights without gradients using four tools; the authors say 6.1-sol (medium) ranks first with a macro-average reward of 0.4601, and on the structured response task all editing models score 0.
- Gradient-free intra-weight injection (having one model directly modify another model's weights to change its behavior) lacks a systematic evaluation method, making it impossible to measure each model's ability to perform such weight edits.
- IWIBench has editing models use four tools—read_weights, write_weights, run_target, inspect_target—to rewrite the weights of Gemma 3 4B IT within a fixed budget and complete ten categories of text editing tasks; reward is target gain multiplied by control retention rate, scored in a clean environment by comparing the model before and after the patch.
- The authors report capability divergence across ten configurations over 30 episodes: 6.1-sol (medium) ranks first with a macro-average reward of 0.4601, while GLM 5.3 has only 0.0135; alias acquisition and recoding are easiest, structured response default is 0 for all configurations, and on answer-length control only 5.6-terra obtains a positive reward.
- The authors state that research is needed on how reinforcement learning cultivates feedback-based adaptive editing strategies, and on designing reward allocation that distinguishes local from global success (Section 5.4); the experiments cover only ten editing configurations, a single target model Gemma 3 4B IT, and 30 episodes, with only one run per episode.
- Evaluated models
- 6.1-sol (gpt-6.1-sol)6.1-terra (gpt-6.1-terra)Astra (gpt-6-astra)5.6-sol (gpt-5.6-sol)5.6-terra (gpt-5.6-terra)GLM 5.3 (glm-5.3)DeepSeek V4.1 Flash (deepseek-v4.1-flash-1017)Nemotron 3 Ultra (nemotron-3-ultra-550b-a55b)Gemma 3 4B IT (google/gemma-3-4b-it)
- Benchmarks
- IWIBench
- Metrics
- 宏平均 rewardtarget 成功数control 保留数
Researchers released IWIBench to evaluate, under controlled conditions, whether large models can directly modify another model's (Gemma 3 4B IT) weights without gradients to complete ten types of text-editing tasks while damaging other capabilities as little as possible. The editor can only use four tools: read weights, write weights, run the target model, and inspect the target model; each task is limited to 64 rounds, 128 tool calls, and 262,144 target forward tokens; submitted weight patches are compared with the original checkpoint in a separate process, and collateral damage is measured with 2,288 control items that were correct at baseline. Results show that 6.1-sol ranks first at medium reasoning effort with an equal-family macro-average reward of 0.4601, followed by 6.1-terra and Astra, while GLM, DeepSeek and Nemotron range only from 0.0135 to 0.0548. Alias acquisition and re-encoding are the easiest to achieve with weight editing, no editor achieved positive reward on structured-output tasks, and for answer-length control only 5.6-terra achieved a positive gain, with a family reward of 0.1111.
Why it was selectedIWIBench uses ten types of editing tasks and retention controls to provide a unified evaluation standard for comparing the ability of a model to directly rewrite another model's weights.
Paper analysis
What problem does this paper attempt to solve?
Establish IWIBench, a controlled evaluation benchmark for the capability of "a model using tools to rewrite another model's weights without gradients."
Core question: how to systematically measure and evaluate large models' ability to perform gradient-free intra-weight injection on other models.
- Problem setting: intra-weight injection refers to changing model behavior through gradient-free weight editing, which can range from changing lexical associations and forcing output formats to updating factual knowledge. The authors consider that such methods have attracted attention, but there has been no systematic method to measure models' ability to perform such editing.
- Shortcomings of existing methods: existing methods such as ROME, MEMIT, and MEND can only edit specific factual associations; the authors state that previously there was no controlled benchmark for "model-driven, gradient-free behavioral weight editing."
- Core setup of the paper: the editing model faces a fixed target model (Gemma 3 4B IT) and can only use four tools to read and write weights, run and inspect the target, and complete one of ten classic text-modification tasks within a fixed budget while not affecting other capabilities.
- What the paper proposes: the IWIBench benchmark—containing ten task families, a four-tool interface, budget constraints, and a verifier; the verifier applies the patch submitted by the editing model to the target model and scores it in a clean environment against the unmodified model. The authors state that this is the first controlled benchmark for "gradient-free behavioral weight editing performed by another model."
- Preview of main findings: the authors report that capabilities vary greatly across models, with a few frontier models (Astra, GPT-6.1 Sol) clearly leading; tasks also vary greatly, with structured response failing for all models and alias acquisition and recoding being the easiest.
What related research exists?
Related work falls into four categories: fact-editing methods, weight-space programming, existing benchmarks corresponding to each task family, and edit-failure detection.
Fact editing methods
- ROME (Meng et al., 2022), MEMIT (Meng et al., 2023), MEND (Mitchell et al., 2022)—provide methods for editing specific factual associations; the paper calls these "established methods," whereas IWIBench evaluates edits performed autonomously by a model. The metric conventions of the local factual update family (successful update, generalization across prompts, specificity) derive from ROME.
Weight-space programming
- Takehi et al. (2026)'s weight-space programming work—explores whether language models can directly read and modify the weights of neural networks; the paper says evaluating such an agent requires covering the entire attempt process: what can be inspected, what modifications can be made, how much target access is obtained, and how much of the original behavior is retained after the patch is applied.
Existing work corresponding to each task family
- New-word semantic representation learning (Schick and Schütze, 2019)—alias acquisition is similar, except that IWIBench gives existing tokens new meanings.
- Symbol tuning (Wei et al., 2023)—an in-context strategy that provides category mappings in the prompt; recoding is its weight-space version, with the mapping provided only through weights.
- NeuroLogic Decoding (Lu et al., 2021)—the logical constraint tests of lexical inhibition cite its ideas (e.g., logical relations must be preserved after substitution).
- Spelling convention sensitivity (Nielsen et al., 2023)—the British/American spelling distinction in terminology preference comes from this work.
- Language Confusion Benchmark (Marchisio et al., 2024)—the default response language task was established as a standard task by it.
- IFEval (Zhou et al., 2023)—structured response default borrows its verifiable constraints but moves them into weight space.
- TOFU (Maini et al., 2024)—selective factual withholding draws on its selective forgetting setup.
- Sycophancy research (Sharma et al., 2024)—resistance to false suggestions uses controls to distinguish "resisting false claims" from "indiscriminate disagreement."
Edit failure detection
- CounterFact+ (Hoelscher-Obermaier et al., 2023)—the specificity criterion of nearby controls parallels it, checking whether a factual edit has changed related associations that should remain stable.
Positioning: the authors say IWIBench differs from the above work in that existing methods edit specific factual associations or provide mappings at the prompt level, whereas IWIBench evaluates a model autonomously completing behavioral edits using only weight tools under gradient-free conditions while preserving other capabilities.
How does the paper address this problem?
IWIBench: editing models use four tools to rewrite Gemma 3 4B IT weights within a budget; reward = target gain × control retention rate.
IWIBench has an editing model (editor) perform weight edits on a fixed target model under a restricted interface, then scores the model before and after the patch by comparison in a clean environment.
Problem setup and procedure
- Editing loop: the editing model receives the task goal, practice examples, tensor manifest and relevant token IDs, iteratively "proposes—tests—revises" through the four tools, and finally submits a frozen weight patch (Figure 1).
- Isolated evaluation: the pristine (unmodified) and patched checkpoints are loaded in separate new processes, using the same tokenizer, chat template, architecture and inference settings; only the patch is carried into terminal evaluation, and the editing model cannot intervene after submission.
- Hidden tests: terminal evaluation uses withheld evaluation inputs that the editing model has not seen.
Ten task families
- Three categories: by goal, divided into stimulation (alias acquisition, structured response default), inhibition (lexical inhibition, selective factual withholding, resistance to false suggestions) and modulation (the remaining five families) (Table 1).
- Task content: covers giving existing tokens new meanings (e.g., making "saffron" refer to cube), remapping classification labels, suppressing specified words, British/American spelling preference, default reply language, JSON structured output, answer length control, local factual update, selective factual withholding, and resistance to false suggestions.
- Control design: each episode is paired with three types of controls—general (64 items, arithmetic/factual/exact copying), nearby (testing interference with related responses) and override (explicit instructions overriding the edited default behavior)—to test capabilities that editing should leave unchanged (Appendix A).
Tools and budget
- Four tools: read_weights (tensor metadata, bounded slices, numerical summaries), write_weights (replace, fill, scale, copy, low-rank addition), run_target (generate responses to public or editor-provided prompts), inspect_target (teacher-forced numerical checks).
- Prohibited: no gradients, no shell, no Python execution, no other code interpretation or activation steering, and no internet search.
- Budget: per episode, 64 rounds, 128 admitted tool calls, 262,144 target forward tokens; generation limited to 8 calls, 8 sequences per call, 64 sequence evaluations; inspection limited to 4 calls, 4 sequences per call, 16 sequence evaluations.
Scoring method
- reward formula: g = max(0, (e−b)/(1−b)), reward = g · r; b and e are the target success proportions of the pristine and edited models respectively, and r is the proportion of controls the pristine model answered correctly that the edited model still answers correctly.
- Success determination: a response must satisfy both the behavioral criterion and the content criterion; a no-op has a gain of 0, negative gains are truncated to 0, and the paper also reports signed target changes and raw control counts.
- Aggregation: episode rewards are first averaged within each family, then equally averaged across the ten families (macro reward); equal weighting is because the target set sizes of the families differ greatly (structured extraction has 192 items, terminology preference only 4).
Experiment organization
- Configuration: ten editing configurations share the same Gemma 3 4B IT target and the same 30 selected episodes (same parameter set, probe seed and test seed), with one run per configuration per episode, for a total of 300 records.
- Target model: google/gemma-3-4b-it, native BF16 weights, plain-text input, terminal decoding greedy, 256-token generation limit (Appendix B).
What experiments did the paper conduct?
Ten editing configurations evaluated over 30 episodes: 6.1-sol (medium) ranks first with reward 0.4601, and structured response is 0 across the board.
Experimental Setup
- Target model: Gemma 3 4B IT (google/gemma-3-4b-it, fixed revision), shared by all editing configurations.
- Editing configurations (10): 6.1-sol (low/medium/high three reasoning levels), 6.1-terra (temperature 0, no reasoning), Astra (low), 5.6-sol (low), 5.6-terra (low), GLM 5.3, DeepSeek V4.1 Flash, Nemotron 3 Ultra (the latter three with temperature 0, provider-default reasoning); all configurations have an editing response limit of 4,096 tokens (Appendix B).
- Evaluation scale: 30 selected episodes (3 per each of the ten families), totaling 551 target items and 2,288 baseline-correct controls; the pristine model answers 104/551 targets correctly (Table C1).
- Metrics: macro-average reward (averaged within family then equally weighted), number of target successes (/551), number of controls retained (/2,288), episode-level counts of improvement/degradation/no change.
- Graders: family version 0.2.2, grader version 0.2.3; responses must satisfy both behavioral and content criteria; the paper does not state whether LLM judging is used.
- Number of repetitions: one recorded run per configuration per episode, 300 records in total.
Main Results
According to Table 2 (30 episodes, target maximum 551, controls maximum 2,288):
Swipe horizontally to read the table
Rank Editing configuration Reward Targets Controls Episode changes (up/down/flat) 1 6.1-sol (medium) 0.4601 284 2,222 17/0/13 2 6.1-sol (high) 0.4551 266 2,246 17/1/12 3 Astra 0.4356 251 2,268 17/2/11 4 6.1-sol (low) 0.4250 279 2,247 18/2/10 5 6.1-terra 0.2928 224 2,236 10/0/20 6 5.6-terra (low) 0.2414 183 2,177 13/0/17 7 5.6-sol (low) 0.2148 225 2,126 9/1/20 8 Nemotron 3 Ultra 0.0548 107 2,141 2/1/27 9 DeepSeek V4.1 Flash 0.0464 115 2,060 2/4/24 10 GLM 5.3 0.0135 85 2,288 1/1/28 - The authors note that the total score masks trade-offs: 6.1-sol medium has 5 more target successes than low but retains 25 fewer controls; high retains 24 more controls than medium but has 18 fewer target successes.
- The authors state that the frontier editing models (6.1-sol, 6.1-terra, Astra) have macro rewards of 0.2928–0.4601, whereas GLM, DeepSeek, and Nemotron have 0.0135–0.0548, with the 5.6 series in between; the authors consider that this divergence "may well be considered" to indicate that this capability was recently specifically taught to particular models rather than emerging spontaneously.
- GLM 5.3's signed target change is -19 (Figure 3), i.e., the number of target successes after editing is lower than pristine.
Family-Level Results
According to Table 3 (each cell aggregates 3 episodes):
- alias acquisition is easiest: 6.1-terra and 6.1-sol (low, high) reach 9/9 successes, medium 8/9, Astra 6/9; 5.6-terra also reaches 9/9.
- recoding: all three 6.1-sol settings succeed 112/112, Astra 99, 6.1-terra 94; 5.6-terra 47/112, 5.6-sol 84/112.
- structured response default is 0 across the board: all ten configurations have a family reward of 0.0000, consistent with the pristine model's equally zero performance under the JSON convention.
- answer-length control almost entirely fails: only 5.6-terra obtains a positive reward of 0.1111 (improving from pristine's 2/9 to 3/9, retaining all 195 baseline-correct controls); 6.1-sol (low), Astra, and DeepSeek are 0/9, and the authors note that editing may even worsen the pristine model's shortfall.
- selective withholding rises with reasoning level: 6.1-sol goes from 2/9 at low to 6/9 at medium and 9/9 at high; Astra 3/9, the rest 0.
Qualitative Analysis of Editing Trajectories
- Astra's operations are concentrated: the authors report that all 273 of Astra's successful write requests target the same tied embedding/output matrix, and all of its final patches also target that matrix.
- Adaptive repair: in the Canada fact update, Astra adds a small-multiple residual direction to the output row of the new answer's first token all three times, succeeding 2/3; 6.1-sol (low) also gets 2/3 after initially overshooting and then lowering the strength; 6.1-terra fails to recover from overshooting.
- Practice success does not equal terminal success: on the structured response task, Astra uses contrastive editing to fix the JSON format of the practice names, but after the terminal prompt changes the extraction wording, all 64 names are extracted correctly and all 64 terminal targets fail to satisfy the JSON convention; the authors state that the failure lies in format expression rather than extraction.
Other Ablations and Analyses
- Reasoning level (6.1-sol): average reward rises from 0.4250 at low to 0.4601 at medium, and falls back to 0.4551 at high; reasoning token consumption rises from 13,631 to 48,456 and 174,770 (3.6×, 12.8×).
- After excluding withholding: the average reward of the remaining nine families decreases with reasoning level from 0.4475 (low) to 0.4371 (medium) and 0.3945 (high); the authors' preliminary conclusion is that no general link can be established between reasoning depth and editing capability.
- Episode-by-episode comparison: 6.1-sol medium versus low is 6 wins, 6 losses, 18 ties; high versus medium is 4 wins, 6 losses, 20 ties.
- Resource consumption (Table C2): admitted tool calls range from 84 for GLM 5.3 to 1,891 for DeepSeek V4.1 Flash; target forward tokens range from 1,910 for Nemotron 3 Ultra to 109,310 for 6.1-sol (high).
What are some points that can be further explored?
The authors propose directions such as using reinforcement learning to cultivate adaptive editing strategies; the experiments cover only ten configurations, a single target model, and 30 episodes.
Limitations and Future Directions Noted by the Authors
- Reinforcement learning direction: the authors state that future research is needed to understand how reinforcement learning cultivates this "experiment-based adaptive strategy" (Section 5.4).
- Reward design: the authors state that tasks are needed that can allocate reward in a way that distinguishes local success from global success, for example explicitly weighting nearby and override failures more heavily, to help models learn to choose the correct editing operation (Section 5.4).
- Current capability: the authors state that with current models' operation sets, intra-weight injection remains a selective editing tool rather than a general-purpose model behavior rewriter (Conclusion).
- Risk of malicious use: the authors state that large models could deliberately alter small models' behavior and extend influence beyond their own reasoning (analogous to prion "memetic contagion"), and explicitly state that this is a hypothetical threat, that none of the observed models exhibit this capability, and that defenses against this threat model are currently lacking (Conclusion).
Scope of Experimental Coverage
- There are 10 editing configurations tested: 6.1-sol (three reasoning levels), 6.1-terra, Astra, 5.6-sol, 5.6-terra, GLM 5.3, DeepSeek V4.1 Flash, Nemotron 3 Ultra (Appendix B).
- The target model is only Gemma 3 4B IT at a single fixed revision; the evaluation is 30 selected episodes (3 per each of the ten families), with one run per configuration per episode, totaling 300 records (Section 3.1).
- The tasks cover ten text-editing families, with 551 target items and 2,288 baseline-correct controls in total (Table C1).
- The paper does not report whether LLM judging or human evaluation is used for grading, nor does it report variance or statistical tests across repeated runs.
- The authors share the reinforcement learning environment, full trajectories, and outputs (Conclusion); the paper does not state whether further components are planned for open-sourcing.
Summarize the main content of the paper
IWIBench evaluates models' ability to rewrite other models' weights without gradients: frontier models lead, but success and failure vary markedly across tasks.
IWIBench is an evaluation benchmark that measures the ability of large models to rewrite the behavior of a small model (Gemma 3 4B IT) using only four weight tools under gradient-free conditions.
- Problem to solve: intra-weight injection can change model behavior through weight editing, but previously there was no systematic method to evaluate models' ability to perform such editing.
- Method highlights: within a budget of 64 rounds, 128 tool calls, and 262,144 target forward tokens, the editing model uses read_weights, write_weights, run_target, and inspect_target to complete one of ten text-editing tasks; the submitted patch is compared with the pristine model in a clean environment, the reward is the target gain multiplied by the control retention rate, and aggregation is by averaging within family then equally weighting.
- Overall results: 6.1-sol (medium) ranks first with a macro-average reward of 0.4601, Astra third at 0.4356, and GLM 5.3 only 0.0135 (Table 2); the authors state that the gap between frontier and near-frontier models is large, and consider this to suggest that the capability was recently specifically taught.
- Task divergence: alias acquisition and recoding are easiest (multiple configurations at 9/9, 112/112); structured response default is 0 for all ten configurations; on answer-length control only 5.6-terra obtains a positive reward of 0.1111 (Table 3).
- Reasoning level: 6.1-sol's average reward goes from 0.4250 at low to 0.4601 at medium and falls back to 0.4551 at high, while reasoning token consumption rises to 12.8×; the authors preliminarily consider that there is no general link between reasoning depth and editing capability.
- Authors' conclusion: with current capabilities, intra-weight injection is a selective editing tool rather than a general-purpose rewriter; the authors also note that its rapid reconfiguration capability could be maliciously exploited, stating that this is a hypothetical threat not exhibited by any observed model but currently without any defenses.