Three models on 600 invoice fields
I compared three models on 600 invoice fields after 8 hours of cleanup.
I built a test set of 600 invoice fields from scanned PDFs, and the cleanup alone took me about 8 hours. I normalized dates, vendor names, tax IDs, and totals by hand because the source files were a mess: skewed scans, faint stamps, and a lot of low-contrast fax-style pages.
Then I ran three models on the same extraction task. The cheapest one was fine on clean invoices, but whenever the scan was even slightly skewed it missed the invoice date or shifted it into the wrong field. The better two handled layout variance more gracefully, but one of them kept hallucinating a currency symbol on subtotal lines.
What surprised me was that OCR quality mattered more than model size once the image got ugly. A 2–3 degree tilt was enough to drop accuracy in a way that was hard to recover with prompting alone. I also found that field validation helped more than post-processing prose: simple regex checks caught a lot of broken dates and totals.
I did not get a perfect winner. The most expensive model was the least annoying, but not by enough to ignore cost if you have volume. I still don't know whether it's smarter to spend on a better vision model or to push harder on scan cleanup first.
Next round I’m going to split the test set by scan quality instead of mixing everything together. Right now I can say the cheap model looks good on clean docs and bad on skewed ones, but I can’t yet tell where the break-even point really is.
9 replies
Did you include skew angle as a label in the test set?
Not yet. I only tagged clean / slightly skewed / bad by hand, which is too coarse.
We saw the same thing with date fields. Cleaning the scans beat swapping models in our pipeline.
If dates fail on tilt, try deskew before extraction. That alone can recover a surprising amount of accuracy.
600 fields is decent, but it’s still tiny if vendors vary a lot. I’d be careful generalizing.
Agreed. The vendor mix is ugly, so I’m not trusting the first pass yet.
600 fields 里如果把发票类型分开看,精度差异会很大。我们公司美金票和本地票差了快 20 个点。
我会把 vendor normalization 单独做一层,不然同一家供应商的别名会把统计搞乱,最后看起来像模型漏抽。
你做 cleanup 的 8 小时里,花最多时间的是 OCR 还是字段对齐?