Papers › Local Metric Learning for Off-Policy Evaluation in Contextual Bandits with Continuous Actions

Local Metric Learning for Off-Policy Evaluation in Contextual Bandits with Continuous Actions

24 Oct 2022arXiv:2210.13373archive 2025-07-28

Haanvid Lee, Jongmin Lee, Yunseon Choi, Wonseok Jeon, Byung-Jun Lee, Yung-Kyun Noh, Kee-Eung Kim

We consider local kernel metric learning for off-policy evaluation (OPE) of deterministic policies in contextual bandits with continuous action spaces. Our work is motivated by practical scenarios where the target policy needs to be deterministic due to domain requirements, such as prescription of treatment dosage and duration in medicine. Although importance sampling (IS) provides a basic principle for OPE, it is ill-posed for the deterministic target policy with continuous actions. Our main idea is to relax the target policy and pose the problem as kernel-based estimation, where we learn the kernel metric in order to minimize the overall mean squared error (MSE). We present an analytic solution for the optimal metric, based on the analysis of bias and variance. Whereas prior work has been limited to scalar action spaces or kernel bandwidth selection, our work takes a step further being capable of vector action spaces and metric optimization. We show that our estimator is consistent, and significantly reduces the MSE compared to baseline OPE methods through experiments on various domains.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2210.13373")

Code

Syntology Ran 1 of 11 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 1 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

haanvid/kmis officialmentioned in papertfMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 1 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran
10unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from haanvid/kmis. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

load_dict haanvid/kmis/main_dummy.py official repository ran MIT (permissive) · ac63e9a19256d49f · report
batch_hessian haanvid/kmis/util.py official repository unverified MIT (permissive) · 2a6dd5d2668b3f32 · report
batch_hessian_tf haanvid/kmis/util.py official repository unverified MIT (permissive) · 292ed60be86050df · report
disc_evaluation haanvid/kmis/disc_ope.py official repository unverified MIT (permissive) · 57d7d9dc4dc72fd3 · report
gaussian_kernel haanvid/kmis/off_pol_eval_functs.py official repository unverified MIT (permissive) · 0f48c368746fcb00 · report
gen_unif_state haanvid/kmis/main_dummy.py official repository unverified MIT (permissive) · 7f0b9fa3eb72a958 · report
get_behavior_policy_prob haanvid/kmis/disc_ope.py official repository unverified MIT (permissive) · db802997214da3fe · report
histogram haanvid/kmis/disc_ope.py official repository unverified MIT (permissive) · 919e956d58f0bc54 · report
metric_evaluation haanvid/kmis/off_pol_eval_functs.py official repository unverified MIT (permissive) · a1a22f2643fd92e3 · report
off_policy_evaluation haanvid/kmis/off_pol_eval_functs.py official repository unverified MIT (permissive) · b562006a4fd9cd97 · report
shuffle_data haanvid/kmis/util.py official repository unverified MIT (permissive) · a66e33d74b337fed · report

Tasks

Metric LearningMulti-Armed BanditsOff-policy evaluation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections