Papers › Beyond Perplexity: Multi-dimensional Safety Evaluation of LLM Compression

Beyond Perplexity: Multi-dimensional Safety Evaluation of LLM Compression

6 Jul 2024arXiv:2407.04965archive 2025-07-28

Zhichao Xu, Ashim Gupta, Tao Li, Oliver Bentham, Vivek Srikumar

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}}

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2407.04965")

Code

Syntology Ran 14 of 16 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 14 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zhichaoxu-shufe/beyond-perplexity-compression-safety-eval officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 14 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

14ran
2unverified

Licence: 16 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from zhichaoxu-shufe/beyond-perplexity-compression-safety-eval. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

bbq_input_template zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/multi_qa.py official repository ran no licence file found · pointer only · 6247c559a0baea68 · report
binary zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/evaluate.py official repository ran fingerprinted no licence file found · pointer only · 94fff8a61712ee35 · report
dataset_type_mapping zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/dataset.py official repository ran no licence file found · pointer only · d440bc6d834be20e · report
format_bbq_demonstrations zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/multi_qa.py official repository ran no licence file found · pointer only · c25499be6e1d9f4c · report
format_bbq_input zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/multi_qa.py official repository ran no licence file found · pointer only · 7086d5ad81b51630 · report
get_ans_p zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/unqover_utils.py official repository ran no licence file found · pointer only · 3b30d541f1a777b3 · report
get_grouping_dict zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/evaluate.py official repository ran no licence file found · pointer only · 84a6ac1ca4ed6393 · report
get_subj1_win_score zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/unqover_utils.py official repository ran no licence file found · pointer only · 28443f125b3f5fbb · report
grouping_scores zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/evaluate.py official repository ran no licence file found · pointer only · dabafc3a98a2fcb9 · report
pairup_ex zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/unqover_utils.py official repository ran no licence file found · pointer only · 7222e7eb6e94c520 · report
read_dataset zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/dataset.py official repository ran no licence file found · pointer only · 4f36c281cdd1fdd3 · report
read_jsonl zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/dataset.py official repository ran no licence file found · pointer only · 39f2050e41061d06 · report
template_input zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/utils.py official repository ran fingerprinted no licence file found · pointer only · f24d92ae9ee1fd93 · report
template_tulu zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/utils.py official repository ran fingerprinted no licence file found · pointer only · 127ae24aa8705c37 · report
configure_model_loading zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/run_generation.py official repository unverified no licence file found · pointer only · 6400c7a60196db52 · report
configure_tokenizer_model_loading zhichaoxu-shufe/beyond-perplexity-compression-safety-eval/src/run_generation.py official repository unverified no licence file found · pointer only · 384829e4cff9c994 · report

Tasks

Language ModelingLanguage ModellingModel CompressionQuantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Pruning

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections