GEM: Geometric Erasure by Contrastive Velocity Matching in Rectified Flows

A geometric training objective that removes targeted concepts from rectified-flow generators while protecting benign behavior.

Contrastive velocity field
GEM combines a repulsive direction away from the target concept with an attractive direction toward benign generation, then trains the student to follow the resulting velocity field.

01 / Key message

Erase a concept by changing the geometry of the flow field: repel target behavior, attract benign behavior, and leave unrelated generation intact.

02 / Method

How it works

01

Observe the field

A teacher model exposes how the rectified-flow velocity changes with and without the target concept.

02

Contrast directions

Repulsive and attractive velocity signals identify a geometric direction away from the unwanted concept.

03

Match safely

The student follows the corrected velocity field while staying aligned with benign generation.

03 / Abstract

Abstract

Multimodal generators can reproduce harmful, impersonating, or copyrighted concepts. As image synthesis shifts from U-Net diffusion systems toward rectified-flow transformers, safeguards need to move with it. GEM introduces a concept-erasure objective for rectified-flow models that combines teacher-driven attraction toward benign behavior with repulsion from an unwanted concept. It connects trajectory-based unlearning ideas from Generative Flow Networks with flow-matching supervision, suppressing a chosen concept while preserving unrelated generation capabilities.

04 / Contributions

What this adds

  1. 01

    A bridge between paradigms

    Recasts trajectory-level unlearning signals as teacher-guided flow matching, bringing two complementary approaches into one formulation.

  2. 02

    Geometric guidance

    Combines attraction toward benign generation and repulsion from the target concept as a single velocity-space objective.

  3. 03

    Targeted intervention

    Suppresses selected concepts in rectified-flow transformers while retaining the model’s broader generative behavior.

05 / Citation

Citation

Grebe, J. H., Braun, T., Rohrbach, A., & Rohrbach, M. (2026). GEM: Geometric Erasure by Contrastive Velocity Matching in Rectified Flows. Forty-third International Conference on Machine Learning.

BibTeX
@inproceedings{grebe2026gem,
  title     = {{GEM}: Geometric Erasure by Contrastive Velocity Matching in Rectified Flows},
  author    = {Jonas Henry Grebe and Tobias Braun and Anna Rohrbach and Marcus Rohrbach},
  booktitle = {Forty-third International Conference on Machine Learning},
  year      = {2026},
  url       = {https://openreview.net/forum?id=NBMCwxTRSA}
}