Papers
Topics
Authors
Recent
Search
2000 character limit reached

VQ-CAlign Module: Diverse Quantization Alignment

Updated 6 July 2026
  • VQ-CAlign is a family of modules integrating vector quantization with alignment or calibration objectives across varied tasks such as compression, text-image synthesis, and VQA.
  • It employs techniques like cosine similarity assignment, hard codeword selection, and optimal transport with tailored losses and gradient estimators for each context.
  • These mechanisms enhance performance by offering discrete representation learning, improved calibration, and semantic coupling without necessarily adding extra VQ-specific losses.

Searching arXiv for the cited papers and the term "VQ-CAlign" to ground the article in the current literature. arXiv query: VQ-CAlign module (Gou et al., 25 Apr 2026, Liang et al., 3 Mar 2025, Pandey et al., 14 Nov 2025, Barbera et al., 20 May 2026, Alaniz et al., 2022) “VQ-CAlign” is not a single standardized module in the arXiv literature summarized here. Instead, the label is used for several paper-specific mechanisms that combine vector quantization with alignment, calibration, or coupling objectives in distinct problem settings: quantization-aware training and model compression, text-aligned codebook learning, confidence calibration in Visual Question Answering, multiclass local calibration, and semantically coupled image synthesis (Gou et al., 25 Apr 2026, Liang et al., 3 Mar 2025, Pandey et al., 14 Nov 2025, Barbera et al., 20 May 2026, Alaniz et al., 2022). This suggests that the term functions as a local architectural name rather than a universally fixed design. Across these uses, the common substrate is discrete representation learning through codebooks, but the surrounding objectives, losses, and inference semantics differ substantially.

1. Terminological scope and paper-specific meanings

In the sources considered here, “VQ-CAlign” denotes at least five distinct modules.

Paper Domain Core role of “VQ-CAlign”
"Efficient VQ-QAT and Mixed Vector/Linear quantized Neural Networks" (Gou et al., 25 Apr 2026) model weight compression cosine-similarity–based vector-quantization alignment
"Towards Improved Text-Aligned Codebook Learning: Multi-Hierarchical Codebook-Text Alignment with Long Text" (Liang et al., 3 Mar 2025) image quantization and cross-modal learning hierarchical codebook–text alignment
"Refine and Align: Confidence Calibration through Multi-Agent Interaction in VQA" (Pandey et al., 14 Nov 2025) VQA calibration calibration-alignment component
"Divide et Calibra: Multiclass Local Calibration via Vector Quantization" (Barbera et al., 20 May 2026) multiclass calibration local calibration via vector quantization
"Semantic Image Synthesis with Semantically Coupled VQ-Model" (Alaniz et al., 2022) semantic image synthesis semantically coupled VQ-Model

The heterogeneity is substantive rather than merely terminological. In one case, the module performs hard codeword selection for quantized weights using cosine similarity and a straight-through estimator; in another, it aligns image code sequences with words, phrases, and sentences using sampling-based optimal transport; in another, it is a calibration-aware fine-tuning and aggregation mechanism for VQA agents; in another, it constructs region-specific Dirichlet calibration maps from vector-quantized latent regions; and in another, it couples semantic and image latents through a shared codebook (Gou et al., 25 Apr 2026, Liang et al., 3 Mar 2025, Pandey et al., 14 Nov 2025, Barbera et al., 20 May 2026, Alaniz et al., 2022).

A common misconception would be to treat “VQ-CAlign” as a single canonical block with a fixed loss or quantizer. The literature summarized here does not support that interpretation. Some variants use no additional VQ-specific losses, some retain standard VQ-VAE commitment losses, and some are not primarily codebook-learning modules at all, but calibration mechanisms layered on top of VLM or classifier outputs (Gou et al., 25 Apr 2026, Liang et al., 3 Mar 2025, Pandey et al., 14 Nov 2025).

2. Cosine-similarity assignment in quantization-aware training

In "Efficient VQ-QAT and Mixed Vector/Linear quantized Neural Networks" (Gou et al., 25 Apr 2026), VQ-CAlign is a cosine-similarity–based vector-quantization alignment module for model weight compression. Let xRdx\in\mathbb{R}^d be an input vector and let C={c1,,cN}C=\{c_1,\cdots,c_N\} be a learnable codebook of NN entries cjRdc_j\in\mathbb{R}^d. The module first forms L2L_2-normalized keys

kj=cjcj2,j=1N,k_j = \frac{c_j}{\|c_j\|_2}, \qquad j=1\ldots N,

then computes cosine similarities

sj=cos_sim(x,cj)=xkj=xcj(x2cj2).s_j = \mathrm{cos\_sim}(x,c_j) = x^\top k_j = \frac{x^\top c_j}{(\|x\|_2 \|c_j\|_2)}.

Optionally, these similarities are converted into a soft assignment

pj=exp(sj)i=1Nexp(si),p_j = \frac{\exp(s_j)}{\sum_{i=1}^N \exp(s_i)},

with the stated caveat that this distribution is used only in the backward pass (Gou et al., 25 Apr 2026).

The forward pass is explicitly hard. The module picks the index

m=argmaxjpj,m = \arg\max_j p_j,

forms a one-hot vector z{0,1}Nz\in\{0,1\}^N, and outputs

C={c1,,cN}C=\{c_1,\cdots,c_N\}0

Because C={c1,,cN}C=\{c_1,\cdots,c_N\}1 is discrete, the method applies the standard straight-through estimator. During back-propagation it pretends C={c1,,cN}C=\{c_1,\cdots,c_N\}2, so that

C={c1,,cN}C=\{c_1,\cdots,c_N\}3

Since C={c1,,cN}C=\{c_1,\cdots,c_N\}4, one obtains

C={c1,,cN}C=\{c_1,\cdots,c_N\}5

The reconstruction step is therefore simply

C={c1,,cN}C=\{c_1,\cdots,c_N\}6

When inserted into a network layer, the forward pass substitutes each block of C={c1,,cN}C=\{c_1,\cdots,c_N\}7 floating-point parameters or activations by its single corresponding codeword before further computation (Gou et al., 25 Apr 2026).

A defining feature of this variant is the absence of additional VQ-specific losses. Unlike many VQ-VAE or DKM schemes, it does not introduce extra reconstruction, commitment-, or codebook-update losses. Instead, it relies solely on the task loss, may optionally add standard weight decay, and in mixed-quantization with ProxylessNAS adds a storage penalty. The overall QAT loss in the ProxylessNAS setting is

C={c1,,cN}C=\{c_1,\cdots,c_N\}8

with

C={c1,,cN}C=\{c_1,\cdots,c_N\}9

The paper attributes the absence of extra VQ losses to two stated mechanisms: codebook vectors receive direct gradient signals via STE, and cosine assignment balances codebook usage, mitigating collapse (Gou et al., 25 Apr 2026).

The same work situates VQ-CAlign inside each quantized layer during QAT. Full-precision weights are grouped into NN0-dimensional vectors, each passed through the VQ-CAlign block to produce NN1, and gradients update both the original vectors and the codebook entries. The authors further state that cosine-similarity assignment emphasizes directional diversity of codewords and naturally yields a more uniform assignment of vectors to centroids, directly reducing the chance of “dead” codewords without explicit eviction or regularization. Because forward and backward graphs are identical to inference, no temperature scheduling is required. In a larger mixed-quantization pipeline, VQ-CAlign competes against a conventional linear quantizer, with per-layer switches learned via another STE (Gou et al., 25 Apr 2026).

3. Hierarchical codebook–text alignment with long text

In "Towards Improved Text-Aligned Codebook Learning: Multi-Hierarchical Codebook-Text Alignment with Long Text" (Liang et al., 3 Mar 2025), VQ-CAlign is a hierarchical codebook–text alignment module in the TA-VQ framework. The text side begins from a long text NN2 generated by a VLM and splits it into three sets: words NN3, phrases NN4, and sentences NN5. Only visual-relevant tokens are retained at the word level, specifically nouns, adjectives, and quantifiers. All three granularities are encoded with a shared BERT backbone, producing NN6, NN7, and NN8 (Liang et al., 3 Mar 2025).

On the image side, a single CNN encoder NN9 produces three grid-feature maps,

cjRdc_j\in\mathbb{R}^d0

with down-sampling factors cjRdc_j\in\mathbb{R}^d1, cjRdc_j\in\mathbb{R}^d2, and cjRdc_j\in\mathbb{R}^d3. Each grid feature cjRdc_j\in\mathbb{R}^d4 is quantized via a shared codebook cjRdc_j\in\mathbb{R}^d5 by

cjRdc_j\in\mathbb{R}^d6

This produces code sequences cjRdc_j\in\mathbb{R}^d7 for each granularity (Liang et al., 3 Mar 2025).

The alignment mechanism is not cross-attention. At each granularity cjRdc_j\in\mathbb{R}^d8, the module aligns cjRdc_j\in\mathbb{R}^d9 with L2L_20 through a sampling-based optimal-transport module. The code distribution is modeled as Gaussian. For sentences, the paper defines

L2L_21

The text distribution is discrete uniform,

L2L_22

The procedure then samples L2L_23 text embeddings from L2L_24, samples L2L_25 code proposals L2L_26, projects these proposals by another FNN, and computes a Sinkhorn-Knopp approximation of the L2L_27 OT cost: L2L_28 The same procedure yields L2L_29 and kj=cjcj2,j=1N,k_j = \frac{c_j}{\|c_j\|_2}, \qquad j=1\ldots N,0 (Liang et al., 3 Mar 2025).

Unlike the QAT-oriented variant above, this module is embedded in a standard VQ-VAE-style objective. The reconstruction and commitment losses are

kj=cjcj2,j=1N,k_j = \frac{c_j}{\|c_j\|_2}, \qquad j=1\ldots N,1

and the overall loss is

kj=cjcj2,j=1N,k_j = \frac{c_j}{\|c_j\|_2}, \qquad j=1\ldots N,2

where typically kj=cjcj2,j=1N,k_j = \frac{c_j}{\|c_j\|_2}, \qquad j=1\ldots N,3 (Liang et al., 3 Mar 2025).

Integration into base VQ models is described concretely. The single-scale encoder is replaced with a hierarchical one producing three intermediate feature maps; the original VQ-VAE or VQ-GAN decoder remains unchanged and uses only the deepest codes kj=cjcj2,j=1N,k_j = \frac{c_j}{\|c_j\|_2}, \qquad j=1\ldots N,4 for reconstruction; and three lightweight 2-layer MLPs are added for Gaussian parameterization and code-to-feature mapping. Reported hyperparameters include codebook size kj=cjcj2,j=1N,k_j = \frac{c_j}{\|c_j\|_2}, \qquad j=1\ldots N,5, latent dimension kj=cjcj2,j=1N,k_j = \frac{c_j}{\|c_j\|_2}, \qquad j=1\ldots N,6, down-sample factors kj=cjcj2,j=1N,k_j = \frac{c_j}{\|c_j\|_2}, \qquad j=1\ldots N,7, and Sinkhorn sample size kj=cjcj2,j=1N,k_j = \frac{c_j}{\|c_j\|_2}, \qquad j=1\ldots N,8 such as kj=cjcj2,j=1N,k_j = \frac{c_j}{\|c_j\|_2}, \qquad j=1\ldots N,9 or sj=cos_sim(x,cj)=xkj=xcj(x2cj2).s_j = \mathrm{cos\_sim}(x,c_j) = x^\top k_j = \frac{x^\top c_j}{(\|x\|_2 \|c_j\|_2)}.0 if smaller (Liang et al., 3 Mar 2025).

The empirical evidence reported for TA-VQ is explicitly multimodal. Reconstruction is evaluated on CelebA-HQ, CUB-200, and MS-COCO using FID; downstream tasks include unconditional and conditional generation, Text-to-Image, semantic synthesis, image completion, visual grounding, image captioning, and VQA. The paper states that TA-VQ consistently lowers FID in reconstruction versus VQ-GAN, LG-VQ and VQCT; that sentence alignment sj=cos_sim(x,cj)=xkj=xcj(x2cj2).s_j = \mathrm{cos\_sim}(x,c_j) = x^\top k_j = \frac{x^\top c_j}{(\|x\|_2 \|c_j\|_2)}.1 alone gives the largest FID drop, while combining all three losses is best; that multi-granularity text encoding improves FID from sj=cos_sim(x,cj)=xkj=xcj(x2cj2).s_j = \mathrm{cos\_sim}(x,c_j) = x^\top k_j = \frac{x^\top c_j}{(\|x\|_2 \|c_j\|_2)}.2 on CUB; that cosine(codebook, text) increases from sj=cos_sim(x,cj)=xkj=xcj(x2cj2).s_j = \mathrm{cos\_sim}(x,c_j) = x^\top k_j = \frac{x^\top c_j}{(\|x\|_2 \|c_j\|_2)}.3; and that sampling-based alignment reduces train-time per epoch by sj=cos_sim(x,cj)=xkj=xcj(x2cj2).s_j = \mathrm{cos\_sim}(x,c_j) = x^\top k_j = \frac{x^\top c_j}{(\|x\|_2 \|c_j\|_2)}.4 versus full OT (Liang et al., 3 Mar 2025).

4. Calibration-aware alignment in multi-agent VQA

In "Refine and Align: Confidence Calibration through Multi-Agent Interaction in VQA" (Pandey et al., 14 Nov 2025), VQ-CAlign is not a codebook-learning block for images or weights. It is the calibration-alignment component of AlignVQA, a two-stage debate framework for Visual Question Answering.

Stage 1 instantiates sj=cos_sim(x,cj)=xkj=xcj(x2cj2).s_j = \mathrm{cos\_sim}(x,c_j) = x^\top k_j = \frac{x^\top c_j}{(\|x\|_2 \|c_j\|_2)}.5 specialized VQA agents, each built on a different vision-language backbone and prompted with a distinct reasoning strategy, including Chain-of-Thought, Self-Ask, Search-Augmented, and GENREAD. Each agent produces sj=cos_sim(x,cj)=xkj=xcj(x2cj2).s_j = \mathrm{cos\_sim}(x,c_j) = x^\top k_j = \frac{x^\top c_j}{(\|x\|_2 \|c_j\|_2)}.6, where sj=cos_sim(x,cj)=xkj=xcj(x2cj2).s_j = \mathrm{cos\_sim}(x,c_j) = x^\top k_j = \frac{x^\top c_j}{(\|x\|_2 \|c_j\|_2)}.7 is its confidence, computed as the geometric mean of its token-level next-token probabilities. Lexically different but semantically equivalent answers are clustered into sj=cos_sim(x,cj)=xkj=xcj(x2cj2).s_j = \mathrm{cos\_sim}(x,c_j) = x^\top k_j = \frac{x^\top c_j}{(\|x\|_2 \|c_j\|_2)}.8 unique stances sj=cos_sim(x,cj)=xkj=xcj(x2cj2).s_j = \mathrm{cos\_sim}(x,c_j) = x^\top k_j = \frac{x^\top c_j}{(\|x\|_2 \|c_j\|_2)}.9. For each stance pj=exp(sj)i=1Nexp(si),p_j = \frac{\exp(s_j)}{\sum_{i=1}^N \exp(s_i)},0, the framework records the frequency pj=exp(sj)i=1Nexp(si),p_j = \frac{\exp(s_j)}{\sum_{i=1}^N \exp(s_i)},1 and mean confidence pj=exp(sj)i=1Nexp(si),p_j = \frac{\exp(s_j)}{\sum_{i=1}^N \exp(s_i)},2. Stage 2 instantiates pj=exp(sj)i=1Nexp(si),p_j = \frac{\exp(s_j)}{\sum_{i=1}^N \exp(s_i)},3 generalist agents, all using the same backbone, each randomly assigned one of the pj=exp(sj)i=1Nexp(si),p_j = \frac{\exp(s_j)}{\sum_{i=1}^N \exp(s_i)},4 stances with probability proportional to pj=exp(sj)i=1Nexp(si),p_j = \frac{\exp(s_j)}{\sum_{i=1}^N \exp(s_i)},5. Each generalist generates supporting and opposing arguments, ratings or feedback on logical consistency, factuality, and clarity via Chain-of-Verification, then a refined answer pj=exp(sj)i=1Nexp(si),p_j = \frac{\exp(s_j)}{\sum_{i=1}^N \exp(s_i)},6 and a new confidence pj=exp(sj)i=1Nexp(si),p_j = \frac{\exp(s_j)}{\sum_{i=1}^N \exp(s_i)},7. Aggregation proceeds by stance; the final answer is the majority-vote stance pj=exp(sj)i=1Nexp(si),p_j = \frac{\exp(s_j)}{\sum_{i=1}^N \exp(s_i)},8, and the final confidence is pj=exp(sj)i=1Nexp(si),p_j = \frac{\exp(s_j)}{\sum_{i=1}^N \exp(s_i)},9 (Pandey et al., 14 Nov 2025).

The calibration component is formalized through bin-based metrics and the AlignCal loss. The paper defines Expected Calibration Error as

m=argmaxjpj,m = \arg\max_j p_j,0

Adaptive Calibration Error as

m=argmaxjpj,m = \arg\max_j p_j,1

and Maximum Calibration Error as

m=argmaxjpj,m = \arg\max_j p_j,2

Letting m=argmaxjpj,m = \arg\max_j p_j,3 be the softmax output, m=argmaxjpj,m = \arg\max_j p_j,4, and m=argmaxjpj,m = \arg\max_j p_j,5 the probability of the true class, the AlignCal loss per example is

m=argmaxjpj,m = \arg\max_j p_j,6

The total training loss combines Focal Loss and AlignCal: m=argmaxjpj,m = \arg\max_j p_j,7 The paper further argues that this objective minimizes an upper bound on calibration error by connecting it to an Upper-Bound Calibration Error expression involving m=argmaxjpj,m = \arg\max_j p_j,8 (Pandey et al., 14 Nov 2025).

The fine-tuning procedure uses LoRA adapters on specialized agents. The implementation details provided are AdamW (fused), LoRA rank m=argmaxjpj,m = \arg\max_j p_j,9, z{0,1}Nz\in\{0,1\}^N0, dropout z{0,1}Nz\in\{0,1\}^N1 in z{0,1}Nz\in\{0,1\}^N2 and z{0,1}Nz\in\{0,1\}^N3, z{0,1}Nz\in\{0,1\}^N4 epochs on VQARad with z{0,1}Nz\in\{0,1\}^N5 training samples, z{0,1}Nz\in\{0,1\}^N6 epochs on ScienceQA with z{0,1}Nz\in\{0,1\}^N7 samples, batch size z{0,1}Nz\in\{0,1\}^N8, learning rate z{0,1}Nz\in\{0,1\}^N9, C={c1,,cN}C=\{c_1,\cdots,c_N\}00, and focal C={c1,,cN}C=\{c_1,\cdots,c_N\}01 (Pandey et al., 14 Nov 2025).

The reported results focus on calibration quality. On ScienceQA with C={c1,,cN}C=\{c_1,\cdots,c_N\}02 questions, Base Gemma 3 4B has C={c1,,cN}C=\{c_1,\cdots,c_N\}03 and C={c1,,cN}C=\{c_1,\cdots,c_N\}04; adding Focal Loss reduces ECE to C={c1,,cN}C=\{c_1,\cdots,c_N\}05; using FL plus AlignCal in Stage 1 reduces ECE to C={c1,,cN}C=\{c_1,\cdots,c_N\}06; agentic debate alone yields ECE C={c1,,cN}C=\{c_1,\cdots,c_N\}07; and agentic plus AlignCal yields C={c1,,cN}C=\{c_1,\cdots,c_N\}08, C={c1,,cN}C=\{c_1,\cdots,c_N\}09, C={c1,,cN}C=\{c_1,\cdots,c_N\}10, and C={c1,,cN}C=\{c_1,\cdots,c_N\}11. On VQARad, Base Gemma 3 4B has C={c1,,cN}C=\{c_1,\cdots,c_N\}12 and C={c1,,cN}C=\{c_1,\cdots,c_N\}13; FL plus AlignCal reduces ECE to C={c1,,cN}C=\{c_1,\cdots,c_N\}14; agentic debate alone gives C={c1,,cN}C=\{c_1,\cdots,c_N\}15, C={c1,,cN}C=\{c_1,\cdots,c_N\}16; and agentic plus AlignCal yields C={c1,,cN}C=\{c_1,\cdots,c_N\}17, C={c1,,cN}C=\{c_1,\cdots,c_N\}18, C={c1,,cN}C=\{c_1,\cdots,c_N\}19, and C={c1,,cN}C=\{c_1,\cdots,c_N\}20 (Pandey et al., 14 Nov 2025).

5. Divide et Calibra: local multiclass calibration via vector quantization

In "Divide et Calibra: Multiclass Local Calibration via Vector Quantization" (Barbera et al., 20 May 2026), VQ-CAlign denotes a structured local calibration method. The architecture begins with an input C={c1,,cN}C=\{c_1,\cdots,c_N\}21, a frozen encoder C={c1,,cN}C=\{c_1,\cdots,c_N\}22, and a continuous representation C={c1,,cN}C=\{c_1,\cdots,c_N\}23 with C={c1,,cN}C=\{c_1,\cdots,c_N\}24. The representation is split into C={c1,,cN}C=\{c_1,\cdots,c_N\}25 contiguous subvectors C={c1,,cN}C=\{c_1,\cdots,c_N\}26, each assigned to its nearest codeword C={c1,,cN}C=\{c_1,\cdots,c_N\}27 from a shared codebook C={c1,,cN}C=\{c_1,\cdots,c_N\}28. The assignments C={c1,,cN}C=\{c_1,\cdots,c_N\}29 define a quantized vector

C={c1,,cN}C=\{c_1,\cdots,c_N\}30

A small linear VQ-head C={c1,,cN}C=\{c_1,\cdots,c_N\}31 produces uncalibrated logits C={c1,,cN}C=\{c_1,\cdots,c_N\}32 and probabilities C={c1,,cN}C=\{c_1,\cdots,c_N\}33 (Barbera et al., 20 May 2026).

The “Calibra” component introduces indexed Dirichlet-based calibration. Two codebooks C={c1,,cN}C=\{c_1,\cdots,c_N\}34 and C={c1,,cN}C=\{c_1,\cdots,c_N\}35, each of size C={c1,,cN}C=\{c_1,\cdots,c_N\}36, provide class-wise factors C={c1,,cN}C=\{c_1,\cdots,c_N\}37 and C={c1,,cN}C=\{c_1,\cdots,c_N\}38. Using the same vector-quantization indices C={c1,,cN}C=\{c_1,\cdots,c_N\}39, the method assembles region-specific matrices C={c1,,cN}C=\{c_1,\cdots,c_N\}40 and C={c1,,cN}C=\{c_1,\cdots,c_N\}41, then forms the Dirichlet concentration vector

C={c1,,cN}C=\{c_1,\cdots,c_N\}42

with C={c1,,cN}C=\{c_1,\cdots,c_N\}43 or C={c1,,cN}C=\{c_1,\cdots,c_N\}44 to ensure positivity. A more explicit form is given by

C={c1,,cN}C=\{c_1,\cdots,c_N\}45

or class-wise,

C={c1,,cN}C=\{c_1,\cdots,c_N\}46

This replaces an exponential number of region-specific parameters with a compositional factorization indexed by shared codewords (Barbera et al., 20 May 2026).

The calibrated posterior is then log-linear in C={c1,,cN}C=\{c_1,\cdots,c_N\}47: C={c1,,cN}C=\{c_1,\cdots,c_N\}48 where

C={c1,,cN}C=\{c_1,\cdots,c_N\}49

In practice,

C={c1,,cN}C=\{c_1,\cdots,c_N\}50

The paper also notes an equivalent view in which C={c1,,cN}C=\{c_1,\cdots,c_N\}51 is C={c1,,cN}C=\{c_1,\cdots,c_N\}52, while emphasizing that the log-linear form allows calibration on logits (Barbera et al., 20 May 2026).

Training uses a two-stage procedure. Stage 1 learns the VQ codebook and quantized head with

C={c1,,cN}C=\{c_1,\cdots,c_N\}53

where the standard VQ-VAE loss per slot is

C={c1,,cN}C=\{c_1,\cdots,c_N\}54

Stage 2 freezes C={c1,,cN}C=\{c_1,\cdots,c_N\}55, C={c1,,cN}C=\{c_1,\cdots,c_N\}56, and C={c1,,cN}C=\{c_1,\cdots,c_N\}57, then learns C={c1,,cN}C=\{c_1,\cdots,c_N\}58, C={c1,,cN}C=\{c_1,\cdots,c_N\}59, and C={c1,,cN}C=\{c_1,\cdots,c_N\}60 by minimizing

C={c1,,cN}C=\{c_1,\cdots,c_N\}61

An optional joint objective is also given: C={c1,,cN}C=\{c_1,\cdots,c_N\}62 with C={c1,,cN}C=\{c_1,\cdots,c_N\}63 and C={c1,,cN}C=\{c_1,\cdots,c_N\}64 reported to work well in the experiments (Barbera et al., 20 May 2026).

The reported empirical behavior emphasizes local calibration. For C={c1,,cN}C=\{c_1,\cdots,c_N\}65, values in C={c1,,cN}C=\{c_1,\cdots,c_N\}66 and C={c1,,cN}C=\{c_1,\cdots,c_N\}67 in C={c1,,cN}C=\{c_1,\cdots,c_N\}68 are stated as best observed, while small C={c1,,cN}C=\{c_1,\cdots,c_N\}69 such as C={c1,,cN}C=\{c_1,\cdots,c_N\}70 is too coarse and large C={c1,,cN}C=\{c_1,\cdots,c_N\}71 leads to excessive fragmentation. Ablations indicate that VQ alone cuts local calibration error by C={c1,,cN}C=\{c_1,\cdots,c_N\}72 versus global methods, and the bilinear indexed parametrization further improves global coherence without sacrificing local gains. On CIFAR-10 with ResNet-50, the paper reports Base C={c1,,cN}C=\{c_1,\cdots,c_N\}73, C={c1,,cN}C=\{c_1,\cdots,c_N\}74, C={c1,,cN}C=\{c_1,\cdots,c_N\}75; Best global (SM) C={c1,,cN}C=\{c_1,\cdots,c_N\}76, C={c1,,cN}C=\{c_1,\cdots,c_N\}77, C={c1,,cN}C=\{c_1,\cdots,c_N\}78; and VQ-CAlign C={c1,,cN}C=\{c_1,\cdots,c_N\}79, C={c1,,cN}C=\{c_1,\cdots,c_N\}80, C={c1,,cN}C=\{c_1,\cdots,c_N\}81. On CIFAR-100, Base C={c1,,cN}C=\{c_1,\cdots,c_N\}82 and VQ-CAlign C={c1,,cN}C=\{c_1,\cdots,c_N\}83. On TissueMNIST, Base C={c1,,cN}C=\{c_1,\cdots,c_N\}84 and VQ-CAlign C={c1,,cN}C=\{c_1,\cdots,c_N\}85 (Barbera et al., 20 May 2026).

6. Semantically coupled vector quantization for image synthesis

In "Semantic Image Synthesis with Semantically Coupled VQ-Model" (Alaniz et al., 2022), VQ-CAlign is a semantically coupled VQ-Model that jointly auto-encodes an RGB image C={c1,,cN}C=\{c_1,\cdots,c_N\}86 and its semantic map C={c1,,cN}C=\{c_1,\cdots,c_N\}87. A shared encoder C={c1,,cN}C=\{c_1,\cdots,c_N\}88 takes the concatenated input C={c1,,cN}C=\{c_1,\cdots,c_N\}89 and produces two continuous latent feature maps of spatial size C={c1,,cN}C=\{c_1,\cdots,c_N\}90 and channel dimension C={c1,,cN}C=\{c_1,\cdots,c_N\}91: C={c1,,cN}C=\{c_1,\cdots,c_N\}92 Both are quantized against a single shared codebook C={c1,,cN}C=\{c_1,\cdots,c_N\}93, forcing the two modalities to pick code-vectors from the same discrete dictionary (Alaniz et al., 2022).

The decoder wiring is asymmetric. The semantic decoder C={c1,,cN}C=\{c_1,\cdots,c_N\}94 takes only the quantized semantic latents C={c1,,cN}C=\{c_1,\cdots,c_N\}95 to reconstruct the semantic map,

C={c1,,cN}C=\{c_1,\cdots,c_N\}96

whereas the image decoder C={c1,,cN}C=\{c_1,\cdots,c_N\}97 takes the quantized image latents and a stopped-gradient copy of the semantic latents,

C={c1,,cN}C=\{c_1,\cdots,c_N\}98

The stop-gradient is used so that each decoder “owns” its latent, although the encoder sees both modalities (Alaniz et al., 2022).

The paper defines image reconstruction and semantic reconstruction losses as

C={c1,,cN}C=\{c_1,\cdots,c_N\}99

with optional GAN and perceptual losses, and

NN00

The commitment terms are standard VQ terms applied to both modalities, and the total loss is

NN01

The paper explicitly states that there is no extra explicit coupling regularizer beyond the shared codebook and decoder wiring, so NN02 (Alaniz et al., 2022).

Training details include codebook size NN03, embedding dimension NN04, latent spatial size NN05, NN06, NN07, Adam with learning rate NN08, NN09, NN10, and batch size NN11 on the unified Cityscapes + ADE20K + COCO-Stuff dataset. After training the VQ-CAlign auto-encoder to convergence, the encoder, decoders, and quantization are frozen, and an autoregressive Transformer is trained on the flattened and concatenated index maps NN12 and NN13 to model

NN14

The reported semantic-image synthesis results compare VQGAN-T against sVQGAN-T. On ADE20K, FID improves from NN15 to NN16; on Cityscapes, the values are NN17 and NN18 NN19; and on COCO-Stuff, FID improves from NN20 to NN21. The paper further states that semantic adherence and reconstruction metrics also improve relative to separate VQVAE or VQGAN auto-encoders, and that varying NN22 shows a trade-off between image fidelity and semantic accuracy, with NN23 giving the best Transformer generation quality (Alaniz et al., 2022).

7. Comparative structure, recurring motifs, and major distinctions

Across these five instantiations, vector quantization serves different technical functions. In the QAT compression setting, VQ-CAlign is a hard codeword-substitution mechanism for grouped weights or activations, with cosine-similarity assignment and STE-based gradient flow (Gou et al., 25 Apr 2026). In TA-VQ, vector quantization produces code sequences that are then aligned with word-, phrase-, and sentence-level text through sampling-based optimal transport (Liang et al., 3 Mar 2025). In Divide et Calibra, VQ partitions the latent space into reusable regions that index local Dirichlet calibration factors (Barbera et al., 20 May 2026). In the semantically coupled VQ-Model, the shared codebook is the coupling device through which image and semantic latents become jointly structured (Alaniz et al., 2022). In AlignVQA, by contrast, the central operation is calibration-aware debate and aggregation rather than codebook quantization of visual representations, even though the same label is used for the module (Pandey et al., 14 Nov 2025).

The treatment of losses is one of the clearest dividing lines. The cosine-assignment QAT variant explicitly avoids additional “VQ reconstruction” or “commitment” terms and relies solely on task loss, optional weight decay, and, in ProxylessNAS, a storage penalty (Gou et al., 25 Apr 2026). TA-VQ retains a standard VQ-VAE reconstruction and commitment loss and adds three alignment losses weighted by NN24, NN25, and NN26 (Liang et al., 3 Mar 2025). Divide et Calibra also retains a standard VQ-VAE loss in Stage 1, then optimizes a calibration negative log-likelihood in Stage 2 (Barbera et al., 20 May 2026). The semantically coupled VQ-Model uses image reconstruction, semantic reconstruction, and commitment losses, while stating that no explicit coupling regularizer is introduced (Alaniz et al., 2022). AlignVQA uses Focal Loss plus the differentiable AlignCal term as a calibration-aware objective for specialized agents (Pandey et al., 14 Nov 2025).

The alignment target also varies sharply. One variant aligns vectors to codewords via cosine similarity (Gou et al., 25 Apr 2026); one aligns codebook-induced image representations to long text at multiple granularities (Liang et al., 3 Mar 2025); one aligns agent confidence with actual correctness (Pandey et al., 14 Nov 2025); one aligns local calibration maps to vector-quantized latent regions (Barbera et al., 20 May 2026); and one aligns semantics and image latents through a shared codebook and decoder conditioning (Alaniz et al., 2022). A plausible implication is that “alignment” in the name is semantically overloaded across these papers: it may refer to assignment geometry, cross-modal correspondence, confidence fidelity, latent-region calibration, or semantic coupling, depending on context.

A second recurring motif is the handling of discreteness. Hard assignments with straight-through estimation appear in the cosine-assignment QAT formulation (Gou et al., 25 Apr 2026). Standard nearest-codeword quantization and stop-gradient are used in TA-VQ, Divide et Calibra, and the semantically coupled VQ-Model (Liang et al., 3 Mar 2025, Barbera et al., 20 May 2026, Alaniz et al., 2022). This commonality does not imply architectural equivalence; rather, it indicates that the discrete bottleneck is reused for different downstream objectives.

Taken together, the literature does not define a monolithic VQ-CAlign module. It defines a family of paper-specific constructs in which vector quantization is combined with alignment or calibration mechanisms tailored to the target task. Any interpretation of “VQ-CAlign” therefore depends on the paper context, the loss design, and the role assigned to the codebook in the overall system.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to VQ-CAlign Module.