Helix: Accelerating Human-in-the-loop Machine Learning

Doris Xin, Litian Ma, Jialin Liu, Stephen Macke, Shuchen Song, Aditya G. Parameswaran

Abstract

Machine learning (ML) development is an inherently iterative process, yet most existing systems are optimized for single-execution workflows. This paper presents HELIX, a declarative ML system designed to accelerate the "trial-and-error" phase by treating a sequence of iterations as a single optimization problem. HELIX uses intelligent program analysis to decide which intermediate results to materialize and which to recompute, significantly reducing redundant work. Evaluation across diverse ML tasks shows that HELIX can achieve up to a 10x reduction in cumulative runtime compared to state-of-the-art tools like DeepDive and KeystoneML.

Introduction

The majority of a data scientist's time is spent in a human-in-the-loop cycle: modifying pre-processing steps, engineering new features, or tuning hyperparameters. Traditional ML systems often fail to support this iterative nature efficiently. When a developer makes a minor change, many systems re-run the entire pipeline from scratch, wasting significant time on unchanged upstream components. Conversely, "cache-everything" approaches lead to unsustainable storage overhead and can degrade performance. HELIX addresses this bottleneck by providing a holistic framework for managing the lifecycle of iterative ML workflows.

System Design and Methodology

HELIX is built around a declarative Domain Specific Language (DSL) in Scala, which allows users to define modular ML pipelines. These programs are parsed into a Directed Acyclic Graph (DAG) of operations, enabling the system to track changes and perform program slicing to prune unnecessary computations.

Figure 1: The HELIX system architecture, showing the transition from a Scala DSL program to an optimized execution DAG.

The core innovation of HELIX lies in its approach to the recomputation vs. materialization trade-off:

  1. Recomputation: The system must decide whether to load a previously saved result or recompute it. HELIX reduces this to a Max-Flow problem, proving it can be solved optimally in polynomial time (PTIME).
  2. Materialization: Deciding which current results to save for future iterations is NP-Hard. HELIX employs an efficient online heuristic based on a cost model that balances compute time, load time, and storage constraints.

By separating these two concerns, HELIX provides an optimal execution plan for the current iteration while making smart, budget-aware decisions for the future.

Experimental Evaluation

The performance of HELIX was evaluated using two primary datasets: a standard tabular Census dataset for income prediction and a complex Information Extraction (IE) task for identifying person mentions in news articles.

Figure 2: Cumulative runtime comparison between HELIX, DeepDive, and KeystoneML across multiple iterations for IE and Census tasks.

As shown in Figure 2, HELIX consistently outperforms existing systems. In the Census classification task, HELIX achieved nearly a 10x reduction in cumulative runtime. For the more complex IE task, it reduced runtime by 60% compared to DeepDive. Notably, in iterations involving only post-processing changes, HELIX achieved near-zero runtimes by reusing cached intermediate results.

Conclusion and Future Work

HELIX demonstrates that significant performance gains can be achieved by optimizing for the iterative nature of ML development. By finding the "Goldilocks" zone of selective materialization—saving intermediates that are expensive to compute but cheap to store—HELIX removes the computational friction from the human-in-the-loop process.

Future work includes improving change detection heuristics to overcome the undecidability of functional equivalence and refining materialization heuristics using predictive models of user behavior to better anticipate which results will be most valuable in future iterations.

Summary updated

BibTeX
@article{xin2018helix,
  author = {Doris Xin and Litian Ma and Jialin Liu and Stephen Macke and Shuchen Song and Aditya G. Parameswaran},
  title = {{Helix: Accelerating Human-in-the-loop Machine Learning}},
  journal = {Proc. VLDB Endow.},
  year = {2018},
  doi = {10.14778/3229863.3236234},
}
Figure