SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.01365 · 2024

Prompt-prompted Adaptive Structured Pruning for Efficient LLM Generation

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 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; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 8 failures of our instrument; 1 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-23; 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/2404.01365.json · badge: /api/ran/2404.01365.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
hdong920/griffin canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
FunctionStatusWhere it lives
mean Ran
ran, violated the contract we drafted
hdong920/griffin/src/lm_eval/metrics.py
pointer only (licence: NONE) · get_code("0928f497e20fb443")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hdong920/griffin 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.

escaped_split Ran
ran; our contract draft was wrong, not the code
hdong920/griffin/src/lm_eval/utils.py
pointer only (licence: NONE) · get_code("57e732507bad40db")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hdong920/griffin 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.

group Ran
ran; our contract draft was wrong, not the code
hdong920/griffin/src/lm_eval/utils.py
pointer only (licence: NONE) · get_code("359c35fdcd7a0ee5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hdong920/griffin 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.

hash_args Ran
ran; our contract draft was wrong, not the code
hdong920/griffin/src/lm_eval/base.py
pointer only (licence: NONE); the stored copy get_code serves, from opengvlab/videochat-r1, is pointer only (licence: NONE) · get_code("ea06eaae4fc1eaf0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hdong920/griffin 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.

json_serial Ran
ran; our contract draft was wrong, not the code
hdong920/griffin/src/lm_eval/decontamination/archiver.py
pointer only (licence: NONE) · get_code("d3ade8d49512a76b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hdong920/griffin 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.

pop_stddev Ran
ran; our contract draft was wrong, not the code
hdong920/griffin/src/lm_eval/metrics.py
pointer only (licence: NONE); the stored copy get_code serves, from MrGGLS/BlockPruner, is pointer only (licence: NONE) · get_code("518b2201c66c2ad3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hdong920/griffin 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.

sample_stddev Ran
ran; our contract draft was wrong, not the code
hdong920/griffin/src/lm_eval/metrics.py
pointer only (licence: NONE) · get_code("d40f0123e8a8f5c0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hdong920/griffin 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.

select_neurons Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hdong920/griffin/src/griffin/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from infini-ai-lab/sirius, is pointer only (licence: NONE) · get_code("84f1aef48d28008a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hdong920/griffin 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.

simple_parse_args_string Ran
ran; our contract draft was wrong, not the code
hdong920/griffin/src/lm_eval/utils.py
pointer only (licence: NONE) · get_code("cd999ad59caf84a7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hdong920/griffin 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.

make_table Not yet run
unverified (harvested, no recorded run)
hdong920/griffin/src/lm_eval/evaluator.py
pointer only (licence: NONE); the stored copy get_code serves, from princeton-nlp/QuRating, is pointer only (licence: NONE) · get_code("9d95c14130837ee4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hdong920/griffin 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 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 10 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 0 the same month, 8 later) and 0 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
hash_args 44 other papers
10 dated earlier, 32 later, 1 same year, order not determinable, 1 undated
2005.14165 (2020-05)
Language Models are Few-Shot Learners
2110.04374 (2021-10)
A Few More Examples May Be Worth Billions of Parameters
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
and 41 more not named here
mean 12 other papers
9 dated earlier, 3 later
2110.04374 (2021-10)
A Few More Examples May Be Worth Billions of Parameters
2212.11702 (2022-12)
Robust Meta-Representation Learning via Global Label Inference and Classification
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
and 9 more not named here
escaped_split 9 other papers
6 dated earlier, 3 later
2005.14165 (2020-05)
Language Models are Few-Shot Learners
2305.14493 (2023-05)
Do prompt positions really matter?
2307.16039 (2023-07)
Okapi: Instruction-tuned Large Language Models in Multiple Languages with Reinforcement Learning from Human Feedback
and 6 more not named here
make_table 9 other papers
8 dated earlier, 1 later
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
2305.14493 (2023-05)
Do prompt positions really matter?
2307.16039 (2023-07)
Okapi: Instruction-tuned Large Language Models in Multiple Languages with Reinforcement Learning from Human Feedback
and 6 more not named here
pop_stddev 9 other papers
6 dated earlier, 3 later
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
2305.14493 (2023-05)
Do prompt positions really matter?
2307.16039 (2023-07)
Okapi: Instruction-tuned Large Language Models in Multiple Languages with Reinforcement Learning from Human Feedback
and 6 more not named here
sample_stddev 9 other papers
7 dated earlier, 2 later
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
2305.14493 (2023-05)
Do prompt positions really matter?
2306.09200 (2023-06)
ChessGPT: Bridging Policy Learning and Language Modeling
and 6 more not named here
group 8 other papers
7 dated earlier, 1 later
2110.04374 (2021-10)
A Few More Examples May Be Worth Billions of Parameters
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
2305.14493 (2023-05)
Do prompt positions really matter?
and 5 more not named here
simple_parse_args_string 5 other papers
5 dated earlier
2305.14493 (2023-05)
Do prompt positions really matter?
2307.16039 (2023-07)
Okapi: Instruction-tuned Large Language Models in Multiple Languages with Reinforcement Learning from Human Feedback
2310.05620 (2023-10)
LAiW: A Chinese Legal Large Language Models Benchmark
and 2 more not named here
json_serial 1 other paper
1 dated earlier
2307.16039 (2023-07)
Okapi: Instruction-tuned Large Language Models in Multiple Languages with Reinforcement Learning from Human Feedback
select_neurons 1 other paper
1 later
2409.03856 (2024-09)
Sirius: Contextual Sparsity with Correction for Efficient LLMs

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

Repositories linked to this paper

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

Abstract

With the development of transformer-based large language models (LLMs), they have been applied to many fields due to their remarkable utility, but this comes at a considerable computational cost at deployment. Fortunately, some methods such as pruning or constructing a mixture of experts (MoE) aim at exploiting sparsity in transformer feedforward (FF) blocks to gain boosts in speed and reduction in memory requirements. However, these techniques can be very costly and inflexible in practice, as they often require training or are restricted to specific types of architectures. To address this, we introduce GRIFFIN, a novel training-free and calibration-free method that selects unique FF experts at the sequence level for efficient generation across a plethora of LLMs with different non-ReLU activation functions. This is possible due to a critical observation that many trained LLMs naturally produce highly structured FF activation patterns within a sequence, which we call flocking. Despite our method's simplicity, we show with 50% of the FF parameters, GRIFFIN maintains the original model's performance with little to no degradation on a variety of classification and generation tasks, all while improving latency (e.g. 1.29$\times$ and 1.25$\times$ speed-ups in Gemma 7B and Llama 2 13B, respectively, on an NVIDIA L40). Code is available at https://github.com/hdong920/GRIFFIN.

For agents

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

get_harvested_code_for_paper("2404.01365")
get_code_for_paper("2404.01365")
have("2404.01365")

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

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

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

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

Connect an agent — have() is free.