Search arXiv⌕ Search

arXiv subjects

Bao Trung Nguyen

Publications and source records attributed to Bao Trung Nguyen.

2 recordsLinked to original sources

Padding Picks a Corner: Understanding and Mitigating the Corner Sink in Hierarchical Vision Transformers

High-norm outliers and attention sinks in plain ViTs have been well studied and motivated register-based approaches. Hierarchical ViTs (HViTs) improve efficiency through progressive spatial reduction and convolutional operators, but how these architectural choices shape sink behavior remains less understood. In this paper, we uncover a distinct phenomenon, the Corner Sink: HViTs with padded downsampling consistently develop a high-norm token at the top-left corner across inputs and architectures. To understand this behavior, we conduct a controlled study of PVTv2 and trace its lifecycle from corner-feature formation to attention-sink selection. We find that asymmetric padding exposure induces padding-sensitive convolutional responses that progressively form and amplify a shared corner component. A learned query bias then selects this component as a persistent attention sink. We further show that corner-feature formation and sink selection are distinct but connected. Based on this insight, we introduce two complementary training-free interventions. Dual-Padding Register (DPR) separates the sink from spatial features, while Informative Value Readout (IVR) makes its readout image-dependent. DPR suppresses corner dominance across diverse HViTs and yields cleaner spatial representations. Combined with IVR, it improves frozen-backbone segmentation and depth estimation while largely preserving classification accuracy.

cs.CV↗

Can Large Language Models Learn Independent Causal Mechanisms?

Despite impressive performance on language modelling and complex reasoning tasks, Large Language Models (LLMs) fall short on the same tasks in uncommon settings or with distribution shifts, exhibiting a lack of generalisation ability. By contrast, systems such as causal models, that learn abstract variables and causal relationships, can demonstrate increased robustness against changes in the distribution. One reason for this success is the existence and use of Independent Causal Mechanisms (ICMs) representing high-level concepts that only sparsely interact. In this work, we apply two concepts from causality to learn ICMs within LLMs. We develop a new LLM architecture composed of multiple sparsely interacting language modelling modules. We show that such causal constraints can improve out-of-distribution performance on abstract and causal reasoning tasks. We also investigate the level of independence and domain specialisation and show that LLMs rely on pre-trained partially domain-invariant mechanisms resilient to fine-tuning.

cs.CL↗