Align Where the Words Look: Cross-Attention-Guided Patch Alignment with Contrastive and Transport Regularization for Bengali Captioning

arXiv:2509.18369 · cs.CV, cs.AI · Submitted 2025-09-22 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: Today's paper: "Align Where the Words Look".

Jane: The gist The core novelty is a tri-loss objective: Patch-Alignment Loss (PAL) aligns real and synthetic patch descriptors using decoder cross-attention, InfoNCE enforces global real–synthetic separation,

Tom: First, who's behind it and why it matters.

Paper summary: Tom: So, to recap, this paper proposes this whole framework called "Align Where the Words Look: Cross-Attention-Guided Patch Alignment with Contrastive and Transport Regularization for Bengali Captioning". It’s addressing how vision language models often produce fluent text about the wrong objects because of scarce paired data or English-centric pretraining.

Jane: They tackle that by building this specific pipeline trained on LaBSE verified English to Bengali pairs and one hundred ten thousand synthetic images created using bilingual prompts like "A photo of: EN <ref:2509.18369#pg1,pipeline trained on LaBSE verified>. In Bengali: BN". The whole point is to create a way to train these models efficiently without needing massive amounts of labeled data.

Lu: Their main contribution is this tri-loss framework: Patch-Alignment Loss, InfoNCE for global separation, and Sinkhorn based Optimal Transport for fine-grained patch correspondence. They say the PAL aligns real and synthetic patch descriptors using decoder cross-attention, while InfoNCE enforces global real–synthetic separation.

Meng: And the Sinkhorn OT part is there to ensure balanced fine-grained patch matching under that same PAL attention, which helps reduce those spurious matches they mentioned earlier. It’s a lot of regularization working together to improve grounding.

Lalam: I understand that the PAL reuses decoder cross-attention to form text conditioned weights over patches and aligns pooled real and synthetic descriptors with a cosine loss, and then InfoNCE enhances global discriminability across the whole feature space.

Tom: And they show that this combined approach substantially improves grounding on benchmarks like MSCOCO-1k and Flickr30k-1k, yielding consistent gains in BLEU, METEOR, and BERTScore under limited Bengali supervision <ref:2509.18369#pg2,yielding consistent gains in BLEU, METEOR, and BERTScore under limited Bengali supervision>. They also report narrowing the real–synthetic centroid gap by forty-one percent.

Jane: That gap reduction is significant because it shows that their method actually teaches the model where to align things based on what the decoder attends to. It’s not just guessing anymore.

Lu: The paper also constructs this corpus and synthesis pipeline by verifying EN–BN caption pairs and generating large-scale bilingual-prompted synthetic images to form real–synthetic training triplets, which is how they get their data setup right.

Meng: They design a lightweight training stack where the MaxViT vision backbone stays frozen, and only the mBART-fifty decoder is trained, connected by a linear plus LayerNorm bridge for efficiency <ref:2509.18369#pg1>. That’s key for deployment because it keeps trainable parameters low and allows easy transfer to other low-resource languages.

Lalam: They show that freezing the vision tower preserves that stable image structure, which is ideal for PAL because those dense yet semantically structured patch features benefit InfoNCE and OT through their wide variation and clean spatial layout.

Conclusion: Tom: So, looking at "Align Where the Words Look: Cross-Attention-Guided Patch Alignment with Contrastive and Transport Regularization for Bengali Captioning", the authors are focusing on making vision language models work better in low-resource settings like Bengali.

Jane: They prove that by combining PatchAlignment Loss, InfoNCE, and Sinkhorn OT, they can improve grounding—meaning the model understands which visual parts correspond to which words—even with limited supervision. It shows that targeted alignment plus lightweight regularization yields accurate and generalizable captions without needing huge datasets.

Lu: The implication is that you don't need massive amounts of perfectly paired data to get decent results for a specific language by using techniques like synthetic data generation combined with strong structural alignment objectives.

Meng: For someone shipping models, the efficiency aspect matters because they keep the vision tower frozen and only train the decoder, which makes it much more deployable and less resource-intensive than training a full end-to-end system from scratch.

Lalam: I think what this means for real applications is that we can build better systems for languages like Bengali where finding those specific paired examples is nearly impossible. It moves away from just hoping the model learns the right semantics toward actively guiding it to look at the right visual areas.

Riad Ahmed Anonto Sardar, Md. Saffat Zabin, M. Saifur Rahman

Bangladesh University of Engineering and Technology

cs.CV, cs.AI

Submitted: 2025-09-22

Updated: 2026-10-14

Comments: Accepted at the 23rd Pacific Rim International Conference on Artificial Intelligence (PRICAI 2026)

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 81/100

The gist: The gist The core novelty is a tri-loss objective: Patch-Alignment Loss (PAL) aligns real and synthetic patch descriptors using decoder cross-attention, InfoNCE enforces global real–synthetic

Key concepts

Patch-Alignment Loss (PAL)
This loss function uses the decoder's cross-attention mechanism to align descriptors from real images with those from synthetic images. It forces the model to match visual patches based on what the text decoder is currently focusing on, ensuring that real and fake visual features correspond correctly in a text-conditioned manner.
InfoNCE Loss
This contrastive loss enforces global separation between features extracted from real images and those from synthetic images. It ensures that the model learns to distinguish between genuine and generated visual representations across the entire feature space, leading to better overall data discrimination.
Sinkhorn-based Optimal Transport (OT)
Optimal Transport is used here to ensure balanced fine-grained correspondence between patches. The Sinkhorn algorithm applies this concept to match real and synthetic patches, ensuring that the matching process is balanced and consistent across different patch levels, which refines the alignment achieved by PAL.

Terminology

Summary

The gist The core novelty is a tri-loss objective: Patch-Alignment Loss (PAL) aligns real and synthetic patch descriptors using decoder cross-attention, InfoNCE enforces global real–synthetic separation, and Sinkhornbased OT ensures balanced fine-grained patch correspondence; this synergy improves grounding, reduces spurious matches, and drives strong gains on Flickr30k-1k (BLEU-4 12.29, METEOR 27.98, BERTScoreF1 71.20) and MSCOCO-1k (BLEU-4 12.00, METEOR 28.14, BERTScore-F1 75.40), outperforming strong CE baselines and narrowing the real–synthetic centroid gap by 41%

Architecture Overview

The pipeline employs a compute-aware Bengali captioning pipeline where a frozen MaxViT [29] backbone supplies stable visual patches, a Bengalinative mBART-50 [19] decoder generates text, and a lightweight bridge links the modalities The frozen MaxViT yields stable visual patches, a Bengalinative mBART-50 decodes, and a lightweight bridge links the modalities The architecture is designed for efficiency by freezing the vision tower and training only the decoder, enabling easy transfer to other low-resource languages

Data Construction and Preprocessing

The training corpus is constructed by translating and verifying EN–BN caption pairs using LaBSE [6] and rendering paired synthetic images via bilingual prompts (“A photo of: EN. In Bengali: BN”) using Kandinsky 2.1 [27] This process involves a three-step pipeline: Translation → Verification → Synthesis The semantic verification step computes crosslingual sentence embeddings with LaBSE and measures cosine similarity si = cos φ(y en i), φ(y bn i) A pair is accepted iff si ≥ τ with τ = 0.55; otherwise it is discarded For each verified pair (y en i, y bn i) we synthesize an image x˜i using Kandinsky-2.1 under a bilingual prompt: A photo of: y en i. In Bengali: y bn i Because x˜ is conditioned on the same y, the label remains consistent while styles/layouts vary, regularizing caption grounding

The Tri-Loss Objective

The training optimizes a joint objective that couples caption learning on real images with caption-conditioned alignment between real–synthetic pairs: L = LCE(x, y) + λPAL LPAL(x, x, y ˜) + αLInfoNCE + β LOT The three components work synergistically to improve grounding under scarce Bengali supervision

  1. Patch-Alignment Loss (PAL) aligns real and synthetic patch descriptors using decoder cross-attention, where PAL reuses decoder crossattention to form text-conditioned weights over patches and align pooled real and synthetic descriptors with a cosine loss

  2. Information Noise-Contrastive Estimation (InfoNCE) enforces global discrimination between real and synthetic pooled features

  3. Sinkhorn-based Optimal Transport (OT) ensures balanced fine-grained patch correspondence by enforcing balanced patch-wise matching under the same PAL attention

Key Training Mechanics

The training protocol involves computing LCE(x, y) on real images, and when a matched synthetic x˜ is present, applying LPAL, LInfoNCE, and LOT using the same caption y Gradients update only the bridge and decoder; the vision encoder remains frozen The decoder consumes projected visual tokens via cross-attention and autoregressively predicts Bengali tokens under teacher forcing The cross-attention maps from the last few decoder layers provide token-level saliency over patches, which are reused to form weights for the PatchAlignment Loss

Results and Insights

The combined PAL+InfoNCE+OT objective outperforms a CE-only baseline on MSCOCO-1k and Flickr30k-1k PAL produces the largest jump in performance compared to CE+InfoNCE+OT, with BLEU-4 rising from 7.52 to 10.19 and METEOR from 26.22 to 27.29 PAL anchors alignment to caption-relevant regions, while InfoNCE and OT serve as light regularizers that refine it The embedding view shows that real and synthetic patch descriptors move closer in the regions the decoder actually attends to, with centroid distance shrinking from 0.361 to 0.213 This indicates that PAL teaches the model where to align

Limitations

The study is compute-aware (single Kaggle P100) and generated 110k synthetic images but trained on 80k, and kept the vision tower frozen Limitations include data scale/diversity, model capacity, attention as lens constraints, and MT reliance & synthetic bias The authors note that PAL relies on decoder cross-attention; when attention is diffuse (counting/relations), alignment may under- or mis-constrain patches Semantic reasoning could be enhanced by adding lightweight LLM critics for reranking or enforcing caption→QA→caption consistency The framework can serve as a foundation for several future directions, such as incorporating region cues (e.g., SAM masks) or word–patch optimal transport

Conclusion

This synergy improves grounding and boosts BLEU-n, METEOR, and BERTScore on MSCOCO1k and Flickr30k-1k, showing that targeted alignment plus lightweight regularization yields accurate and generalizable captions while remaining compute-light and transferable to other low-resource languages This framework can serve as a foundation for several future directions, such as incorporating region cues (e.g., SAM masks) or word–patch optimal transport The synergy improves grounding and boosts BLEU-n, METEOR, and BERTScore on MSCOCO1k and Flickr30k-1k, showing that targeted alignment plus lightweight regularization yields accurate and generalizable captions while remaining compute-light and transferable to other low-resource languages This framework can serve as a foundation for several future directions, such as incorporating region cues (e.g., SAM masks) or word–patch optimal transport This synergy improves grounding and boosts BLEU-n, METEOR, and BERTScore on MSCOCO1k and Flickr30k-1k, showing that targeted alignment plus lightweight regularization yields accurate and generalizable captions while remaining compute-light and transferable to other low-resource languages This framework can serve as a foundation for several future directions, such as incorporating region cues (e.g., SAM masks) or word–patch optimal transport The synergy improves grounding and boosts BLEU-n, METEOR, and BERTScore on MSCOCO1k and Flickr30k-1k, showing that targeted alignment plus lightweight regularization yields accurate and generalizable captions while remaining compute-light and transferable to other low-resource languages This framework can serve as a foundation for several future directions, such as incorporating region cues (e.g., SAM masks) or word–patch optimal transport The synergy improves grounding and boosts BLEU-n, METEOR, and BERTScore on MSCOCO1k and Flickr30k-1k, showing that targeted alignment plus lightweight regularization yields accurate and generalizable captions while remaining compute-light and transferable to other low-resource languages <ref:2509.

Improvements for AI systems

  1. The tri-loss objective (PAL+InfoNCE+OT) creates a mutually reinforcing cycle that neither achieves alone, which enables cross-modal grounding directly on Bengali tokens. This allows the improved system to generate captions that are both fluent (via CE loss), contextually accurate for the image (via PAL), and robust against background noise or spurious matches (via InfoNCE and OT).

  2. The use of a frozen MaxViT backbone combined with only fine-tuning the decoder enables efficient training on a single GPU and easy transfer to other low-resource languages. This allows for rapid adaptation of the Bengali captioner to new, unseen low-resource languages with minimal task-specific fine-tuning, preserving strong ImageNetrained prior.

  3. The pipeline constructs a Bengali captioning corpus and synthesis pipeline by verifying EN–BN caption pairs and generating large-scale bilingual-prompted synthetic images to form real–synthetic training triplets, which addresses the scarcity of paired data. This allows the system to effectively learn from abundant, albeit synthetically generated, data without requiring scarce real Bengali supervision for every caption.

  4. Patch-Alignment Loss (PAL) reuses decoder crossattention to form text-conditioned weights over patches and align pooled real and synthetic descriptors, which steers learning to caption-relevant regions. This means the system focuses its alignment efforts precisely where the Bengali text indicates important visual details, improving grounding compared to methods that use global alignment.

  5. Entropic Optimal Transport (OT) enforces balanced patch-wise matching under the same PAL attention and pushes alignment down to patch-to-patch transport. This capability allows the system to capture multi-instance or small objects that a single pooled vector may blur, leading to finer, more precise localization of caption elements.

  6. The framework provides consistent gains in BLEU, METEOR, and BERTScore under limited Bengali supervision on MSCOCO-1k and Flickr30k-1k. This demonstrates the improved system's ability to achieve stronger caption faithfulness even when supervision is scarce, making it highly reliable for real-world low-resource applications.

Sources

Related papers