Per-Tenant Concept Revocation at Constant Sampling Cost

A diffusion model generates an image by starting from random noise and denoising it over tens of sequential network passes. Suppose a single hosted text-to-image model serves many customers, and each customer holds different rights: one may render a licensed character, another has had that right withdrawn. Today there are three options. Existing concept-erasure methods edit the model's weights, which removes the concept for every customer at once. The operator could instead keep a separate edited model for each customer. Or it could check permissions on every sampling step, which multiplies whatever the check costs by the number of steps. We propose a fourth option. Each customer's revocation set is compiled into a small, closed-form edit of the projections that read the text prompt inside the model's cross-attention layers. Those projections consume only the prompt, which does not change between denoising steps. The per-customer work is therefore done once per request and cached, the shared network weights never change, and customers with different permissions can sit in the same batch.

The contribution borrows from the cryptographic access-control literature the discipline of accounting for revocation overhead: what a revocation costs when it happens, what it costs per user in storage, and what it adds to every later access. We apply that accounting to diffusion sampling, where any per-step enforcement cost is multiplied by the step count $T$. The claim is that revocation can be made to cost $O(1)$ per request in $T$, compiled lazily, and shared across users. The claim is tested against the simpler alternatives a skeptic would reach for first, including server-side negative prompts, which we treat as a serious competitor.

Core Claim

In a latent diffusion model with cross-attention, the key and value projections applied to the prompt embedding $E$ produce $K = W_k E$ and $V = W_v E$. These are identical at every denoising step. We replace them, for tenant $u$, with $K_u = A_u W_k E$ and $V_u = B_u W_v E$. Here $A_u$ and $B_u$ are closed-form edits that redirect the tenant's revoked concepts toward anchor concepts.

The per-request cost then has the form

$$C_{\text{ours}} = T\,c_{\text{base}} + c_{\text{edit}}, \qquad C_{\text{per-step}} = T\,(c_{\text{base}} + c_{\text{check}}),$$

where $c_{\text{base}}$ is one shared network pass, $c_{\text{edit}}$ is a one-time transformation of the cached keys and values, and $c_{\text{check}}$ is any enforcement repeated at each step. The shared weights are untouched, so a batch can mix tenants with different permissions at no extra cost beyond holding a few extra key/value tensors.

A second, testable ingredient is a timestep window. The edited keys and values are used only inside the window in which a concept's content forms, and the original ones are used outside it. This follows the finding of SDErasure that concepts resolve during characteristic intervals of the reverse process, and that editing outside them causes collateral damage. Switching between two cached tensor sets keeps the cost independent of $T$.

We are explicit about the threat model. The server operator is trusted and enforces policy against tenants who may write adversarial prompts. We do not claim cryptographic enforcement against an untrusted host. The file's own evidence shows such enforcement is currently out of reach for diffusion: running diffusion inside secure multi-party computation still takes "thousands of seconds per step" even with the loose approximations of Secure Inference for Diffusion Models via Unconditional Scores.

Relation to Prior Work

Two concept-erasure papers supply the method and motivate the gap. Orthogonal Concept Erasure rotates weight matrices with a closed-form Procrustes solution and erases 100 concepts in 4.3 seconds while keeping non-target behavior intact. Its edit is global and permanent, so one checkpoint cannot hold different permissions for different users. SDErasure localizes erasure in time, but it fine-tunes for about 20 minutes per concept, which is an eager, expensive revocation. We take OCE's closed-form machinery and SDErasure's temporal localization. We move both out of the shared weights and into a per-request transformation of cached prompt features, which neither paper does.

The revocation literature supplies the cost model and three design patterns. The first is lazy revocation. Secure Key-Updating for Lazy Revocation and Distributed security storage model for large-scale data defer expensive work until data is next touched. Our analogue is to compile a tenant's edit on that tenant's next request and cache it by revocation set, so tenants with identical sets share one compiled edit.

The second is mediator-based revocation. In Fully Secure CP-ABE with Security Mediator, a mediator refuses to help revoked users without rekeying anyone else. The per-tenant edit plays this role: revoking one tenant changes nothing for the others.

The third is a negative result that constrains us. Kim shows that direct revocation lists grow with the cumulative number of revocations, and proposes periodic epoch resets. We expect the analogous failure: stacking many revoked concepts into one edit should gradually damage unrelated generation. We will measure that curve rather than assume it away, and we will test epoch-style recompilation as the remedy.

Lazy Diffusion Transformer is the closest architectural precedent. It runs a context encoder once and confines the repeated per-step work to a small region. We apply the same "run once, reuse across steps" logic to the permission-dependent part of the computation, not to image space.

Research Program

The work has three parts.

The first part is the compiler. It takes a tenant's revocation set and a set of anchor concepts and solves for $A_u$ and $B_u$. We use two variants. One is a rotation in the style of OCE, restricted to the prompt-side projections. The other is a least-squares map that sends revoked concept embeddings to their anchors while pinning a preservation set of ordinary prompts. For each revoked concept, a windowing module estimates the timestep interval, using a separability score in the manner of SDErasure.

The second part is the serving layer. It caches compiled edits keyed by the hash of each revocation set, compiles lazily on a cache miss, and batches mixed-tenant requests over shared weights.

The third part is an analysis of how the approach degrades. We will study quality as a function of the number of revoked concepts, measure how often edits must be recompiled under realistic churn, and test whether edits composed from per-concept pieces stay close to jointly compiled ones.

The central scientific risk is specific. The text-side projections may not hold enough of a concept for erasure to survive adversarial prompts, because concept information could leak through self-attention or through the pooled text embedding. Our experiments are designed to expose this if it happens.

Baselines

The naive reference point is a shared model with no enforcement. It sets the quality ceiling and the latency floor, and every method's slowdown and quality loss is reported relative to it.

The strongest existing method is OCE (Orthogonal Concept Erasure) deployed per tenant. Each distinct revocation set gets its own OCE-edited copy of the affected weights, and requests are routed to the matching copy. It is the strongest competitor because it has the best reported speed-quality combination for closed-form erasure: 4.3 seconds for 100 concepts on an A100, with 98.68% non-target accuracy retained on CIFAR-10. We run it on the same base model, the same concept sets and anchors, and the same preservation prompts, and we give it the same hyperparameter search budget as our compiler. To beat it, our method must match its erasure and retention quality within confidence intervals while clearly reducing per-tenant storage and improving throughput on mixed-tenant batches, where OCE copies force weight swaps or split batches.

We also include SDErasure (SDErasure) per tenant as the fine-tuning reference. It reports a CIFAR-10 FID improvement from 9.51 to 6.74 and roughly 20 minutes per concept on an RTX 4090. It sets the quality bar for temporally localized erasure and represents the eager-revocation cost we aim to eliminate.

The operational baselines are a gateway filter, which rejects prompts that match revoked concepts and then runs an output classifier, and server-side negative prompts, described below. The key ablations isolate our ingredients one at a time. We apply the same edit at all steps instead of within the window. We apply edited weights to the full cross-attention stack instead of to cached prompt features, which tests whether the text-side restriction costs erasure strength. We compile eagerly instead of lazily.

Why not just…?

Why not just put negative prompts for the revoked concepts in each tenant's unconditional branch? This is the most serious threat. It costs nothing extra per step, since it replaces the empty prompt in classifier-free guidance, it needs no compilation, and it is naturally per-tenant. We found no reported result on Lacuna for negative-prompt concept revocation on I2P or celebrity benchmarks, so we cannot dismiss it on evidence. We have two reasons to expect it to fall short. It shares a fixed-length text context, so it should degrade as the revoked set grows. And it only pushes guidance away from the concept rather than remapping the concept's representation, so paraphrased prompts may survive. The scaling experiment below settles this directly. If negative prompts match our erasure and retention at 1, 10, and 100 revoked concepts under adversarial prompts, the compiled edit is not worth its complexity, and we will say so.

Why not just filter prompts and outputs at the gateway? Filtering is cheap and is the right first line of defense. However, both erasure papers evaluate on adversarial I2P prompts precisely because keyword filters are evaded by indirect phrasing (OCE, SDErasure). An output classifier also only acts after all $T$ steps have been paid for, and every rejected generation is wasted. We report both attack success rate and wasted compute per rejected request.

Why not just keep a LoRA adapter or OCE-edited weights for each tenant? Storage is manageable if edits touch only a few layers. The real cost is batching: requests with different weights cannot share one forward pass without per-request weight handling at every step, which brings back the $T$-fold multiplier. The per-tenant OCE baseline measures exactly this, and if its mixed-batch throughput turns out to be close to ours, our systems claim fails.

Proposed Experiments

We use a public cross-attention latent diffusion model. Erasure quality is measured on the celebrity-identity and I2P settings and on CIFAR-10 target and non-target accuracy, following OCE and SDErasure. General quality is measured by FID and CLIP score on MSCOCO-30k. For reference, Secure Inference for Diffusion Models via Unconditional Scores reports a precise-operation FID of 13.28, a figure we cite as context rather than as a comparable baseline.

Revocation overhead gets its own metrics, drawn from the cryptographic accounting. We measure time from a revocation event until it takes effect, one-time compile cost, per-tenant storage, added per-request latency as a function of $T$ from 20 to 50 steps, and throughput for batches that mix 1, 8, and 64 distinct permission sets. Tenant churn is simulated with synthetic revocation traces, and we vary the churn rate.

The first decisive check is whether added latency stays flat as $T$ grows for our method while it grows linearly for per-step enforcement.

The second is whether erasure strength under adversarial I2P-style prompts is preserved when edits are confined to cached prompt features. We compare against full cross-attention edits and against negative prompts.

The third is a damage curve: non-target FID and accuracy as the revoked set grows from 1 to 100 concepts. We test whether periodic recompilation, the analogue of Kim's epoch reset, flattens it.

The fourth is whether the timestep window reduces collateral damage at equal erasure, as SDErasure's findings predict.

If the second check fails, meaning text-side edits leak concepts that full-weight edits catch, the paper's conclusion becomes a negative but useful one. Per-tenant revocation at constant sampling cost would then require edits deeper in the network, with the batching costs we quantify.