SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.04016 · ICCV · 2023

Hierarchical Visual Primitive Experts for Compositional Zero-Shot Learning

Jiyoung Lee, Kwanghoon Sohn, Seongheon Park, Hanjae Kim

arXiv · PDF · Open in the Atlas

Code that ran

11 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 10 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2308.04016.json · badge: /api/ran/2308.04016.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
hanjaekim98/cot canonical (classifier label)
classifier basis: census
11 ran · 1 no recorded run
FunctionStatusWhere it lives
as_tuple Ran
ran, honoured the contract we drafted
hanjaekim98/cot/models/vit_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from arkel23/PyTorch-Pretrained-ViT, is pointer only (licence: NONE) · get_code("91d26d98a8c2bcac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanjaekim98/cot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_mean_std Ran
ran; our contract draft was wrong, not the code
hanjaekim98/cot/utils/utils.py
pointer only (licence: NONE) · get_code("77dc755eec4b339c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanjaekim98/cot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cross_entropy_loss Ran
ran; our contract draft was wrong, not the code
hanjaekim98/cot/models/cot.py
pointer only (licence: NONE) · get_code("86116ff1c363bbaf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanjaekim98/cot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

drop_head_variant Ran
ran; our contract draft was wrong, not the code
hanjaekim98/cot/models/configs.py
pointer only (licence: NONE); the stored copy get_code serves, from arkel23/PyTorch-Pretrained-ViT, is pointer only (licence: NONE) · get_code("940661961d8b8781")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanjaekim98/cot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

imagenet_transform Ran
ran; our contract draft was wrong, not the code
hanjaekim98/cot/dataset.py
pointer only (licence: NONE) · get_code("808faf881ac6c7d4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanjaekim98/cot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

imagenet_transform_zappos Ran
ran; our contract draft was wrong, not the code
hanjaekim98/cot/dataset.py
pointer only (licence: NONE) · get_code("c6872fbfb83dc783")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanjaekim98/cot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_pretrained_weights Ran
ran; our contract draft was wrong, not the code
hanjaekim98/cot/models/vit_utils.py
pointer only (licence: NONE) · get_code("4cb49866c5980797")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanjaekim98/cot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

merge_last Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hanjaekim98/cot/models/vit_transformer.py
pointer only (licence: NONE) · get_code("d5e69fc7b0ee7c8c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanjaekim98/cot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

reshape_text_features_to_concat Ran
ran; our contract draft was wrong, not the code
hanjaekim98/cot/utils/utils.py
pointer only (licence: NONE) · get_code("68994a7ec705cdf0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanjaekim98/cot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

resize_positional_embedding_ Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hanjaekim98/cot/models/vit_utils.py
pointer only (licence: NONE) · get_code("6996b83764f078e7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanjaekim98/cot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

split_last Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hanjaekim98/cot/models/vit_transformer.py
pointer only (licence: NONE) · get_code("a4a5354a3138c8ef")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanjaekim98/cot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_word_embeddings Not yet run
unverified (harvested, no recorded run)
hanjaekim98/cot/models/word_embedding_utils.py
pointer only (licence: NONE) · get_code("020abdfee6c97495")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanjaekim98/cot when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 0 the same month, 5 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
merge_last 8 other papers
7 dated earlier, 1 later · 6 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1904.12848 (2019-04)
Unsupervised Data Augmentation for Consistency Training
and 5 more not named here
split_last 8 other papers
7 dated earlier, 1 later · 6 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1904.12848 (2019-04)
Unsupervised Data Augmentation for Consistency Training
and 5 more not named here
as_tuple 4 other papers
2 dated earlier, 2 later
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Yu_PhysFormer_Facial_Video-Based_Physiological_Measurement_With_Temporal_Difference_Transformer_CVPR_2022_paper (2022 (year only))
PhysFormer: Facial Video-based Physiological Measurement with Temporal Difference Transformer
2311.08236 (2023-11)
MeLo: Low-rank Adaptation is Better than Fine-tuning for Medical Image Diagnosis
and 1 more not named here
drop_head_variant 3 other papers
1 dated earlier, 2 later
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2311.08236 (2023-11)
MeLo: Low-rank Adaptation is Better than Fine-tuning for Medical Image Diagnosis
2601.15888 (2026-01)
Understanding the Transfer Limits of Vision Foundation Models
load_pretrained_weights 3 other papers
1 dated earlier, 2 later
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2311.08236 (2023-11)
MeLo: Low-rank Adaptation is Better than Fine-tuning for Medical Image Diagnosis
2601.15888 (2026-01)
Understanding the Transfer Limits of Vision Foundation Models
calculate_mean_std 1 other paper
1 dated earlier
2211.07394 (2022-11)
Composed Image Retrieval with Text Feedback via Multi-grained Uncertainty Regularization
reshape_text_features_to_concat 1 other paper
1 dated earlier
2211.07394 (2022-11)
Composed Image Retrieval with Text Feedback via Multi-grained Uncertainty Regularization
resize_positional_embedding_ 1 other paper
1 dated earlier
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Compositional zero-shot learning (CZSL) aims to recognize unseen compositions with prior knowledge of known primitives (attribute and object). Previous works for CZSL often suffer from grasping the contextuality between attribute and object, as well as the discriminability of visual features, and the long-tailed distribution of real-world compositional data. We propose a simple and scalable framework called Composition Transformer (CoT) to address these issues. CoT employs object and attribute experts in distinctive manners to generate representative embeddings, using the visual network hierarchically. The object expert extracts representative object embeddings from the final layer in a bottom-up manner, while the attribute expert makes attribute embeddings in a top-down manner with a proposed object-guided attention module that models contextuality explicitly. To remedy biased prediction caused by imbalanced data distribution, we develop a simple minority attribute augmentation (MAA) that synthesizes virtual samples by mixing two images and oversampling minority attribute classes. Our method achieves SoTA performance on several benchmarks, including MIT-States, C-GQA, and VAW-CZSL. We also demonstrate the effectiveness of CoT in improving visual discrimination and addressing the model bias from the imbalanced data distribution. The code is available at https://github.com/HanjaeKim98/ CoT.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2308.04016")
get_code_for_paper("2308.04016")
have("2308.04016")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2308.04016.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2308.04016.svg)](https://syntology.ai/paper/2308.04016)

Connect an agent — have() is free.