CSPO: Alleviating Reward Ambiguity for Structured Table-to-LaTeX Generation
Organizations: Beijing Key Laboratory of Traffic Data Mining and Embodied Intelligence, Beijing Jiaotong University · Microsoft Research Asia · Peng Cheng Laboratory
Abstract
Tables contain rich structured information, yet when stored as images their contents remain "locked" within pixels. Converting table images into LaTeX code enables faithful digitization and reuse, but current multimodal large language models (MLLMs) often fail to preserve structural, style, or content fidelity. Conventional post-training with reinforcement learning (RL) typically relies on a single aggregated reward, leading to reward ambiguity that conflates multiple behavioral aspects and hinders effective optimization. We propose Component-Specific Policy Optimization (CSPO), an RL framework that disentangles optimization across LaTeX tables components-structure, style, and content. In particular, CSPO assigns component-specific rewards and backpropagates each signal only through the tokens relevant to its component, alleviating reward ambiguity and enabling targeted component-wise optimization. To comprehensively assess performance, we introduce a set of hierarchical evaluation metrics. Extensive experiments demonstrate the effectiveness of CSPO, underscoring the importance of component-specific optimization for reliable structured generation. Our code is available at https://github.com/microsoft/CSPO.
Figures & tables
| Model | TEDS ↑ | OF ↑ | S ↑ | C ↑ | Y ↑ | ↑ | ↑ | ↑ | R ↑ |
|---|---|---|---|---|---|---|---|---|---|
| GPT-4o ( OpenAI, 2025a ) | 72.3 | 6.8 | 65.0 | 73.1 | 9.4 | 23.0 | 54.0 | 72.5 | 99.9 |
| Gemini-2.5 Flash ( Comanici et al., 2025 ) | 66.2 | 11.1 | 78.8 | 79.2 | 12.9 | 33.5 | 47.2 | 81.3 | 99.3 |
| Qwen2.5-VL-72B ( Bai et al., 2025 ) | 75.9 | 10.1 | 79.6 | 76.2 | 12.6 | 32.1 | 56.7 | 69.9 | 99.7 |
| Nougat ( Blecher et al., 2023 ) | 67.9 | 21.2 | 68.7 | 63.3 | 25.8 | 37.1 | 71.9 | 70.1 | 99.1 |
| Qwen2.5-VL-3B | 66.0 | 3.1 | 51.8 | 59.8 | 4.5 | 18.9 | 34.0 | 61.7 | 93.7 |
| Qwen2.5-VL-3B-VSGRPO ∗ ( Ling et al., 2025 ) | 87.8 | 40.4 | 77.5 | 86.6 | 47.6 | 70.9 | 71.4 | 91.9 | 99.7 |
| DocGenome-table-1k | Table2LaTeX-test-simple | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Method | TEDS ↑ | OF ↑ | S ↑ | C ↑ | Y ↑ | TEDS ↑ | OF ↑ | S ↑ | C ↑ | Y ↑ |
| GPT-4o ( OpenAI, 2025a ) | 60.2 | 5.1 | 55.0 | 41.2 | 8.4 | 70.6 | 3.4 | 60.9 | 66.1 | 4.6 |
| Gemini-2.5 Flash ( Comanici et al., 2025 ) | 60.5 | 8.0 | 64.9 | 57.1 | 12.5 | 71.5 | 10.5 | 72.0 | 78.4 | 12.9 |
| Qwen2.5-VL-72B ( Bai et al., 2025 ) | 60.3 | 5.0 | 61.2 | 53.9 | 8.2 | 74.7 | 7.5 | 64.9 | 66.5 | 11.7 |
| Nougat ( Blecher et al., 2023 ) | 30.8 | 0.8 | 27.7 | 4.4 | 8.8 | 27.0 | 0.4 | 20.6 | 2.8 | 5.7 |
| Qwen2.5-VL-3B | 50.2 | 1.1 | 43.5 | 37.0 | 1.7 | 63.5 | 2.0 | 39.1 | 44.2 | 3.0 |
| Model | TEDS ↑ | OF ↑ | S ↑ | C ↑ | Y ↑ |
| Base | 66.0 | 3.1 | 51.8 | 59.8 | 4.5 |
| SFT | 87.1 | 39.8 | 75.8 | 86.1 | 47.3 |
| GRPO | 87.7 | 42.0 | 74.7 | 86.7 | 50.3 |
| CSPO w/ Comp. Sum | 87.7 | 42.2 | 76.3 | 87.0 | 50.9 |
| CSPO w/o Global | 87.7 | 44.7 | 77.9 | 86.3 | 51.2 |
| CSPO (Ours) | 87.9 | 45.2 | 77.6 | 87.0 | 53.6 |
| LLM Evaluators/Judge | Method | Overall Fidelity | Structure Fidelity | Content Fidelity | Style Fidelity |
|---|---|---|---|---|---|
| GPT-4o (by default) | SFT | 39.8 | 75.8 | 86.1 | 47.3 |
| GRPO | 42.0 | 74.7 | 86.7 | 50.3 | |
| CSPO (Ours) | 45.2 | 77.6 | 87.0 | 53.6 | |
| Qwen3-Next-80b | SFT | 37.6 | 72.0 | 88.4 | 47.2 |
| GRPO | 39.7 | 71.6 | 88.2 | 49.9 | |
| CSPO (Ours) | 43.3 | 75.5 | 88.5 | 52.5 |
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
| Notation | Description |
|---|---|
| Input table image | |
| Generated LaTeX sequence | |
| Reference LaTeX sequence | |
| Policy model with parameters | |
| Length of LaTeX sequence | |
| Number of rollouts per group |
| Variant | TEDS ↑ | OF ↑ | S ↑ | C ↑ | Y ↑ | ↑ | ↑ | ↑ | R ↑ |
|---|---|---|---|---|---|---|---|---|---|
| GRPO (no components) | 87.7 | 42.0 | 74.7 | 86.7 | 50.3 | 74.9 | 71.5 | 92.0 | 99.6 |
| CSPO w/o Content Reward | 87.9 | 45.2 | 77.4 | 86.9 | 53.4 | 76.0 | 74.4 | 92.5 | 99.7 |
| CSPO w/o Structure Reward | 87.8 | 43.3 | 77.0 | 86.0 | 51.8 | 73.3 | 74.5 | 92.4 | 99.6 |
| CSPO w/o Style Reward | 87.7 | 43.1 | 79.0 | 87.5 | 49.6 | 72.3 | 72.7 | 92.4 | 99.6 |
| CSPO (Ours) | 87.9 | 45.2 | 77.6 | 87.0 | 53.6 | 76.5 | 74.2 | 92.1 | 99.6 |
| Variant | TEDS ↑ | OF ↑ | S ↑ | C ↑ | Y ↑ | ↑ | ↑ | ↑ | R ↑ |
|---|---|---|---|---|---|---|---|---|---|
| GRPO ( ) | 87.7 | 42.0 | 74.7 | 86.7 | 50.3 | 74.9 | 71.5 | 92.0 | 99.6 |
| CSPO ( ) | 88.0 | 43.6 | 76.4 | 85.9 | 52.1 | 74.4 | 74.1 | 91.9 | 99.8 |
| CSPO ( ) | 87.9 | 44.8 | 77.1 | 86.9 | 53.1 | 76.0 | 73.8 | 92.7 | 99.7 |
| CSPO ( ) | 87.9 | 45.2 | 77.6 | 87.0 | 53.6 | 76.5 | 74.2 | 92.1 | 99.6 |
| CSPO ( ) | 87.7 | 44.7 | 77.9 | 86.3 | 51.2 | 73.7 | 73.4 | 92.1 | 99.8 |
| Method | TEDS | OF | Structure | Content | Style |
|---|---|---|---|---|---|
| GRPO | 87.7 | 42.0 | 74.7 | 86.7 | 50.3 |
| CSPO (Graded 0-3) | 88.0 | 44.4 | 77.3 | 86.7 | 51.8 |
| CSPO (Binary 0/1) | 87.9 | 45.2 | 77.6 | 87.0 | 53.6 |
| LLM Evaluators/Judge | Method | Overall Fidelity | Structure Fidelity | Content Fidelity | Style Fidelity |
|---|---|---|---|---|---|
| GPT-4o (by default) | SFT | 50.7 | 79.7 | 90.3 | 59.0 |
| GRPO | 50.6 | 80.7 | 89.7 | 58.9 | |
| CSPO (Ours) | 53.0 | 81.4 | 90.0 | 60.6 | |
| Qwen3-Next-80b | SFT | 47.1 | 77.1 | 91.5 | 57.5 |
| GRPO | 49.7 | 77.6 | 91.5 | 59.8 | |
| CSPO (Ours) | 52.0 | 79.5 | 92.2 | 61.8 |
| Evaluator | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|
| GPT-4o | 89.8 | 86.9 | 88.3 | 89.8 |
| Qwen3-Next-80b | 88.8 | 85.6 | 87.2 | 88.8 |
| DeepSeek-v3.2 | 92.4 | 76.9 | 84.0 | 87.0 |
| GPT-5.2 | 97.5 | 70.7 | 82.0 | 86.2 |
| Method | OF | Structure | Content | Style |
|---|---|---|---|---|
| GRPO | 42.0 | 74.7 | 86.7 | 50.3 |
| CSPO (Reported) | 45.2 | 77.6 | 87.0 | 53.6 |
| CSPO (Mean ×8) | 44.9 | 77.7 | 86.8 | 52.9 |
| CSPO (Var ×8) | 0.3 | 0.1 | 0.1 | 0.4 |