Abstract
This paper presents an efficient algorithm for online linear regression within the "Knows What It Knows" (KWIK) framework, specifically tailored for compact reinforcement learning (RL) representations. By leveraging regularized least-squares and confidence thresholding, the proposed KWIK-LR algorithm enables agents to learn complex reward and transition models in Factored MDPs and Stochastic STRIPS domains. Theoretical analysis shows a significant improvement in sample complexity, while empirical evaluations in benchmark domains demonstrate faster convergence to optimal policies compared to traditional tabular and partition-based learners.
Introduction
In Reinforcement Learning (RL), agents must learn to make optimal decisions by interacting with an environment. Efficiency in this process often depends on the agent's ability to build accurate models of the world. However, standard machine learning tools like linear regression face challenges in RL settings because data is not independent and identically distributed (i.i.d.), and agents must balance exploration of unknown states with exploitation of known rewards.
The KWIK (Knows What It Knows) framework addresses this by requiring algorithms to explicitly signal uncertainty ($\perp$) when data is insufficient for a confident prediction. While KWIK-based linear regression algorithms existed, they were often computationally expensive with loose sample complexity bounds. This work introduces a faster, more sample-efficient version designed to learn "compact" models—representations where parameters are significantly fewer than the total state space.
The KWIK-LR Algorithm
The core contribution is Algorithm 1 (KWIK-LR), which innovates on uncertainty handling through:
- Regularization: A regularized least-squares approach ensures unique solutions even with sparse data.
- Confidence Thresholding: The algorithm computes a certainty measure based on query vectors and a weight matrix ($Q_t$). If uncertainty exceeds a threshold ($\alpha_0$), it returns $\perp$, prompting the agent to explore.
- Incremental Updates: By maintaining a fixed-size $n \times n$ matrix, the algorithm achieves $\Theta(n^2)$ complexity per timestep, avoiding the growth issues of previous versions.
The authors extend this to Factored MDPs, where rewards are learned as sums of local components, and Stochastic STRIPS/OOMDPs, where transition probabilities are mapped to linear regression problems. In cases of ambiguous action effects, indicator vectors represent "equivalence classes" of outcomes, allowing the model to generalize across similar scenarios.
Experimental Setup
The algorithms were evaluated across three benchmark RL environments:
- Stocks Domain: A Factored MDP where rewards depend on stock ownership across various market sectors.
- Stochastic Paint/Polish World: A Stochastic STRIPS domain involving actions with probabilistic and potentially ambiguous outcomes.
- $5 \times 5$ Maze Domain: A Stochastic Object-Oriented MDP (OOMDP) where noisy movement creates ambiguity, particularly when interacting with boundaries.
Results and Discussion
Theoretical analysis indicates that the new KWIK-LR algorithm provides a $\Theta(n^2 / \log^2 n)$ improvement in sample complexity over prior state-of-the-art methods.
Performance in Factored MDPs
In the Stocks domain, the KWIK-LR approach reached optimal performance significantly faster than tabular learners. The use of optimistic reward initialization ($R_0$) was found to be a highly effective driver for exploration, often outperforming explicit KWIK reporting by naturally guiding the agent toward unexplored regions.
Generalization and Ambiguity
In the Maze and Paint/Polish domains, KWIK-LR demonstrated superior performance over "partition" learners. By utilizing a global linear model instead of learning state-action pairs in isolation, the agent successfully shared information across the state space. This capability is crucial when dealing with ambiguous effects, as the agent can learn the underlying probabilities of equivalence classes of outcomes.
Unified Model Learning
The study also showed that agents could simultaneously learn the structure, transitions, and rewards of a Factored MDP with minimal overhead compared to scenarios where rewards were known a priori. This highlights the versatility of linear regression in learning discrete probabilities in complex symbolic domains.
Conclusion
While the proposed learning algorithm is sample-efficient, a significant "planning bottleneck" remains: deciding on actions using the learned model still typically occurs in a "flat" state space, which can be exponentially large. Future work may address this through more efficient planning techniques or "sparsification" heuristics to handle unknown sets of possible action effects. Nonetheless, this work provides a robust foundation for applying linear regression to compact RL representations.
Summary updated