Making AI Fine-Tuning Survive the Shrink-Wrap of Model Compression
Original paper: Fix How It Acts, Not How It Thinks: Surgical Fine-Tuning of Frontier LLMs
"Imagine carving microscopic grooves into a clay master, only to find that taking a coarse plaster cast flattens out almost all your fine details. Merge-aware fine-tuning fixes this by forcing you to carve the clay inside the rigid plaster mold at every step. Because every edit is made directly against the boundaries of the final cast, the final sculpture retains every critical detail."
Running massive AI models requires compressing them into lower-precision formats to save electricity and hardware costs, but this compression usually destroys subtle behavioral fixes. This new technique allows developers to ship cheaper, faster AI agents without losing their reliability or precision. It ensures open-source AI models perform as well in production as they do in the lab.
- Subtle AI fine-tuning updates often get wiped out during model compression.
- Merge-aware fine-tuning simulates final model compression at every training step.
- Boosts coding agent accuracy by up to 8.4 points on benchmark tests.
📑 Original arXiv Technical Abstract
Open-weight LLMs are competent software engineers, but they sometimes fail at tasks they are otherwise able to do. Often it is not a failure of reasoning. It is a few small missteps over a long trajectory (repeating a step that has already failed, or declaring the task done while a requirement is still unmet) that make the difference. Correcting this calls for a surgical weight update that steers the model toward the right actions without interfering with its reasoning. Such updates, typically learned with LoRA adapters, are often too small to survive merging into a released checkpoint. In our BF16 release, the median weight change is only 1.5% of a single rounding step, and merging loses roughly two thirds of the update's norm. When the same adapter is merged into the mixed FP8/NVFP4 release of the same model, 93% of the update disappears. Instead of increasing the size of the update, we directly train on the surviving part. We introduce merge-aware fine-tuning. Standard LoRA rounds the merged weights to the storage format only at export, so the loss never sees the rounded weights. We instead round the sum of base weights and adapter update to the release format at every training step, keeping the vendor's quantization scales, and compute the loss on these weights. The forward pass matches the serving engine numerics, and the gradient passes straight through the rounding, so the model we train is the model we ship. The loss optimizes only the model's actions and keeps its reasoning close to the base model. Applied to Nemotron-3.5, the recipe improves agentic coding in both the BF16 and the NVFP4 release, by up to 8.4 points on Terminal-Bench 2.1, and we publicly release both models.
✍️ Are you an author of this paper? Add code/demo links or a note
Help readers explore your work — share your official GitHub repo, Hugging Face weights, affiliation, or a clarification note for our editorial review queue.