Metamorphic Testing Flags Faulty LLM Outputs Without Needing Labeled Data
A developer has shared a technique for detecting incorrect LLM outputs in document extraction tasks where no ground-truth labels exist. The approach borrows from metamorphic testing, checking whether transformations that should not affect a result — such as reordering line items on a receipt — actually leave the output unchanged. When the extracted value shifts after such a neutral transformation, the output is flagged as potentially wrong. In held-out tests, flagged receipts were 2.7 times more likely to contain genuine errors than unflagged ones, all without any labeled examples. The method is available as an open-source Python package called 'wobbly' on GitHub and PyPI.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in