Abstract
Reinforcement learning (RL) agents often struggle with sample efficiency in complex environments. This paper presents a novel approach using "Knows What It Knows" (KWIK) linear regression to efficiently learn compact environment models, such as Factored MDPs and Stochastic STRIPS. By reducing complex transition and reward learning tasks to linear regression problems, the proposed KWIK-LR algorithm achieves significant improvements in both computational and sample complexity.
Introduction
In model-based Reinforcement Learning, an agent attempts to maximize rewards by learning the underlying rules of its environment. A primary challenge is sample efficiency: learning optimal behavior with minimal interactions. While many real-world environments can be described by compact representations (like Object-Oriented MDPs), existing algorithms for learning these models under formal guarantees have historically been computationally expensive or sample-intensive. This paper addresses these gaps by framing model learning as a KWIK (Knows What It Knows) linear regression problem.
Methodology: KWIK Linear Regression
The core innovation is Algorithm 1: KWIK Linear Regression (KWIK-LR). Unlike standard regression, a KWIK learner incorporates an explicit uncertainty mechanism. If the model's uncertainty—measured via a regularized system—exceeds a threshold $\alpha_0$, it returns a symbol ($\perp$) indicating ignorance. This signal prompts the RL agent to explore, ensuring that data is collected where it is most needed.
Key features of the algorithm include:
- Efficiency: Incremental updates for the inverse correlation matrix and weight vector reduce per-timestep complexity to $O(n^2)$.
- Versatility: The authors demonstrate that complex tasks, such as learning factored rewards and transition probabilities in Stochastic STRIPS or OOMDPs, can be reduced to linear regression. By using indicator vectors for outcome classes, the agent can learn underlying probabilities even when individual observations are ambiguous.
Experimental Evaluation
The algorithms were evaluated on three benchmark domains:
- Stocks Domain: A simulated market testing reward learning in Factored MDPs.
- Stochastic Paint/Polish World: A symbolic domain testing Stochastic STRIPS learning under outcome ambiguity.
- 5x5 Maze Domain: A grid-world testing OOMDP transition probabilities, specifically handling ambiguity in movement outcomes (e.g., hitting walls).
Results and Discussion
Experimental results confirm the theoretical advantages of the KWIK-LR framework. In the Stocks domain, the KWIK-LR approach significantly outperformed both flat tabular learners and standard linear regression using $\epsilon$-greedy exploration. As shown in Figure 1, it identifies the optimal policy with far fewer steps.
In domains characterized by ambiguity, such as the Maze world, the KWIK-LR agent (Algorithm 3) demonstrated a clear advantage over "Partition" learners. While Partition learners attempt to learn every possible outcome distribution separately, KWIK-LR shares information across state-action pairs that share underlying rules, leading to much faster convergence and higher cumulative rewards.
Conclusion
By leveraging linear regression within the KWIK framework, this work provides a powerful tool for learning structured RL models. The approach achieves a sample complexity improvement of $\Theta(n^2 / \log^2 n)$ over previous state-of-the-art methods. While the learning process is highly efficient, future work is needed to address the "planning bottleneck," as deciding optimal actions in the grounded state space remains computationally demanding for very large domains.
Summary updated