r/TheMachineLearning • • 1d ago

My benchmark read the wrong JSON field, so it called a perfectly good model broken

/r/LLM/comments/1y8cra8/my_benchmark_read_the_wrong_json_field_so_it/
2 Upvotes

1 comment sorted by

1

u/tallerDante 5h ago

Second data point on the same bug class, from a local model we run.

It has a thinking phase that always fires. At num_predict 80 it spent the whole budget reasoning and returned an EMPTY content field — not wrong, empty. At 600 it answered properly and stopped normally. Same model, same prompt, same machine, one parameter. If I'd scored that run as published, I'd have recorded a working model as broken.

It gets one layer worse: through the /api/generate endpoint the reasoning and the answer land in the SAME field. A naive reader doesn't get an empty string, it gets the model's internal monologue and reports it as the answer. Two different failures, one missing guard.

What we changed, both cheap:

  1. Read the finish reason along with the content. "length" means the answer is a budget cut, whatever the text says.
  2. A negative control that must score zero. If nothing in your suite fails when the harness is deliberately broken, the suite can't tell a bad model from a bad reader.

Genuinely curious whether the field-name problem is common or we're the outliers: how many of you read message["content"] without ever checking what the model actually filled?