Weights2Fix: Training-free maintenance of infrastructure segmentation networks by an LLM agent that edits their weights
Aisha Ajmal, Elyas Asadi Shamsabadi, Luming Shen, Daniel Dias-da-Costa
Abstract
Segmentation networks deployed to inspect civil infrastructure lose accuracy when their weights are corrupted, compressed for edge devices or exposed to new imaging conditions, and retraining is often impractical on site. This paper proposes Weights2Fix, a unified and auditable framework for maintaining such networks, in which a large language model (LLM) agent edits their weights without gradients, in a sandbox that logs and replays every edit. Weights2Fix was assessed on five tasks across eleven infrastructure, disaster and land-cover datasets. The agent restored 73% of 131 damaged networks, against 14% for a rule-based repair, retained more accuracy than training-free quantisation and pruning in most cases and, given normalisation recalibration as a tool, was the best adaptation method in 19 of 30 cases, using a small set of labelled images of the new condition. It outperformed an equal-budget random search in 181 of 225 cases, but barely improved healthy, well-trained networks.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CV, cs.LG
- Comments
- 41 pages, 8 figures, 14 tables. Submitted to Automation in Construction. Code and edit logs: https://github.com/aishaajmal-sydney/weights2fix
Related papers
MMSearchArt: Training Unified Multimodal Deep Research Agents with Scalable Synthetic Task Mixtures
Shared title terminologycs.AIXiaohan Yu, Liyan Liu, Xiangnan Chen et al.
TMin: Efficiently Post-Training Terminal Agents Enables Studying Reward Hacking with Academic Compute
Shared title terminologycs.AIZaid Khan, Joykirat Singh, Runchu Tian et al.
Beyond the Rollout Group: Training Language Agents with Credit from Past Decisions
Shared title terminologycs.AIMingxuan Jiang, Keyang Chen, Zeping Li et al.
Structure-Centric Event Representation for Event-Mask-Annotation-Free Instance Segmentation
Shared title terminologycs.AIZongze Wu, Chao Qu, Jingyuan Zhang et al.
AscendInfraBench: Benchmarking Coding Agents for Full-Lifecycle LLM Infrastructure Engineering on Ascend NPUs
Shared title terminologycs.AIZechao Chen, Sijie Wang, Zheng Bian et al.
GAPMem: Boundary-First Graph-Constrained Preference Memory Formation for Personalized LLM Agents
Shared title terminologycs.AITao Yu, Deliang Wen, Ke Sun et al.