FlashProfile: A Framework for Synthesizing Data Profiles
Authors:
- Saswat PadhiSPSaswat Padhi
- Prateek JainPJPrateek Jain
- Daniel PerelmanDPDaniel Perelman
- Oleksandr PolozovOPOleksandr Polozov
- Sumit GulwaniSGSumit Gulwani
- Todd MillsteinTMTodd Millstein
Preprint
Abstract
We address the problem of learning a syntactic profile for a collection of strings, i.e. a set of regex-like patterns that succinctly describe the syntactic variations in the strings. Real-world datasets, typically curated from multiple sources, often contain data in various syntactic formats. Thus, any data processing task is preceded by the critical step of data format identification. However, manual inspection of data to identify the different formats is infeasible in standard big-data scenarios. Prior techniques are restricted to a small set of pre-defined patterns (e.g. digits, letters, words, etc.), and provide no control over granularity of profiles. We define syntactic profiling as a problem of clustering strings based on syntactic similarity, followed by identifying patterns that succinctly describe each cluster. We present a technique for synthesizing such profiles over a given language of patterns, that also allows for interactive refinement by requesting a desired number of clusters. Using a state-of-the-art inductive synthesis framework, PROSE, we have implemented our technique as FlashProfile. Across $153$ tasks over $75$ large real datasets, we observe a median profiling time of only $\sim\,0.7\,$s. Furthermore, we show that access to syntactic profiles may allow for more accurate synthesis of programs, i.e. using fewer examples, in programming-by-example (PBE) workflows such as FlashFill.
Keywords
All Related Versions
This publication has 25 references indexed in Scilit:
- Profiling relational data: a surveyThe VLDB Journal, 2015
- LearnPADS + + : Incremental Inference of Ad Hoc Data FormatsLecture Notes in Computer Science, 2012
- Automating string processing in spreadsheets using input-output examples2011
- LearnPADS2008
- The Haar+ Tree: A Refined Synopsis Data Structure2007
- Combinatorial sketching for finite programs2006
- Survey of Clustering AlgorithmsIEEE Transactions on Neural Networks, 2005
- On Clustering Validation TechniquesJournal of Intelligent Information Systems, 2001
- Random ForestsMachine Learning, 2001
- Learning regular sets from queries and counterexamplesInformation and Computation, 1987