Papers › SP³: Enhancing Structured Pruning via PCA Projection

SP³: Enhancing Structured Pruning via PCA Projection

31 Aug 2023arXiv:2308.16475archive 2025-07-28

Yuxuan Hu, Jing Zhang, Zhe Zhao, Chen Zhao, Xiaodong Chen, Cuiping Li, Hong Chen

Structured pruning is a widely used technique for reducing the size of pre-trained language models (PLMs), but current methods often overlook the potential of compressing the hidden dimension (d) in PLMs, a dimension critical to model size and efficiency. This paper introduces a novel structured pruning approach, Structured Pruning with PCA Projection (SP3), targeting the effective reduction of d by projecting features into a space defined by principal components before masking. Extensive experiments on benchmarks (GLUE and SQuAD) show that SP3 can reduce d by 70%, compress 94% of the BERTbase model, maintain over 96% accuracy, and outperform other methods that compress d by 6% in accuracy at the same compression ratio. SP3 has also proven effective with other models, including OPT and Llama. Our data and code are available at an anonymous repo.

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="2308.16475")

Code

Syntology Ran 12 of 14 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · violated contract; 1 ran · our draft was wrong; 9 ran with no contract checked.

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

hyx1999/sp3 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

14 samples harvested; 12 ran; 1 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.

1ran · honoured contract
1ran · violated contract
1ran · our draft was wrong
9ran
2unverified

Licence: 14 of the 14 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 hyx1999/sp3. “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.

acc_and_f1 hyx1999/sp3/bert/metric/glue.py official repository ran no licence file found · pointer only · 454817035cd7e70d · report
exact_match_score hyx1999/sp3/bert/metric/squad.py official repository ran · violated contract fingerprinted no licence file found · pointer only · bf75673211903e14 · report
f1_score hyx1999/sp3/bert/metric/squad.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · cdf4b8c0fec3da02 · report
get_distill_args hyx1999/sp3/bert/pipeline/glue/entry.py official repository ran no licence file found · pointer only · 666b0f418a1cd3e1 · report
get_num_params hyx1999/sp3/bert/pipeline/glue/entry.py official repository ran no licence file found · pointer only · 04c98539fd77722e · report
get_tokens hyx1999/sp3/bert/metric/squad_v2.py official repository ran fingerprinted no licence file found · pointer only · 72ae17e5ad61f6cb · report
make_qid_to_has_ans hyx1999/sp3/bert/metric/squad_v2.py official repository ran no licence file found · pointer only · 41e5ac23be97994b · report
normalize_answer hyx1999/sp3/bert/metric/squad.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · e7e75981cb464788 · report
normalize_answer hyx1999/sp3/bert/metric/squad_v2.py official repository ran fingerprinted no licence file found · pointer only · 2d391d2daa3c57fe · report
pearson_and_spearman hyx1999/sp3/bert/metric/glue.py official repository ran fingerprinted no licence file found · pointer only · e3e13638a674e4b1 · report
sample hyx1999/sp3/bert/modeling/compactor.py official repository ran no licence file found · pointer only · 8c446e6529052aa4 · report
sample hyx1999/sp3/bert/modeling/initializer.py official repository ran fingerprinted no licence file found · pointer only · ee7891c2dca1d285 · report
evaluate hyx1999/sp3/bert/pipeline/glue/perf_entry.py official repository unverified no licence file found · pointer only · 2cab98f6275ec5b6 · report
simple_accuracy hyx1999/sp3/bert/metric/glue.py official repository unverified no licence file found · pointer only · 83eba990d34db6a2 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdafactorAdamAttentionAttention DropoutBERTBPEDense ConnectionsDropoutGated Linear UnitInverse Square Root ScheduleLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionOPTPCAPruningResidual ConnectionSentencePieceSoftmaxT5Weight DecayWordPiece

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