Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

DiPRL: Learning Discrete Programmatic Policies via Architecture Entropy Regularization

About

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. 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.

Chengpeng Hu, Yingqian Zhang, Hendrik Baier• 2026

Related benchmarks

TaskDatasetResultRank
Reinforcement LearningAcrobot v1
Mean Return79.93
42
Reinforcement LearningLunarLander v2
Final Return260.2
30
Reinforcement LearningCartPole v1
Return500
16
Continuous ControlHalfCheetah Hurdle
Goal Distance0.07
7
Continuous ControlPusher2D
Goal Distance0.12
7
Continuous ControlAnt RandomGoal
Goal Distance0.99
7
Continuous ControlAnt CrossMaze
Goal Distance1.76
7
Reinforcement LearningAnt RandomGoal
Reward413.1
7
Reinforcement LearningDoorkey
Reward0.95
7
Reinforcement LearningMountainCar v0
Cumulative Reward110.8
7
Showing 10 of 13 rows

Other info

Follow for update