Interpretable by Design: Query-Specific Neural Modules for Explainable Reinforcement Learning
Mehrdad Zakershahrak
TL;DR
This work reframes reinforcement learning from purely action-driven optimization to queryable inference in deterministic environments. By introducing Query-Conditioned Deterministic Inference Networks (QDIN) with specialized heads and a query-conditioned fusion mechanism, the approach exposes diverse world-knowledge queries (reachability, paths, comparisons, policy) while maintaining competitive control. A key finding is the inference-control decoupling: inference accuracy can approach near-perfect levels (IoU ≈ 0.99) even when control performance remains suboptimal (e.g., episode return ≈ 0.31), implying distinct representations suffice for world knowledge versus action optimization. The results demonstrate architectural specialization, curriculum-based multi-query training, and calibrated confidence for selective answering, supporting a research agenda toward interpretable, verifiable, and collaborative RL systems that function as knowledge bases as well as controllers.
Abstract
Reinforcement learning has traditionally focused on a singular objective: learning policies that select actions to maximize reward. We challenge this paradigm by asking: what if we explicitly architected RL systems as inference engines that can answer diverse queries about their environment? In deterministic settings, trained agents implicitly encode rich knowledge about reachability, distances, values, and dynamics - yet current architectures are not designed to expose this information efficiently. We introduce Query Conditioned Deterministic Inference Networks (QDIN), a unified architecture that treats different types of queries (policy, reachability, paths, comparisons) as first-class citizens, with specialized neural modules optimized for each inference pattern. Our key empirical finding reveals a fundamental decoupling: inference accuracy can reach near-perfect levels (99% reachability IoU) even when control performance remains suboptimal (31% return), suggesting that the representations needed for accurate world knowledge differ from those required for optimal control. Experiments demonstrate that query specialized architectures outperform both unified models and post-hoc extraction methods, while maintaining competitive control performance. This work establishes a research agenda for RL systems designed from inception as queryable knowledge bases, with implications for interpretability, verification, and human-AI collaboration.
