Papers
Topics
Authors
Recent
Search
2000 character limit reached

Patch-Alignment Loss (PAL)

Updated 12 July 2026
  • Patch-Alignment Loss (PAL) is a family of objectives that aligns local patches or tokens to capture fine-grained representations essential for dense tasks.
  • It encompasses diverse formulations—from text-conditioned pooling in vision–language models to symmetric InfoNCE in vision–tactile matching and quadratic alignment in geometric registration.
  • PAL improves performance metrics (e.g., zero-shot segmentation mIoU and image classification accuracy) by emphasizing localized feature consistency and flexible cross-modal supervision.

Patch-Alignment Loss (PAL) denotes a family of objectives that align representations at the level of patches, local crops, spatial tokens, or overlapping local views rather than only at the image, caption, or scene level. In recent arXiv literature, the term spans several distinct constructions: a CLIP-derived patch-attended compatibility for open-vocabulary segmentation, a cosine-distance loss over cross-attention-weighted real and synthetic patch descriptors for Bengali captioning, a symmetric InfoNCE objective for vision–tactile local matching, and a $2$-norm rigid-alignment error for overlapping geometric patches (Mukhoti et al., 2022, Anonto et al., 22 Sep 2025, Li et al., 10 Jun 2026, Kohli et al., 2023). This suggests that PAL is not a single canonical loss, but a recurring design principle in which locality is made explicit in the alignment objective.

1. Scope of the term

The phrase “Patch-Alignment Loss” is used across multiple research areas, but the aligned objects and the optimization targets differ substantially.

Setting Aligned units PAL form
Open-vocabulary vision–language learning ViT patch tokens and a text CLS embedding Modified CLIP compatibility inside symmetric InfoNCE
Bengali captioning Cross-attention-weighted real and synthetic patch descriptors Cosine-distance between pooled descriptors
Vision–tactile representation learning Paired local vision and tactile crops Symmetric InfoNCE
Rigid patch registration Overlapping local geometric views Sum of squared Frobenius residuals

A common misconception is that PAL always denotes a contrastive loss. That is inaccurate. In the Bengali-captioning setting, PAL is defined as 1cos(r,r~)1-\cos(r,\tilde r) after text-conditioned pooling; in rigid alignment it is the quadratic error (i,j)ERiYijRjYjiF2\sum_{(i,j)\in E}\|R_iY_{ij}-R_jY_{ji}\|_F^2; and in vision–tactile learning it is a symmetric InfoNCE over paired local embeddings (Anonto et al., 22 Sep 2025, Kohli et al., 2023, Li et al., 10 Jun 2026). Another misconception is that patch alignment necessarily requires dense supervision. The CLIP-based segmentation formulation explicitly enables open-vocabulary zero-shot segmentation “without requiring any segmentation annotations during training,” while the captioning and vision–tactile variants use other forms of locality-aware supervision (Mukhoti et al., 2022, Anonto et al., 22 Sep 2025).

2. Patch alignment in CLIP-style vision–LLMs

In "Open Vocabulary Semantic Segmentation with Patch Aligned Contrastive Learning" (Mukhoti et al., 2022), the patch-alignment mechanism is introduced as Patch Aligned Contrastive Learning (PACL), a modification of CLIP’s compatibility function. Standard CLIP uses normalized image and text embeddings,

vi=ev(fv(xi))ev(fv(xi)),ti=et(ft(yi))et(ft(yi)),v_i=\frac{e_v(f_v(x_i))}{\|e_v(f_v(x_i))\|}, \qquad t_i=\frac{e_t(f_t(y_i))}{\|e_t(f_t(y_i))\|},

with compatibility

ϕCLIP(xi,yj)=vitj,\phi_{\rm CLIP}(x_i,y_j)=v_i^\top t_j,

and the symmetric InfoNCE objective

LCLIP=12ki=1k[logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xi,yj)/τ)+logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xj,yi)/τ)].\mathcal{L}_{\rm CLIP} = -\frac{1}{2k}\sum_{i=1}^k \left[ \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_i,y_j)/\tau)} + \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_j,y_i)/\tau)} \right].

PACL replaces the single-token vision encoder by a patch-level encoder

f^v:RC×H×WRT×Dv,\hat f_v:\mathbb{R}^{C\times H\times W}\to\mathbb{R}^{T\times D_v},

freezes f^v\hat f_v and the text encoder ftf_t, and trains only a small vision embedder

e^v:RDvRD.\hat e_v:\mathbb{R}^{D_v}\to\mathbb{R}^{D}.

For each patch 1cos(r,r~)1-\cos(r,\tilde r)0, it computes unnormalized patch–text similarities

1cos(r,r~)1-\cos(r,\tilde r)1

then softmax-normalizes them across patches to obtain

1cos(r,r~)1-\cos(r,\tilde r)2

These weights define a text-conditioned patch aggregate,

1cos(r,r~)1-\cos(r,\tilde r)3

and the scalar compatibility becomes

1cos(r,r~)1-\cos(r,\tilde r)4

Replacing 1cos(r,r~)1-\cos(r,\tilde r)5 by 1cos(r,r~)1-\cos(r,\tilde r)6 in InfoNCE yields 1cos(r,r~)1-\cos(r,\tilde r)7.

The architectural point is that patch weights 1cos(r,r~)1-\cos(r,\tilde r)8 act as a cross-modal attention mechanism over vision patches, while the text side remains a single CLS embedding. The paper states that only 1cos(r,r~)1-\cos(r,\tilde r)9 is trained; the vision encoder (i,j)ERiYijRjYjiF2\sum_{(i,j)\in E}\|R_iY_{ij}-R_jY_{ji}\|_F^20, text encoder (i,j)ERiYijRjYjiF2\sum_{(i,j)\in E}\|R_iY_{ij}-R_jY_{ji}\|_F^21, and text embedder (i,j)ERiYijRjYjiF2\sum_{(i,j)\in E}\|R_iY_{ij}-R_jY_{ji}\|_F^22 remain frozen. The formulation is compatible with CLIP ViT-B/16 and ViT-L/14, and even with a DINO-trained ViT vision encoder. A “stride trick” at inference reduces patch stride, for example from (i,j)ERiYijRjYjiF2\sum_{(i,j)\in E}\|R_iY_{ij}-R_jY_{ji}\|_F^23 to (i,j)ERiYijRjYjiF2\sum_{(i,j)\in E}\|R_iY_{ij}-R_jY_{ji}\|_F^24, to obtain a finer patch grid without retraining.

The central empirical claim is that aligning patches rather than only CLS tokens unlocks open-vocabulary zero-shot segmentation. On Pascal VOC, per-patch zero-shot classification accuracy rises from (i,j)ERiYijRjYjiF2\sum_{(i,j)\in E}\|R_iY_{ij}-R_jY_{ji}\|_F^25 to above (i,j)ERiYijRjYjiF2\sum_{(i,j)\in E}\|R_iY_{ij}-R_jY_{ji}\|_F^26 after PACL training; the detailed figures are (i,j)ERiYijRjYjiF2\sum_{(i,j)\in E}\|R_iY_{ij}-R_jY_{ji}\|_F^27 for CLIP ViT-B/16 and (i,j)ERiYijRjYjiF2\sum_{(i,j)\in E}\|R_iY_{ij}-R_jY_{ji}\|_F^28 for CLIP ViT-L/14. Zero-shot semantic segmentation mIoU reaches (i,j)ERiYijRjYjiF2\sum_{(i,j)\in E}\|R_iY_{ij}-R_jY_{ji}\|_F^29 on Pascal VOC-20, vi=ev(fv(xi))ev(fv(xi)),ti=et(ft(yi))et(ft(yi)),v_i=\frac{e_v(f_v(x_i))}{\|e_v(f_v(x_i))\|}, \qquad t_i=\frac{e_t(f_t(y_i))}{\|e_t(f_t(y_i))\|},0 on Pascal Context-59, vi=ev(fv(xi))ev(fv(xi)),ti=et(ft(yi))et(ft(yi)),v_i=\frac{e_v(f_v(x_i))}{\|e_v(f_v(x_i))\|}, \qquad t_i=\frac{e_t(f_t(y_i))}{\|e_t(f_t(y_i))\|},1 on COCO-Stuff-171, and vi=ev(fv(xi))ev(fv(xi)),ti=et(ft(yi))et(ft(yi)),v_i=\frac{e_v(f_v(x_i))}{\|e_v(f_v(x_i))\|}, \qquad t_i=\frac{e_t(f_t(y_i))}{\|e_t(f_t(y_i))\|},2 on ADE20K-150, with no masks or pixel labels used at train time. The same patch-alignment mechanism also improves zero-shot image classification, including ImageNet top-1 from vi=ev(fv(xi))ev(fv(xi)),ti=et(ft(yi))et(ft(yi)),v_i=\frac{e_v(f_v(x_i))}{\|e_v(f_v(x_i))\|}, \qquad t_i=\frac{e_t(f_t(y_i))}{\|e_t(f_t(y_i))\|},3 for ViT-B/16 and from vi=ev(fv(xi))ev(fv(xi)),ti=et(ft(yi))et(ft(yi)),v_i=\frac{e_v(f_v(x_i))}{\|e_v(f_v(x_i))\|}, \qquad t_i=\frac{e_t(f_t(y_i))}{\|e_t(f_t(y_i))\|},4 for ViT-L/14.

3. Cross-attention-guided PAL for Bengali captioning

In "Align Where the Words Look: Cross-Attention-Guided Patch Alignment with Contrastive and Transport Regularization for Bengali Captioning" (Anonto et al., 22 Sep 2025), PAL is defined on matched triplets vi=ev(fv(xi))ev(fv(xi)),ti=et(ft(yi))et(ft(yi)),v_i=\frac{e_v(f_v(x_i))}{\|e_v(f_v(x_i))\|}, \qquad t_i=\frac{e_t(f_t(y_i))}{\|e_t(f_t(y_i))\|},5, where vi=ev(fv(xi))ev(fv(xi)),ti=et(ft(yi))et(ft(yi)),v_i=\frac{e_v(f_v(x_i))}{\|e_v(f_v(x_i))\|}, \qquad t_i=\frac{e_t(f_t(y_i))}{\|e_t(f_t(y_i))\|},6 is a real image, vi=ev(fv(xi))ev(fv(xi)),ti=et(ft(yi))et(ft(yi)),v_i=\frac{e_v(f_v(x_i))}{\|e_v(f_v(x_i))\|}, \qquad t_i=\frac{e_t(f_t(y_i))}{\|e_t(f_t(y_i))\|},7 is a synthetic counterpart generated from the same Bengali caption vi=ev(fv(xi))ev(fv(xi)),ti=et(ft(yi))et(ft(yi)),v_i=\frac{e_v(f_v(x_i))}{\|e_v(f_v(x_i))\|}, \qquad t_i=\frac{e_t(f_t(y_i))}{\|e_t(f_t(y_i))\|},8, and a frozen MaxViT encoder provides a feature map vi=ev(fv(xi))ev(fv(xi)),ti=et(ft(yi))et(ft(yi)),v_i=\frac{e_v(f_v(x_i))}{\|e_v(f_v(x_i))\|}, \qquad t_i=\frac{e_t(f_t(y_i))}{\|e_t(f_t(y_i))\|},9 with ϕCLIP(xi,yj)=vitj,\phi_{\rm CLIP}(x_i,y_j)=v_i^\top t_j,0 spatial locations. After reshaping and projecting,

ϕCLIP(xi,yj)=vitj,\phi_{\rm CLIP}(x_i,y_j)=v_i^\top t_j,1

and similarly for ϕCLIP(xi,yj)=vitj,\phi_{\rm CLIP}(x_i,y_j)=v_i^\top t_j,2.

The distinctive component is that decoder cross-attention determines which patches matter. During autoregressive decoding with mBART-50, cross-attention maps ϕCLIP(xi,yj)=vitj,\phi_{\rm CLIP}(x_i,y_j)=v_i^\top t_j,3 are averaged across the last ϕCLIP(xi,yj)=vitj,\phi_{\rm CLIP}(x_i,y_j)=v_i^\top t_j,4 layers and over heads,

ϕCLIP(xi,yj)=vitj,\phi_{\rm CLIP}(x_i,y_j)=v_i^\top t_j,5

then summed over time and passed through TopKSoftmax,

ϕCLIP(xi,yj)=vitj,\phi_{\rm CLIP}(x_i,y_j)=v_i^\top t_j,6

TopKSoftmax retains only the minimal set of indices whose cumulative pre-softmax mass is ϕCLIP(xi,yj)=vitj,\phi_{\rm CLIP}(x_i,y_j)=v_i^\top t_j,7, then renormalizes. Using these weights, the model forms pooled, text-conditioned descriptors

ϕCLIP(xi,yj)=vitj,\phi_{\rm CLIP}(x_i,y_j)=v_i^\top t_j,8

and the Patch-Alignment Loss is

ϕCLIP(xi,yj)=vitj,\phi_{\rm CLIP}(x_i,y_j)=v_i^\top t_j,9

PAL is embedded in a tri-loss objective,

LCLIP=12ki=1k[logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xi,yj)/τ)+logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xj,yi)/τ)].\mathcal{L}_{\rm CLIP} = -\frac{1}{2k}\sum_{i=1}^k \left[ \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_i,y_j)/\tau)} + \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_j,y_i)/\tau)} \right].0

Here CE trains the decoder on real captions, InfoNCE enforces global real–synthetic separation, and Sinkhorn-based OT encourages balanced fine-grained patch correspondence. The paper specifies default hyperparameters LCLIP=12ki=1k[logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xi,yj)/τ)+logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xj,yi)/τ)].\mathcal{L}_{\rm CLIP} = -\frac{1}{2k}\sum_{i=1}^k \left[ \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_i,y_j)/\tau)} + \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_j,y_i)/\tau)} \right].1, LCLIP=12ki=1k[logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xi,yj)/τ)+logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xj,yi)/τ)].\mathcal{L}_{\rm CLIP} = -\frac{1}{2k}\sum_{i=1}^k \left[ \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_i,y_j)/\tau)} + \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_j,y_i)/\tau)} \right].2, LCLIP=12ki=1k[logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xi,yj)/τ)+logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xj,yi)/τ)].\mathcal{L}_{\rm CLIP} = -\frac{1}{2k}\sum_{i=1}^k \left[ \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_i,y_j)/\tau)} + \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_j,y_i)/\tau)} \right].3, attention temperature LCLIP=12ki=1k[logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xi,yj)/τ)+logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xj,yi)/τ)].\mathcal{L}_{\rm CLIP} = -\frac{1}{2k}\sum_{i=1}^k \left[ \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_i,y_j)/\tau)} + \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_j,y_i)/\tau)} \right].4, top-mass LCLIP=12ki=1k[logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xi,yj)/τ)+logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xj,yi)/τ)].\mathcal{L}_{\rm CLIP} = -\frac{1}{2k}\sum_{i=1}^k \left[ \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_i,y_j)/\tau)} + \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_j,y_i)/\tau)} \right].5, last-LCLIP=12ki=1k[logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xi,yj)/τ)+logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xj,yi)/τ)].\mathcal{L}_{\rm CLIP} = -\frac{1}{2k}\sum_{i=1}^k \left[ \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_i,y_j)/\tau)} + \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_j,y_i)/\tau)} \right].6 layers, InfoNCE temperature LCLIP=12ki=1k[logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xi,yj)/τ)+logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xj,yi)/τ)].\mathcal{L}_{\rm CLIP} = -\frac{1}{2k}\sum_{i=1}^k \left[ \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_i,y_j)/\tau)} + \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_j,y_i)/\tau)} \right].7, OT regularizer LCLIP=12ki=1k[logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xi,yj)/τ)+logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xj,yi)/τ)].\mathcal{L}_{\rm CLIP} = -\frac{1}{2k}\sum_{i=1}^k \left[ \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_i,y_j)/\tau)} + \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_j,y_i)/\tau)} \right].8, and LCLIP=12ki=1k[logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xi,yj)/τ)+logexp(ϕ(xi,yi)/τ)j=1kexp(ϕ(xj,yi)/τ)].\mathcal{L}_{\rm CLIP} = -\frac{1}{2k}\sum_{i=1}^k \left[ \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_i,y_j)/\tau)} + \log\frac{\exp(\phi(x_i,y_i)/\tau)}{\sum_{j=1}^k\exp(\phi(x_j,y_i)/\tau)} \right].9 Sinkhorn iterations. Gradients flow only through the linear+LN projection and mBART-50; MaxViT remains frozen.

The empirical ablations isolate PAL’s role. On Flickr30k-1k, CE (Real only) yields BLEU-4 f^v:RC×H×WRT×Dv,\hat f_v:\mathbb{R}^{C\times H\times W}\to\mathbb{R}^{T\times D_v},0, METEOR f^v:RC×H×WRT×Dv,\hat f_v:\mathbb{R}^{C\times H\times W}\to\mathbb{R}^{T\times D_v},1, and BERT-F1 f^v:RC×H×WRT×Dv,\hat f_v:\mathbb{R}^{C\times H\times W}\to\mathbb{R}^{T\times D_v},2; CE + InfoNCE + OT yields f^v:RC×H×WRT×Dv,\hat f_v:\mathbb{R}^{C\times H\times W}\to\mathbb{R}^{T\times D_v},3, f^v:RC×H×WRT×Dv,\hat f_v:\mathbb{R}^{C\times H\times W}\to\mathbb{R}^{T\times D_v},4, and f^v:RC×H×WRT×Dv,\hat f_v:\mathbb{R}^{C\times H\times W}\to\mathbb{R}^{T\times D_v},5; PAL (only) yields f^v:RC×H×WRT×Dv,\hat f_v:\mathbb{R}^{C\times H\times W}\to\mathbb{R}^{T\times D_v},6, f^v:RC×H×WRT×Dv,\hat f_v:\mathbb{R}^{C\times H\times W}\to\mathbb{R}^{T\times D_v},7, and f^v:RC×H×WRT×Dv,\hat f_v:\mathbb{R}^{C\times H\times W}\to\mathbb{R}^{T\times D_v},8; and PAL + InfoNCE + OT reaches f^v:RC×H×WRT×Dv,\hat f_v:\mathbb{R}^{C\times H\times W}\to\mathbb{R}^{T\times D_v},9, f^v\hat f_v0, and f^v\hat f_v1. On MSCOCO-1k, the full pipeline reports BLEU-4 f^v\hat f_v2, METEOR f^v\hat f_v3, and BERTScore-F1 f^v\hat f_v4. Grounding analysis shows the real–synthetic centroid distance of attended-patch embeddings falling from f^v\hat f_v5 and MMD-RBF from f^v\hat f_v6, while background patches remain dispersed. This supports the paper’s claim that PAL is the core driver of text-conditioned grounding.

4. Vision–tactile PAL and local cross-modal alignment

In "Tac-DINO: Learning Vision-Tactile Features with Patch Alignment" (Li et al., 10 Jun 2026), PAL is a symmetric InfoNCE objective over paired local vision and tactile patches. The data unit is a contact-aligned pair: f^v\hat f_v7 is a local RGB crop around the contact pixel f^v\hat f_v8, and f^v\hat f_v9 is the corresponding tactile image recorded by the GelSight Mini. A ViT-Large from DINOv2 encodes each modality,

ftf_t0

with ftf_t1, producing embeddings ftf_t2 and ftf_t3. Cosine similarity is

ftf_t4

The loss is

ftf_t5

where

ftf_t6

and

ftf_t7

Typical implementation uses ftf_t8. This loss is combined with DINOv2-style self-distillation on global crops,

ftf_t9

with e^v:RDvRD.\hat e_v:\mathbb{R}^{D_v}\to\mathbb{R}^{D}.0. Reported optimization settings include batch size per GPU e^v:RDvRD.\hat e_v:\mathbb{R}^{D_v}\to\mathbb{R}^{D}.1 on e^v:RDvRD.\hat e_v:\mathbb{R}^{D_v}\to\mathbb{R}^{D}.2 GPUs for effective batch e^v:RDvRD.\hat e_v:\mathbb{R}^{D_v}\to\mathbb{R}^{D}.3, learning rate e^v:RDvRD.\hat e_v:\mathbb{R}^{D_v}\to\mathbb{R}^{D}.4 with e^v:RDvRD.\hat e_v:\mathbb{R}^{D_v}\to\mathbb{R}^{D}.5-epoch linear warmup and cosine decay over e^v:RDvRD.\hat e_v:\mathbb{R}^{D_v}\to\mathbb{R}^{D}.6 total epochs, weight decay e^v:RDvRD.\hat e_v:\mathbb{R}^{D_v}\to\mathbb{R}^{D}.7, gradient clipping e^v:RDvRD.\hat e_v:\mathbb{R}^{D_v}\to\mathbb{R}^{D}.8, and AdamW.

The formulation depends on the Touch3D dataset’s per-contact supervision. The dataset contains e^v:RDvRD.\hat e_v:\mathbb{R}^{D_v}\to\mathbb{R}^{D}.9 unique real-world objects across 1cos(r,r~)1-\cos(r,\tilde r)00 household/office categories, 1cos(r,r~)1-\cos(r,\tilde r)01 discrete tactile contacts, average 1cos(r,r~)1-\cos(r,\tilde r)02 contacts per object, high-resolution 1cos(r,r~)1-\cos(r,\tilde r)03D meshes with 1cos(r,r~)1-\cos(r,\tilde r)04 mm point resolution, RGB 1cos(r,r~)1-\cos(r,\tilde r)05 and depth of the global scene, multi-view renderings for contact-pixel annotation, and 1cos(r,r~)1-\cos(r,\tilde r)06 material labels, with each object having up to 1cos(r,r~)1-\cos(r,\tilde r)07 materials. The patch-sampling pipeline labels the contact location on a high-resolution scan, renders multi-view RGB to identify visible views, randomly samples contact indices during training, loads 1cos(r,r~)1-\cos(r,\tilde r)08, generates 1cos(r,r~)1-\cos(r,\tilde r)09, encodes 1cos(r,r~)1-\cos(r,\tilde r)10, and computes 1cos(r,r~)1-\cos(r,\tilde r)11 over the minibatch.

On the Vis-Tac Holographic Matching Benchmark, PAL yields substantial local-to-global retrieval gains. For tactile-side retrieval, Patch Tac gives 1cos(r,r~)1-\cos(r,\tilde r)12 top-1, Patch Tac + PAL gives 1cos(r,r~)1-\cos(r,\tilde r)13, Patch Tac + DSCMR gives 1cos(r,r~)1-\cos(r,\tilde r)14, and Patch Tac + DAR gives 1cos(r,r~)1-\cos(r,\tilde r)15. For vision-side retrieval, Patch Vis gives 1cos(r,r~)1-\cos(r,\tilde r)16, Patch Vis + PAL gives 1cos(r,r~)1-\cos(r,\tilde r)17, and Patch Vis + DAR gives 1cos(r,r~)1-\cos(r,\tilde r)18. Vision–tactile early fusion improves from 1cos(r,r~)1-\cos(r,\tilde r)19 without PAL to 1cos(r,r~)1-\cos(r,\tilde r)20 with PAL. The paper further states that, on the held-out OBJECTFOLDER REAL test set, similar relative gains are observed at 1cos(r,r~)1-\cos(r,\tilde r)21–1cos(r,r~)1-\cos(r,\tilde r)22 percentage points over baselines, PAL improves material mAP by 1cos(r,r~)1-\cos(r,\tilde r)23 percentage points, and reduces Chamfer Distance marginally in geometry matching. The ablations also report that 1cos(r,r~)1-\cos(r,\tilde r)24 is best over a sweep of 1cos(r,r~)1-\cos(r,\tilde r)25–1cos(r,r~)1-\cos(r,\tilde r)26, that 1cos(r,r~)1-\cos(r,\tilde r)27 is a plateau point with slight overfitting above 1cos(r,r~)1-\cos(r,\tilde r)28, and that patch-level alignment yields 1cos(r,r~)1-\cos(r,\tilde r)29–1cos(r,r~)1-\cos(r,\tilde r)30 percentage points over entire-image contrastive alignment.

5. PAL in rigid alignment and patch-based geometry

In "Non-degenerate Rigid Alignment in a Patch Framework" (Kohli et al., 2023), PAL is not a neural representation loss but a geometric objective over overlapping local views of a point cloud. Let 1cos(r,r~)1-\cos(r,\tilde r)31 be the patch-overlap graph with 1cos(r,r~)1-\cos(r,\tilde r)32. For each overlap 1cos(r,r~)1-\cos(r,\tilde r)33, let 1cos(r,r~)1-\cos(r,\tilde r)34 and 1cos(r,r~)1-\cos(r,\tilde r)35 be the centered local coordinates of the 1cos(r,r~)1-\cos(r,\tilde r)36 shared points in patches 1cos(r,r~)1-\cos(r,\tilde r)37 and 1cos(r,r~)1-\cos(r,\tilde r)38, and let 1cos(r,r~)1-\cos(r,\tilde r)39 be the orthonormal map assigned to patch 1cos(r,r~)1-\cos(r,\tilde r)40. The Patch-Alignment Loss is

1cos(r,r~)1-\cos(r,\tilde r)41

This is the canonical 1cos(r,r~)1-\cos(r,\tilde r)42-norm-based alignment error.

The paper rewrites the loss as a quadratic form. Stacking the rotations into

1cos(r,r~)1-\cos(r,\tilde r)43

and defining a sparse patch-incidence block matrix 1cos(r,r~)1-\cos(r,\tilde r)44, one obtains

1cos(r,r~)1-\cos(r,\tilde r)45

The alignment matrix 1cos(r,r~)1-\cos(r,\tilde r)46 has blocks

1cos(r,r~)1-\cos(r,\tilde r)47

and 1cos(r,r~)1-\cos(r,\tilde r)48.

The central theoretical notion is non-degeneracy of a perfect alignment. Because 1cos(r,r~)1-\cos(r,\tilde r)49 for any global 1cos(r,r~)1-\cos(r,\tilde r)50, a zero-loss solution always has a 1cos(r,r~)1-\cos(r,\tilde r)51-dimensional global-rotation symmetry. A perfect alignment is non-degenerate when the Hessian restricted to the tangent of 1cos(r,r~)1-\cos(r,\tilde r)52 is positive definite on the complement of those symmetry directions. Equivalently, for 1cos(r,r~)1-\cos(r,\tilde r)53 evaluated at 1cos(r,r~)1-\cos(r,\tilde r)54, the kernel must be exactly

1cos(r,r~)1-\cos(r,\tilde r)55

and all remaining eigenvalues must be strictly positive.

Because 1cos(r,r~)1-\cos(r,\tilde r)56 is explicit, the paper gives a polynomial-time non-degeneracy test based on the eigenvalues of 1cos(r,r~)1-\cos(r,\tilde r)57. If 1cos(r,r~)1-\cos(r,\tilde r)58 and

1cos(r,r~)1-\cos(r,\tilde r)59

then the alignment is declared non-degenerate when 1cos(r,r~)1-\cos(r,\tilde r)60 above tolerance and the first 1cos(r,r~)1-\cos(r,\tilde r)61 eigenvalues are zero within tolerance. The reported dense eigendecomposition cost is 1cos(r,r~)1-\cos(r,\tilde r)62, with sparse methods potentially faster.

The optimization analysis is formulated on the manifold

1cos(r,r~)1-\cos(r,\tilde r)63

For

1cos(r,r~)1-\cos(r,\tilde r)64

the Euclidean gradient is 1cos(r,r~)1-\cos(r,\tilde r)65, and the Riemannian gradient is

1cos(r,r~)1-\cos(r,\tilde r)66

with blockwise tangent projection and a blockwise QR-based retraction. If 1cos(r,r~)1-\cos(r,\tilde r)67 is a non-degenerate critical point, then in a small neighborhood of 1cos(r,r~)1-\cos(r,\tilde r)68 the function satisfies a Riemannian strong-convexity condition. With 1cos(r,r~)1-\cos(r,\tilde r)69 the smallest nonzero eigenvalue of 1cos(r,r~)1-\cos(r,\tilde r)70 and 1cos(r,r~)1-\cos(r,\tilde r)71 a Lipschitz constant for the gradient, any fixed stepsize 1cos(r,r~)1-\cos(r,\tilde r)72 yields local linear convergence,

1cos(r,r~)1-\cos(r,\tilde r)73

The paper also gives a noise-stability statement. If the perturbation of the alignment matrix obeys

1cos(r,r~)1-\cos(r,\tilde r)74

then the noisy problem remains non-degenerate, the global minimizer 1cos(r,r~)1-\cos(r,\tilde r)75 obeys

1cos(r,r~)1-\cos(r,\tilde r)76

for an absolute constant 1cos(r,r~)1-\cos(r,\tilde r)77, and Riemannian gradient descent initialized near 1cos(r,r~)1-\cos(r,\tilde r)78 converges linearly to 1cos(r,r~)1-\cos(r,\tilde r)79. In the noiseless case, the paper further shows that non-degenerate perfect alignment is equivalent to infinitesimal rigidity of the patch-overlap graph for generic point positions, with rank

1cos(r,r~)1-\cos(r,\tilde r)80

and that global rigidity yields uniqueness up to a single global orthogonal map.

6. Comparative interpretation

Across these formulations, PAL always elevates local structure to the level of the training objective, but the mechanism by which locality is specified differs. In PACL, the relevant patches are induced by similarities between patch embeddings and a text CLS token (Mukhoti et al., 2022). In Bengali captioning, locality is defined by decoder cross-attention, averaged across layers and heads and pruned by TopKSoftmax (Anonto et al., 22 Sep 2025). In vision–tactile learning, locality is provided by per-contact annotations that bind a tactile reading to a specific vision crop (Li et al., 10 Jun 2026). In rigid alignment, locality is encoded by the overlap graph and shared coordinates between patches (Kohli et al., 2023).

This suggests three broad PAL archetypes. The first is text-conditioned pooling, in which a patch-weighted descriptor is built before computing similarity, as in PACL and Bengali captioning. The second is pairwise local contrastive matching, in which paired patches directly enter a symmetric InfoNCE loss, as in the vision–tactile formulation. The third is quadratic consistency over overlaps, in which patch alignment is a rigid-registration objective rather than a representation-learning loss.

The main significance of this family of objectives is methodological rather than notational. Patch alignment repeatedly appears when global embeddings are too coarse for the target task: CLIP CLS alignment is insufficient for dense semantic segmentation; caption-level fluency does not ensure that a Bengali decoder attends to the correct objects; whole-image vision–tactile matching ignores the locality of contact; and rigid patch registration requires overlap-wise consistency rather than only global fit. A plausible implication is that PAL-like objectives become most useful when the supervision signal is semantically or physically local even if the downstream prediction is global.

A second implication is that PAL does not prescribe a single supervision regime. One formulation achieves zero-shot segmentation without segmentation labels, another exploits real–synthetic pairs plus caption supervision, another uses contact-level pairing from a dedicated dataset, and another is entirely geometric. Accordingly, “PAL” is best treated as a patch-level alignment paradigm whose exact mathematical form depends on the structure of correspondence available in the problem.

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 Patch-Alignment Loss (PAL).