﻿# Task Vector Quantization: compact checkpoints and the limits of the memory claim

TVQ quantizes differences from a shared pretrained model. The ICCV results concern stored task information and merging quality, rather than whole-workflow peak RAM.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/task-vector-quantization-residual-checkpoint-storage-quality-memory-boundary/
Language: en

[Task Vector Quantization](https://openaccess.thecvf.com/content/ICCV2025/papers/Kim_Task_Vector_Quantization_for_Memory-Efficient_Model_Merging_ICCV_2025_paper.pdf), an ICCV 2025 paper, changes how task-specific information is retained for later model merging. Instead of independently storing each full fine-tuned checkpoint at low precision, it quantizes the difference between that checkpoint and a common pretrained model. This is a dense task vector; it need not be a low-rank adapter.

## Why quantize the difference

The paper observes narrower weight ranges in task vectors than in complete fine-tuned weights. With the same bit budget, a narrower range can reduce rounding error. The tested alternative therefore stores a quantized update relative to the shared base, preserving the reference needed to reconstruct or merge it.

This does not establish compatibility between unrelated checkpoints. The subtraction assumes corresponding parameters and a common pretrained origin. Tokenizers, architecture changes or different initial weights require separate handling. The [LoRA merge guide](/journal/lora-adapter-merge-linear-layer/) provides the contrasting factorized-update case: compact storage can arise from low rank, whereas TVQ addresses precision of the stored differences.

## A shared residual representation

Residual Task Vector Quantization, or RTVQ, separates each update into a common component and a task-specific offset. The common component comes from the averaged fine-tuned model relative to the pretrained base. Because it is stored once, it can receive more precision while many offsets remain cheaper.

The proposed correction computes offsets against the reconstructed, quantized common component, accounting for its quantization error. This is more specific than simply quantizing a mean and every residual independently. In the classification tables, a 3-bit common component and 2-bit offsets across eight tasks give an effective 2.375 bits per task. The paper’s roughly 8% headline concerns compact checkpoint information relative to full-precision checkpoints; it is not a measured whole-process peak RAM or VRAM ratio.

## Quality depends on the merging rule

The experiments use CLIP visual backbones for classification, ResNet-50 for dense prediction, and a separate language evaluation. Classification results demonstrate a sharp low-bit boundary. For ViT-B/32 with TIES, average accuracy is 72.9 for the full-precision baseline, 72.0 for ordinary 4-bit TVQ, 62.6 for 2-bit TVQ and 72.7 for RTVQ. Those values describe that task collection and merge, rather than an invariant guarantee from the representation.

Residual sharing also does not remove every quality loss. The same classification table reports EMR-Merging at 88.3 for the baseline and 83.2 for RTVQ. Dense prediction reports segmentation, depth error and angular error separately, with different directions of improvement. A single storage ratio cannot summarize those quality tradeoffs.

## Storage is only one budget

The [official implementation README](https://raw.githubusercontent.com/AIM-SKKU/TVQ/main/README.md) distinguishes checkpoint quantization, vector quantization and residual vector quantization. It also requires preparing an averaged model for the residual path. The current documented supported methods and pending items should be read separately from the broader methods evaluated in the paper.

Loading the shared model, reconstructing updates, holding decomposition or quantization workspaces and evaluating a merged model can all create additional memory demand. These stages need actual measurements before claiming that a small stored artifact makes the same workflow fit on a smaller GPU. The [memory budget guide](/journal/lora-qlora-memory/) explains why parameters, activations and temporary allocations must remain separate. A useful comparison records stored bytes, peak host memory, peak device memory, preparation time and task quality independently.
