DiPRL: Learning Discrete Programmatic Policies via Architecture Entropy Regularization

Chengpeng Hu, Yingqian Zhang, Hendrik Baier
5/18/2026
cs.LGcs.AI
rl

No confident code implementation found for this paper.

Abstract

Programmatic reinforcement learning (PRL) offers an interpretable alternative to deep reinforcement learning by representing policies as human-readable and -editable programs. While gradient-based methods have been developed to optimize continuous relaxations of programs, they face a significant performance drop when converting the continuous relaxations back into discrete programs.

Show full abstract

Post-hoc discretization can discard optimized branches and parameters in a program, which results in a collapse of policy expressivity and lowered task performance, leading in turn to a need for additional fine-tuning. To overcome these limitations, we propose Differentiable Discrete Programmatic Reinforcement Learning (DiPRL), a method that learns programmatic policies that become nearly discrete during training, avoiding a separate post-hoc fine-tuning stage. We first analyze the inherent risks of performance drop introduced by post-hoc discretization of gradient-based methods. Then, we introduce programmatic architecture entropy regularization, which enables smooth, differentiable training that encourages convergence toward a discrete program. DiPRL maintains the efficiency of gradient-based optimization while mitigating the risks of post-hoc discretization. Our experiments across multiple discrete and continuous RL tasks demonstrate that DiPRL can achieve strong performance via interpretable programmatic policies.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hu2026diprl,
  title  = {DiPRL: Learning Discrete Programmatic Policies via Architecture Entropy Regularization},
  author = {Chengpeng Hu and Yingqian Zhang and Hendrik Baier},
  year   = {2026},
  eprint = {2605.18508},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.18508v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.18508.svg)](https://codeofpaper.com/paper/2605.18508)

Discussion