HermEs: Interactive Spreadsheet Formula Prediction via Hierarchical Formulet Expansion
Wanrong He, Haoyu Dong, Yihuai Gao, Zhichao Fan, Xingzhuo Guo, Zhitao Hou, Xiao Lv, Ran Jia, Shi Han, Dongmei Zhang
Abstract
We propose HERMES, the first approach for spreadsheet formula prediction via HiEraRchical forMulet ExpanSion, where hierarchical expansion means generating formulas following the underlying parse tree structure, and Formulet refers to commonly-used multi-level patterns mined from real formula parse trees. HER-MES improves the formula prediction accuracy by (1) guaranteeing correct grammar by hierarchical generation rather than left-to-right generation and (2) significantly streamlining the token-level decoding with high-level Formulet. Notably, instead of generating formulas in a pre-defined fixed order, we propose a novel sampling strategy to systematically exploit a variety of hierarchical and multi-level expansion orders and provided solid mathematical proof, with the aim of meeting diverse human needs of the formula writing order in real applications. We further develop an interactive formula completion interface based on HER-MES, which shows a new user experience in https://github.com/formulet/HERMES .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
2 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- FLAME: A Small Language Model for Spreadsheet Formulas cites Learning to Complete Code with Sketches
- SheetAgent: Towards a Generalist Agent for Spreadsheet Reasoning and Manipulation via Large Language Models cites SpreadsheetCoder: Formula Prediction from Semi-structured Context
Cited by top-tier papers2
- FLAME: A Small Language Model for Spreadsheet FormulasHarshit Joshi, Abishai Ebenezer, José Pablo Cambronero Sánchez, Sumit Gulwani et al.AAAI 2024 · 21 citations
- SheetAgent: Towards a Generalist Agent for Spreadsheet Reasoning and Manipulation via Large Language ModelsYibin Chen, Yifu Yuan, Zeyu Zhang, Yan Zheng et al.WWW 2025 · 13 citations
Builds on6
- TUTA: Tree-based Transformers for Generally Structured Table Pre-trainingZhiruo Wang, Haoyu Dong, Ran Jia, Jia Li et al.KDD 2021 · 88 citations
- Graph-to-Tree Neural Networks for Learning Structured Input-Output Translation with Applications to Semantic Parsing and Math Word ProblemShucheng Li, Lingfei Wu, Shiwei Feng, Fangli Xu et al.EMNLP Findings 2020 · 71 citations
- SpreadsheetCoder: Formula Prediction from Semi-structured ContextXinyun Chen, Petros Maniatis, Rishabh Singh, Charles Sutton et al.ICML 2021 · 63 citations
- Learning to Complete Code with SketchesDaya Guo, Alexey Svyatkovskiy, Jian Yin, Nan Duan et al.ICLR 2022 · 42 citations
- Blank Language ModelsTianxiao Shen, Victor Quach, Regina Barzilay, Tommi S. JaakkolaEMNLP 2020 · 8 citations
Related papers
- FORTAP: Using Formulas for Numerical-Reasoning-Aware Table PretrainingZhoujun Cheng, Haoyu Dong, Ran Jia, Pengfei Wu et al.ACL 2022
- SheetPT: Spreadsheet Pre-training Based on Hierarchical Attention NetworkRan Jia, Qiyu Li, Zihan Xu, Xiaoyuan Jin et al.AAAI 2023 · 3 citations
- Transformer-based model for symbolic regression via joint supervised learningWenqiang Li, Weijun Li, Linjun Sun, Min Wu et al.ICLR 2023
- How Transformers Represent Hierarchies: A Local-to-Global MechanismZhiling Zhou, Tianhao Wang, Zhuoran YangICML 2026
- HMS: A Hierarchical Solver with Dependency-Enhanced Understanding for Math Word ProblemXin Lin, Zhenya Huang, Hongke Zhao, Enhong Chen et al.AAAI 2021 · 70 citations
