YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
LOFT Table 5 ablation — reproduction package (not yet executed)
Target: "Machine Unlearning in Low-Dimensional Feature Subspace", arXiv 2601.22456 v3, Table 5, against author code
fanghenshaometeor/unlearning-feat-subspace
pinned at d91dbd3bbe677536dad8ae5ae3e1991d5ca8150b.
Status: NOT RUN. Job and sandbox creation were refused by the API (HTTP 403) for this
session's billing namespace (Neurips-2026-MLIntern-Repro, role contributor); read-only
calls on the same token succeed. No result below is ours — the only numbers present are the
paper's, quoted for comparison. The scripts here are written and reviewed but never
executed, so treat them as unvalidated.
The claim under test
Joint retained-variance preservation and forgotten-variance suppression improves the source accuracy/forgetting tradeoff compared with either LOFT objective term alone.
Equation (1) of the paper minimises J = J_rm + J_fg with
J_rm = ‖Σ_r − UᵀΣ_rU‖²_F / ‖Σ_r‖²_F (one-shot form of retained-variance preservation) and
J_fg = ‖UᵀΣ_fU‖²_F / ‖Σ_f‖²_F (forgotten-variance suppression); main_subspace.py:112
implements it as J_rm² + J_fg² with equal weights (loss_trace_retain*loss_trace_retain + loss_trace_forget*loss_trace_forget), and models/swin.py:596 initialises U with
nn.init.orthogonal_.
Four arms, differing only in the loss:
| arm | loss |
|---|---|
none |
0 optimisation steps (random orthogonal U, 768×250) |
jfg |
J_fg² |
jrm |
J_rm² |
joint |
J_rm² + J_fg² |
Protocol recovered from paper + code
| ingredient | value |
|---|---|
| data | Tiny-ImageNet, 100k train / 10k val, 200 classes |
| forgotten set | 4 classes (8% of data): {11,83,115,153}, {44,65,150,168}, {53,57,108,179} |
| model | Swin-T, swin_t torchvision IMAGENET1K_V1 init, 20 epochs, AdamW lr 1e-4, wd 0.05, cosine, bs 128, 64×64 |
fpre |
trained on all 100k (paper Table 1: 99.63 / 99.75 / 74.54 / 74.83 / MIA 96.63) |
fexact |
same init and schedule on D_rm only, one per partition (the Avg.G reference) |
| LOFT | one-shot features (768-d, pre-head), s = 250, 50 Riemannian-Adam steps, lr 1, wd 0.05 |
| MIA | RBF SVC C=3, gamma=auto on true-label confidence, 10k retained-train members vs 10k test nonmembers, then the outer 1 − predict(...).mean() → forgotten-member prediction rate |
Avg.G = mean absolute gap of the five metrics (Acc_tr_rm, Acc_tr_fg, Acc_te_rm, Acc_te_fg,
MIA) to fexact, in percentage points.
Paper Table 5 (quoted, not reproduced)
| objective | Acc_tr_rm | Acc_tr_fg | Acc_te_rm | Acc_te_fg | MIA |
|---|---|---|---|---|---|
| None | 97.11 | 98.10 | 71.61 | 65.00 | 86.10 |
| Jfg only | 89.51 | 11.50 | 65.40 | 4.00 | 0.00 |
| Jrm only | 99.19 | 87.80 | 75.07 | 53.00 | 58.35 |
| Jrm + Jfg | 98.66 | 1.10 | 74.27 | 0.00 | 0.00 |
Known gaps in the source material
- The
Nonerow has no definition in the paper, and no code path for it. The loss is hard-wired toJ_rm² + J_fg²; there is no ablation flag in the repo at all. The only reading consistent withNonesitting belowfpre(97.11/98.10/71.61/65.00/86.10 vs 99.63/99.75/74.54/74.83/96.63) is 0 optimisation steps on the random orthogonal init, i.e. a random 250-of-768 subspace projection. This is an inference, and the script prints the arm so the inference can be checked against the row. - No Table 5 repeat or uncertainty definition is supplied. Table 1's ±SD is over the three forgetting partitions; transplanting it into Table 5 is not justified. This package therefore reports per-partition values and a mean±SD over the three partitions, labelled as our repeat unit.
- The authors publish no checkpoints.
fpreand all threefexactmodels must be retrained here; absolute numbers can therefore differ from Table 5 even if the ordering does not, and this package reports our ownfexactas the Avg.G reference. - Feature storage.
extract_featallocates NumPyfloat64: 100000×768×8 B = 614.4 MB decimal (585.9 MiB), not the "~300 MB" the paper states — that figure is the float32 payload (307.2 MB / 292.9 MiB). The script keeps the float64 buffer exactly as the author code does, then stores float32 for reuse, and prints both sizes. - Optimiser.
geoopt==0.5.0from PyPI is used instead of the repo's pinned git commit1542ceed. Both arms share the optimiser, so the comparison is unaffected, but the trajectory may not be byte-identical to the authors'.
How to run
# 1. dependencies (author env: torch 2.5.0+cu124, torchvision 0.20.0, numpy 2.1.2, scikit-learn 1.7.0)
uv run --with torch==2.5.0 --with torchvision==0.20.0 --with numpy==2.1.2 \
--with scikit-learn==1.7.0 --with geoopt==0.5.0 --with pyarrow --with pillow \
--with huggingface_hub --with trackio code/loft_table5.py \
--epochs 20 --steps 50 --s 250 --lr 1 --wd 0.05 \
--seeds 0 1 2 --partition_idx 0 1 2 --n_jobs 10 \
--trackio_space mendoanjoe/loft-table5-ablation-trackio
prepare_data.py must sit at /work/prepare_data.py (the driver writes into /work), or
edit WORK at the top of the driver. Every stage resumes from the Hub repo
(checkpoints/, state/, results/), so a killed run restarts where it stopped.
Estimated cost: four 20-epoch Swin-T trainings at 64 px (paper reports 882 s per training on a 4090, Table 2) plus ~12 min of feature extraction and ~14 RBF-SVC fits — about 2.6 h on one A10G (≈ $4 at $1.50/h), no measurement of our own yet.
Pre-registered decision rule
- Verified if
jointhas lower Avg.G than bothjfgandjrmon every partition, and the balance signature holds:jointkeeps Acc_tr_rm within ~2 points ofjrmwhile driving Acc_tr_fg/MIA down to thejfglevel. - Falsified if either single-term arm reaches lower Avg.G than
jointon a majority of partitions, or ifjointfails to improve the forgetting side relative tojrm. - Inconclusive if our
fpredoes not land near the paper's Table 1 row (which would mean the features Σ_r, Σ_f are computed from a different model than the paper's), or if thenonearm cannot be matched to the published row.
No claim of all-metric superiority or certified forgetting follows from any outcome here.
- Downloads last month
- 23