HypoLoop: Revising Weight-Editing Plans from Scientific Feedback

Mengran Li, Xichen Yan, Bo Li, Chengyang Zhang, Jinfeng Xu, Zheng Lin, Zelin Zang, Zhen Lei, Jiebo Luo, Victor C. M. Leung, Stan Z. LiarXiv 2026 · arXiv

TL;DR

HypoLoop is a framework that uses experimental feedback to dynamically revise how scientific models are updated. By using LLMs and numerical solvers to decide both where to edit model weights and how to fit new data, it transforms model maintenance from a static fine-tuning task into an adaptive, closed-loop discovery process.

What Problem Does This Paper Address?

Scientific models—whether predicting fluid dynamics, molecular properties, or satellite imagery—are rarely perfect. As researchers collect new experimental data, they inevitably find "prediction errors." The standard way to fix these is to "edit" the model, but this usually involves a fixed plan: updating the same set of parameters (e.g., the last layer) using the same objective function (e.g., Mean Squared Error).

However, scientific errors are often systematic. A depth predictor might consistently overestimate distances in certain scenes, or a physics model might fail only at specific boundaries. A fixed editing plan is blind to these patterns. The authors argue that effective updates require changing the update problem itself based on what the errors reveal. The challenge is deciding, in real-time, which specific weights should absorb the correction and which error patterns should drive the fitting process.

Methods

The authors introduce HypoLoop, a family of methods designed to "Predict, Observe, and Revise." The core innovation is treating weight editing as two distinct, feedback-driven decisions:

  1. Parameter Localization (Where to edit?): Instead of always editing the same layers, HypoLoop reallocates its "parameter budget" based on the model's structure and observed errors. For instance, it might shift from editing output layers (to fix bias) to internal representations (to change how the model distinguishes conditions).
  2. Edit Revision (How to fit?): This defines the objective function. If a model consistently overestimates, an LLM-guided policy might propose a rule to "upweight positive residuals," forcing the optimizer to prioritize those specific failures.
The HypoLoop framework: Feedback and history guide location selection, fitting-rule revision, weight optimization, and validation.

The process works in a loop:

  • Propose: An LLM (like DeepSeek or Claude) reads the model structure and error history to propose an editing plan.
  • Solve: Numerical solvers compute the actual "weight patches" ($\Delta W$) to implement the plan.
  • Validate: Proposed edits undergo internal cross-validation. Only edits that actually improve performance on held-out feedback are deployed, preventing the model from "breaking" due to bad updates.

Datasets

The researchers evaluated HypoLoop across a massive suite of 22 scientific tasks spanning multiple domains:

  • Physics: Burgers' equation, advection, and reaction-diffusion simulations (PDEBench).
  • Chemistry & Biology: Molecular solubility (ESOL), lipophilicity, and gene knockout responses (GEARS).
  • Computer Vision/Depth: DIODE (indoor/outdoor depth) and Make3D.
  • Remote Sensing: SpaceNet7 (building change detection).
  • Others: Seismology (STEAD), energy forecasting (Building Data Genome), and industrial inspection (MVTec AD).

Key Insights and Ideas

  • Feedback Shapes the Problem: The most significant "aha" moment is that experimental evidence shouldn't just be used as data for training, but as meta-data to design the training process.
  • Location vs. Budget: On the Burgers' physics task, simply reallocating the same number of editable parameters to different layers reduced error by nearly 60%. This suggests that where you edit is often more important than how much you edit.
  • LLMs as Scientific Strategists: The paper demonstrates that LLMs can effectively act as "editors-in-chief," looking at raw error statistics and model code to suggest executable fitting rules (like specific weighting functions) that a human might take hours to derive.
  • Validation is the Safety Net: By including an internal validation step before deployment, HypoLoop ensures that even if an LLM proposes a suboptimal plan, the model remains stable by falling back to its previous state.

Key Results

HypoLoop variants consistently outperformed standard baselines like Adam fine-tuning or simple output calibration across all 22 tasks.

  • Physics (Burgers): Reallocating a matched parameter budget reduced relative $L_2$ error by 58.80% (DeepSeek) and 47.72% (Claude) compared to fixed-location editing.
  • Depth Prediction (DIODE): Using a "positive-residual weighting" rule (focusing on overestimates) reduced absolute relative error by 13.35% compared to standard equal weighting.
  • Remote Sensing (SpaceNet7): The framework improved the F1 score for building change detection from 0.5779 (baseline) to 0.7637, effectively recovering building changes that the original model missed.
  • Seismology: On the STEAD dataset, it lowered arrival-time Mean Absolute Error from 0.6803s to just 0.0822s.
Comparison of dynamic vs. fixed parameter localization on Burgers and Constrained QP tasks.

Limitations and Future Work

  • LLM Dependency: The quality of the editing plan is tied to the reasoning capabilities of the underlying LLM. While the validation step provides safety, a "dumb" LLM would lead to many rejected plans and wasted computation.
  • Computational Cost: The "propose-fit-validate" cycle is more computationally expensive than a single gradient descent step, which might limit its use in ultra-high-frequency real-time systems.
  • Long-term Stability: While the paper shows success over several rounds of feedback, the long-term effects of repeated weight editing on "catastrophic forgetting" in very large models were not the primary focus.

Future Work: The authors suggest that this "experimental evidence shaping the update problem" could be extended to architecture search or even automated hypothesis generation in broader scientific discovery pipelines.

Summary updated

Abstract

Scientific experiments continually reveal prediction errors. Effective updates depend on which parameters change and which errors drive the correction. We introduce HypoLoop, a family of native weight-editing methods that connects these choices to experimental feedback. Fixed, numerically adaptive, and LLM-guided policies produce editing plans; numerical solvers compute weight patches, and internal validation selects the deployed predictor. Successive observations and validation records support revisions to editable locations and fitting rules. Experiments cover 22 scientific tasks and both DeepSeek and Claude. On Burgers, reallocating a matched parameter budget reduces error by 58.80% and 47.72% relative to fixed locations. On DIODE, positive-residual weighting reduces absolute relative error (AbsRel) by 13.35% in internal cross-validation, with the same 33 editable coordinates. Revising the complete plan across rounds lowers final AbsRel by 10.59% relative to keeping the initial plan fixed. SpaceNet7 and Make3D connect accepted edits to improved spatial predictions. These results show how experimental evidence can shape the update problem itself. Code: https://github.com/limengran98/HypoLoop.
BibTeX
@misc{li2026hypoloop,
  author = {Mengran Li and Xichen Yan and Bo Li and Chengyang Zhang and Jinfeng Xu and Zheng Lin and Zelin Zang and Zhen Lei and Jiebo Luo and Victor C. M. Leung and Stan Z. Li},
  title = {{HypoLoop: Revising Weight-Editing Plans from Scientific Feedback}},
  year = {2026},
  eprint = {2611.23718},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.23718},
}
Figure