Fareeha20Amir's picture
Static site: report, figures and sources
5040f3f verified
Raw History Blame Contribute Delete
8.87 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Is Multi-Concept Interference Schedulable? · Research Projects</title>
<meta name="description" content="Measuring the structure of collateral damage in diffusion unlearning.">
<link rel="stylesheet" href="assets/style.css">
<link rel="stylesheet" href="assets/demo.css">
</head>
<body style="--accent:var(--ink-b)">
<div class="topbar"><div class="topbar-inner">
<a class="back" href="../">← All projects</a>
<nav></nav>
</div></div>
<div class="container hero">
<h1>Is Multi-Concept Interference Schedulable?</h1>
<p class="lede">Measuring the structure of collateral damage in diffusion unlearning.</p>
<div class="downloads"><a class="dl-btn" href="report.pdf">Full report (PDF)</a><a class="dl-btn" href="architecture.pdf">Architecture diagram (PDF)</a><a class="dl-btn" href="README.md">Raw README (Markdown)</a></div>
</div>
<div class="container">
<div id="demo"><div class="boot"><span class="dot"></span><span>Starting
Python in your browser &hellip;</span></div></div>
<p class="demo-note">Everything above runs locally in this tab, on the
project's own <code>experiment.py</code> &mdash; no server, and nothing
precomputed. The first visit downloads a Python runtime, so give it a
moment.</p>
<details class="more">
<summary>Full write-up, result figures and method</summary>
<div class="container content"><p>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.</p>
<p><img src="architecture.png" alt="Architecture diagram" loading="lazy"></p>
<h3 id="the-question">The question</h3>
<p>If interference between concepts were predictable, a multi-concept unlearning system could <strong>schedule</strong> 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.</p>
<h3 id="what-it-found">What it found</h3>
<p><strong>Three candidate structures fail.</strong></p>
<div class="table-wrap"><table><thead><tr><th>candidate structure</th><th>result</th></tr></thead><tbody><tr><td>removal <strong>order</strong> matters</td><td>mean asymmetry <strong>0.0069</strong>, <strong>0 of 10</strong> pairs significant</td></tr><tr><td>pixel <strong>similarity</strong> predicts pair damage</td><td><strong>r = −0.356</strong></td></tr><tr><td><strong>representation overlap</strong> predicts it</td><td><strong>r = +0.345</strong></td></tr><tr><td>the pair <strong>spread</strong> itself is real</td><td><strong>2 of 45</strong> intervals disjoint, exactly the chance rate at 95%</td></tr></tbody></table></div>
<p>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.</p>
<p><strong>One structure holds: interference decomposes, mostly additively.</strong> Pair damage correlates <strong>+0.817</strong> with the sum of the two per-concept costs, so <strong>66.3%</strong> of apparent interference is plain additive cost. The residual on top is positive in <strong>10 of 10</strong> pairs, so a genuine interaction term exists but is the smaller part.</p>
<p>If that survives at scale, ranking concepts by removal cost needs <strong>O(n)</strong> measurements rather than the full O(n²) matrix, which is the practical consequence worth testing on a real model.</p>
<p><strong>A fourth claim died under replication.</strong> Per-step weight drift appeared to lead damage by one step at +0.908 on a single seed. At five seeds it is <strong>+0.139 ± 0.399</strong>, 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.</p>
<p><img src="figure_interference.png" alt="Interference decomposition" loading="lazy"></p>
<h3 id="scope">Scope</h3>
<div class="table-wrap"><table><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><strong>model</strong></td><td>MLP denoiser, DDPM schedule, 8×8 <code>load_digits</code>, <strong>not</strong> Stable Diffusion</td></tr><tr><td><strong>concepts</strong></td><td>the ten digit classes</td></tr><tr><td><strong>replication</strong></td><td>3 seeds, 95% CIs on every comparison</td></tr><tr><td><strong>shows</strong></td><td>interference decomposes mostly additively, and three plausible predictors fail</td></tr><tr><td><strong>does not show</strong></td><td>that any of it survives at Stable Diffusion scale, or on semantic rather than class concepts</td></tr></tbody></table></div>
<h3 id="honest-positioning">Honest positioning</h3>
<p><strong>The method is not novel.</strong> 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 <a href="https://arxiv.org/pdf/2402.11846" target="_blank" rel="noopener">UnlearnCanvas</a> and the <a href="https://arxiv.org/pdf/2410.05664" target="_blank" rel="noopener">Holistic Unlearning Benchmark</a>, whose over-erasure test is this project's retain-score axis.</p>
<p>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.</p>
<h3 id="running-it">Running it</h3>
<pre><code>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</code></pre>
<div class="table-wrap"><table><thead><tr><th>script</th><th>runtime</th><th>outputs</th></tr></thead><tbody><tr><td><code>experiment.py</code></td><td>~5 min</td><td><code>results.json</code>, <code>figure_unlearning.png</code></td></tr><tr><td><code>experiment_interference.py</code></td><td>~2 min</td><td><code>results_interference.json</code>, <code>figure_interference.png</code></td></tr><tr><td><code>experiment_sequential.py</code></td><td>~12 min</td><td><code>results_sequential.json</code>, <code>figure_sequential.png</code></td></tr><tr><td><code>experiment_driftlead.py</code></td><td>~25 min</td><td><code>results_driftlead.json</code>, <code>figure_driftlead.png</code></td></tr></tbody></table></div>
<p>CPU only, no download, since scikit-learn ships <code>load_digits</code>.</p>
<h3 id="full-write-up">Full write-up</h3>
<p>The complete report, with the sequential-removal results, the bifurcation analysis and the full error trail, is in <strong><a href="report.pdf">report.pdf</a></strong>. The architecture diagram is also available as <a href="architecture.pdf">architecture.pdf</a>. The report’s closing section states the limitations of every result in full.</p><h2 id="result-figures">Result figures</h2><p>Plots produced by the experiment scripts in this folder, referenced from the full report.</p><div class="figs"><figure class="fig-card"><img src="figure_driftlead.png" alt="Driftlead" loading="lazy"><figcaption>Driftlead</figcaption></figure><figure class="fig-card"><img src="figure_interference.png" alt="Interference" loading="lazy"><figcaption>Interference</figcaption></figure><figure class="fig-card"><img src="figure_sequential.png" alt="Sequential" loading="lazy"><figcaption>Sequential</figcaption></figure><figure class="fig-card"><img src="figure_unlearning.png" alt="Unlearning" loading="lazy"><figcaption>Unlearning</figcaption></figure></div></div>
</details>
</div>
<footer><div class="container">
Nine research projects &middot; built as static pages from each project's README.
</div></footer>
<script src="https://cdn.jsdelivr.net/pyodide/v0.28.0/full/pyodide.js"></script>
<script src="assets/demo.js"></script>
<script>
startDemo({
target: "demo",
packages: ["numpy", "matplotlib", "scikit-learn"],
files: ["demo_kit.py", "demo_core.py", "unlearn_np.py"],
binaries: ["weights.npz"]
});
</script>
</body>
</html>