From Weighting to Modeling: A Nonparametric Estimator for Off-Policy Evaluation
Organizations: Institute of Science and Technology for Brain-inspired Intelligence, Fudan University
Abstract
We study off-policy evaluation in the setting of contextual bandits, where we aim to evaluate a new policy using historical data that consists of contexts, actions and received rewards. This historical data typically does not faithfully represent action distribution of the new policy accurately. A common approach, inverse probability weighting (IPW), adjusts for these discrepancies in action distributions. However, this method often suffers from high variance due to the probability being in the denominator. The doubly robust (DR) estimator reduces variance through modeling reward but does not directly address variance from IPW. In this work, we address the limitation of IPW by proposing a Nonparametric Weighting (NW) approach that constructs weights using a nonparametric model. Our NW approach achieves low bias like IPW but typically exhibits significantly lower variance. To further reduce variance, we incorporate reward predictions -- similar to the DR technique -- resulting in the Model-assisted Nonparametric Weighting (MNW) approach. The MNW approach yields accurate value estimates by explicitly modeling and mitigating bias from reward modeling, without aiming to guarantee the standard doubly robust property. Extensive empirical comparisons show that our approaches consistently outperform existing techniques, achieving lower variance in value estimation while maintaining low bias.
Figures & tables
| method | decreasing | increasing | unsorted | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Bias | s.d. | RMSE | Bias | s.d. | RMSE | Bias | s.d. | RMSE | |
| SW | -0.586 | 0.040 | 0.587 | 0.577 | 0.090 | 0.584 | 0.018 | 0.081 | 0.083 |
| IPW | 0.017 | 0.491 | 0.492 | -0.002 | 0.045 | 0.045 | 0.004 | 0.258 | 0.258 |
| NW | -0.070 | 0.148 | 0.164 | 0.025 | 0.031 | 0.040 | 0.007 | 0.110 | 0.110 |
| method | decreasing | increasing | unsorted | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Bias | s.d. | RMSE | Bias | s.d. | RMSE | Bias | s.d. | RMSE | |
| SW | -0.604 | 0.157 | 0.624 | 0.553 | 0.177 | 0.581 | -0.036 | 0.174 | 0.178 |
| IPW | 0.005 | 0.693 | 0.693 | -0.002 | 0.345 | 0.345 | 0.007 | 0.444 | 0.444 |
| NW | -0.148 | 0.259 | 0.298 | -0.003 | 0.243 | 0.243 | 0.000 | 0.265 | 0.265 |
| MNW | -0.118 | 0.220 | 0.250 | 0.003 | 0.184 | 0.184 | -0.013 | 0.213 | 0.213 |
| MNW | -0.080 | 0.221 | 0.235 | 0.000 | 0.157 | 0.157 | -0.025 | 0.194 | 0.195 |
| Data | Bias | RMSE | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| DM | IPW | DR | NW | MNW | DM | IPW | DR | NW | MNW | |
| letter | 0.507 | 0.001 | 0.009 | 0.000 | 0.009 | 0.507 | 0.070 | 0.075 | 0.036 | 0.045 |
| glass | 0.218 | -0.003 | 0.034 | 0.000 | 0.036 | 0.218 | 0.233 | 0.238 | 0.238 | 0.193 |
| ecoli | 0.215 | 0.002 | 0.037 | 0.000 | 0.034 | 0.215 | 0.270 | 0.229 | 0.243 | 0.208 |
| opt | 0.292 | 0.001 | -0.001 | 0.000 | -0.001 | 0.292 | 0.047 | 0.060 | 0.027 | 0.037 |
| page | 0.086 | 0.000 | 0.012 | -0.001 | 0.012 | 0.086 | 0.021 | 0.028 | 0.014 | 0.020 |
| Data | Bias | RMSE | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| DM | IPW | DR | NW | MNW | DM | IPW | DR | NW | MNW | |
| letter | 0.505 | 0.066 | -0.085 | 0.000 | 0.009 | 0.505 | 0.319 | 0.337 | 0.034 | 0.041 |
| glass | 0.215 | 0.044 | 0.015 | -0.002 | 0.039 | 0.215 | 0.302 | 0.282 | 0.226 | 0.188 |
| ecoli | 0.206 | 0.060 | 0.012 | 0.002 | 0.039 | 0.206 | 0.334 | 0.272 | 0.221 | 0.190 |
| opt | 0.291 | 0.006 | -0.052 | 0.000 | -0.001 | 0.291 | 0.057 | 0.115 | 0.025 | 0.035 |
| page | 0.088 | 0.004 | -0.001 | 0.000 | 0.012 | 0.088 | 0.043 | 0.048 | 0.013 | 0.019 |
| Data | Bias | RMSE | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| DM | IPW | DR | NW | MNW | DM | IPW | DR | NW | MNW | |
| letter | 0.503 | 0.006 | 0.000 | 0.001 | 0.009 | 0.503 | 0.030 | 0.035 | 0.029 | 0.034 |
| glass | 0.221 | 0.290 | -0.317 | -0.038 | 0.022 | 0.221 | 0.566 | 0.638 | 0.268 | 0.292 |
| ecoli | 0.197 | 0.115 | -0.208 | -0.009 | 0.003 | 0.197 | 0.305 | 0.417 | 0.112 | 0.128 |
| opt | 0.290 | 0.009 | -0.042 | -0.001 | -0.004 | 0.290 | 0.036 | 0.062 | 0.023 | 0.030 |
| page | 0.090 | 0.009 | 0.001 | 0.000 | 0.010 | 0.090 | 0.020 | 0.033 | 0.011 | 0.017 |
| Data | ||||
|---|---|---|---|---|
| letter | 20000 | 16 | 10000 | 7500 |
| glass | 214 | 10 | 107 | 80 |
| ecoli | 336 | 8 | 168 | 126 |
| opt | 3823 | 64 | 1912 | 1434 |
| page | 5473 | 10 | 2737 | 2052 |
| pen | 7494 | 16 | 3747 | 2810 |
Off-Policy Evaluation
Off-policy evaluation estimates a policy’s value from data collected by another policy, using weighting, models, and uncertainty-aware methods.
See all 72 papers