cs.AIFeb 19, 2026
SaveTexo: Formula Recognition within 20M Parameters
Organizations: LTCI, T´el´ecom Paris, Institut Polytechnique de Paris Paris, France
Abstract
In this paper we present Texo, a minimalist yet highperformance formula recognition model that contains only 20 million parameters. By attentive design, distillation and transfer of the vocabulary and the tokenizer, Texo achieves comparable performance to state-of-the-art models such as UniMERNet-T and PPFormulaNet-S, while reducing the model size by 80% and 65%, respectively. This enables real-time inference on consumer-grade hardware and even in-browser deployment. We also developed a web application to demonstrate the model capabilities and facilitate its usage for end users.
Figures & tables
Fig. 1: Example images that Texo is able to recognize.
| Model | GOT-OCR2.0 | UniMERNet-T | PPFormulaNet-S |
|---|---|---|---|
| Encoder | ViT 95M | SwinT 25M | HGNetV2 14M |
| Decoder | Qwen2 463M | MBart 81M | MBart 44M |
| Vocab. size | 152K | 50K | 50K |
| Hidden. dim. | 1024 | 512 | 384 |
| Embedding | 155M | 51M | 38M |
| Total | 560M | 107M | 58M |
TABLE I: Parameter counts of formula recognition models
Fig. 2: Texo model architecture in the training process
| Model | Params. | CDM ↑ | Token length ↓ | GPU inference time per sample(ms) ↓ | ||||||
| SPE | CPE | SCE | HWE | SPE | CPE | SCE | HWE | |||
| Mathpix | - | 0.973 | 0.967 | 0.924 | 0.932 | - | - | - | - | - |
| UniMERNet-T | 107M | 0.991 | 0.949 | 0.938 | 0.933 | 1 14.82 | 475.52 | 3 5.93 | 3 4.99 | 2266.96 |
| PPFormulaNet-S | 5 7M | 0.949 | 0.678 | 0.856 | 0.818 | 117.10 | 4 61.16 | 45.95 | 41.44 | 217.60 |
| Texo | 20M | 0 .958 | 0 .825 | 0 .882 | 0 .902 | 62.63 | 242.77 | 20.92 | 21.48 | 3 11.26 |
TABLE II: The recognition performance of different models on the UniMER-Test dataset.
Explore similar work
Finding a compact formula that fits a set of input-output pairs and predicts outputs on unseen inputs is a fundamental problem in science. Symbolic regression automates the search for such formulae: search-based methods explore the space of possible formulae directly, while transformers pre-trained on synthetic data produce formulae of comparable quality substantially faster. Existing transformers, however, are prone to overfitting --- they find formulae that fit the training data well but do not extrapolate to input ranges unseen during training. We address this by shaping the set of formulae used to train a transformer, and show that the resulting formulae extrapolate substantially better. Fine-tuning the transformer on data with noise-corrupted target values further makes the synthesized formulae robust to noise in the observations. On SRBench and LLM-SRBench our transformer synthesizes a formula in about ten seconds and extrapolates better than all evaluated methods at a comparable budget. Search-based methods surpass our accuracy only when given one to three orders of magnitude more time.
Inferring the Size of Large Language Models From Popular Text Memorization
The parameter counts of the most widely used large language models (LLMs) are often withheld by their developers, leaving model size -- a primary reference point for interpreting capabilities and costs -- largely undisclosed. We propose a black-box method to infer conservative lower bounds on LLM size from generated text outputs alone, requiring nothing beyond the ability to submit text fragments and observe next-token predictions. Our approach is grounded in a key observation: popular, widely-circulated texts -- such as classical literature, religious texts, and foundational documents -- are present in virtually every large-scale pretraining corpus, and how accurately a model predicts the next word across text fragments of varying length is a reliable signal of how much it has memorized them, which in turn is fundamentally limited by its total parameter count. We aggregate this memorization signal across a diverse corpus of texts and fragment lengths into a single accuracy profile vector per model, and build two complementary inference methods on top of it: a pairwise statistical test that determines which of two models is larger, and a scaling-law estimator that extracts a one-dimensional latent index from these vectors via Principal Component Analysis (PCA) to map the aggregated signal to a parameter count. Validated on a broad set of open-weight models, both methods produce accurate and reliable lower bounds. When applied to popular closed-weight models, our framework recovers internal product hierarchies and reveals a clear divergence in industry scaling strategies: while some developers yield significantly higher bounds indicative of large generational parameter growth, others operate under strict parameter ceilings, demonstrating that hidden design choices can be systematically probed even under strict API limitations.
ufakzeka-1: Building and Evaluating a 151M-Parameter Turkish Language Model from Scratch
We describe ufakzeka-1, a 151M-parameter (182M with embeddings) decoder-only Turkish language model pretrained from scratch on 13.5B tokens of openly licensed text and instruction-tuned for chat, at a total cost of about $286 in cloud GPU, API and notebook time. The contribution is not the model's capability, which is what a model this size can be expected to have, but the record of building and measuring it: a Turkish byte-level tokenizer at 1.77 tokens per word, a three-stage pretraining schedule, a post-training mixture of openly licensed and generated data, and an evaluation battery of release gates, a rule-checked sweep of 5,508 conversations, judged conversations and hand tests, all with prompts held out from the training data, enforced by decontamination inside the data build and by a checked-in invariant script we run before each build. We report three findings that we believe transfer to other small-model efforts: a safety gate that had been "fixed" with training data written from its own questions read 64/64 while the honest figure was 34/64; training-seed variance was as large as the spread across every recipe we tried, so single-seed comparisons at this scale are uninformative; and data rounds repaired only what was absent from the data, while identity tracking over long context and multi-turn arithmetic did not move across any data change we tried, which we read as limits of the model size rather than gaps in the data, a reading the next, larger model will test. Weights, the data recipe, the evaluation code and the spend ledger are released under Apache-2.0.