Papers › Learning to Compose Dynamic Tree Structures for Visual Contexts

Learning to Compose Dynamic Tree Structures for Visual Contexts

5 Dec 2018CVPR 2019 6arXiv:1812.01880archive 2025-07-28

Kaihua Tang, Hanwang Zhang, Baoyuan Wu, Wenhan Luo, Wei Liu

We propose to compose dynamic tree structures that place the objects in an image into a visual context, helping visual reasoning tasks such as scene graph generation and visual Q&A. Our visual context tree model, dubbed VCTree, has two key advantages over existing structured object representations including chains and fully-connected graphs: 1) The efficient and expressive binary tree encodes the inherent parallel/hierarchical relationships among objects, e.g., "clothes" and "pants" are usually co-occur and belong to "person"; 2) the dynamic structure varies from image to image and task to task, allowing more content-/task-specific message passing among objects. To construct a VCTree, we design a score function that calculates the task-dependent validity between each object pair, and the tree is the binary version of the maximum spanning tree from the score matrix. Then, visual contexts are encoded by bidirectional TreeLSTM and decoded by task-specific models. We develop a hybrid learning procedure which integrates end-task supervised learning and the tree structure reinforcement learning, where the former's evaluation result serves as a self-critic for the latter's structure exploration. Experimental results on two benchmarks, which require reasoning over contexts: Visual Genome for scene graph generation and VQA2.0 for visual Q&A, show that VCTree outperforms state-of-the-art results while discovering interpretable visual context structures.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1812.01880")

Code

Syntology Ran 4 of 14 code samples harvested from 2 repositories linked to this paper; 10 have no recorded run. Of those that ran: 1 ran · violated contract; 1 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: community (archive-listed): 14 samples from 2 repositories, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

KaihuaTang/Scene-Graph-Benchmark.pytorch mentioned on GitHubpytorchMIT report
KaihuaTang/VCTree-Scene-Graph-Generation mentioned on GitHubpytorchMIT report
Karim-53/SGG mentioned on GitHubpytorchNOASSERTION report
ihaeyong/unbiased-sgg mentioned on GitHubpytorch report
zacharie12/zacharie mentioned on GitHubpytorchNOASSERTION report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 4 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
1ran · fixture could not drive it
2ran
10unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

apply_attention KaihuaTang/VCTree-Visual-Question-Answering/model.py community (archive-listed) ran · fixture could not drive it fingerprinted MIT (permissive) · fb40006c9cd123ac · report
get_ranking KaihuaTang/VCTree-Scene-Graph-Generation/lib/pytorch_misc.py community (archive-listed) ran MIT (permissive) · a1e587129dd2dfaf · report
pairwise KaihuaTang/VCTree-Scene-Graph-Generation/lib/pytorch_misc.py community (archive-listed) ran MIT (permissive) · fef49730c9e9a2b8 · report
tile_2d_over_nd KaihuaTang/VCTree-Visual-Question-Answering/model.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · b3299f7858d7d2f2 · report
arTree_to_biTree KaihuaTang/VCTree-Scene-Graph-Generation/lib/tree_lstm/graph_to_tree.py community (archive-listed) unverified MIT (permissive) · bacd2c4e4708f3a1 · report
arbitraryForest_to_biForest KaihuaTang/VCTree-Scene-Graph-Generation/lib/tree_lstm/graph_to_tree.py community (archive-listed) unverified MIT (permissive) · cd49722cb881389f · report
filter_dets KaihuaTang/VCTree-Scene-Graph-Generation/lib/surgery.py community (archive-listed) unverified MIT (permissive) · 23725d7c2832de1b · report
gather_res KaihuaTang/VCTree-Scene-Graph-Generation/lib/object_detector.py community (archive-listed) unverified MIT (permissive) · 013f03d1624b019d · report
load_word_vectors KaihuaTang/VCTree-Scene-Graph-Generation/lib/word_vectors.py community (archive-listed) unverified MIT (permissive) · da7576453008a270 · report
optimistic_restore KaihuaTang/VCTree-Scene-Graph-Generation/lib/pytorch_misc.py community (archive-listed) unverified MIT (permissive) · 6d0daf87a6ec7e39 · report
path KaihuaTang/VCTree-Scene-Graph-Generation/config.py community (archive-listed) unverified MIT (permissive) · 5d64438de6614360 · report
reporthook KaihuaTang/VCTree-Scene-Graph-Generation/lib/word_vectors.py community (archive-listed) unverified MIT (permissive) · b0ccc0da43f7ec20 · report
stanford_path KaihuaTang/VCTree-Scene-Graph-Generation/config.py community (archive-listed) unverified MIT (permissive) · 081b0b43ff7d9810 · report
vgg_fc KaihuaTang/VCTree-Scene-Graph-Generation/lib/resnet.py community (archive-listed) unverified MIT (permissive) · 16d7f949c9b0c390 · report

Tasks

Graph GenerationPanoptic Scene Graph GenerationReinforcement LearningScene Graph GenerationVisual Question Answering (VQA)Visual Reasoning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Panoptic Scene Graph Generation PSG Dataset VCTree R@20 20.6 #7 of 9 Archive leaderboard report
Panoptic Scene Graph Generation PSG Dataset VCTree mR@20 9.70 #7 of 9 Archive leaderboard report
Scene Graph Generation Visual Genome VCTree Recall@50 27.9 #7 of 19 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections