Skip to content
AI News HubLIVE
Original source2 min read

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

Summary

FORMULASPIN introduces a self-play framework for generating spreadsheet formulas from natural language, overcoming the limitations of supervised fine-tuning by leveraging formula executability as implicit supervision. It achieves state-of-the-art results with 74.9% exact match and 87.1% execution accuracy on NL2FORMULA without additional data.

SourcearXiv AIAuthor: Cy Xie
FormulaSPIN: Self-Play Fine-Tuning for Natural Language to Spreadsheet Formula Generation
Report an error

The correction channel is not available yet. You can copy the article reference below for later.

Correction instructions
Read article

[Submitted on 21 May 2026]

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

View a PDF of the paper titled FormulaSPIN: Self-Play Fine-Tuning for Natural Language to Spreadsheet Formula Generation, by Cy Xie

View PDF HTML (experimental)

Abstract: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.

Comments: 15 pages,7 figures, 14 tables. Accepted to ACL 2026 Main Conference Oral

Subjects:

Artificial Intelligence (cs.AI)

Cite as: arXiv:2607.19354 [cs.AI]

(or arXiv:2607.19354v1 [cs.AI] for this version)

https://doi.org/10.48550/arXiv.2607.19354

arXiv-issued DOI via DataCite

Submission history

From: Tianzhu Xie [view email] [v1] Thu, 21 May 2026 18:09:33 UTC (1,890 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled FormulaSPIN: Self-Play Fine-Tuning for Natural Language to Spreadsheet Formula Generation, by Cy Xie

View PDF

HTML (experimental)

TeX Source

view license

Current browse context:

cs.AI

new | recent | 2026-07

Change to browse by:

cs

References & Citations

NASA ADS

Google Scholar

Semantic Scholar

Loading...

Data provided by:

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)

Key points and analysis

Article intelligence

EngineersAdvanced

Key points

  • Self-play framework breaks the ceiling of supervised fine-tuning, enabling iterative self-improvement without additional data.
  • Levels vanilla SPIN's contradictory gradients by using binary executability to separate semantic errors from valid stylistic variants.
  • ExecVote mechanism handles multiple valid formulas through semantic-level voting.
  • Achieves SOTA performance on multiple benchmarks, matching models trained with extra preference annotations.

Highlights and analysis are generated automatically and may contain errors. Check the original source.