SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.04536 · 2023

LMPT: Prompt Tuning with Class-Specific Embedding Loss for Long-tailed Multi-Label Visual Recognition

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 9 functions out of this paper's own repositories and ran 2 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
richard-peng-xia/LMPT canonical 2 of 9
FunctionStatusWhere it lives
reduce_loss Ran richard-peng-xia/LMPT/lmpt/bl.py
code served (permissive licence) · get_code("93358ba7aa223343")
weight_reduce_loss Ran richard-peng-xia/LMPT/lmpt/bl.py
code served (permissive licence) · get_code("8553862254d49840")
binary_cross_entropy Not yet run richard-peng-xia/LMPT/lmpt/bl.py
code served (permissive licence) · get_code("b6381cea04a4f316")
binary_cross_entropy Not yet run richard-peng-xia/LMPT/lmpt/dbl.py
code served (permissive licence) · get_code("1e5144c838c3e6c2")
build_dataset Not yet run richard-peng-xia/LMPT/lmpt/datasets.py
code served (permissive licence) · get_code("af60b4a83d7a2c24")
build_dataset_with_caption Not yet run richard-peng-xia/LMPT/lmpt/datasets.py
code served (permissive licence) · get_code("305bb617fd983bc0")
cross_entropy Not yet run richard-peng-xia/LMPT/lmpt/dbl.py
code served (permissive licence) · get_code("54aba0c2f41301bd")
eval_map Not yet run richard-peng-xia/LMPT/lmpt/metrics.py
code served (permissive licence) · get_code("1b8d4c91bf31cdd8")
partial_cross_entropy Not yet run richard-peng-xia/LMPT/lmpt/dbl.py
code served (permissive licence) · get_code("1b2989deebcb5f1d")

Repositories linked to this paper

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

Abstract

Long-tailed multi-label visual recognition (LTML) task is a highly challenging task due to the label co-occurrence and imbalanced data distribution. In this work, we propose a unified framework for LTML, namely prompt tuning with class-specific embedding loss (LMPT), capturing the semantic feature interactions between categories by combining text and image modality data and improving the performance synchronously on both head and tail classes. Specifically, LMPT introduces the embedding loss function with class-aware soft margin and re-weighting to learn class-specific contexts with the benefit of textual descriptions (captions), which could help establish semantic relationships between classes, especially between the head and tail classes. Furthermore, taking into account the class imbalance, the distribution-balanced loss is adopted as the classification loss function to further improve the performance on the tail classes without compromising head classes. Extensive experiments are conducted on VOC-LT and COCO-LT datasets, which demonstrates that our method significantly surpasses the previous state-of-the-art methods and zero-shot CLIP in LTML. Our codes are fully public at https://github.com/richard-peng-xia/LMPT.

For agents

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

get_harvested_code_for_paper("2305.04536")
get_code_for_paper("2305.04536")
have("2305.04536")

Connect an agent — have() is free.