TRANSMISSION // 2611.33031v1

Can an LLM fix a four-bit neural network by editing its weights?

Source published

A small-network experiment finds that an LLM can restore much of the accuracy lost to four-bit quantization—if it is shown the problem and given room to work layer by layer.

AI-generated conceptual illustration for Can an LLM fix a four-bit neural network by editing its weights?
AI-generated conceptual illustration; not documentary evidence.

Quantization shrinks neural-network weights to use fewer bits, but can hurt accuracy. In a preprint study, language models were asked to quantize or repair a small image classifier using only its weights, without data or inference. One model recovered much of the lost accuracy, though the result depended on how the task was presented.

A neural network’s weights are numbers that determine how it processes an input. Quantization replaces high-precision numbers with smaller, low-bit representations, making a model more compact but potentially introducing errors. This study asks whether a large language model (LLM) can inspect a trained network’s weights and reduce those errors without seeing example images or testing its edits.

The experiment used a small convolutional neural network trained to classify CIFAR-10 images. It had about 20,000 weights and reached 81.42% test accuracy in its original, full-precision form. Standard four-bit round-to-nearest quantization reduced accuracy to 60.39%. The researchers gave the network’s weights as text to four Claude-family models under four protocols. Models had no data, calculator, code execution or ability to run inference. P1–P3 allowed a file-reading tool that delivered the task input; P4 disabled tools. The authors say they audited transcripts for tool use.

The protocols differed in what the LLMs saw and were asked to do. In two, a model received both the original and round-to-nearest weights and was told accuracy had fallen. In the other two, it received the original weights and was simply asked to quantize them; one of these also included BatchNorm statistics, which contain information about network layers. Some responses covered the whole network, while another protocol divided the work into chunks with a separate response for each.

When shown the quantized network and told about the accuracy drop, Claude Opus 5.5 identified a way to balance rounding errors within kernels. In a layer-by-layer protocol, it changed integer weights so the sum of rounding errors in each 3-by-3 kernel was generally smaller. Test accuracy reached 77.95%—much of the loss was recovered, though the result remained 3.47 percentage points below the full-precision network.

Why might this help? A convolution combines weights with nearby values in an image or feature map. When the values in a patch are similar, the sum of a kernel’s weights—and, correspondingly, the sum of its rounding errors—can have a strong effect on the output. Reducing that error sum can lessen correlated error and a systematic shift in the output. The effect is not universal: the paper’s analysis says balancing can increase error on sharp edges, where the individual errors matter more. The authors connect the correction to the kernel-wise step of SQuant, an existing data-free quantization method. Their experiment does not establish whether the LLM derived the rule from the numbers or recalled a known technique and recognized its relevance.

The protocols also reveal a difference between spotting a useful correction and applying it. When asked to quantize the original weights without being told that ordinary rounding had caused a problem, the models generally fell back on round-to-nearest, sometimes adjusting scales to clip unusually large weights. Fable 5.2 reached 69.97% in one such protocol. The authors note that random scale changes recovered much of the gain in one layer, so the model’s specific choices may explain only part of its result. Providing BatchNorm statistics did not lead the tested models to use them for the error-cancelling correction.

There are important limits. This was one small network on one image-classification dataset, and each reported LLM result came from a single run. The authors say differences below about one percentage point may be noise; they did not run a paired test or a random near-tie-flip control for the main repair protocol. Chunked responses let Opus apply the correction across the convolution layers; a whole-network response also found the idea, but applied it only to the first convolutional layer. The reported layer-by-layer run was interrupted and resumed, with some edits re-emitted after resumption. A conventional Python implementation is much faster, and calibrated methods such as AdaRound performed better on this network, reaching 80.71% with calibration images.

The result is not that an LLM is a better quantization tool. Rather, in a constrained demonstration, one model identified and manually applied a useful correction by reading weight values. The paper is a preprint, not evidence that the approach will generalize across networks, datasets or deployment hardware. The author links code and prompts, but independent replication and broader testing are needed to assess how general the result is.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • Language models write small neural policies—and model checking tests their promises

    Shared method: Both studies have an LLM write or edit neural-network weights directly rather than use gradient descent. The quantization study tests tool-free correction of a small CNN, while Gross tests policy generation with model-checking feedback in small PRISM environments; their tasks and evaluation procedures differ.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.33031v1 — Original paper

      Excerpt reference: static/papers/2611.33031v1.md:13-68
      Basis: Paper text
      Source SHA-256: 95abec6c6d4d2279654d95443c4dbe8db0b741467a481a1ac9c6c8d7e58b6d79

    • 2611.11604v1 — Original paper

      Excerpt reference: static/papers/2611.11604v1.md:13-62
      Basis: Paper text
      Source SHA-256: 2fcb845c3e0f48cd7cbc96a54f197a88424959d53f39fd05c474bf02e97210b8

  • Can a language model write a brain-signal network?

    Shared method: Both studies use language models to generate or edit small neural-network weights without gradient steps. Urban examines int4 quantization repair on a CIFAR-10 CNN; Varam et al. study EEG/ECG networks, including generation and fault repair. The distinct tasks and experimental settings do not establish comparable performance.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.33031v1 — Original paper

      Excerpt reference: static/papers/2611.33031v1.md:13-68
      Basis: Paper text
      Source SHA-256: 95abec6c6d4d2279654d95443c4dbe8db0b741467a481a1ac9c6c8d7e58b6d79

    • 2611.13758v1 — Original paper

      Excerpt reference: static/papers/2611.13758v1.md:13-59
      Basis: Paper text
      Source SHA-256: a90139072535631af6e04d5a72f29d745b4d7facda062c1713b017b6f27e5d9f

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.