|
Download README.md from Fareeha20Amir/diffusion-unlearning-interference: direct link, hf CLI and curl.
- Browser
- Download file 5.03 kB
-
https://huggingface.co/spaces/Fareeha20Amir/diffusion-unlearning-interference/resolve/main/README.md
- Command line
-
hf download hf://spaces/Fareeha20Amir/diffusion-unlearning-interference/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Fareeha20Amir/diffusion-unlearning-interference/resolve/main/README.md
5.03 kB
| title: "Is Multi-Concept Interference Schedulable?" | |
| emoji: ♻️ | |
| colorFrom: purple | |
| colorTo: pink | |
| sdk: static | |
| app_file: index.html | |
| pinned: false | |
| # Is Multi-Concept Interference Schedulable? | |
| *Measuring the structure of collateral damage in diffusion unlearning.* | |
| Multi-concept unlearning is limited by interference: removing one concept damages | |
| others. Recent work names conflicting weight updates as the obstacle without | |
| characterising their structure. This asks whether that interference is | |
| schedulable, and finds that three plausible ways to schedule it all fail while a | |
| fourth, simpler structure holds. | |
|  | |
| ## The question | |
| If interference between concepts were predictable, a multi-concept unlearning | |
| system could **schedule** removals to avoid it, which composes with existing | |
| operators rather than competing with them. Prediction needs structure. Three | |
| candidate structures were tested, each with multiple seeds and confidence | |
| intervals, and the bar for a claim was that the intervals be disjoint. | |
| ## What it found | |
| **Three candidate structures fail.** | |
| | candidate structure | result | | |
| |---|---| | |
| | removal **order** matters | mean asymmetry **0.0069**, **0 of 10** pairs significant | | |
| | pixel **similarity** predicts pair damage | **r = −0.356** | | |
| | **representation overlap** predicts it | **r = +0.345** | | |
| | the pair **spread** itself is real | **2 of 45** intervals disjoint, exactly the chance rate at 95% | | |
| The order result is the instructive one. A single run per order reported a mean | |
| asymmetry of 0.0260 and a maximum of 0.0729, and the first draft of this said | |
| "order matters". Repeating each order with three seeds took the mean to 0.0040 | |
| and the maximum to 0.0069, and not one pair came out significant. The asymmetry | |
| was sampling noise in a single draw. | |
| **One structure holds: interference decomposes, mostly additively.** Pair damage | |
| correlates **+0.817** with the sum of the two per-concept costs, so **66.3%** of | |
| apparent interference is plain additive cost. The residual on top is positive in | |
| **10 of 10** pairs, so a genuine interaction term exists but is the smaller part. | |
| If that survives at scale, ranking concepts by removal cost needs **O(n)** | |
| measurements rather than the full O(n²) matrix, which is the practical | |
| consequence worth testing on a real model. | |
| **A fourth claim died under replication.** Per-step weight drift appeared to lead | |
| damage by one step at +0.908 on a single seed. At five seeds it is | |
| **+0.139 ± 0.399**, with seeds spanning −0.404 to +0.775. The related cumulative | |
| drift monitor turned out to be a tautology: a running sum of norms rises by | |
| arithmetic, and its same-step correlation with damage is +0.039. | |
|  | |
| ## Scope | |
| | | | | |
| |---|---| | |
| | **model** | MLP denoiser, DDPM schedule, 8×8 `load_digits`, **not** Stable Diffusion | | |
| | **concepts** | the ten digit classes | | |
| | **replication** | 3 seeds, 95% CIs on every comparison | | |
| | **shows** | interference decomposes mostly additively, and three plausible predictors fail | | |
| | **does not show** | that any of it survives at Stable Diffusion scale, or on semantic rather than class concepts | | |
| ## Honest positioning | |
| **The method is not novel.** Concept redirection is ESD's idea, arrived at | |
| independently here and rediscovered on 8×8 digits. The per-timestep anchoring and | |
| the forget/retain bifurcation are small observations rather than contributions. | |
| Benchmarks already exist, including | |
| [UnlearnCanvas](https://arxiv.org/pdf/2402.11846) and the | |
| [Holistic Unlearning Benchmark](https://arxiv.org/pdf/2410.05664), whose | |
| over-erasure test is this project's retain-score axis. | |
| What the work is good for is the negative results and the decomposition: three | |
| scheduling hypotheses measured and rejected with intervals, and one structure | |
| that survived. | |
| ## Running it | |
| ```bash | |
| pip install numpy torch scikit-learn matplotlib | |
| python experiment.py # redirection vs gradient ascent | |
| python experiment_interference.py # which pairs are expensive together | |
| python experiment_sequential.py # sequential removal and order sweep | |
| python experiment_driftlead.py # multi-seed test of the drift-lead claim | |
| ``` | |
| | script | runtime | outputs | | |
| |---|---|---| | |
| | `experiment.py` | ~5 min | `results.json`, `figure_unlearning.png` | | |
| | `experiment_interference.py` | ~2 min | `results_interference.json`, `figure_interference.png` | | |
| | `experiment_sequential.py` | ~12 min | `results_sequential.json`, `figure_sequential.png` | | |
| | `experiment_driftlead.py` | ~25 min | `results_driftlead.json`, `figure_driftlead.png` | | |
| CPU only, no download, since scikit-learn ships `load_digits`. | |
| ## Full write-up | |
| The complete report, with the sequential-removal results, the bifurcation | |
| analysis and the full error trail, is in **[report.pdf](report.pdf)**. The | |
| architecture diagram is also available as [architecture.pdf](architecture.pdf). The report’s closing section states the limitations of every result in full. | |