Skip to content

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

cs.AI

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