SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.05175 · ICML · 2024

Outlier Weighed Layerwise Sparsity (OWL ): A Missing Secret Sauce for Pruning LLMs to High Sparsity

Zhangyang Wang, Cheng-Yu Hsieh, Gen Li, Shiwei Liu, Lu Yin, Mykola Pechenizkiy, Yaqing Wang, Zhenyu Zhang, Ajay Jaiswal, Yi Liang, Michael Bendersky, You Wu, and 1 more

arXiv · PDF · Open in the Atlas

Code that ran

2 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 0 failures of our instrument; 4 no recorded run), 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/2310.05175.json · badge: /api/ran/2310.05175.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
luuyin/owl marked official in Papers with Code
Papers with Code archive
2 ran · 4 no recorded run
FunctionStatusWhere it lives
WrappedGPT Ran
ran on a synthesized input · constructed an object; no result was computed
luuyin/owl/lib/prune_all.py
code served (permissive licence) · get_code("c496051510743116")
How it ran

Ran 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 an instance of its own class, WrappedGPT: the run constructed the object and did not call it, so no result was computed. 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.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a small linear layer that will be wrapped
# The function accesses: layer.weight.device, layer.weight.data.shape
# For nn.Linear, it expects weight to be 2D (out_features, in_features)
linear_layer = nn.Linear(in_features=4, out_features=3, bias=True)

# Verify the layer has the expected attributes
assert hasattr(linear_layer, 'weight')
assert linear_layer.weight.data.shape == torch.Size([3, 4])

ARGS = {
    'layer': linear_layer,
    'layer_id': 0,
    'layer_name': 'linear_layer'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type WrappedGPT — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a WrappedGPT output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
check_outlier_mean Ran
ran, honoured the contract we drafted
luuyin/owl/lib/prune_all.py
code served (permissive licence) · get_code("850653feea44c31d")
How it ran

Ran 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 float, ndim 0, dtype family float, 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.

import torch

torch.manual_seed(0)

# Create a small tensor mask with some values
# The function computes mean(W) * threshold and counts elements above that
mask = torch.tensor([
    [0.1, 0.2, 0.3, 0.4],
    [0.5, 1.0, 2.0, 5.0]
], dtype=torch.float32)

threshold = 2.0

ARGS = {
    "mask": mask,
    "threshold": threshold
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_loaders Not yet run
unverified (harvested, no recorded run)
luuyin/owl/lib/prune_all.py
code served (permissive licence) · get_code("2d4b7e939c6fa46b")
How it ran

no invocation recorded.

prepare_calibration_input Not yet run
unverified (harvested, no recorded run)
luuyin/owl/lib/prune_all.py
code served (permissive licence) · get_code("298323fc64be86fa")
How it ran

no invocation recorded.

prepare_calibration_input_opt Not yet run
unverified (harvested, no recorded run)
luuyin/owl/lib/prune_all.py
code served (permissive licence) · get_code("b604c7050dd74130")
How it ran

no invocation recorded.

prune_wanda_outlier_structure_special Not yet run
unverified (harvested, no recorded run)
luuyin/owl/lib/prune_all.py
code served (permissive licence) · get_code("9f8e6480ac44436c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 2 later) and 3 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_loaders
brick of this paper's assembly: helper
9 other papers
1 dated earlier, 1 the same month, 7 later
2306.11695 (2023-06)
A Simple and Effective Pruning Approach for Large Language Models
2310.01382 (2023-10)
Compressing LLMs: The Truth is Rarely Pure and Never Simple
2311.04902 (2023-11)
Beyond Size: How Gradients Shape Pruning Decisions in Large Language Models
and 6 more not named here
prepare_calibration_input
brick of this paper's assembly: helper
4 other papers
1 dated earlier, 3 later · 1 only as an assembly brick
2306.11695 (2023-06)
A Simple and Effective Pruning Approach for Large Language Models
2401.02938 (2024-01)
Fast and Effective Weight Update for Pruned Large Language Models
2406.02924 (2024-06)
Pruner-Zero: Evolving Symbolic Pruning Metric from scratch for Large Language Models
and 1 more not named here
WrappedGPT
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2306.11695 (2023-06)
A Simple and Effective Pruning Approach for Large Language Models

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

Large Language Models (LLMs), renowned for their remarkable performance across diverse domains, present a challenge when it comes to practical deployment due to their colossal model size. In response to this challenge, efforts have been directed toward the application of traditional network pruning techniques to LLMs, uncovering a massive number of parameters that can be pruned in one-shot without hurting performance. Building upon insights gained from previous work, prevailing LLM pruning strategies have consistently adhered to the practice of uniformly pruning all layers at equivalent sparsity, resulting in robust performance. However, this observation stands in contrast to the prevailing trends observed in the field of vision models, where non-uniform layerwise sparsity typically yields stronger results. To understand the underlying reasons for this disparity, we conduct a comprehensive study and discover a strong correlation with the emergence of activation outliers in LLMs, which are output features exhibiting significantly greater magnitudes compared to their counterparts. Inspired by this finding, we introduce a novel LLM pruning methodology that incorporates a tailored set of non-uniform layerwise sparsity ratios, termed as Outlier Weighed Layerwise sparsity (OWL). The sparsity ratio of OWL is proportional to the outlier ratio observed within each layer, facilitating a more effective alignment between layerwise weight sparsity and outlier ratios. Our empirical evaluation, conducted across the LLaMA-V1

For agents

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

get_harvested_code_for_paper("2310.05175")
get_code_for_paper("2310.05175")
have("2310.05175")

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

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

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

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

Connect an agent — have() is free.