Demo Application for the A uto GOAL Framework (2020)

Abstract: This paper introduces a web demo that showcases the main characteristics of the AutoGOAL framework. AutoGOAL is a framework in Python for automatically finding the best way to solve a given task. It has been designed mainly for automatic machine learning(AutoML) but it can be used in any scenario where several possible strategies are available to solve a given computational task. In contrast with alternative frameworks, AutoGOAL can be applied seamlessly to Natural Language Processing as well as structured classification problems. This paper presents an overview of the framework’s design and experimental evaluation in several machine learning problems, including two recent NLP challenges. The accompanying software demo is available online ( https://autogoal.github.io/demo ) and full source code is provided under the MIT open-source license ( https://autogoal.github.io ).

## introduction the field of machine learning has applications across a wide range of computational problems in different domains. however, given the vast quantity of resources and technologies available, often one of the most difficult challenges is to select the best combination of them when a specific problem is faced. researchers often spend a significant amount of time and computational resources exploring multiple approaches in search of optimal configurations. the field of automatic machine learning (automl) has risen to prominence as a principled alternative for finding optimal or close to optimal solutions to complex machine learning problems @xcite . several software libraries have been created, which leverage existing machine learning technologies and provide automl features built on them. most existing automl tools focus on a specific family of algorithms (such as neural networks) or a specific problem setting (such as supervised learning from tabular data). hence, despite the recent success of automl, several challenges still remain, specially in complex domains such as natural language processing, where tools and technologies from different sources must be combined. this work presents autogoal, a software library for automl that can seamlessly combine technologies and resources from different frameworks. to unify disparate apis into a single interface, autogoal proposes a novel graph-based representation for machine learning pipelines. furthermore, a search strategy based on probabilistic grammatical evolution is used to discover optimal machine learning pipelines @xcite whose components can be from different back-end libraries. a showcase web application is provided to illustrate the use of the framework. the key features of autogoal are: ease of use: autogoal provides high-level classes that non-experts can use as black-box automl solutions, compatible with several data types including text, images and structured (tabular) data. multiple domains: autogoal comes prepackaged with 133 plus adapters of existing algorithms, from 7 different back-end libraries, for multiple problems including text preprocessing, feature extraction, dataset augmentation, dimensionality reduction, as well as supervised and unsupervised learning techniques. extensibility: autogoal proposes a simple programming interface that developers can implement to create an automatically discoverable adapter for an existing technology from any machine learning framework. this paper focuses on the engineering design of autogoal by introducing a demo application using the library to solve several machine learning problems, organised as follow: section 2 describes autogoal from the perspective of a user of the library. section 3 describes the library's design. section 4 presents experimental results of the application of autogoal to several different machine learning problems. finally, section 5 presents the conclusions and recommendations for future work. ## library usage autogoal can be used as a software library in the python programming language. this library is oriented towards two machine learning user profiles: non-experts and experts, and provides a high-level and low-level api respectively. ## implementation details this section presents the overall architecture of the autogoal library. for reference purposes, figure 2 illustrates the most relevant components of autogoal, ranging from the high-level api down to the actual implementation of algorithm adapters and the interfaces to external resources and back-end libraries. the core of the autogoal library is the low-level api, composed of the following elements (see figure 2 ): a probabilistic context-free grammar module (grammar); a sampling and optimisation module (optimisation); and, a pipeline discovery module (pipelines). the grammar module provides a set of type annotations that are used for defining the hyperparameter space of an arbitrary technique or algorithm. each technique is represented as a python class, and the corresponding hyperparameters are represented as annotated arguments of the __init__ method, either primitive values (e.g., numeric, string, etc.) or instances of other classes, recursively annotated. given a collection of annotated classes, this module automatically infers a context-free grammar that describes the space of all possible instances of those classes. the optimisation module provides sampling strategies that traverse a context-free grammar and recursively construct one specific instance following the annotations. two optimisation strategies are implemented: random search and probabilistic grammatical evolution @xcite . the latter performs a sampling/update cycle that selects the best performing instances according to some predefined metric (e.g., accuracy on a development set) and iteratively updates the internal probabilistic model of the sampler @xcite . the pipelines module provides an abstraction for algorithms to communicate with each other via an facade pattern, i.e., the implementation of a method run with type-annotated input and output. classes implementing this pattern are automatically connected in a graph of algorithms where each path represents a possible pipeline for solving a specific problem (defined by the input and output datatypes). the high-level api that provides the automl class (see listing 1) and the semantic datatypes is built on top of this architecture, knitting together all the components of autogoal. autogoal also provides an algorithms library of pre-made adapters for existing machine learning technologies from external libraries and resources. a total of 133 algorithms from 7 different back-end libraries 4 are provided, several of which are semi-automatically created by code introspection (e.g., algorithms from scikit-learn and nltk which conform to a consistent api and the hyperparameters are documented in a consistent format), and the rest are manually added by the library developers. this library is undergoing continuous expansion. additionally, a docker image is provided with all optional dependencies and back-end libraries already installed foot_4 . ## evaluation autogoal has been evaluated in different domains and compared to other automl tools, including auto-weka @xcite , tpot (olson and moore, 2016), auto-sklearn @xcite , and ml-plan @xcite , see in terms of performance, autogoal achieves comparative results with other automl tools in classic datasets, with similar computational cost (1 hour per run). however, autogoal's main strength lies in its ability to combine different tools for solving complex problems beyond structured supervised learning, such as natural language processing, using virtually the same code, by specifying the input and output datatypes. in these domains autogoal performs comparable to state-of-the-art solutions hand-crafted by human experts, while requiring considerably less expertise and effort (48 hours of execution). ## conclusion in this paper we presented autogoal, a new tool for automl that allows resources from different machine learning libraries to be combined and applied to different domains with little effort. autogoal greatly simplifies the application of machine learning for non-expert users while providing powerful lowlevel components for experts to effectively optimise complex machine learning pipelines. the framework has been designed with extensibility as a priority, enabling the addition of new algorithms from any conceivable machine learning library by conforming to a simple interface. to demonstrate its usefulness, autogoal is applied to different domains -including classic numeric datasets, text classification, and entity recognition-achieving competitive results with the state of the art. the software is provided freely for the research community along with a vast library of algorithms already implemented.