Skip to content

update cluster experiments, dataloaders and pruning strategies for vision nets#128

Merged
houman1359 merged 35 commits intodevelopfrom
iss120_hs
Feb 18, 2026
Merged

update cluster experiments, dataloaders and pruning strategies for vision nets#128
houman1359 merged 35 commits intodevelopfrom
iss120_hs

Conversation

@houman1359
Copy link
Copy Markdown
Collaborator

Description

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation

Testing

  • Tests pass locally
  • New tests added (if applicable)

Related Issues

Closes #

audrey-tan and others added 30 commits January 18, 2026 11:04
The previous commit added supernode protection logic that uses
PruningConfig but missed the import statement. This fixes it.
Supernode (activation outlier) protection is an LLM-specific phenomenon
in FFN layers and does not apply to vision models like ResNet18.

These configs were added by mistake when extending LLM experiments.

Removed:
- configs/paper/resnet18_cifar100_supernode_actSN_50_90.yaml
- configs/paper/resnet18_cifar100_supernode_lpSN_50_90.yaml
- drafts/LLM_prune/paper/scripts/aggregate_cifar100_supernode_def_sweep_50_90.py
Added two new methods to LLMAlignmentExperiment for paper experiments:

1. compute_mean_replacement_control(): Tests supernode importance by
   replacing LP/activation supernodes with mean values and measuring
   loss impact. Includes random replacement controls.

2. compute_lp_activation_analysis(): Computes LP vs activation correlation
   by percentile and supernode Jaccard overlap. This replaces manual
   computation in paper scripts.

These methods allow paper scripts to use the alignment codebase
instead of reimplementing SCAR metric computations directly.
- Added taylor_act_samples config option (base.py)
- Added _compute_taylor_act_channel_scores() for Molchanov-style
  activation-based Taylor pruning (cluster_experiments.py)
- Added taylor_act_* method name support (metric_based.py)

This extends the weight-based Taylor baseline with an activation-based
variant (|a * dL/da|) which is more aligned with the original
Taylor channel pruning paper.
@houman1359 houman1359 merged commit 32ad292 into develop Feb 18, 2026
3 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants