Weimin Lyu, Chenlu Wang, Ritwik Banerjee
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 |
|---|---|---|
| chenlu49/ClaD | — | 1 of 1 |
| Function | Status | Where it lives |
|---|---|---|
| simcse_sup_loss_mahalanobis_update | Ran | chenlu49/ClaD/ClaD_misogyny.py pointer only (licence: NONE) · get_code("bd7d877c6c1f97e5") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Detecting deviant language such as sexism, or nuanced language such as metaphors or sarcasm, is crucial for enhancing the safety, clarity, and interpretation of online social discourse. While existing classifiers deliver strong results on these tasks, they often come with significant computational cost and high data demands. In this work, we propose Class Distillation (ClaD), a novel training paradigm that targets the core challenge: distilling a small, welldefined target class from a highly diverse and heterogeneous background. 1 ClaD integrates two key innovations: (i) a loss function informed by the structural properties of class distributions, based on Mahalanobis distance, and (ii) an interpretable decision algorithm optimized for class separation. Across three benchmark detection tasks -sexism, metaphor, and sarcasm -ClaD outperforms competitive baselines, and even with smaller language models and orders of magnitude fewer parameters, achieves performance comparable to several large language models (LLMs). These results demonstrate ClaD as an efficient tool for pragmatic language understanding tasks that require gleaning a small target class from a larger heterogeneous background.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2505.11829")
get_code_for_paper("2505.11829")
have("2505.11829")
Connect an agent — have() is free.