SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2512.16202 · CVPR · 2025

Open Ad-hoc Categorization with Contextualized Feature Learning

Sangwoo Mo, Liu Ren, Stella Yu, Zilin Wang, Sima Behpour

arXiv · PDF · Open in the Atlas

Code that ran

10 of 15 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; 9 failures of our instrument; 5 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-23; 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/2512.16202.json · badge: /api/ran/2512.16202.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
Wayne2Wang/OAK canonical (classifier label)
classifier basis: census
10 ran · 5 no recorded run
FunctionStatusWhere it lives
get_mean_lr Ran
ran, honoured the contract we drafted
Wayne2Wang/OAK/src/utils/general.py
code served (permissive licence) · get_code("c62a45794431e9b7")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-05T02:48:59Z). If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch import optim
import torch.nn as nn

torch.manual_seed(0)

# Create a simple model
model = nn.Linear(4, 3)

# Create an optimizer with the model's parameters
optimizer = optim.SGD(model.parameters(), lr=0.01)

# Add another param group with a different learning rate
optimizer.add_param_group({'params': [torch.nn.Parameter(torch.randn(2, 2))], 'lr': 0.02})

ARGS = {
    'optimizer': optimizer
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
dict_to_namespace Ran
ran; our contract draft was wrong, not the code
Wayne2Wang/OAK/src/utils/configs.py
code served (permissive licence) · get_code("9eb37a3dad52eb3f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Namespace. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import argparse
import torch
import numpy as np

torch.manual_seed(0)

# The function dict_to_namespace takes a dict parameter 'd' and converts it recursively
# to argparse.Namespace objects. We need to test it with a nested dict structure.

ARGS = {
    "d": {
        "model_name": "test_model",
        "learning_rate": 0.001,
        "batch_size": 32,
        "nested_config": {
            "hidden_dim": 128,
            "num_layers": 2,
            "activation": "relu"
        },
        "tensor_data": torch.randn(2, 4),
        "numpy_array": np.array([1, 2, 3, 4]),
        "list_of_values": [1, 2, 3],
        "deeply_nested": {
            "level1": {
                "level2": {
                    "value": 42
                }
            }
        }
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
drop_path Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Wayne2Wang/OAK/src/models/dino_vision_transformer.py
pointer only (licence: MIT); 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: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from gladzhang/Xformer, and GitHub detected no licence in that repository 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.

extract_features Ran
ran; our contract draft was wrong, not the code
Wayne2Wang/OAK/visualize_tsne.py
code served (permissive licence) · get_code("585dcab349137ace")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Build a minimal model that takes images and outputs features
class SimpleFeatureExtractor(nn.Module):
    def __init__(self, feature_dim=4):
        super().__init__()
        self.fc = nn.Linear(3, feature_dim)
    
    def forward(self, x):
        # x shape: (batch, 3)
        return self.fc(x)

# Create model
model = SimpleFeatureExtractor(feature_dim=4)

# Build dataloader with required tuple structure: (images, class_labels, uq_idx, mask_lab)
# Batch size 2, image features 3, various label dimensions
dataloader = [
    (
        torch.randn(2, 3),  # images: batch_size=2, features=3
        torch.tensor([0, 1]),  # class_labels: batch_size=2
        torch.tensor([0, 1]),  # uq_idx: batch_size=2
        torch.tensor([[1], [0]]),  # mask_lab: batch_size=2, needs squeeze()
    ),
    (
        torch.randn(2, 3),
        torch.tensor([2, 0]),
        torch.tensor([2, 3]),
        torch.tensor([[1], [1]]),
    ),
]

train_class_names = ["cat", "dog"]
unlabeled_class_names = ["bird", "fish"]
device = "cpu"

ARGS = {
    "model": model,
    "dataloader": dataloader,
    "train_class_names": train_class_names,
    "unlabeled_class_names": unlabeled_class_names,
    "device": device,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
loguru, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
info_nce_logits Ran
ran; our contract draft was wrong, not the code
Wayne2Wang/OAK/src/engine/losses.py
code served (permissive licence) · get_code("57fdc34a54514350")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from torch.nn import functional as F

torch.manual_seed(0)

# The function takes 4 parameters: features, n_views, temperature, device
# Let's construct valid arguments:

# features: tensor of shape (batch_size, feature_dim)
# The function does: 0.5 * int(features.size(0)), so batch_size should be even
# It also expects features to work with normalization and matrix multiplication
batch_size = 4
feature_dim = 8
n_views = 2

# Create features tensor: shape (batch_size, feature_dim)
# Since n_views=2 and b_ = 0.5 * batch_size, we need batch_size = 2 * n_views * (some number)
# With n_views=2, if batch_size=4, then b_=2, which gives 2*2=4 samples per view
features = torch.randn(batch_size, feature_dim)

# n_views: number of views (integer)
n_views = 2

# temperature: scaling factor (float)
temperature = 0.07

# device: torch device (CPU only)
device = torch.device('cpu')

ARGS = {
    'features': features,
    'n_views': n_views,
    'temperature': temperature,
    'device': device
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_config Ran
ran; our contract draft was wrong, not the code
Wayne2Wang/OAK/src/utils/configs.py
code served (permissive licence) · get_code("e6b6248844258f59")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import yaml
import tempfile

# Create temporary directory and YAML files for testing
temp_dir = tempfile.mkdtemp()

# Create a base config file
base_config_path = os.path.join(temp_dir, 'base_config.yaml')
with open(base_config_path, 'w') as f:
    yaml.dump({
        'model': {
            'type': 'transformer',
            'hidden_dim': 512,
            'num_layers': 2
        },
        'training': {
            'batch_size': 32,
            'learning_rate': 0.001
        }
    }, f)

# Create a main config file that references base_config
main_config_path = os.path.join(temp_dir, 'config.yaml')
with open(main_config_path, 'w') as f:
    yaml.dump({
        'base_config': 'base_config.yaml',
        'training': {
            'epochs': 100
        },
        'data': {
            'path': '/path/to/data'
        }
    }, f)

ARGS = {
    'config_path': main_config_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
log_accs_from_preds Ran
ran; our contract draft was wrong, not the code
Wayne2Wang/OAK/src/engine/cluster_eval.py
code served (permissive licence) · get_code("a551b95adaa59c5f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from scipy.optimize import linear_sum_assignment as linear_assignment

class SimpleLogger:
    """Minimal logger that implements info() method"""
    def info(self, msg):
        pass

class SimpleWriter:
    """Minimal tensorboard-like writer"""
    def add_scalars(self, log_name, scalars_dict, step):
        pass

# Setup for log_accs_from_preds function
np.random.seed(0)

# Create small sample data
n_samples = 10
n_classes = 3

# y_true: ground truth labels (integers from 0 to n_classes-1)
y_true = np.array([0, 0, 1, 1, 2, 2, 0, 1, 2, 0], dtype=int)

# y_pred: predicted labels (integers from 0 to n_classes-1)
y_pred = np.array([0, 0, 1, 2, 2, 2, 0, 1, 1, 0], dtype=int)

# mask: boolean array indicating which samples are from "old" classes (True) vs "new" classes (False)
mask = np.array([True, True, True, True, False, False, True, False, False, True], dtype=bool)

# eval_funcs: list of evaluation function names
eval_funcs = ['v2']

# save_name: string identifying what we're evaluating
save_name = 'test_eval'

# T: epoch number (integer)
T = 0

# writer: tensorboard logger (optional, can be None)
writer = SimpleWriter()

# logger: python logger (optional, can be None)
logger = SimpleLogger()

# return_ind_map: boolean flag
return_ind_map = False

ARGS = {
    'y_true': y_true,
    'y_pred': y_pred,
    'mask': mask,
    'eval_funcs': eval_funcs,
    'save_name': save_name,
    'T': T,
    'writer': writer,
    'logger': logger,
    'return_ind_map': return_ind_map,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
merge_dict Ran
ran; our contract draft was wrong, not the code
Wayne2Wang/OAK/src/utils/configs.py
code served (permissive licence) · get_code("c60159f61d71caa5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Test case 1: Simple merge with no conflicts
dict_a = {
    "key1": "value1",
    "key2": 42,
    "nested": {
        "inner_key": "inner_value"
    }
}

dict_b = {
    "key3": "value3",
    "nested": {
        "inner_key2": "inner_value2"
    }
}

ARGS = {
    "a": dict_a,
    "b": dict_b,
    "path": None,
    "allow_replace": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pairwise_distance Ran
ran; our contract draft was wrong, not the code
Wayne2Wang/OAK/src/engine/cluster_eval.py
code served (permissive licence) · get_code("980dd2e8fa24f9da")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (4, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for pairwise distance computation
# data1: N1 x M matrix (4 points, 3 dimensions)
# data2: N2 x M matrix (2 points, 3 dimensions)
data1 = torch.randn(4, 3)
data2 = torch.randn(2, 3)

ARGS = {
    "data1": data1,
    "data2": data2,
    "batch_size": None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (4, 2) — shape (4, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_cluster_acc_v2 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Wayne2Wang/OAK/src/engine/cluster_eval.py
code served (permissive licence) · get_code("e211b877949b1b84")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set seed for reproducibility
np.random.seed(0)

# Create small test data
n_samples = 10
n_true_classes = 3
n_pred_classes = 3

# y_true: ground truth labels, shape (n_samples,)
y_true = np.array([0, 0, 1, 1, 2, 2, 0, 1, 2, 0], dtype=int)

# y_pred: predicted labels, shape (n_samples,)
y_pred = np.array([0, 0, 1, 1, 2, 2, 0, 1, 2, 0], dtype=int)

# unlabeled_known_mask: boolean mask indicating which instances are from known (old) classes
# True = old class, False = new class
unlabeled_known_mask = np.array([True, True, True, True, True, False, False, False, False, False])

ARGS = {
    "y_true": y_true,
    "y_pred": y_pred,
    "unlabeled_known_mask": unlabeled_known_mask,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_model Not yet run
unverified (harvested, no recorded run)
Wayne2Wang/OAK/src/models/clip/model.py
code served (permissive licence) · get_code("39e6b23b55f376ea")
How it ran

no invocation recorded.

load Not yet run
unverified (harvested, no recorded run)
Wayne2Wang/OAK/src/models/clip/clip.py
code served (permissive licence) · get_code("021a688e5389b8b6")
How it ran

no invocation recorded.

plot_tsne Not yet run
unverified (harvested, no recorded run)
Wayne2Wang/OAK/visualize_tsne.py
code served (permissive licence) · get_code("2068c4ac4bbfde4b")
How it ran

no invocation recorded.

vit_small Not yet run
unverified (harvested, no recorded run)
Wayne2Wang/OAK/src/models/dino_vision_transformer.py
code served (permissive licence) · get_code("995a10f898196998")
How it ran

no invocation recorded.

vit_tiny Not yet run
unverified (harvested, no recorded run)
Wayne2Wang/OAK/src/models/dino_vision_transformer.py
code served (permissive licence) · get_code("996780ba4be89ba3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 4 later) and 8 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
213 dated earlier, 7 later, 3 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
build_model 53 other papers
46 dated earlier, 2 later, 5 same year, order not determinable
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2210.01115 (2022-10)
LASP: Text-to-Text Optimization for Language-Aware Soft Prompting of Vision & Language Models
2211.09552 (2022-11)
UniFormerV2: Spatiotemporal Learning by Arming Image ViTs with Video UniFormer
and 50 more not named here
vit_tiny 33 other papers
30 dated earlier, 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 30 more not named here
vit_small 22 other papers
21 dated earlier, 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
load 18 other papers
14 dated earlier, 1 later, 3 same year, order not determinable
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2311.11261 (2023-11)
Adversarial Prompt Tuning for Vision-Language Models
2311.18231 (2023-11)
TCP:Textual-based Class-aware Prompt tuning for Visual-Language Model
and 15 more not named here
pairwise_distance 7 other papers
6 dated earlier, 1 undated
2201.02609 (2022-01)
Generalized Category Discovery
2212.05590 (2022-12)
PromptCAL: Contrastive Affinity Learning via Auxiliary Prompts for Generalized Novel Category Discovery
2308.11063 (2023-08)
MetaGCD: Learning to Continually Learn in Generalized Category Discovery
and 4 more not named here
get_mean_lr 2 other papers
2 dated earlier
2110.06207 (2021-10)
Open-Set Recognition: A Good Closed-Set Classifier is All You Need
2310.01376 (2023-10)
Towards Distribution-Agnostic Generalized Category Discovery

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

Adaptive categorization of visual scenes is essential for AI agents to handle changing tasks. Unlike fixed common categories for plants or animals, ad-hoc categories, such as things to sell at a garage sale, are created dynamically to achieve specific tasks. We study open ad-hoc categorization, where the goal is to infer novel concepts and categorize images based on a given context, a small set of labeled exemplars, and some unlabeled data. We have two key insights: 1) recognizing ad-hoc categories relies on the same perceptual processes as common categories; 2) novel concepts can be discovered semantically by expanding contextual cues or visually by clustering similar patterns. We propose OAK, a simple model that introduces a single learnable context token into CLIP, trained with CLIP's objective of aligning visual and textual features and GCD's objective of clustering similar images. On Stanford and Clevr-4 datasets, OAK consistently achieves the state-of-art in accuracy and concept discovery across multiple categorizations, including 87.4% novel accuracy on Stanford Mood, surpassing CLIP and GCD by over 50%. Moreover, OAK generates interpretable saliency maps, focusing on hands for Action, faces for Mood, and backgrounds for Location, promoting transparency and trust while enabling accurate and flexible categorization.

For agents

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

get_harvested_code_for_paper("2512.16202")
get_code_for_paper("2512.16202")
have("2512.16202")

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

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

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

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

Connect an agent — have() is free.