Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a Categorical BDPO (Behavior-Regularized Diffusion Policy Optimization) variant to the codebase, implementing a distributional version of the BDPO algorithm using categorical value distributions (C51-style) with symlog transformation. The implementation follows the structure of the existing BDPO agent but replaces scalar Q-values with categorical distributions for the temporal value function (vt).
Changes:
- Added CategoricalBDPOAgent with categorical value distributions for the temporal critic (vt) while keeping scalar values for q0
- Introduced CategoricalCriticWithDiscreteTime module for time-conditioned categorical value prediction
- Added configuration files and integration into the existing training pipeline
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 14 comments.
Show a summary per file
| File | Description |
|---|---|
flowrl/agent/offline/bdpo/categorical_bdpo.py |
New agent implementation with categorical value distributions, symlog transformation, and C51-style projection |
flowrl/module/critic.py |
Added CategoricalCriticWithDiscreteTime module for time-conditioned categorical predictions |
flowrl/config/offline/algo/categorical_bdpo.py |
Configuration dataclasses for the new algorithm |
flowrl/config/offline/__init__.py |
Registered CategoricalBDPOConfig in the config registry |
flowrl/agent/offline/__init__.py |
Exported CategoricalBDPOAgent for use in training scripts |
examples/offline/main_d4rl.py |
Added categorical_bdpo to supported agents |
examples/offline/config/d4rl/algo/categorical_bdpo.yaml |
Default hyperparameters for D4RL tasks |
scripts/d4rl/categorical_bdpo.sh |
Experiment script with task-specific hyperparameters for D4RL benchmarks |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
typoverflow
reviewed
Feb 22, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.