paper-with-me

Papers

Rethinking Causal Mask Attention for Vision-Language Inference

2025-05-24 · Xiaohuan Pei, Tao Huang, Yanxiang Ma, Chang Xu

Causal attention has become a foundational mechanism in autoregressive vision-language models (VLMs), unifying textual and visual inputs under a single generative framework. However, existing causal mask-based strategies are inherited from large language models (LLMs) where they are tailored for text-only decoding, and their adaptation to vision tokens is insufficiently addressed in the prefill stage. Strictly masking future positions for vision queries introduces overly rigid constraints, which hinder the model's ability to leverage future context that often contains essential semantic cues for accurate inference. In this work, we empirically investigate how different causal masking strategies affect vision-language inference and then propose a family of future-aware attentions tailored for this setting. We first empirically analyze the effect of previewing future tokens for vision queries and demonstrate that rigid masking undermines the model's capacity to capture useful contextual semantic representations. Based on these findings, we propose a lightweight attention family that aggregates future visual context into past representations via pooling, effectively preserving the autoregressive structure while enhancing cross-token dependencies. We evaluate a range of causal masks across diverse vision-language inference settings and show that selectively compressing future semantic context into past representations benefits the inference.

📄 PDF Abstract BibTeX arXiv:2505.18605

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

How Do Decoder-Only LLMs Perceive Users? Rethinking Attention Masking for User Representation Learning

2026-02-11 · Jiahao Yuan, Yike Xu, Jinyong Wen, Baokun Wang 외 arxiv

Decoder-only large language models are increasingly used as behavioral encoders for user representation learning, yet the impact of attention masking on the quality of user embeddings remains underexplored. In this work,…

Representation LearningContrastive Learning

TC-LLaVA: Rethinking the Transfer from Image to Video Understanding with Temporal Considerations

2024-09-05 · Mingze Gao, Jingyu Liu, Mingda Li, Jiangtao Xie 외

Multimodal Large Language Models (MLLMs) have significantly improved performance across various image-language applications. Recently, there has been a growing interest in adapting image pre-trained MLLMs for video-relat…

Causal InferencePositionVideo Understanding

Heptapod: Language Modeling on Visual Signals

2025-10-08 · Yongxin Zhu, Jiawei Chen, Yuanzhe Chen, Zhuo Chen 외 arxiv

We introduce Heptapod, an image autoregressive model that adheres to the foundational principles of language modeling. Heptapod employs \textbf{causal attention}, \textbf{eliminates reliance on CFG}, and \textbf{eschews …

Self-Supervised Learning

Adapting LLaMA Decoder to Vision Transformer

2024-04-10 · Jiahao Wang, Wenqi Shao, Mengzhao Chen, Chengyue Wu 외

This work examines whether decoder-only Transformers such as LLaMA, which were originally designed for large language models (LLMs), can be adapted to the computer vision field. We first "LLaMAfy" a standard ViT step-by-…

Computational EfficiencyDecoderQuantizationTransfer Learning

DecBERT: Enhancing the Language Understanding of BERT with Causal Attention Masks

2022-04-19 · Findings (NAACL) 2022 7 · Ziyang Luo, Yadong Xi, Jing Ma, Zhiwei Yang 외

Since 2017, the Transformer-based models play critical roles in various downstream Natural Language Processing tasks. However, a common limitation of the attention mechanism utilized in Transformer Encoder is that it can…

DecoderLanguage ModelingLanguage ModellingPosition