LFM3-VL-2B 等小模型读工程图基准测试
Can a small local model read engineering drawings? LFM3 gets a challenge
制造与设计工程师 Nithin 在 Mac mini 本地对比 Liquid AI LFM3-VL-2B(2B)、Google gemma-4-e2b 与 Claude Sonnet 5.5 在 35 张公共领域工程图上的读取与理解表现,含 30 张 NIST PMI/GD&T 测试图、1890 年代手写阀门图与 NIST 期刊页。
用统一答题键与盲评把抄图准确率与 GD&T 理解分开量化,便于判断本地小模型在车间私有化抄录里能用到哪一步。
x.com/i/article/2115670636114…
【X 长文】Can a small local model read engineering drawings? LFM3 gets a challenge
A 2B model on a Mac mini can copy a drawing surprisingly well if you show it the sheet in pieces. It can't understand one yet, and better eyesight isn't the fix.
Last week Liquid AI released LFM3-VL-2B, a 2-billion-parameter vision model. It turned out to be the most accurate local document reader we had tested.
So Nithin, who works in manufacturing, and design and engineering for mass production of components and integrated products, asked the harder question: can it read an engineering drawing? Not just copy the text off it, but understand what the drawing is asking for?
He sent two folders of public-domain drawings and a brief. Tune the prompt on one sheet first, then run them all, and compare against a capable cloud model so we know what "good" looks like.
Test performed and reported by Nithin’s clankers - Davidson, Claude the builder and Grokbot.
Short answer: a small local model can copy a drawing surprisingly well if you show it the sheet in pieces. It cannot yet understand one. And the gap is not eyesight: handing it a perfect transcription barely helps.
The contestants
- LFM3-VL-2B (Liquid AI) is the model under test: 2B parameters, 2.2 GB on disk, running locally in LM Studio on a Mac mini (Apple M4, 16 GB).
- gemma-4-e2b (Google) is the local model that already reads documents and camera snapshots in the house. It's the incumbent LFM has to beat.
- Claude Sonnet 5.5 is the cloud baseline, there to show what the best current performance on the same job looks like.
All three got identical images and identical questions.
The drawings
The set is 35 sheets in three families:
- 30 NIST PMI test sheets. NIST publishes these to test whether CAD software carries tolerances correctly. They are dense with GD&T (geometric dimensioning and tolerancing): the boxed "feature control frames" that say how much a hole may wander, how flat a face must be, and which surfaces everything is measured from. Realistic, hard, and free of copyright.
- Two hand-drawn valve drawings from the Massachusetts water works, 1896 and 1899: a 30-inch gate valve and a plug drain valve. Hand lettering, fractions, no GD&T at all. They test reading in the old sense.
- Three pages of a NIST journal paper on an additive-manufacturing test part. Part drawing, part typeset page.
Choice 1: build the answer key first
You can't grade a drawing reader without knowing what's on the drawing.
For every sheet, an answer key was built by hand-reading the image at full zoom, cross-checked against the text layer of NIST's own PDFs where one exists. The text layer covers notes and title blocks, but not the dimensions, which are drawn as graphics.
Each key has three parts:
- A full reference transcription: title block, notes, and every callout.
- Between 10 and 25 machine-checkable items, such as "3X Ø.250 +.003/-.000 is present" or "material is 11 GA 304 SST".
- Six questions: two about reading a value, two about what a tolerance frame means, and two engineering questions, such as what the part is and why a datum was chosen. Each comes with its correct answer.
That came to 613 checkable items and 210 questions. 52 items too weak to mean anything were dropped (such as a check that passes if the letter "H" appears anywhere), plus one question the sheet didn't actually support.
Choice 2: tune the ask on one sheet, for each model
Small models are sensitive to how you ask, so a fair test starts by finding each model's best way in. Six ways of asking were tried on the plate above, each scored against its key.
The winner was the same for both models: cut the sheet into four overlapping zoomed tiles and read each tile in its own call.
These models shrink every image to a fixed small size before they look at it. A whole 2200×1700 sheet arrives with its .016 tolerances blurred into mush. A quarter-sheet keeps the digits legible.
Two side lessons:
- Gemma loops on multiple images. Asked to read the whole sheet and four tiles in one request, it repeated itself until it ran out of room.
- Glossaries leak. Given a cheat sheet of GD&T symbols, LFM on one tile simply copied the glossary into its answer. Copied symbol names would have scored as correct readings, so the scorer now strips any echoed prompt text before scoring.
Choice 3: separate eyesight from understanding
A model that answers wrongly might have misread the sheet, or read it fine and not understood it. Different problems, different fixes. So every question was asked three ways:
- The sheet alone.
- The sheet plus the model's own zoomed transcription, a two-step pipeline the house could actually run.
- The sheet plus a correct transcription. This removes eyesight from the picture. Whatever the model still gets wrong, it got wrong by not understanding.
Choice 4: grade blind
210 questions × 3 models × 3 conditions came to 1,890 answers.
They were graded by five separate grading runs, each seeing only anonymous letters A to I in shuffled order, never which model or condition wrote an answer.
The scale: 2 = right, 1 = partly right, 0 = wrong. Every answer was also flagged if it stated a specific falsehood with confidence, or if it declined to answer.
The graders caught a mistake in the key itself. On one NIST sheet, a conical taper (1:3, on the two cones) had been swapped with a slope (1:2, on an inclined face). The grader checked the image and graded against the sheet. That question is excluded from the third condition, because the "correct" transcription carried the same swap.
Result 1: reading. LFM beats gemma, both trail the cloud
On the 30 NIST sheets, LFM got 77% of the keyed items, gemma 67%, Sonnet 95%.
On the hand lettering of the 1890s valves the gap widens: LFM 69%, gemma 49%. On the journal pages, mostly ordinary typeset text, gemma edges ahead at 86%.
The bottom row is the telling one. GD&T meaning lives in symbols: a parallelogram for flatness, a ⊥ for perpendicularity, a half-moon for profile. The small models can read the numbers in a frame but almost never name the symbol in front of them.
Symbols named: LFM 21%, gemma 9%, Sonnet 92%.
A tolerance of ".01" means nothing until you know whether it is flatness or position.
Both small models also invented values. Across the 30 NIST sheets, LFM produced 7 decimal values that appear nowhere on the sheet, and gemma produced 12. Sonnet's single flagged value is unconfirmed.
Result 2: understanding, the real gap
This is the chart the whole exercise was built for.
- Sheet alone: LFM 28%, gemma 25%, Sonnet 94%.
- Given its own transcription: neither small model improves much. LFM drops to 27%, gemma rises to 31%.
- Given a perfect transcription: LFM rises to 38%, gemma to 43%. Sonnet stays at 93%.
So better eyesight would buy the small models perhaps ten to fifteen points. The other fifty-odd points are missing knowledge.
Broken down by kind of question, with the correct transcription supplied:
- Reading a value back: LFM 64%, gemma 69%
- What the part is: LFM 28%, gemma 31%
- What a GD&T frame means: LFM 20%, gemma 25%
What the wrong answers look like, all from the condition where the model had the correct transcription in front of it:
None of these is a reading error. Each model had the right characters in front of it. What it lacked is the standard (ASME Y14.5) that says what the characters mean.
Result 3: how they fail matters
For an engineer this is the most important chart.
LFM was confidently wrong on 41% of answers and almost never said "I can't tell from this". Gemma was confidently wrong on 29%, and declined 14% of the time. Sonnet was confidently wrong on 1%.
A tool that says "I don't know" can be routed around. A tool that tells you a free-state modifier is "1.2 degrees of circularity" will eventually put a wrong number on a shop-floor traveller.
LFM's eagerness is what made it the best copier in the room. It is also what makes it the worst interpreter.
Speed
The zoomed reading costs four model calls per sheet. LFM takes a median of 20 s per sheet on the Mac mini and gemma takes 9 s. Sonnet, in one cloud call, takes 8 s.
The whole Sonnet baseline, 35 sheets read plus the same 210 questions asked in all three conditions (630 answers), cost a few dollars of API use.
Verdict
So, does a small model have the potential?
On reading, yes, and LFM3 is the strongest small reader we've tried. The tiling trick lifted it from 44% to 78% on the tuning sheet, and better vision encoders will close more of that.
On understanding, the missing piece is domain knowledge. A 2-billion-parameter general model has not absorbed ASME Y14.5. That is the kind of gap fine-tuning on annotated drawings could plausibly close. Prompt cleverness does not, as the correct-transcription condition shows.
For now, the useful division of labour: a small local model as the copier, pulling title blocks, notes, part numbers and raw callouts off a drawing, cheaply and privately, as a draft that a person checks.
Anything that requires knowing what a tolerance means goes to a model that knows the standard, or to the engineer.
Notes on method
- Thinking off. The local models ran with thinking off and temperature 0 through LM Studio's llama.cpp engine. Every response was checked to confirm the intended model actually answered: LM Studio will quietly serve whatever model is loaded if asked for one that isn't.
- Cloud settings. Sonnet ran with its default thinking and read the whole sheet plus the four tiles in a single call.
- Bias. The answer keys were written, and the answers graded, by Claude Opus instances working from the sheet images. That gives Claude-family wording a slight home advantage for Sonnet in grading. The size of the gap, 93% against 43% even with the transcription supplied, is far larger than any wording effect.
- Sources. All drawings are public domain: the NIST PMI test models, the NIST additive-manufacturing test artifact (J. Res. NIST 119, 2014), and two Massachusetts water-works sheets via Wikimedia Commons and the Digital Public Library of America.
Full write-up with method, data and drawings: nithinkd.github.io/workshop/p…
来源:nithinkd · x.com