|
--- |
|
license: mit |
|
size_categories: |
|
- 10K<n<100K |
|
--- |
|
Dataset for the evaluation of data-unlearning techniques using KLOM (KL-divergence of Margins). |
|
|
|
# How KLOM works: |
|
KLOM works by: |
|
1. training N models (original models) |
|
2. Training N fully-retrained models (oracles) on forget set F |
|
3. unlearning forget set F from the original models |
|
4. Comparing the outputs of the unlearned models from the retrained models on different points |
|
(specifically, computing the KL divergence between the distribution of _margins_ of oracle models and distribution of _margins_ of the unlearned models) |
|
|
|
Originally proposed in the work Attribute-to-Delete: Machine Unlearning via Datamodel Matching (https://arxiv.org/abs/2410.23232), described in detail in E.1. |
|
|
|
**Outline of how KLOM works:** |
|
 |
|
|
|
|
|
**Algorithm Description:** |
|
 |
|
|
|
# Structure of Data |
|
|
|
The overal structure is as follows: |
|
``` |
|
full_models |
|
βββ CIFAR10 |
|
βββ CIFAR10_augmented |
|
βββ LIVING17 |
|
oracles |
|
βββ CIFAR10 |
|
βββ forget_set_1 |
|
βββ forget_set_2 |
|
βββ forget_set_3 |
|
βββ forget_set_4 |
|
βββ forget_set_5 |
|
βββ forget_set_6 |
|
βββ forget_set_7 |
|
βββ forget_set_8 |
|
βββ forget_set_9 |
|
βββ forget_set_10 |
|
``` |
|
Each folder has |
|
|
|
* train_logits_##.pt - logits at the end of training for model `##` for validation points |
|
* val_logits_##.pt - logits at the end of training for model `##` for train points |
|
* `##__val_margins_#.npy` - margins of model `##` at epoch `#` (this is derived from logits) |
|
* `sd_##____epoch_#.pt` - model `##` checkpoint at epoch `#` |
|
|
|
|
|
# How to download |
|
|
|
|
|
|
|
Create script `download_folder.sh` |
|
|
|
``` |
|
#!/bin/bash |
|
REPO_URL=https://huggingface.co/datasets/royrin/KLOM-models |
|
TARGET_DIR=KLOM-models # name it what you wish |
|
FOLDER=$1 # e.g., "oracles/CIFAR10/forget_set_3" |
|
|
|
mkdir -p $TARGET_DIR |
|
|
|
git clone --filter=blob:none --no-checkout $REPO_URL $TARGET_DIR |
|
cd $TARGET_DIR |
|
git sparse-checkout init --cone |
|
git sparse-checkout set $FOLDER |
|
git checkout main |
|
``` |
|
|
|
Example how to run script: |
|
``` |
|
bash download_folder.sh oracles/CIFAR10/forget_set_3 |
|
``` |
|
|
|
|
|
|