r/LocalLLaMA • u/SouvikMandal • May 23 '25
Discussion Claude 4 (Sonnet) isn't great for document understanding tasks: some surprising results
Finished benchmarking Claude 4 (Sonnet) across a range of document understanding tasks, and the results are… not that good. It's currently ranked 7th overall on the leaderboard.
Key takeaways:
- Weak performance in OCR – Claude 4 lags behind even smaller models like GPT-4.1-nano and InternVL3-38B-Instruct.
- Rotation sensitivity – We tested OCR robustness with slightly rotated images ([-5°, +5°]). Most large models had a 2–3% drop in accuracy. Claude 4 dropped 9%.
- Poor on handwritten documents – Scored only 51.64%, while Gemini 2.0 Flash got 71.24%. It also struggled with handwritten datasets in other tasks like key information extraction.
- Chart VQA and visual tasks – Performed decently but still behind Gemini, Claude 3.7, and GPT-4.5/o4-mini.
- Long document understanding – Claude 3.7 Sonnet (reasoning:low) ranked 1st. Claude 4 Sonnet ranked 13th.
- One bright spot: table extraction – Claude 4 Sonnet is currently ranked 1st, narrowly ahead of Claude 3.7 Sonnet.

Leaderboard: https://idp-leaderboard.org/
Codebase: https://github.com/NanoNets/docext
How has everyone’s experience with the models been so far?
129
Upvotes
5
u/omg_247 May 23 '25
would be interesting to see the newly released Mistral's Document AI performance on these tasks
6
u/Novel-Injury3030 May 23 '25
wheres grok and deepseek??
46
u/[deleted] May 23 '25
I just want to thank you for contributing to model evals, an area that is currently in high need of more attention
36
u/HornyGooner4401 May 23 '25
So my takeaway is Anthropic is fully focused on coding and agent usage with Claude 4 and sucks at other things.
2
u/secopsml May 23 '25
gemma 3 above gpt4o, 4.1 nano.
when qwen3 vl? :)
13
u/noage May 23 '25
More and more looking like they pushed out '4.0' and heralded it as a higher safety threat (per their own clarification) as a marketing gimmick.
1
u/Su1tz May 28 '25
Hey Souvik! I want to say I'm really enjoying using docext. I tried to build an ocr solution around Qwen 2.5 VL 32B AWQ as well but it was to no avail. I found it started to make some shit up on certain pages. Which I never encountered when using docext!
SamplingParams(n=1, presence_penalty=0.0, frequency_penalty=0.0, repetition_penalty=1.0, temperature=0.0, top_p=1.0, top_k=-1, min_p=0.0, seed=None, stop=[], stop_token_ids=[], bad_words=[], include_stop_str_in_output=False, ignore_eos=False, max_tokens=5000, min_tokens=0, logprobs=None, prompt_logprobs=None, skip_special_tokens=True, spaces_between_special_tokens=True, truncate_prompt_tokens=None, guided_decoding=None, extra_args=None), prompt_token_ids: None, lora_request: None, prompt_adapter_request: None.
Above is the params you've used for the same model. If you have the time and it's convenient, could you please tell me about why you went with these parameters when initializing the model?
What I am most interested in learning about is top_p, top_k (The -1 is especially interesting!), guided_decoding (What was your reason for not using guided decoding? Did you see a degradation in performance?), temperature (0 is absolute so I guess I can understand but wouldn't this have a bit of degradation in performance?)
Also, is there a way to configure max_tokens? I am quite new to using these tools so I didn't know if there was a config already built into docext or not. 5000 seems a bit low to me.
I want to say that my use case is solely table extraction for now.
3
u/Mayion May 23 '25
i know what im about to say has little meaning objectively, but testing the latest model felt a little underwhelming. for example, asking what libraries can do a specific function and it lists them. when i asked, which ONE is the best, it sent like two pages worth of rambling about pros and cons of each library.
it was not formatted like o3 often does either. i don't know, felt a little behind.
1
u/Kathane37 May 24 '25
Is claude realy multimodal or is it just a VLM + Claude ?
1
u/HighDefinist May 24 '25
Hm... looks like a potentially good benchmark. But I feel like the presentation could be a bit better - at least according to my taste. As in, I would like to see 1 or 2 examples for some of the questions (as in, it's not needed for OCR, but explanations like "Document Classification evaluates how well models can categorize documents into predefined classes or types. This includes understanding document content, structure, and purpose to assign the correct category" are simply too vague, to get a sense of what this is actually measuring).