Manuscript Offprint

arXiv:2608.25163

Bayesian Flow Networks for Offline Trajectory Planning

Ludvig Killingberg, Helge Langseth

ABSTRACT

Offline reinforcement learning (RL) leverages static datasets to learn decision policies without real-time environment interaction. While recent sequence-modeling approaches rely on continuous diffusion models for trajectory synthesis, applying these methods to discrete planning tasks requires a categorical formulation rather than the standard Gaussian construction. We present BFN-RL, a unified generative modeling framework for offline RL based on Bayesian Flow Networks (BFNs). By iteratively evolving distribution parameters rather than noisy data instances, BFN-RL natively models both discrete and continuous trajectory spaces within a single probabilistic formulation. The categorical planner generates future state sequences, and a learned inverse-dynamics model converts consecutive generated states into actions. Evaluations in discrete planning and continuous control show that BFN-RL can generate effective trajectories across both categorical and continuous state spaces. Our results establish BFNs as a versatile generative foundation for offline trajectory planning across data modalities.

1 Introduction

Offline reinforcement learning (RL) [Sutton and Barto, 2018, Levine et al., 2020] is a powerful paradigm that leverages static, previously collected datasets to learn effective decision policies without requiring real-time environment interaction. By eliminating the safety hazards associated with online exploration, offline RL is particularly suited for high-risk domains such as autonomous driving and medical decision-making. In recent years, framing offline RL as a conditional sequence-modeling task [Janner et al., 2021, Chen et al., 2021] has emerged as a compelling alternative to traditional value-based methods, which frequently suffer from value overestimation on out-of-distribution state-action pairs [Agarwal et al., 2020, Levine et al., 2020]. By viewing trajectory generation through the lens of conditional generative modeling, sequence-based agents synthesize high-return trajectories by capturing complex temporal dependencies across long horizons [Janner et al., 2022, Ajay et al., 2023].

Despite their empirical success, contemporary sequence-modeling approaches rely almost exclusively on Gaussian Denoising Diffusion Probabilistic Models (DDPMs) [Ho et al., 2020, Janner et al., 2022, Ajay et al., 2023]. While diffusion models excel in continuous control domains, discrete states and actions require a categorical formulation rather than the standard Gaussian construction [Austin et al., 2021, Lou et al., 2023]. This motivates studying a generative framework that handles both data types natively.

To address this limitation, we present BFN-RL, an offline reinforcement learning framework grounded in Bayesian Flow Networks (BFNs) [Graves et al., 2023]. Unlike diffusion models that iteratively denoise corrupted data instances, BFNs operate by updating the parameters of an input distribution via Bayesian inference driven by continuous-time parameter flows [Graves et al., 2023]. This formulation yields a unified generative paradigm that natively handles categorical, continuous, and discretized variables within the same probabilistic framework.

Our main contributions are summarized as follows:

PREPRINT

• Unified Generative Planning Framework: We introduce BFN-RL, establishing a parameter-flow paradigm for offline sequence modeling that operates seamlessly across both discrete and continuous state-action spaces [Graves et al., 2023].

• Categorical Trajectory Planning: We combine a categorical BFN state-sequence model with learned inverse dynamics to obtain a discrete planner.

• Cross-Domain Evaluation: We demonstrate that the same BFN planning formulation is viable in both discrete and continuous control problems.

References (22)