Exploration Efficiency Coverage Metrics
Exploration Efficiency Coverage Metrics
This note records an initial planning discussion about evaluating whether a router-generator factorization can make test-time or RL exploration more sample-efficient by deliberately covering strategy space rather than repeatedly sampling from the same high-probability strategies.
Related notes:
- Exploration efficiency methods
- Abstract strategy vs solution
- Exploration efficiency gains
- Iterative self-improvement via analogical exploration
Core Setup
For an input , let be an evaluation-time strategy label for an observed sample . In synthetic settings this should be the ground-truth strategy label. In LLM-scale settings it should be an independent labeling mechanism, such as a rubric, classifier, or human annotation, rather than the learned latent variable itself.
An adaptive exploration policy samples a sequence , where each may depend on and previous samples . Define and . The evaluation goal is to measure how quickly grows as the sample budget increases.
Strategy coverage should be measured with an external strategy label, not by latent-space distance alone. Otherwise a method can appear to explore because it spreads out in its own latent coordinates, even if those coordinates do not correspond to different strategies.
Synthetic-Sequences Strategy Attribution
In path:experiments/synthetic_sequences/tasks/, generated responses are parsed and validated by the task implementation. For a generated y_text, the evaluation should call task.validate_y_text(x, y_text) and use ValidationResult.strategy_matches as the strategy evidence for that sample.
Coverage is set-valued in this setting. If one generated trace matches multiple strategies, all matched strategies count as covered for that input. The update rule is
where is the set of strategy IDs in strategy_matches for sample . Parse failures, structurally invalid generations, and off-strategy generations add no strategies because their match set is absent or empty.
For the first synthetic-sequences evaluation, the denominator should be the task's declared strategy set:
This differs from using training-row strategy labels. Training data rows have labels because they were generated from a known strategy, but generated model responses should be attributed by parsing and validating the generated trace.
Metric Candidates
The marginal novelty curve measures the probability that sample discovers a strategy not seen in earlier samples:
The expected coverage curve measures the expected fraction of available strategies discovered by budget :
where is the number of valid strategies for input . This is the strongest candidate for the main visualization because it is direct, monotone, and comparable across methods.
The full-coverage curve measures the probability of having seen every strategy by budget :
This is clean when is small, but it may be too harsh when there are many strategies or when rare strategies are poorly defined.
The time-to-coverage metric reports the number of samples needed to reach a coverage threshold :
Useful thresholds are likely , summarized by mean, median, and distribution across inputs.
For a fixed budget , a compact aggregate is the coverage area under the curve:
One can normalize against iid base sampling and an oracle no-repeat strategy sampler:
This normalized gain asks how much of the available improvement over iid sampling has been recovered.
Iid Baseline
Let the base model induce strategy probabilities . Under iid base sampling, the expected number of discovered strategies after samples is
The iid marginal novelty curve is
This makes the evaluation a strategy-space coupon-collector problem. Uniform strategy distributions waste samples through repeats once common strategies have already appeared; imbalanced strategy distributions have long tails dominated by rare strategies.
Visualization Candidates
The main figure should plot expected coverage against sample budget , with iid base sampling, oracle no-repeat sampling, and latent-exploration methods on the same axes.
A second plot should show the marginal novelty curve . This directly visualizes whether the next sample is still likely to reveal a new strategy.
A distributional summary should show or across inputs, using a violin, box, or survival-style plot.
A qualitative strategy barcode heatmap could make redundancy visible: rows are inputs, columns are sample index, and colors are strategy labels, with a marker for first appearances.
Guardrails
Report valid or correct strategy coverage alongside raw strategy coverage. A method should not look good because it generates many invalid or low-quality modes.
Separate latent coverage from strategy coverage. Latent-space dispersion is a diagnostic of the method, while externally labeled strategy coverage is the primary evaluation target.
Track whether gains come from avoiding repeats among common strategies or from finding genuinely rare strategies. These are different operational regimes and may favor different exploration policies.
The initial experimental ladder should be: oracle-labeled synthetic setting, learned latent factorization on synthetic data, then LLM-scale strategy labeling with downstream utility such as best-of- correctness.