Xu Sun, Rundong Gao, Sishuo Chen, Xiaohan Bi
17 of 24 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; 4 honoured the contract we drafted, 0 violated it and 13 have no contract verdict; 0 failures of our instrument; 7 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.497.json · badge: /api/ran/2022.findings-emnlp.497.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/Avg-Avg | canonical (classifier label) classifier basis: census |
17 ran · 7 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| auroc | Ran ran on a synthesized input |
lancopku/Avg-Avg/lib/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.
|
| get_base_score | Ran ran, honoured the contract we drafted |
lancopku/Avg-Avg/lib/inference/base.py code served (permissive licence) · get_code("d47e87d197d79e74") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned ndarray, ndim 1, dtype family float, shape (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.
|
| get_cse_features | Ran ran on a synthesized input |
lancopku/Avg-Avg/lib/inference/draw.py code served (permissive licence) · get_code("0256d90810fbc438") 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.
|
| get_d2u_score | Ran ran on a synthesized input |
lancopku/Avg-Avg/lib/inference/base.py code served (permissive licence) · get_code("13081870f2ef7a7d") 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 (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.
|
| get_distance_score | Ran ran on a synthesized input |
lancopku/Avg-Avg/ood_test_embedding.py code served (permissive licence) · get_code("4e447d90e02e18d3") 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 (3,) 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_dropout_score | Ran ran, honoured the contract we drafted |
lancopku/Avg-Avg/lib/inference/dropout.py code served (permissive licence) · get_code("082c65dc1bb78132") 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 (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.
|
| get_features | Ran ran on a synthesized input |
lancopku/Avg-Avg/lib/inference/draw.py code served (permissive licence) · get_code("dd94c31be0cd6720") 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.
|
| get_grad_norm_score | Ran ran on a synthesized input |
lancopku/Avg-Avg/lib/inference/base.py code served (permissive licence) · get_code("e614043206c6e7fd") 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. 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, 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/Avg-Avg/lib/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.
|
| get_key_positions | Ran ran on a synthesized input |
lancopku/Avg-Avg/lib/inference/generation.py code served (permissive licence) · get_code("9aab08fc71951fbb") 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 int, shape (2, 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_msp_score | Ran ran, honoured the contract we drafted |
lancopku/Avg-Avg/lib/inference/dropout.py code served (permissive licence) · get_code("95a0d4e729d22901") 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 (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.
|
| get_num_labels | Ran ran, honoured the contract we drafted |
lancopku/Avg-Avg/lib/exp.py code served (permissive licence) · get_code("99634a5ff1d3861f") 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 int, ndim 0, dtype family int, shape () 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_ppl_confidence | Ran ran on a synthesized input |
lancopku/Avg-Avg/lib/inference/generation.py code served (permissive licence) · get_code("f70aa83668a8706c") 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 (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.
|
| merge_dataset | Ran ran on a synthesized input |
lancopku/Avg-Avg/lib/data_loader.py code served (permissive licence) · get_code("309765ad45e0eb2b") 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.
|
| pooling_features | Ran ran on a synthesized input |
lancopku/Avg-Avg/ood_test_embedding.py code served (permissive licence) · get_code("a8217a3fd3557c80") 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 (3, 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.
|
| roc | Ran ran on a synthesized input |
lancopku/Avg-Avg/lib/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.
|
| take_mean_and_reshape | Ran ran on a synthesized input |
lancopku/Avg-Avg/lib/exp.py code served (permissive licence) · get_code("85474e5c0d2f6525") 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 (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.
|
| get_FFN_features | Not yet run unverified (harvested, no recorded run) |
lancopku/Avg-Avg/lib/inference/draw.py code served (permissive licence) · get_code("070c5871cfb27dac") How it ranno invocation recorded. |
| get_ODIN_score | Not yet run unverified (harvested, no recorded run) |
lancopku/Avg-Avg/lib/inference/godin.py code served (permissive licence) · get_code("75d28eb18311169e") How it ranno invocation recorded. |
| get_data_loader | Not yet run unverified (harvested, no recorded run) |
lancopku/Avg-Avg/lib/data_loader.py code served (permissive licence) · get_code("acb9e81d5ccbc520") How it ranno invocation recorded. |
| get_keyword_confidence | Not yet run unverified (harvested, no recorded run) |
lancopku/Avg-Avg/lib/inference/generation.py code served (permissive licence) · get_code("24c1d85c8d245fbb") How it ranno invocation recorded. |
| get_raw_data | Not yet run unverified (harvested, no recorded run) |
lancopku/Avg-Avg/lib/data_loader.py code served (permissive licence) · get_code("a32f7e64f80b7f78") How it ranno invocation recorded. |
| sample_estimator | Not yet run unverified (harvested, no recorded run) |
lancopku/Avg-Avg/ood_test_embedding.py code served (permissive licence) · get_code("89a4baeeb3ec6d8f") How it ranno invocation recorded. |
| searchGeneralizedOdinParameters | Not yet run unverified (harvested, no recorded run) |
lancopku/Avg-Avg/lib/inference/godin.py code served (permissive licence) · get_code("85b60c3259d9728e") How it ranno invocation recorded. |
Of 24 samples lifted from this paper's linked repositories, 24 carry a function identity and 0 do not. Of the 24 distinct functions with an identity, 15 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 15 later) and 9 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.47 (2022 (year only)) Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attacks |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
| get_base_score | 2 other papers 1 dated earlier, 1 later |
1610.02136 (2016-10) A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networks |
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.47 (2022 (year only)) Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attacks |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
| roc | 2 other papers 1 later, 1 same year, order not determinable |
2022.findings-emnlp.47 (2022 (year only)) Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attacks |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
| get_cse_features | 1 other paper 1 later |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
|
| get_d2u_score | 1 other paper 1 later |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
|
| get_dropout_score | 1 other paper 1 later |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
|
| get_features | 1 other paper 1 later |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
|
| get_grad_norm_score | 1 other paper 1 later |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
|
| get_key_positions | 1 other paper 1 later |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
|
| get_keyword_confidence | 1 other paper 1 later |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
|
| get_msp_score | 1 other paper 1 later |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
|
| get_num_labels | 1 other paper 1 later |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
|
| get_ppl_confidence | 1 other paper 1 later |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
|
| take_mean_and_reshape | 1 other paper 1 later |
2301.07597 (2023-01) How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection |
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.
Detecting out-of-distribution (OOD) instances is significant for the safe deployment of NLP models. Among recent textual OOD detection works based on pretrained language models (PLMs), distance-based methods have shown superior performance. However, they estimate sample distance scores in the last-layer CLS embedding space and thus do not make full use of linguistic information underlying in PLMs. To address the issue, we propose to boost OOD detection by deriving more holistic sentence embeddings. On the basis of the observations that token averaging and layer combination contribute to improving OOD detection, we propose a simple embedding approach named Avg-Avg, which averages all token representations from each intermediate layer as the sentence embedding and significantly surpasses the state-of-the-art on a comprehensive suite of benchmarks by a 9.33% FAR95 margin. Furthermore, our analysis demonstrates that it indeed helps preserve general linguistic knowledge in fine-tuned PLMs and substantially benefits detecting background shifts. The simple yet effective embedding method can be applied to fine-tuned PLMs with negligible extra costs, providing a free gain in OOD detection. Our code is available at https: //github.com/lancopku/Avg-Avg.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2022.findings-emnlp.497")
get_code_for_paper("2022.findings-emnlp.497")
have("2022.findings-emnlp.497")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2022.findings-emnlp.497.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2022.findings-emnlp.497)
Connect an agent — have() is free.