ELKI: A large open-source library for data analysis - ELKI Release 0.7.5 "Heidelberg"

Erich Schubert, Arthur ZimekarXiv 2019

The world of data mining research moves fast, but the software frameworks that support it often struggle to keep pace. For years, ELKI (Environment for Developing KDD-Applications Supported by Index-Structures) has been a cornerstone for researchers focusing on unsupervised learning. With the release of version 0.7.5, nicknamed "Heidelberg," the framework receives its most significant update in years, bridging the gap between classic algorithms and modern high-performance computing.

The ELKI logo and its descriptive acronym.

TL;DR

ELKI 0.7.5 "Heidelberg" is a massive update to the leading open-source Java framework for unsupervised data mining. It introduces dozens of new algorithms for clustering and outlier detection, adds support for Java 11, and debuts a new "Builder API" to drastically simplify the integration of complex data structures into research workflows.

What Problem Does This Paper Address?

Algorithm research requires more than just a library of functions; it requires a sandbox where algorithms can be evaluated fairly, parameterized deeply, and scaled to massive datasets.

The authors identify a common trap in data science: researchers often use outdated versions of tools because the latest development versions are difficult to build or integrate. Before this release, the official version of ELKI was three years old and broken on Java 11. Furthermore, while ELKI is famous for its performance-boosting index structures (like the R*-tree), initializing these complex objects in pure Java code was notoriously difficult, often requiring a dozen or more parameters in a single constructor.

Methods

ELKI distinguishes itself by being "index-aware." While many libraries treat data as a flat list, ELKI uses sophisticated spatial and metric index structures to accelerate queries.

The "Heidelberg" release introduces several key methodological improvements:

  • The ELKI Builder API: This is perhaps the most significant quality-of-life improvement. By adopting the "builder" pattern, the framework now allows researchers to initialize complex factories (like an R*-tree with specific bulk-loading strategies) using readable, named parameters and sensible default values.
  • Algorithm Expansion: The release adds a staggering number of implementations, including FastPAM and FastCLARA (which offer $O(k)$ speedups for medoid-based clustering), and t-SNE with Barnes-Hut approximation for high-dimensional projections.
  • Parallelization: New parallel versions of algorithms like GDBSCAN allow the framework to better utilize multi-core processors, focusing on the bottleneck of neighbor discovery.

Datasets

As a software documentation paper, the focus is on the framework's capabilities rather than a specific experiment. However, ELKI 0.7.5 expands its data handling significantly. It includes new parsers for libSVM formats, ARFF (Weka), and transactional data. The authors also provide a dedicated "example-elki-project" on GitHub to help new users get started with their own datasets.

Key Insights and Ideas

  • Index-First Performance: The "aha moment" of ELKI is that the choice of index structure is often more important for performance than the algorithm itself. By making these structures modular and easy to swap, ELKI allows for "fair" benchmarking where every algorithm can benefit from the same acceleration.
  • Bridging the GUI-Code Gap: The new Builder API uses string parameters that correspond directly to the settings in ELKI’s "MiniGUI." This allows a researcher to find the perfect parameters visually and then copy-paste those exact strings into their production Java code.
  • Uncertainty as a First-Class Citizen: The release includes a dedicated "Uncertain" data layer, allowing researchers to run clustering and outlier detection on data points represented as probability distributions rather than fixed coordinates.

Key Results

The paper serves as a catalog of three years of progress. Highlights include:

  • Clustering: Improvements to Gaussian Mixture Modeling (GMM) for numerical stability and the addition of "k-Means--" for noise robustness.
  • Outlier Detection: New methods like Stochastic Outlier Selection (SOS) and intrinsic dimensionality estimators (ALID).
  • Evaluation: The inclusion of DBCV (Density-Based Cluster Validation), a crucial metric for evaluating the quality of clusters without relying on ground-truth labels.
  • Efficiency: The implementation of Xoroshiro128, a state-of-the-art fast random number generator, ensuring that even the "random" parts of the algorithms are optimized for speed.

Limitations and Future Work

The authors are candid about the project's crossroads. As the lead authors move into new career responsibilities, they are calling on the community to help maintain ELKI as the "largest open-source collection of clustering and outlier detection algorithms."

Looking ahead, version 0.8.0 is expected to bring "breaking changes," including a total overhaul of package names and a full migration to Java 11 modules. For now, 0.7.5 stands as the stable, feature-complete snapshot for the research community.

Availability: Links to the project website, GitHub, and Maven Central.

Links to the project website, GitHub, and Maven Central.

Summary updated

Abstract

This paper documents the release of the ELKI data mining framework, version 0.7.5. ELKI is an open source (AGPLv3) data mining software written in Java. The focus of ELKI is research in algorithms, with an emphasis on unsupervised methods in cluster analysis and outlier detection. In order to achieve high performance and scalability, ELKI offers data index structures such as the R*-tree that can provide major performance gains. ELKI is designed to be easy to extend for researchers and students in this domain, and welcomes contributions of additional methods. ELKI aims at providing a large collection of highly parameterizable algorithms, in order to allow easy and fair evaluation and benchmarking of algorithms. We will first outline the motivation for this release, the plans for the future, and then give a brief overview over the new functionality in this version. We also include an appendix presenting an overview on the overall implemented functionality.
BibTeX
@misc{schubert2019elki,
  author = {Erich Schubert and Arthur Zimek},
  title = {{ELKI: A large open-source library for data analysis - ELKI Release 0.7.5 "Heidelberg"}},
  year = {2019},
  eprint = {1902.03616},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.03616},
}
Figure