SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.19213 · NeurIPS · 2024

Prototypical Hash Encoding for On-the-Fly Fine-Grained Category Discovery

Nicu Sebe, Zhun Zhong, Wenjing Li, Haiyang Zheng, Nan Pu

arXiv · PDF · Open in the Atlas

Code that ran

15 of 18 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; 0 honoured the contract we drafted, 1 violated it and 2 have no contract verdict; 12 failures of our instrument; 3 no recorded run), measured 2026-11-22; 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/2410.19213.json · badge: /api/ran/2410.19213.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
HaiyangZheng/PHE canonical (classifier label)
classifier basis: census
13 ran · 2 no recorded run
haiyangzheng/phe canonical (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
FunctionStatusWhere it lives
HASHHead Ran
ran on a synthesized input
haiyangzheng/phe/phe_model.py
pointer only (licence: NONE) · get_code("e619561773e7f231")
How it ran

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

PrototypeMask Ran
ran on a synthesized input
haiyangzheng/phe/phe_model.py
pointer only (licence: NONE) · get_code("8ee3a41265b60d79")
How it ran

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

add_weight_decay Ran
ran; our contract draft was wrong, not the code
HaiyangZheng/PHE/utils/create_optimizer.py
pointer only (licence: NONE) · get_code("b40701674badc944")
How it ran

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

cluster_acc Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HaiyangZheng/PHE/utils/evaluate_utils.py
pointer only (licence: NONE) · get_code("569a0b5d2369b072")
How it ran

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

cos_eps_loss Ran
ran; our contract draft was wrong, not the code
HaiyangZheng/PHE/train_eval.py
pointer only (licence: NONE) · get_code("0533e19b20ab61be")
How it ran

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

create_optimizer Ran
ran; our contract draft was wrong, not the code
HaiyangZheng/PHE/utils/create_optimizer.py
pointer only (licence: NONE) · get_code("ed652f64a90f46bd")
How it ran

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

create_scheduler Ran
ran; our contract draft was wrong, not the code
HaiyangZheng/PHE/utils/create_scheduler.py
pointer only (licence: NONE) · get_code("0bf982f15505a3f0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HaiyangZheng/PHE 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_path Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HaiyangZheng/PHE/vision_transformer.py
pointer only (licence: NONE); the stored copy get_code serves, from gladzhang/Xformer, is pointer only (licence: NONE) · get_code("55120f2026b56aa2")
How it ran

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

get_logger Ran
ran; our contract draft was wrong, not the code
HaiyangZheng/PHE/utils/train_utils.py
pointer only (licence: NONE) · get_code("23bae118f9d2544c")
How it ran

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

repr_set Ran
ran; our contract draft was wrong, not the code
HaiyangZheng/PHE/utils/train_utils.py
pointer only (licence: NONE) · get_code("7b3682a0f0d2f236")
How it ran

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

sep_loss Ran
ran; our contract draft was wrong, not the code
HaiyangZheng/PHE/train_eval.py
pointer only (licence: NONE) · get_code("cd3e8b1436482d26")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HaiyangZheng/PHE 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_cluster_acc_v1 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HaiyangZheng/PHE/utils/evaluate_utils.py
pointer only (licence: NONE) · get_code("3aed41c9fca737a7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HaiyangZheng/PHE 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_cluster_acc_v2 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HaiyangZheng/PHE/utils/evaluate_utils.py
pointer only (licence: NONE) · get_code("e0eef651c9789663")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HaiyangZheng/PHE 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_weights Ran
ran; our contract draft was wrong, not the code
HaiyangZheng/PHE/utils/create_optimizer.py
pointer only (licence: NONE) · get_code("e4b55a781cbeedd8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HaiyangZheng/PHE 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
HaiyangZheng/PHE/utils/train_utils.py
pointer only (licence: NONE) · get_code("23db2a7c3c0a7672")
How it ran

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

PPNet_Normal Not yet run
unverified (harvested, no recorded run)
haiyangzheng/phe/phe_model.py
pointer only (licence: NONE) · get_code("eb765a9286373ad3")
How it ran

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

vit_small Not yet run
unverified (harvested, no recorded run)
HaiyangZheng/PHE/vision_transformer.py
pointer only (licence: NONE) · get_code("ec8ef1c46084a050")
How it ran

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

vit_tiny Not yet run
unverified (harvested, no recorded run)
HaiyangZheng/PHE/vision_transformer.py
pointer only (licence: NONE) · get_code("af7e475ba18d722d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HaiyangZheng/PHE 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 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 3 the same month, 3 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
drop_path 224 other papers
182 dated earlier, 3 the same month, 31 later, 7 same year, order not determinable, 1 undated · 38 only as an assembly brick
2003.12039 (2020-03)
RAFT: Recurrent All-Pairs Field Transforms for Optical Flow
2007.09384 (2020-07)
Multi-Scale Positive Sample Refinement for Few-Shot Object Detection
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
and 221 more not named here
vit_tiny 33 other papers
25 dated earlier, 1 the same month, 6 later, 1 undated
2201.02609 (2022-01)
Generalized Category Discovery
2202.11929 (2022-02)
Word Segmentation on Discovered Phone Units with Dynamic Programming and Self-Supervised Scoring
2203.08414 (2022-03)
Unsupervised Semantic Segmentation by Distilling Feature Correspondences
and 30 more not named here
vit_small 22 other papers
18 dated earlier, 1 the same month, 2 later, 1 undated
2201.02609 (2022-01)
Generalized Category Discovery
2202.11929 (2022-02)
Word Segmentation on Discovered Phone Units with Dynamic Programming and Self-Supervised Scoring
2203.08414 (2022-03)
Unsupervised Semantic Segmentation by Distilling Feature Correspondences
and 19 more not named here
cluster_acc 7 other papers
7 dated earlier
2201.02609 (2022-01)
Generalized Category Discovery
2305.06144 (2023-05)
Learning Semi-supervised Gaussian Mixture Models for Generalized Category Discovery
and 4 more not named here
add_weight_decay 3 other papers
3 dated earlier
2112.09445 (2021-12)
Data Efficient Language-supervised Zero-shot Recognition with Optimal Transport Distillation
2403.07560 (2024-03)
Unleashing Network Potentials for Semantic Scene Completion
2403.19589 (2024-03)
TOD3Cap: Towards 3D Dense Captioning in Outdoor Scenes

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-22.

Repositories linked to this paper

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

Abstract

In this paper, we study a practical yet challenging task, On-the-fly Category Discovery (OCD), aiming to online discover the newly-coming stream data that belong to both known and unknown classes, by leveraging only known category knowledge contained in labeled data. Previous OCD methods employ the hash-based technique to represent old/new categories by hash codes for instance-wise inference. However, directly mapping features into low-dimensional hash space not only inevitably damages the ability to distinguish classes and but also causes "high sensitivity" issue, especially for fine-grained classes, leading to inferior performance. To address these issues, we propose a novel Prototypical Hash Encoding (PHE) framework consisting of Category-aware Prototype Generation (CPG) and Discriminative Category Encoding (DCE) to mitigate the sensitivity of hash code while preserving rich discriminative information contained in high-dimension feature space, in a two-stage projection fashion. CPG enables the model to fully capture the intracategory diversity by representing each category with multiple prototypes. DCE boosts the discrimination ability of hash code with the guidance of the generated category prototypes and the constraint of minimum separation distance. By jointly optimizing CPG and DCE, we demonstrate that these two components are mutually beneficial towards an effective OCD. Extensive experiments show the significant superiority of our PHE over previous methods, e.g., obtaining an improvement of +5.3% in ALL ACC averaged on all datasets. Moreover, due to the nature of the interpretable prototypes, we visually analyze the underlying mechanism of how PHE helps group certain samples into either known or unknown categories. Code is available at https://github.com/HaiyangZheng/PHE.

For agents

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

get_harvested_code_for_paper("2410.19213")
get_code_for_paper("2410.19213")
have("2410.19213")

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

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

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

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

Connect an agent — have() is free.