Junjie Hu, Ruixue Lian, William Sethares
We lifted 1 functions out of this paper's own repositories and ran 1 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.
| Repository | Role | Ran |
|---|---|---|
| rxlian/LA-SCL | — | 1 of 1 |
| Function | Status | Where it lives |
|---|---|---|
| BertWithLabel | Ran | rxlian/LA-SCL/model.py code served (permissive licence) · get_code("327addd43316c07d") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Supervised contrastive learning (SCL) frameworks treat each class as independent and thus consider all classes to be equally important. This neglects the common scenario in which label hierarchy exists, where fine-grained classes under the same category show more similarity than very different ones. This paper introduces a family of Label-Aware SCL methods (LASCL) that incorporates hierarchical information to SCL by leveraging similarities between classes, resulting in creating a more well-structured and discriminative feature space. This is achieved by first adjusting the distance between instances based on measures of the proximity of their classes with the scaled instance-instance-wise contrastive. An additional instance-center-wise contrastive is introduced to move within-class examples closer to their centers, which are represented by a set of learnable label parameters. The learned label parameters can be directly used as a nearest neighbor classifier without further finetuning. In this way, a better feature representation is generated with improvements of intra-cluster compactness and inter-cluster separation. Experiments on three datasets show that the proposed LASCL works well on text classification of distinguishing a single label among multilabels, outperforming the baseline supervised approaches. Our code is publicly available. 1
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2402.00232")
get_code_for_paper("2402.00232")
have("2402.00232")
Connect an agent — have() is free.