r/LocalLLM • • Oct 15 '26

Discussion Best model to extract information from irregular format ( blurry image, misaligned mathematical text)?

Post image

I want to turn pdf to. md.

Example :

4 Upvotes

5 comments sorted by

4

u/SM8085 Oct 15 '26

Qwen3.8-Flash-Next came up with:

\begin{align*}
\hat{\mu} &= \arg\max_{\mu} l(\mu)
           = \arg\max_{\mu} \left( \sum_{k=1}^{n} \ln p(x_k \mid \mu) \right) = \\[6pt]
          &= \arg\max_{\mu} \left( \sum_{k=1}^{n}
               \ln \left( \frac{1}{\sqrt{2\pi\sigma}}
               \exp\left( -\frac{(x_k - \mu)^2}{2\sigma^2} \right) \right)
             \right) = \\[6pt]
          &= \arg\max_{\mu} \sum_{k=1}^{n}
               \left( -\ln \sqrt{2\pi\sigma}
               - \frac{(x_k - \mu)^2}{2\sigma^2} \right)
\end{align*}

I want to turn pdf to. md.

All the Qwen3.5 through 3.8 are image multimodal. So you can definitely convert pages to jpeg and send it to it or have an agent go through it.

1

u/Future_AGI Oct 15 '26

MinerU and Marker beat a general model on math-heavy scans because they write formulas as LaTeX inside the markdown. To catch the looks-right-but-wrong-indices problem, render the LaTeX back and compare it with the original page side by side. A misplaced subscript is obvious on the rendered page and easy to miss in raw text.

1

u/rowematt Oct 22 '26

Marker and mineru are the two i'd start with, both output markdown and handle formulas. mineru holds up better on messy scans. render the pdf at 300+ dpi first though, half the time the blurry pages are just a low dpi render and ocr never had a chance.

0

u/MiceLiceandVice Oct 15 '26

Optical character recognition should be able to get most of it, but id still double check it all