SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.04965 · 2024

Beyond Perplexity: Multi-dimensional Safety Evaluation of LLM Compression

arXiv · PDF · Open in the Atlas

Code that ran

14 of 16 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 11 failures of our instrument; 2 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2407.04965.json · badge: /api/ran/2407.04965.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.

RepositoryRoleRan
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval canonical (classifier label)
classifier basis: census
14 ran · 2 no recorded run
FunctionStatusWhere it lives
bbq_input_template Ran
ran; our contract draft was wrong, not the code
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/multi_qa.py
pointer only (licence: NONE) · get_code("6247c559a0baea68")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhichaoxu-shufe/beyond-perplexity-compression-safety-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

binary Ran
ran, honoured the contract we drafted
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/evaluate.py
pointer only (licence: NONE) · get_code("94fff8a61712ee35")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhichaoxu-shufe/beyond-perplexity-compression-safety-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

dataset_type_mapping Ran
ran; our contract draft was wrong, not the code
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/dataset.py
pointer only (licence: NONE) · get_code("d440bc6d834be20e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhichaoxu-shufe/beyond-perplexity-compression-safety-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

format_bbq_demonstrations Ran
ran; our contract draft was wrong, not the code
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/multi_qa.py
pointer only (licence: NONE) · get_code("c25499be6e1d9f4c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhichaoxu-shufe/beyond-perplexity-compression-safety-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

format_bbq_input Ran
ran; our contract draft was wrong, not the code
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/multi_qa.py
pointer only (licence: NONE) · get_code("7086d5ad81b51630")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhichaoxu-shufe/beyond-perplexity-compression-safety-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_ans_p Ran
ran, honoured the contract we drafted
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/unqover_utils.py
pointer only (licence: NONE) · get_code("3b30d541f1a777b3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhichaoxu-shufe/beyond-perplexity-compression-safety-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_grouping_dict Ran
ran; our contract draft was wrong, not the code
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/evaluate.py
pointer only (licence: NONE) · get_code("84a6ac1ca4ed6393")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhichaoxu-shufe/beyond-perplexity-compression-safety-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_subj1_win_score Ran
ran, honoured the contract we drafted
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/unqover_utils.py
pointer only (licence: NONE) · get_code("28443f125b3f5fbb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhichaoxu-shufe/beyond-perplexity-compression-safety-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

grouping_scores Ran
ran; our contract draft was wrong, not the code
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/evaluate.py
pointer only (licence: NONE) · get_code("dabafc3a98a2fcb9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhichaoxu-shufe/beyond-perplexity-compression-safety-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pairup_ex Ran
ran; our contract draft was wrong, not the code
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/unqover_utils.py
pointer only (licence: NONE) · get_code("7222e7eb6e94c520")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhichaoxu-shufe/beyond-perplexity-compression-safety-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_dataset Ran
ran; our contract draft was wrong, not the code
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/dataset.py
pointer only (licence: NONE) · get_code("4f36c281cdd1fdd3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhichaoxu-shufe/beyond-perplexity-compression-safety-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_jsonl Ran
ran; our contract draft was wrong, not the code
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/dataset.py
pointer only (licence: NONE) · get_code("39f2050e41061d06")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhichaoxu-shufe/beyond-perplexity-compression-safety-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

template_input Ran
ran; our contract draft was wrong, not the code
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/utils.py
pointer only (licence: NONE) · get_code("f24d92ae9ee1fd93")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhichaoxu-shufe/beyond-perplexity-compression-safety-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

template_tulu Ran
ran; our contract draft was wrong, not the code
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/utils.py
pointer only (licence: NONE) · get_code("127ae24aa8705c37")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhichaoxu-shufe/beyond-perplexity-compression-safety-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

configure_model_loading Not yet run
unverified (harvested, no recorded run)
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/run_generation.py
pointer only (licence: NONE) · get_code("6400c7a60196db52")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhichaoxu-shufe/beyond-perplexity-compression-safety-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

configure_tokenizer_model_loading Not yet run
unverified (harvested, no recorded run)
zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/run_generation.py
pointer only (licence: NONE) · get_code("384829e4cff9c994")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhichaoxu-shufe/beyond-perplexity-compression-safety-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 15 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.

FunctionAlso present inEarliest-datedOthers named
get_subj1_win_score 1 other paper
1 dated earlier
2106.01465 (2021-06)
Ethical-Advice Taker: Do Language Models Understand Natural Language Interventions?

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-22.

Repositories linked to this paper

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

Abstract

Increasingly, model compression techniques enable large language models (LLMs) to be deployed in real-world applications. As a result of this momentum towards local deployment, compressed LLMs will interact with a large population. Prior work on compression typically prioritize preserving perplexity, which is directly analogous to training loss. The impact of compression method on other critical aspects of model behavior\, -- \,particularly safety\, -- \,requires systematic assessment. To this end, we investigate the impact of model compression along four dimensions: (1) degeneration harm, i.e., bias and toxicity in generation; (2) representational harm, i.e., biases in discriminative tasks; (3) dialect bias; and(4) language modeling and downstream task performance. We examine a wide spectrum of LLM compression techniques, including unstructured pruning, semi-structured pruning, and quantization. Our analysis reveals that compression can lead to unexpected consequences. Although compression may unintentionally alleviate LLMs' degeneration harm, it can still exacerbate representational harm. Furthermore, increasing compression produces a divergent impact on different protected groups. Finally, different compression methods have drastically different safety impacts: for example, quantization mostly preserves bias while pruning degrades quickly. Our findings underscore the importance of integrating safety assessments into the development of compressed LLMs to ensure their reliability across real-world applications.\footnote{Our implementation and results are available here: \url{https://github.com/zhichaoxu-shufe/Beyond-Perplexity-Compression-Safety-Eval}}

For agents

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

get_harvested_code_for_paper("2407.04965")
get_code_for_paper("2407.04965")
have("2407.04965")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2407.04965.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2407.04965.svg)](https://syntology.ai/paper/2407.04965)

Connect an agent — have() is free.