SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2109.15163 · NeurIPS · 2021

HSVA: Hierarchical Semantic-Visual Adaptation for Zero-Shot Learning

Yang Liu, Hao Li, Ling Shao, Shiming Chen, Guo-Sen Xie, Qinmu Peng, Baigui Sun, Xinge You

arXiv · PDF · Open in the Atlas

Code that ran

9 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 8 have no contract verdict; 0 failures of our instrument; 5 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/2109.15163.json · badge: /api/ran/2109.15163.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
shiming-chen/hsva community
Papers with Code archive
7 ran · 4 no recorded run
uqzhichen/haszsl community
Papers with Code archive
1 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
LINEAR_LOGSOFTMAX Ran
ran on a synthesized input
shiming-chen/hsva/HSVA.py
pointer only (licence: NONE) · get_code("cb5dbf1ce4a01a4e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shiming-chen/hsva 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.

LINEAR_SOFTMAX_ALE Ran
ran on a synthesized input · constructed an object; no result was computed
uqzhichen/haszsl/model.py
pointer only (licence: NONE) · get_code("dd1409ac78612175")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, uqzhichen/haszsl 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.

TrainDataset Ran
ran on a synthesized input
shiming-chen/hsva/HSVA.py
pointer only (licence: NONE) · get_code("195d6bb4ac124ee4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shiming-chen/hsva 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.

class_cls Ran
ran on a synthesized input
shiming-chen/hsva/HSVA.py
pointer only (licence: NONE) · get_code("ba9f5083f3083cef")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shiming-chen/hsva 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.

decoder_template Ran
ran on a synthesized input
shiming-chen/hsva/HSVA.py
pointer only (licence: NONE) · get_code("4176b327282b8d30")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shiming-chen/hsva 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.

decoder_z Ran
ran on a synthesized input
shiming-chen/hsva/HSVA.py
pointer only (licence: NONE) · get_code("39f94657fe4a4048")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shiming-chen/hsva 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.

domain_classifier Ran
ran on a synthesized input
shiming-chen/hsva/HSVA.py
pointer only (licence: NONE) · get_code("b5c9d2742191aa15")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shiming-chen/hsva 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.

domain_discriminator Ran
ran on a synthesized input
shiming-chen/hsva/HSVA.py
pointer only (licence: NONE) · get_code("eb58097408519676")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shiming-chen/hsva 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.

str2bool Ran
ran, violated the contract we drafted
this paper's copy was not recorded; identical code first harvested from eth-sri/eran
pointer only · get_code("f017532fc389cbfe")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

CLASSIFIER Not yet run
unverified (harvested, no recorded run)
shiming-chen/hsva/HSVA.py
pointer only (licence: NONE) · get_code("be16f2023cd3faf1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shiming-chen/hsva 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.

Model Not yet run
unverified (harvested, no recorded run)
shiming-chen/hsva/HSVA.py
pointer only (licence: NONE) · get_code("b919191e390d1bfb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shiming-chen/hsva 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.

encoder_template Not yet run
unverified (harvested, no recorded run)
shiming-chen/hsva/HSVA.py
pointer only (licence: NONE) · get_code("1f8bc1f38824777c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shiming-chen/hsva 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.

encoder_z Not yet run
unverified (harvested, no recorded run)
shiming-chen/hsva/HSVA.py
pointer only (licence: NONE) · get_code("1a413e60cf58efb8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shiming-chen/hsva 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.

resnet_proto_IoU Not yet run
unverified (harvested, no recorded run)
uqzhichen/haszsl/model.py
pointer only (licence: NONE) · get_code("f9219965b1e24724")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, uqzhichen/haszsl 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 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 13 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
str2bool 82 other papers
47 dated earlier, 2 the same month, 32 later, 1 same year, order not determinable
1510.03055 (2015-10)
A Diversity-Promoting Objective Function for Neural Conversation Models
1703.06490 (2017-03)
Generating Multi-label Discrete Patient Records using Generative Adversarial Networks
1710.10467 (2017-10)
Generalized End-to-End Loss for Speaker Verification
and 79 more not named here

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

Zero-shot learning (ZSL) tackles the unseen class recognition problem, transferring semantic knowledge from seen classes to unseen ones. Typically, to guarantee desirable knowledge transfer, a common (latent) space is adopted for associating the visual and semantic domains in ZSL. However, existing common space learning methods align the semantic and visual domains by merely mitigating distribution disagreement through one-step adaptation. This strategy is usually ineffective due to the heterogeneous nature of the feature representations in the two domains, which intrinsically contain both distribution and structure variations. To address this and advance ZSL, we propose a novel hierarchical semantic-visual adaptation (HSVA) framework. Specifically, HSVA aligns the semantic and visual domains by adopting a hierarchical two-step adaptation, i.e., structure adaptation and distribution adaptation. In the structure adaptation step, we take two task-specific encoders to encode the source data (visual domain) and the target data (semantic domain) into a structure-aligned common space. To this end, a supervised adversarial discrepancy (SAD) module is proposed to adversarially minimize the discrepancy between the predictions of two task-specific classifiers, thus making the visual and semantic feature manifolds more closely aligned. In the distribution adaptation step, we directly minimize the Wasserstein distance between the latent multivariate Gaussian distributions to align the visual and semantic distributions using a common encoder. Finally, the structure and distribution adaptation are derived in a unified framework under two partially-aligned variational autoencoders. Extensive experiments on four benchmark datasets demonstrate that HSVA achieves superior performance on both conventional and generalized ZSL. The code is available at https://github.com/shiming-chen/HSVA .

For agents

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

get_harvested_code_for_paper("2109.15163")
get_code_for_paper("2109.15163")
have("2109.15163")

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

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

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

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

Connect an agent — have() is free.