Visual Dependency Transformers: Dependency Tree Emerges from Reversed Attention

Mingyu Ding, Yikang Shen, Lijie Fan, Zhenfang Chen, Z. Chen +3 more
2/14/2026

No official code found. Best implementation: dingmyu/DependencyViT (32 stars, MIT, last commit 2023-03-28).

Abstract

Humans possess a versatile mechanism for extracting structured representations of our visual world. When looking at an image, we can decompose the scene into entities and their parts as well as obtain the dependencies between them. To mimic such capability, we propose Visual Dependency Transformers (DependencyViT) 11https://github.com/dingmyu/DependencyViT that can induce visual dependencies without any labels. We achieve that with a novel neural operator called reversed attention that can naturally capture long-range visual dependencies between image patches. Specifically, we formulate it as a dependency graph where a child token in reversed attention is trained to attend to its parent tokens and send information following a normalized probability distribution rather than gathering information in conventional self-attention. With such a design, hierarchies naturally emerge from reversed attention layers, and a dependency tree is progressively induced from leaf nodes to the root node unsupervisedly. DependencyViT offers several appealing benefits. (i) Entities and their parts in an image are represented by different subtrees, enabling part partitioning from dependencies; (ii) Dynamic visual pooling is made possible. The leaf nodes which rarely send messages can be pruned without hindering the model performance, based on which we propose the lightweight DependencyViT-Lite to reduce the computational and memory footprints; (iii) DependencyViT works well on both self- and weakly-supervised pretraining paradigms on ImageNet, and demonstrates its effectiveness on 8 datasets and 5 tasks, such as unsupervised part and saliency segmentation, recognition, and detection.

View on arXivView PDF

Code Implementations(1)

MIT

Visual Dependency Transformers: Dependency Tree Emerges from Reversed Attention (CVPR 2023)

321Mar 28, 20233 years agoMIT

Similar Papers

Cite this paper

@article{ding2026visual,
  title  = {Visual Dependency Transformers: Dependency Tree Emerges from Reversed Attention},
  author = {Mingyu Ding and Yikang Shen and Lijie Fan and Zhenfang Chen and Z. Chen and Ping Luo and J. Tenenbaum and Chuang Gan},
  year   = {2026},
  eprint = {2304.03282},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2304.03282},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.03282.svg)](https://codeofpaper.com/paper/2304.03282)

Discussion