Rationality Measurement and Theory for Reinforcement Learning Agents
Kejiang Qian, Amos Storkey, Fengxiang He
TL;DR
This work introduces a formal rationality framework for reinforcement learning by defining perfectly rational actions and two deployment-focused measures: expected rational value risk and the rational risk gap. It decomposes the gap into extrinsic and intrinsic components, upper-bounded respectively by $L_s H\cdot W_1(p_0^{\dagger},p_0)+H^2L_s(L_p+1)\cdot W_1(p^{\dagger},p)$ and $L_\Pi H\sqrt{\log|\mathcal{A}|}+2\sum_{h=1}^H\hat{\mathfrak{R}}_h(\mathcal{Q}_\Pi)+3H^2\sqrt{\frac{\log(H/\delta)}{2T}}$. The authors provide proofs, corollaries, and asymptotic results, and validate hypotheses that regularisation and domain randomisation improve rationality while environment shifts harm it. An empirical study with DQN on Taxi-v3 and Cliff Walking supports the theory, offering practical guidance for improving deployment-time rationality in RL systems. The work also connects to sim-to-real transfer challenges and lays groundwork for future robustness-focused rationality analyses.
Abstract
This paper proposes a suite of rationality measures and associated theory for reinforcement learning agents, a property increasingly critical yet rarely explored. We define an action in deployment to be perfectly rational if it maximises the hidden true value function in the steepest direction. The expected value discrepancy of a policy's actions against their rational counterparts, culminating over the trajectory in deployment, is defined to be expected rational risk; an empirical average version in training is also defined. Their difference, termed as rational risk gap, is decomposed into (1) an extrinsic component caused by environment shifts between training and deployment, and (2) an intrinsic one due to the algorithm's generalisability in a dynamic environment. They are upper bounded by, respectively, (1) the $1$-Wasserstein distance between transition kernels and initial state distributions in training and deployment, and (2) the empirical Rademacher complexity of the value function class. Our theory suggests hypotheses on the benefits from regularisers (including layer normalisation, $\ell_2$ regularisation, and weight normalisation) and domain randomisation, as well as the harm from environment shifts. Experiments are in full agreement with these hypotheses. The code is available at https://github.com/EVIEHub/Rationality.
