mlsanityData to 14 Oct 2026

FormulaSPIN: Self-Play Fine-Tuning for Natural Language to Spreadsheet Formula Generation

arXiv 2607.19354 ↗First posted 21 May 2026cs.AIcited by 0

On the map: Synthetic data and self-improvement for LLMs → Self-play RL for reasoning

Abstract (arXiv)

Spreadsheet applications are used by hundreds of millions worldwide, yet writing formulas remains a significant barrier. Existing approaches rely on static supervised data, which quickly saturates on limited annotations. In this paper, we introduce FORMULASPIN, a self-play framework that breaks the ceiling of supervised fine-tuning by enabling iterative self-improvement without any additional data. Vanilla SPIN fails on this task: it uniformly penalizes every non-matching output, so execution-equivalent alternatives are punished as negatives in one example while serving as ground truth in another, producing contradictory gradients. Our framework resolves this by exploiting formula generation's unique advantage: binary executability provides implicit supervision that separates semantic errors from valid stylistic variants. We frame training as a two-player game in which the main player learns to prefer ground-truth formulas over those from its previous version, while execution feedback sorts outputs into distinct granularities-enabling an adaptive curriculum that shifts from semantic correctness to stylistic refinement. To further increase accuracy, we incorporate ExecVote, a semantic-level voting mechanism that naturally handles multiple valid formulations. Experiments on multiple benchmarks demonstrate that FORMULASPIN achieves state-of-the-art performance, with 74.9% exact match and 87.1% execution accuracy on NL2FORMULA, matching models trained with additional preference annotations while outperforming both traditional SFT and frontier proprietary models. These findings underscore self-play's potential to tackle scarce data tasks and open the door to extending it beyond executable domains.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Self-play RL for reasoning, one of 13 directions in Synthetic data and self-improvement for LLMs. Builds on 18 of its 35 references that are in the map. First posted on arXiv 21 May 2026.

Builds on

18 of 35 references.

References · 18

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  6. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
  7. 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,986
  8. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,745
  9. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  10. 2023Teaching Large Language Models to Self-Debugcited by 988
  11. 2024Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Modelscited by 557
  12. 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 411
6 more
  1. 2021TAPEX: Table Pre-training via Learning a Neural SQL Executorcited by 235
  2. 2020TUTA: Tree-based Transformers for Generally Structured Table Pre-trainingcited by 100
  3. 2022TableFormer: Robust Transformer Modeling for Table-Text Encodingcited by 91
  4. 2024Curriculum Learning for Small Code Language Modelscited by 22
  5. 2021FORTAP: Using Formulas for Numerical-Reasoning-Aware Table Pretrainingcited by 19
  6. 2025SPFT-SQL: Enhancing Large Language Model for Text-to-SQL Parsing by Self-Play Fine-Tuningcited by 5

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Formula-R1: Incentivizing LLM Reasoning over Complex Tables with Numerical Computation via Formula-Driven Reinforcement Learning
  2. 2026SpreadsheetArena: Decomposing Preference in LLM Generation of Spreadsheet Workbooks
  3. 2026BlueFin: Benchmarking LLM Agents on Financial Spreadsheets
  4. 2025ArenaBencher: Automatic Benchmark Evolution via Multi-Model Competitive Evaluation
  5. 2024Self-Explore: Enhancing Mathematical Reasoning in Language Models with Fine-grained Rewards
  6. 2026MathDuels: A Self-Play Benchmark That Grows
  7. 2024An Empirical Study of Validating Synthetic Data for Formula Generation
  8. 2023Beyond Human Data: Scaling Self-Training for Problem-Solving with Language Models