CORNET: Learning Table Formatting Rules By Example
Not on the map. Why?
Abstract (arXiv)
Spreadsheets are widely used for table manipulation and presentation. Stylistic formatting of these tables is an important property for both presentation and analysis. As a result, popular spreadsheet software, such as Excel, supports automatically formatting tables based on rules. Unfortunately, writing such formatting rules can be challenging for users as it requires knowledge of the underlying rule language and data logic. We present CORNET, a system that tackles the novel problem of automatically learning such formatting rules from user examples in the form of formatted cells. CORNET takes inspiration from advances in inductive programming and combines symbolic rule enumeration with a neural ranker to learn conditional formatting rules. To motivate and evaluate our approach, we extracted tables with over 450K unique formatting rules from a corpus of over 1.8M real worksheets. Since we are the first to introduce conditional formatting, we compare CORNET to a wide range of symbolic and neural baselines adapted from related domains. Our results show that CORNET accurately learns rules across varying evaluation setups. Additionally, we show that CORNET finds shorter rules than those that a user has written and discovers rules in spreadsheets that users have manually formatted.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 14 of its 53 references that are in the map. First posted on arXiv 11 Aug 2022.
Builds on
14 of 53 references.
References · 14
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2020TAPAS: Weakly Supervised Table Parsing via Pre-trainingcited by 434
- 2018Stacked Cross Attention for Image-Text Matchingcited by 416
- 2020TaBERT: Pretraining for Joint Understanding of Textual and Tabular Datacited by 398
- 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
- 2020TUTA: Tree-based Transformers for Generally Structured Table Pre-trainingcited by 100
- 2020Learning programs by learning from failurescited by 73
- 2021SpreadsheetCoder: Formula Prediction from Semi-structured Contextcited by 41
- 2020BUSTLE: Bottom-Up Program Synthesis Through Learning-Guided Explorationcited by 30
- 2021Shellcode_IA32: A Dataset for Automatic Shellcode Generationcited by 16
Built on by
Citing papers per year: 2023: 2; 2024: 2.
4 papers.
- 2023InstructExcel: A Benchmark for Natural Language Instruction in Excelcited by 15
- 2023FormaT5: Abstention and Examples for Conditional Table Formatting with Natural Languagecited by 7
- 2024RTify: Aligning Deep Neural Networks with Human Behavioral Decisionscited by 3
- 2024An Empirical Study of Validating Synthetic Data for Formula Generationcited by 0
- 2024RTify: Aligning Deep Neural Networks with Human Behavioral Decisions6 Nov 2024
- 2024An Empirical Study of Validating Synthetic Data for Formula Generation15 Jul 2024
- 2023FormaT5: Abstention and Examples for Conditional Table Formatting with Natural Language26 Oct 2023
- 2023InstructExcel: A Benchmark for Natural Language Instruction in Excel23 Oct 2023