Evaluation, diagnostics, benchmarks, and additional tests · Evaluation, diagnostics, benchmarks, and additional hypothesis tests · EVA034 · Metric
MAUVE
Compares generated and reference text distributions through a divergence frontier in a quantized embedding space.
In CodeSplash
Running this needs images, audio, video, graphs or another data type CodeSplash doesn't load yet.
- Availability
- Needs a data type CodeSplash doesn't load yet
- Code example
- Complete calculation
- Who ran it
- CodeSplash's run and the reference's record
- CodeSplash's run
- The reference's example ran in Python and R here, and they agree.
- The reference's record
- Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.
Purpose
Compares generated and reference text distributions through a divergence frontier in a quantized embedding space.
Question / hypotheses
How well does generated text balance distributional fidelity and diversity relative to a reference corpus?
Architecture / computational structure
A fixed scoring/calibration pipeline applied to model outputs or supplied observations; the formula and usage sections identify its operations.
Assumptions
Text length, sampling scheme, encoder, quantization, and sample count must be comparable. The reference corpus must represent the desired generation task.
Formula / computational definition
Parameters and notation
The frontier varies lambda; MAUVE summarizes its area using the implementation’s conventions. Encoder, cluster count, scaling c, truncation, and seed are evaluation hyperparameters.
Fitting, fine-tuning, and adaptation
There is no model fine-tuning step for this evaluation procedure. Freeze the evaluated systems and evaluator before the final test. Select evaluation settings on development data; if a learned evaluator or calibration model is adapted, use separate fitting data, version it, and reassess its validity.
How to use and calibrate
Use the official implementation on independent corpora, save quantization settings, and complement the distributional score with factual and conditional evaluations.
Example application
Compare open-ended language generation methods at fixed prompt and length distributions.
Interpretation / pitfalls
Watch out
MAUVE does not verify individual responses or conditioning. Quantization can hide distinctions; small samples and encoder changes alter results. The example computes one frontier point, not complete MAUVE.
Python and R code examples
Scope: Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
Validation: Python — Executed successfully on synthetic inputs. R — reviewed but not executed in this environment. Python dependencies are explicit imports; R uses base R unless a package/bridge is explicitly named.
Python and R
The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline. · needs numpy
import numpy as np
P=np.array([.6,.4]); Q=np.array([.3,.7]); M=.5*P+.5*Q
print(np.exp(-np.sum(Q*np.log(Q/M))),np.exp(-np.sum(P*np.log(P/M))))
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
P <- c(.6,.4); Q <- c(.3,.7); M <- .5*P+.5*Q
print(c(exp(-sum(Q*log(Q/M))),exp(-sum(P*log(P/M)))))
Sources
- Source 1arxiv.org
- Source 2github.com
From the CodeSplash reference, entry EVA034.