Parameter-Efficient Adaptation of Qwen3-VL for Handwritten Mathematical Expression Recognition
Organizations: Department of Artificial Intelligence, FPT University, Ho Chi Minh City, Vietnam . · Faculty of Computer Science, Ho Chi Minh City Open University, Ho Chi Minh City, Vietnam .
Abstract
Handwritten mathematical expression recognition (HMER) requires joint recovery of symbol identity and two-dimensional syntax, so a locally plausible transcription may still be structurally wrong. We study whether a compact vision-language model can be adapted to generate linearized Symbol Label Graphs (SLGs) under limited computing resources. Starting from a 4-bit Qwen3-VL-4B checkpoint, we apply rank-16 Low-Rank Adaptation to the vision, language, attention, and MLP modules and train with instruction-formatted CROHME 2019 examples. We compare this model with an internally implemented ViT-Transformer baseline, a zero-shot Qwen3-VL configuration, and additional internally evaluated alternatives. On the 1,198 valid CROHME test examples, the CROHME-only model obtains 524 exact matches (43.74%) and a corpus BLEU-4 score of 77.67, compared with 4.92% and 43.26 for the task-specific ViT baseline. An ablation that adds 2,000 manually written, formula-guided samples decreases exact match to 42.32%, exposing a domain-alignment issue rather than an automatic benefit from more data. The principal contribution is therefore an evidence-backed, resource-efficient formulation of HMER as multimodal structural generation, together with a controlled data-composition ablation and an analysis of the remaining gap between local token overlap and globally correct structure.
Figures & tables
| Split | Expressions | Avg. Tokens | Median Tokens | Max Tokens | Min Tokens |
|---|---|---|---|---|---|
| Test | 1199 | 19.91 | 17 | 91 | 0 |
| Train | 8900 | 18.57 | 15 | 133 | 1 |
| Valid | 986 | 19.32 | 17 | 189 | 1 |
| Model | Training data | Exact match | BLEU-4 |
|---|---|---|---|
| ViT Hybrid baseline | CROHME (8.9K) | 4.92% (59/1198) | 43.26 |
| Qwen3-VL zero-shot | none | 0.00% (0/1198) | 1.32 |
| Qwen2.5-VL fine-tuned | CROHME (8.9K) | 28.38% (340/1198) | 63.00 |
| IM2TEX reimplementation Deng et al. (2017) | CROHME (8.9K) | 38.74% | 50.28 |
| Qwen3-VL fine-tuned | CROHME (8.9K) | 43.74% (524/1198) | 77.67 |
| Qwen3-VL fine-tuned | CROHME + 2K generated | 42.32% (507/1198) | 75.46 |
| Qwen3-VL setting | Exact/non-exact | BLEU-1 | BLEU-2 | BLEU-3 | BLEU-4 |
|---|---|---|---|---|---|
| Zero-shot | 0/1198 | 12.02 | 2.29 | 1.52 | 1.32 |
| Fine-tuned, CROHME | 524/674 | 89.27 | 85.36 | 81.43 | 77.67 |
| Fine-tuned, CROHME + 2K | 507/691 | 87.56 | 82.79 | 78.96 | 75.46 |