Zhiyuan Zhang, Xu Sun, Wenkai Yang, Sishuo Chen, Xiaohan Bi
11 of 14 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 5 have no contract verdict; 5 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2022.findings-emnlp.47.json · badge: /api/ran/2022.findings-emnlp.47.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.
| Repository | Role | Ran |
|---|---|---|
| lancopku/DAN | canonical (classifier label) classifier basis: census |
11 ran · 3 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| auroc | Ran ran on a synthesized input |
lancopku/DAN/metrics.py code served (permissive licence) · get_code("a6359426276fb40b") How it ranRan 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 float64, ndim 0, 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.
|
| binary_accuracy | Ran ran on a synthesized input |
lancopku/DAN/functions.py code served (permissive licence) · get_code("d57e3a6e0a6abc62") How it ranRan 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.
|
| check_output_probability_change | Ran ran, honoured the contract we drafted |
lancopku/DAN/extract_embeddings.py code served (permissive licence) · get_code("e4ed28074baf803f") How it ranRan 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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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.
|
| data_poison | Ran ran; our contract draft was wrong, not the code |
lancopku/DAN/extract_embeddings.py code served (permissive licence) · get_code("2c9996a1efee0f9b") How it ranRan 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 list, 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.
|
| get_distance_score | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
lancopku/DAN/evaluate_dan.py code served (permissive licence) · get_code("e6ff3cf020421145") How it ranRan 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 ndarray, ndim 1, dtype family float, shape (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.
|
| get_is_pos | Ran ran on a synthesized input |
lancopku/DAN/metrics.py code served (permissive licence) · get_code("7b9990d7d4520898") How it ranRan 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 ndarray, ndim 1, dtype family float, shape (5,) 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.
|
| pooling_features | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
lancopku/DAN/evaluate_dan.py code served (permissive licence) · get_code("e2fe07666ea5e811") How it ranRan 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 ndarray, ndim 2, dtype family float, shape (2, 4) 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.
|
| process_data | Ran ran; our contract draft was wrong, not the code |
lancopku/DAN/extract_embeddings.py code served (permissive licence) · get_code("0b660841b60e2505") How it ranRan 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 2, 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.
|
| read_data_from_corpus | Ran ran on a synthesized input |
lancopku/DAN/process_data.py code served (permissive licence) · get_code("88ba45886d820430") How it ranRan 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 list, 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.
|
| roc | Ran ran on a synthesized input |
lancopku/DAN/metrics.py code served (permissive licence) · get_code("518d9f2cda25ff12") How it ranRan 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 list, ndim 2, 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.
|
| sample_estimator | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
lancopku/DAN/evaluate_dan.py code served (permissive licence) · get_code("8211ce1ebdb20c93") How it ranRan 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.
|
| generate_poisoned_data_from_corpus | Not yet run unverified (harvested, no recorded run) |
lancopku/DAN/process_data.py code served (permissive licence) · get_code("46985c79fe0fd308") How it ranno invocation recorded. |
| process_model_only | Not yet run unverified (harvested, no recorded run) |
lancopku/DAN/functions.py code served (permissive licence) · get_code("b850ed234bd6b563") How it ranno invocation recorded. |
| process_model_wth_trigger | Not yet run unverified (harvested, no recorded run) |
lancopku/DAN/functions.py code served (permissive licence) · get_code("05ef65938892a100") How it ranno invocation recorded. |
Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 9 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 3 later) and 5 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.
| Function | Also present in | Earliest-dated | Others named |
|---|---|---|---|
| auroc | 2 other papers 1 later, 1 same year, order not determinable |
2022.findings-emnlp.497 (2022 (year only)) Holistic Sentence Embeddings for Better Out-of-Distribution Detection |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
| get_is_pos | 2 other papers 1 later, 1 same year, order not determinable |
2022.findings-emnlp.497 (2022 (year only)) Holistic Sentence Embeddings for Better Out-of-Distribution Detection |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
| process_data | 2 other papers 1 dated earlier, 1 same year, order not determinable |
2110.07831 (2021-10) RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Models |
2210.07907 (2022-10) Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attacks |
| roc | 2 other papers 1 later, 1 same year, order not determinable |
2022.findings-emnlp.497 (2022 (year only)) Holistic Sentence Embeddings for Better Out-of-Distribution Detection |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
| check_output_probability_change | 1 other paper 1 same year, order not determinable |
2210.07907 (2022-10) Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attacks |
|
| data_poison | 1 other paper 1 same year, order not determinable |
2210.07907 (2022-10) Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attacks |
|
| get_distance_score | 1 other paper 1 same year, order not determinable |
2210.07907 (2022-10) Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attacks |
|
| pooling_features | 1 other paper 1 same year, order not determinable |
2210.07907 (2022-10) Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attacks |
|
| sample_estimator | 1 other paper 1 same year, order not determinable |
2210.07907 (2022-10) Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attacks |
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-24.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Natural language processing (NLP) models are known to be vulnerable to backdoor attacks, which poses a newly arisen threat to NLP models. Prior online backdoor defense methods for NLP models only focus on the anomalies at either the input or output level, still suffering from fragility to adaptive attacks and high computational cost. In this work, we take the first step to investigate the unconcealment of textual poisoned samples at the intermediate-feature level and propose a feature-based efficient online defense method. Through extensive experiments on existing attacking methods, we find that the poisoned samples are far away from clean samples in the intermediate feature space of a poisoned NLP model. Motivated by this observation, we devise a distance-based anomaly score (DAN) to distinguish poisoned samples from clean samples at the feature level. Experiments on sentiment analysis and offense detection tasks demonstrate the superiority of DAN, as it substantially surpasses existing online defense methods in terms of defending performance and enjoys lower inference costs. Moreover, we show that DAN is also resistant to adaptive attacks based on feature-level regularization. Our code is available at https: //github.com/lancopku/DAN.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2022.findings-emnlp.47")
get_code_for_paper("2022.findings-emnlp.47")
have("2022.findings-emnlp.47")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2022.findings-emnlp.47.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2022.findings-emnlp.47)
Connect an agent — have() is free.