NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Accountability in Offline Reinforcement Learning: Explaining Decisions with a Corpus of Examples

Hao Sun, Alihan Hüyük, Daniel Jarrett, Mihaela van der Schaar

Offline Reinforcement Learning (RL) holds immense promise for high-stakes domains like healthcare and autonomous driving, where learning via trial-and-error is dangerous and expensive. However, standard offline RL methods rely on black-box neural networks that lack the transparency required for critical decision-making. If an AI recommends a specific medical treatment, practitioners need to know why. While traditional transparent methods like $k$-Nearest Neighbors (kNN) exist, they struggle with the complex, variable-length temporal data inherent to RL and suffer from the curse of dimensionality.

This paper introduces the Accountable Offline Controller (AOC), a novel algorithm designed to bridge this gap. AOC makes high-performing, conservative RL decisions by explicitly linking every action to a minimal "corpus" of supporting examples from the training data, ensuring both performance and accountability.

The Accountable Offline Controller (AOC)

AOC relies on example-based explanations to justify its decisions. Instead of calculating distances in the messy, high-dimensional space of raw observations, AOC maps patient or environment histories into a lower-dimensional, fixed-length "belief space" using a recurrent neural network (GRU).

Illustration of AOC mapping trajectories into a belief space and forming a convex hull.

Within this belief space, the estimated value (return) of an action can be modeled as a linear combination of past examples. For any proposed action at test time, AOC searches the training data for a minimal set of examples—the "Corpus Subset"—that forms a convex hull around the current state-action belief.

To enforce conservative behavior, AOC calculates a "corpus residual," which is the distance to the nearest point in the hull if a proposed action forces the model to extrapolate outside of it. By filtering out actions with high residuals, AOC naturally avoids risky, out-of-distribution (OOD) actions. Ultimately, AOC samples candidate actions, filters out the risky ones using the residual threshold, and selects the action with the highest estimated value based on the weighted average of its supporting examples. The authors also introduce a variant called ABC (Accountable Behavior Clone) for strictly batch imitation settings where reward signals are absent.

Key Insights: Conservation and Adaptability

A major challenge in offline RL is "aggressive extrapolation"—the agent overestimating the value of actions it has never seen. By restricting the agent to actions that can be interpolated within a convex hull of past examples, AOC solves the extrapolation problem mathematically while simultaneously providing transparency. In this framework, accountability naturally breeds conservation.

Furthermore, because AOC's decisions are explicitly tied to the reference dataset at test time, it offers plug-and-play adaptivity. Practitioners can change the agent's behavior without retraining simply by sub-sampling or re-weighting the reference data (e.g., to favor a new clinical guideline). The corpus residual also acts as a built-in OOD detector; if the residual spikes during deployment, it flags that the agent is encountering an unfamiliar scenario, signaling the need for human intervention.

Empirical Performance

The researchers evaluated AOC across several datasets, including synthetic control tasks (Pendulum-Het, Continuous Maze, LunarLander, BipedalWalker) and a real-world healthcare dataset (Ward Dataset) containing vital signs for ~6,000 patients.

Performance comparison of AOC against baselines across different data regimes.

AOC demonstrated remarkable robustness in low-data regimes. On the Pendulum-Het task, AOC matched or outperformed state-of-the-art black-box models and vastly outperformed the accountable kNN baseline (scoring -1.39 compared to kNN's -849.45).

In the real-world healthcare setting, the ABC variant matched the ~95% accuracy of black-box neural network behavior cloning for predicting oxygen therapy device allocation. Crucially, unlike the black-box model, ABC could explicitly output the specific past patient records that justified its treatment recommendations. In high-dimensional scaling tests (BipedalWalker), combining a black-box policy to sample actions with AOC to evaluate and explain them yielded a superior score of 276.98, outperforming the pure black-box policy (208.72) while maintaining accountability.

Limitations and Future Directions

While AOC presents a significant step forward, it has limitations. Its default uniform action sampling is computationally inefficient in high-dimensional continuous action spaces. Additionally, if the reference examples in the convex hull have highly varied real-world outcomes (aleatoric uncertainty), the linear interpolation might mask inherent risks, requiring human caution. Future work aims to extend this example-based accountability framework into online RL by integrating it with exploration strategies.

Summary updated

BibTeX
@inproceedings{sun2023accountability,
  author = {Hao Sun and Alihan Hüyük and Daniel Jarrett and Mihaela van der Schaar},
  title = {{Accountability in Offline Reinforcement Learning: Explaining Decisions with a Corpus of Examples}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=kmbG9iBRIb},
}
Figure