When a new prompt changes answer length, the aggregate pass rate can move even if answers within each length bucket pass at the same rate. A length table helps identify that pattern. Keep the pass rate experienced by the user alongside the table: a change in length may itself be a real product regression.
Here is a constructed example with a fixed grader and the same number of tasks per version.
| Version | Short: passes / total | Long: passes / total | All outputs |
|---|---|---|---|
| Baseline | 72 / 80 | 10 / 20 | 82 / 100 |
| Candidate | 18 / 20 | 40 / 80 | 58 / 100 |
The short-bucket pass rate is 90% in both runs. The long-bucket rate is 50% in both runs. Applying the baseline’s 80:20 mix to the candidate gives 0.8 × 0.9 + 0.2 × 0.5 = 82%. This calculation describes the table; it cannot establish what would have occurred if the same model had been forced to produce a different length.
Steps
- Fix the tasks, grader and bucket boundaries. Record the provider-reported completion length, tokenizer or counting method, and finish reason. When tokenizers differ, consider a common unit computed from the delivered text in addition to the reported token usage. Token counts from different vocabularies are not automatically comparable.
- State how truncated answers are graded. If the metric asks whether the delivered answer was usable, grade the delivered answer under the same rubric. Also report the frequency of confirmed length-limit stops. If you calculate a separate score among completed outputs, remove truncated rows from that score’s denominator and label the conditional population.
- Report short and long counts for each version, then compute the weighted comparison. Every bucket with positive baseline weight needs observations in the candidate. Mark the comparison unavailable if a required bucket is empty, or state a justified change in grouping. Don't silently assign a zero or renormalize over the surviving buckets.
- Inspect the paired task records. Length is an outcome influenced by model, prompt, and task difficulty. A short baseline answer and a short candidate answer need not come from the same tasks.
Test the interpretation
Check that each run’s raw percentage equals its own bucket-weighted rate. In the example above, equal within-bucket rates reproduce the baseline percentage under baseline weights. If that identity fails in a real report, first inspect the treatment of missing grades, aborted outputs and empty buckets. A missing finish reason belongs in an unknown category unless another reliable signal establishes truncation.
This article was created with AI assistance.
Top comments (0)