Automatic Relational Data Augmentation for Machine Learning

Automatic Relational Data Augmentation for Machine Learning

ARDA: Automatic Relational Data Augmentation for Machine Learning Nadiia Chepurko1, Ryan Marcus1, Emanuel Zgraggen1, Raul Castro Fernandez2, Tim Kraska1, David Karger1 1MIT CSAIL 2University of Chicago fnadiia, ryanmarcus, emzg, kraska, [email protected] [email protected] ABSTRACT try to find the best model and tune hyper-parameters, but Automatic machine learning (AML) is a family of techniques also perform automatic feature engineering. In their current to automate the process of training predictive models, aim- form, AML tools can outperform experts [36] and can help to ing to both improve performance and make machine learn- make ML more accessible to a broader range of users [28,41]. ing more accessible. While many recent works have focused However, what if the original dataset provided by the user on aspects of the machine learning pipeline like model se- does not contain enough signal (predictive features) to cre- lection, hyperparameter tuning, and feature selection, rela- ate an accurate model? For instance, consider a user who tively few works have focused on automatic data augmen- wants to use the publicly-available NYC taxi dataset [24] to tation. Automatic data augmentation involves finding new build a forecasting model for taxi ride durations. Suppose features relevant to the user's predictive task with minimal the dataset contains trip information over the last five years, \human-in-the-loop" involvement. including license plate numbers, pickup locations, destina- We present ARDA, an end-to-end system that takes as tions, and pickup times. A model built only on this data input a dataset and a data repository, and outputs an aug- may not be very accurate because there are other major ex- mented data set such that training a predictive model on this ternal factors that impact the duration of a taxi ride. For augmented dataset results in improved performance. Our example, weather obviously has a strong impact on the de- system has two distinct components: (1) a framework to mand of taxis in NYC, and large events like baseball games search and join data with the input data, based on various can significantly alter traffic. attributes of the input, and (2) an efficient feature selection While it is relatively easy to find related datasets using algorithm that prunes out noisy or irrelevant features from systems like Google Data Search [11] or standardized repos- the resulting join. We perform an extensive empirical eval- itory like Amazon's data collections [54], trying to integrate uation of different system components and benchmark our these datasets as part of the feature engineering process re- feature selection algorithm on real-world datasets. mains a challenge. First, integrating related datasets re- quires finding the right join key between different datasets. PVLDB Reference Format: Consider, for example, the hypothetical taxi dataset and a Nadiia Chepurko, Ryan Marcus, Emanuel Zgraggen, Raul Castro related NYC weather dataset. While the taxi data is pro- Fernandez, Tim Kraska, David Karger. ARDA: Automatic Rela- tional Data Augmentation. PVLDB, 13(9): 1373-1387, 2020. vided as a list of events (one row per taxi ride), the weather DOI: https://doi.org/10.14778/3397230.3397235 data might be on the granularity of minutes, hours, or days, and might also contain missing information. To join the taxi 1. INTRODUCTION dataset with the NYC weather dataset, one needs to define an appropriate join key and potentially pre-aggregate and Automatic machine learning (AML) aims to significantly interpolate the weather dataset, as well as deal with null val- simplify the process of building predictive models. In its ues. Moreover, there might be hundreds of related tables, simplest form, AML tools automatically try to find the best creating a large amount of work for the user. machine learning algorithm and hyper-parameters for a given There exists a unique opportunity to explore this type of prediction task [44,59,60,66]. With AML, the user only has data augmentation automatically as part of an automatic to (1) provide a dataset (usually a table) with features and a machine learning pipeline. Automatically finding and join- predictive target (i.e., columns), and (2) specify their model ing related tables is challenging [26]. Users often have a hard goal (e.g., build a classifier and maximize the F1 score). time distinguishing a semantically meaningful join from an More advanced AML tools go even further and not only meaningless join if they don't know details about the join itself; the relevance of a join depends on the semantics of the table and there is no easy way to quantify semantics. How- This work is licensed under the Creative Commons Attribution- ever, in the context of automated machine learning, joining NonCommercial-NoDerivatives 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. For is significantly simpler as a clear evaluation metric exists: any use beyond those covered by this license, obtain permission by emailing does the prediction performance (e.g., accuracy, F1 score) [email protected]. Copyright is held by the owner/author(s). Publication rights after the join increase? This sidesteps the question of the licensed to the VLDB Endowment. semantic connection between two tables (perhaps implicitly Proceedings of the VLDB Endowment, Vol. 13, No. 9 measures it) while still increasing the metric the user cares ISSN 2150-8097. most about, the predictive model's performance. DOI: https://doi.org/10.14778/3397230.3397235 1373 In this paper, we explore how we can extend existing auto- intentionally conservative. ARDA is designed to automati- matic machine learning tools to also perform automatic data cally find feature sets that actually improve the predictive augmentation by joining related tables. A naive solution to power of the final model. Furthermore, they can only elim- the problem would try to find common join keys between ta- inate many-to-one joins and neither deal with one-to-many bles, then join all possible tables to create one giant \uber"- joins, nor with fuzzy joins (e.g., the weather and taxi data table, and then use a feature selection method (which are which must be joined on time). Thus, both [42] and [58] already part of many AML-tools) to select the right fea- are orthogonal to this work, as we are concerned with effec- tures. Obviously, such an approach has several problems. tively augmenting a base table to improve model accuracy First, in some cases like the weather and taxi data, a di- as opposed to determining which joins are potentially safe rect join-key might not exist, requiring a more fuzzy type to avoid. In our experimental study, we demonstrate that of join. Second, joining everything might create a giant ta- Kumar et al.'s decision rules can be used as a prefiltering ble, potentially with more features than rows. This can technique for ARDA, slightly affecting model performance be problematic even for the best existing feature selection (sometimes better, sometimes worse) but always improving methods (i.e., it creates an underdetermined system). Even runtime. with ideal feature selectors, the size of such an \uber"-table In summary we make the following contributions: may significantly slow down the AML process. Thus, we developed ARDA, a first Automatic Relational • We introduce ARDA, a system for automatic relational Data Augmentation system. From a base table provided by data augmentation which can discover joins that improve a user and a foreign key mapping (provided by the user or the performance of predictive models, discovered with an external tool [26]), ARDA automatically • we propose simple methods for performing one-to-many and efficiently discovers joins can help model performance, and \soft key" (e.g., time) joins useful for ML models, and avoids joins that add little or no value (e.g., noise). At a high level, ARDA works by first constructing a coreset, a • we introduce RIFS, a specific feature selection technique representative but small set of rows from the original sam- custom-tailored to relational data augmentation, ple table. This coreset is strategically joined with candidate tables, and features are evaluated using a novel technique • we experimentally demonstrate that effectiveness of our we call random injection feature selection (RIFS). At a high prototype implementation of ARDA, showing that rela- level, RIFS helps determine if the results of a join are help- tional data augmentation can be performed automatically ful for a predictive model by comparing candidate features in an end-to-end fashion. against noise: if a candidate feature performs no better than a feature consisting of random noise, that feature is unlikely 2. PROBLEM OVERVIEW to be useful. ARDA handles joins between mismatched keys In this section, we describe the setup and problem state- that may not perfectly align (e.g., time) using several inter- ment we consider. Our system is given as input a base table polation strategies. The final output of ARDA is an aug- with labelled data (that is, a specified column contains the mented dataset, containing all of the user's original dataset target labels) and the goal is to perform inference on this as well as additional features that increase the performance dataset (i.e., be able to predict the target label for a new row of a predictive model. of the table). We assume that the base table provided by While there has been prior work on data mining, knowl- the user is one table in a (potentially large) data repository edge discovery, data augmentation and feature selection, to (e.g. [2]). We assume the learning model is also specified and the best of our knowledge no system exists which automat- is computationally expensive to train.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    15 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us