Skip to content

Generating Graphs for a Reason: Explanation-Conditioned Adapters for Discrete Flow Matching

Jonas Teufel Clemens Binz Pascal Friederich
Nov 2026
Artificial Intelligence Machine Learning

Abstract

Generative models based on discrete flow matching can now efficiently produce molecular graphs for a specified target property. The properties of a graph often result from particular structural motifs within it. However, since different motifs can lead to the same property value, conditioning on the value alone offers no control over which of them a generated graph contains. For predictive models, such motifs can be identified using methods from explainable artificial intelligence (XAI), a field that aims to explain why a model makes a given prediction. In this work, we use the explanations of a self-explaining graph neural network to inform the generation, so that a graph can be requested not only for a target property value but also for the structural concept through which it reaches that value. For this purpose, we propose an adapter-based approach, in which a pretrained discrete flow matching model is kept frozen and receives the property and the concept through separate trainable adapters. New conditions can thereby be added to the same pretrained generator at the cost of training one adapter each. To satisfy both conditions at once, we additionally apply Feynman-Kac steering, which discards unpromising candidates during generation. On a synthetic dataset with known structure-property relationships, the adapters and steering together raise the share of generated graphs that satisfy both conditions from 4% for the unconditional base model to 54%. We believe that our approach extends the role of explanations from interpreting predictive models to controlling generative ones, making it possible to generate graphs that exhibit a target property for a known structural reason.

View source

Similar papers

#artificial intelligence Preprint Jul 2024

The Llama 3 Herd of Models

It is found that Llama 3 delivers comparable quality to leading language models such as GPT-4 on a plethora of tasks, and performs competitively with the state-of-the-art on image, video, and speech recognition tasks.

Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri et al. · 21,082 citations · ⚡3,832
#artificial intelligence Conference Open access Jun 2018

Gibson Env: Real-World Perception for Embodied Agents

This paper investigates developing real-world perception for active agents, proposes Gibson Environment for this purpose, and showcases a set of perceptual tasks learned therein.

F. Xia, Amir Zamir, Zhi-Yang He et al. · 1,069 citations · ⚡112
#machine learning Review Open access Oct 2014

Software development in startup companies: A systematic mapping study

The results indicate that software engineering work practices are chosen opportunistically, adapted and configured to provide value under the constrains imposed by the startup context.

Nicolò Paternoster, Carmine Giardino, M. Unterkalmsteiner et al. · 394 citations · ⚡54

Diffusion models as plug-and-play priors

The possibility of inferring high-dimensional data inference in a model that consists of a prior and an auxiliary differentiable constraint given some additional information is considered, thereby allowing a range of potential applications in adapting models to new domains and tasks.

Alexandros Graikos, Esmeralda S. Whitammer, N. Jojic et al. · 316 citations · ⚡15

Trajectory Balance: Improved Credit Assignment in GFlowNets

It is proved that any global minimizer of the trajectory balance objective can define a policy that samples exactly from the target distribution, and empirically demonstrate the benefits of the trajectories balance objective for GFlowNet convergence, diversity of generated samples, and robustness to long action sequenc...

Esmeralda S. Whitammer, Moksh Jain, Emmanuel Bengio et al. · 302 citations · ⚡60
#artificial intelligence Open access May 2023

Evaluating the Performance of Large Language Models on GAOKAO Benchmark

GAOKAO-Bench is introduced, an intuitive benchmark that employs questions from the Chinese GAOKAO examination as test samples, including both subjective and objective questions that contribute a robust evaluation benchmark for future large language models and offers valuable insights into the advantages and limitations...

Xiaotian Zhang, Chun-yan Li, Yi Zong et al. · 216 citations · ⚡17

Related blog posts

MIT News · Artificial Intelligence Sep 29, 2026

Who we become when we talk to machines

Professor Sherry Turkle’s new book, “Artificial Intimacy,” offers a withering critique of chatbots and the antisocial dynamics she believes they encourage.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.