DEV Community

Discussion on: LLM JSON output: one setting dropped valid JSON from 75% to 4%

Collapse
 
benchsmoke profile image
BenchSmoke •

Splitting parse, schema, and correctness into separate grades is the part I'd copy. Did the 75% and 4% numbers count replies that only passed after the repair ladder, or only the raw output? A repair step that quietly fixes small slips could move those numbers a lot.

Collapse
 
mattbusel profile image
Matt Busel •

Good catch, they're after the ladder: schema check runs on whatever the ladder hands back. I just split it from the graded file. The 75% (18 of 24) is 15 that parsed raw plus 3 the ladder rescued, so raw-only it's 62.5%. The 4% (1 of 24) parsed raw and the ladder rescued nothing, which kinda makes the point: no_repeat_ngram_size doesn't cause small slips a repair step can fix, it stops the model from writing JSON at all. The ladder did matter more with the plain prompt: Llama greedy was 10 raw plus 9 rescued for 19 schema-valid. I should've put the raw column in the table, fair ask.