Gemma audio evaluation: test the same clip in mixed-duration batches

The decision

Add mixed-duration audio batches to Gemma3n and Gemma4 acceptance tests when they are served with vLLM. Do not treat a result from a single-clip test as enough to attribute an output difference to the model.

The vLLM v0.28.0 release notes report a correctness fix for variable-length audio batch padding for Gemma3n/Gemma4, with a link to PR #50958. That is a reason to control batch composition during evaluation. It is not evidence of a measured quality regression, a universal fix across checkpoints, or identical outputs under every configuration.

A controlled check

For each checkpoint and fixed runtime configuration, use one target recording in at least three contexts:

  • the recording by itself;
  • the recording beside shorter recordings;
  • the recording beside longer recordings.

Keep the audio preprocessing, sampling or generation settings, prompt, checkpoint, vLLM version, and other serving parameters fixed. Record the batch layout with each result. Compare the target recording’s output across those contexts using the acceptance criteria that already matter for the task.

This comparison is a diagnostic, not a promise that the outputs should be byte-for-byte identical. If the target changes only when its batch neighbors change, first reproduce the case with the same inputs and configuration and inspect the serving path before calling the difference a Gemma capability result. If it does not change, that narrows this particular confound; it does not prove that every audio shape or configuration is covered.

What the release note does not answer

The supplied release note does not provide an affected-checkpoint matrix, a test corpus, a detailed failure mechanism, or before-and-after quality measurements. Earlier versions should not be described as failing in all configurations, and this evidence does not establish any CometAPI audio behavior or model availability.

The practical boundary is simple: treat batch composition as part of the acceptance-test fixture, then interpret model comparisons only after that fixture has been held constant or explicitly tested.

One detail I would add to the test harness: distinguish the batch you intended to submit from the batch you can verify was evaluated. Sending the target clip and its shorter or longer neighbors concurrently is not, by itself, evidence that they shared a model batch.

For this Gemma3n/Gemma4 padding check, I would use a harness that can explicitly construct the batch, or record actual batch membership if the serving setup exposes it. Keep each target output tied to the target input, its confirmed neighbors, and their processed audio lengths. If neither control nor observation is available, label the run as a concurrent-request test with batch membership unknown, rather than counting it as mixed-duration batch coverage.

I would also repeat the unchanged batch fixture before interpreting a difference between fixtures. That gives a within-fixture comparison: if the task score varies even with the same neighbors, one changed output after swapping neighbors is not enough to isolate a batching effect. Use a task-level tolerance chosen before the run, rather than requiring exact text equality.

These are proposed harness requirements, not reported vLLM behavior or test results. The v0.28.0 release note identifies the Gemma3n/Gemma4 padding correction; it does not establish that a particular API request pattern exercises that path. The useful extra test outcome is therefore coverage unproven, distinct from either a pass or a reproduced failure.