Cornet: Learning Table Formatting Rules By Example

Author:

Singh Mukul1,Sánchez José Cambronero2,Gulwani Sumit3,Le Vu3,Negreanu Carina4,Raza Mohammad3,Verbruggen Gust5

Affiliation:

1. Microsoft, Delhi, India

2. Microsoft, New Haven, USA

3. Microsoft, Redmond, USA

4. Microsoft Research, Cambridge, UK

5. Microsoft, Keerbergen, Belgium

Abstract

Spreadsheets are widely used for table manipulation and presentation. Stylistic formatting of these tables is an important property for 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-provided 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 the task of automatically learning conditional formatting rules, 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 setups. Additionally, we show that in some cases Cornet can find rules that are shorter than those written by users and can also discover rules in spreadsheets that users have manually formatted. Furthermore, we present two case studies investigating the generality of our approach by extending Cornet to related data tasks (e.g., filtering) and generalizing to conditional formatting over multiple columns.

Publisher

Association for Computing Machinery (ACM)

Subject

General Earth and Planetary Sciences,Water Science and Technology,Geography, Planning and Development

Reference39 articles.

1. Spreadsheet Conditional Formatting: An Untapped Resource for Mathematics Education;Abramovich Sergei;Spreadsheets in Education,2004

2. Titus Barik , Kevin Lubick , Justin Smith , John Slankas , and Emerson Murphy-Hill . 2015 . Fuse: a reproducible, extendable, internet-scale corpus of spreadsheets . In 2015 IEEE/ACM 12th Working Conference on Mining Software Repositories. IEEE, IEEE/ACM , Florence, Italy, 486--489. Titus Barik, Kevin Lubick, Justin Smith, John Slankas, and Emerson Murphy-Hill. 2015. Fuse: a reproducible, extendable, internet-scale corpus of spreadsheets. In 2015 IEEE/ACM 12th Working Conference on Mining Software Repositories. IEEE, IEEE/ACM, Florence, Italy, 486--489.

3. Hendrik Blockeel and Luc De Raedt . 1998. Top-down induction of first-order logical decision trees. Artificial intelligence 101, 1--2 ( 1998 ), 285--297. Hendrik Blockeel and Luc De Raedt. 1998. Top-down induction of first-order logical decision trees. Artificial intelligence 101, 1--2 (1998), 285--297.

4. Xinyun Chen , Petros Maniatis , Rishabh Singh , Charles Sutton , Hanjun Dai , Max Lin , and Denny Zhou . 2021 . SpreadsheetCoder: Formula Prediction from Semi-structured Context . In Proceedings of the 38th International Conference on Machine Learning (Proceedings of Machine Learning Research), Marina Meila and Tong Zhang (Eds.) , Vol. 139 . PMLR, virtual, 1661--1672. https://proceedings.mlr.press/v139/chen21m.html Xinyun Chen, Petros Maniatis, Rishabh Singh, Charles Sutton, Hanjun Dai, Max Lin, and Denny Zhou. 2021. SpreadsheetCoder: Formula Prediction from Semi-structured Context. In Proceedings of the 38th International Conference on Machine Learning (Proceedings of Machine Learning Research), Marina Meila and Tong Zhang (Eds.), Vol. 139. PMLR, virtual, 1661--1672. https://proceedings.mlr.press/v139/chen21m.html

5. Learning programs by learning from failures

Cited by 2 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Visual Cues for Data Analysis Features Amplify Challenges for Blind Spreadsheet Users;Proceedings of the CHI Conference on Human Factors in Computing Systems;2024-05-11

2. FormaT5: Abstention and Examples for Conditional Table Formatting with Natural Language;Proceedings of the VLDB Endowment;2023-11

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3