ModelHub.AI: Dissemination Platform for Deep Learning Models

Ahmed Hosny, Michael Schwier, Christoph Berger, Evin Pinar Örnek, Mehmet Turan, Phi V. Tran, Leon Weninger, Fabian Isensee, Klaus H. Maier-Hein, Richard McKinley, Michael T. Lu, Udo Hoffmann, Bjoern H. Menze, Spyridon Bakas, Andriy Fedorov, Hugo J. W. L. AertsarXiv 2019

Abstract

Recent advances in artificial intelligence research have led to a profusion of studies that apply deep learning to problems in image analysis and natural language processing among others. Additionally, the availability of open-source computational frameworks has lowered the barriers to implementing state-of-the-art methods across multiple domains. Albeit leading to major performance breakthroughs in some tasks, effective dissemination of deep learning algorithms remains challenging, inhibiting reproducibility and benchmarking studies, impeding further validation, and ultimately hindering their effectiveness in the cumulative scientific progress. In developing a platform for sharing research outputs, we present ModelHub.AI (www.modelhub.ai), a community-driven container-based software engine and platform for the structured dissemination of deep learning models. For contributors, the engine controls data flow throughout the inference cycle, while the contributor-facing standard template exposes model-specific functions including inference, as well as pre- and post-processing. Python and RESTful Application programming interfaces (APIs) enable users to interact with models hosted on ModelHub.AI and allows both researchers and developers to utilize models out-of-the-box. ModelHub.AI is domain-, data-, and framework-agnostic, catering to different workflows and contributors' preferences.

Introduction

The "reproducibility crisis" in artificial intelligence is a significant barrier to scientific progress. A 2018 survey revealed that out of 400 AI studies, none reported all variables necessary for reproduction, and only a meager 6% shared their code. While various "model zoos" exist, they are frequently siloed by specific frameworks (e.g., PyTorch or TensorFlow) and often lack the critical "glue code"—the specific data loading, normalization, and post-processing steps—required to achieve reported results. Furthermore, the rapid pace of library updates often leads to "version rot," where a model becomes unusable within months due to dependency changes. ModelHub.AI addresses these challenges by providing a structured, permanent, and framework-agnostic dissemination platform.

System Architecture and Methods

ModelHub.AI utilizes a three-tiered architecture designed for maximum portability and ease of use. At its core is Containerization via Docker, which packages the model with its entire environment (operating system, libraries, and dependencies). This ensures that the model runs identically regardless of the host machine's configuration.

The second tier is the ModelHub Engine, a backend software layer that manages the "plumbing" of the inference cycle. It handles data flow, converts various input formats into standard NumPy arrays, and directs them through the model.

The third tier is the Standardized Model Template. To contribute a model, researchers populate a lightweight template containing the model weights, a JSON configuration file for metadata and I/O requirements, and Python functions for inference and processing steps. This structure mandates the inclusion of pre- and post-processing pipelines, which are often the missing links in reproducibility.

The ModelHub.AI architecture showing the engine, template, and API layers.

Interaction with the platform is facilitated through two primary interfaces: a Python API for deep integration into research workflows and a RESTful API (powered by Flask) for web service integration.

Portability and Maintenance

A key innovation of ModelHub.AI is the decoupling of the runtime environment from the model source. This is achieved through a stacked Docker image approach. By layering the ModelHub Engine on top of a base Model Runtime and Operating System, the platform can be updated without breaking the underlying models. This architecture supports the platform's goal of long-term stability and framework agnosticism, allowing users to interact with the ModelHub API rather than the underlying library.

The stacked Docker image approach used by ModelHub.AI to ensure long-term stability and decoupling.

Validation and Results

The platform's efficacy was validated using several benchmarks. For ImageNet, nine popular classification models (including ResNet, VGG, and Xception) were packaged. The "Implemented Accuracy" on ModelHub was found to be nearly identical to the "Reported Accuracy" in original publications. For instance, Xception achieved 78.1% top-1 accuracy on the platform compared to the reported 79.0%.

In the domain of medical imaging, ModelHub.AI successfully hosted winning architectures from the BraTS 2018 (Brain Tumor Segmentation) challenge. The platform demonstrated its ability to handle complex 3D data and specialized medical formats like NIfTI and DICOM, which are typically unsupported by standard model repositories. At the time of publication, the registry already supported a diverse range of tasks, including 2D/3D segmentation, object detection, and survival prediction.

Discussion and Future Work

While ModelHub.AI significantly lowers the barrier to model dissemination, it currently focuses strictly on inference and does not support training or fine-tuning within the platform. Additionally, the dependency on Docker requires a certain level of technical proficiency and administrative access on host systems.

Future developments aim to include support for sharing training code, hyperparameter configurations, and the assignment of Digital Object Identifiers (DOIs) to models to facilitate academic citation. By standardizing the "inference cycle," ModelHub.AI provides a robust foundation for cumulative scientific progress and benchmarking in deep learning.

Summary updated

BibTeX
@misc{hosny2019modelhub,
  author = {Ahmed Hosny and Michael Schwier and Christoph Berger and Evin Pinar Örnek and Mehmet Turan and Phi V. Tran and Leon Weninger and Fabian Isensee and Klaus H. Maier-Hein and Richard McKinley and Michael T. Lu and Udo Hoffmann and Bjoern H. Menze and Spyridon Bakas and Andriy Fedorov and Hugo J. W. L. Aerts},
  title = {{ModelHub.AI: Dissemination Platform for Deep Learning Models}},
  year = {2019},
  eprint = {1911.13218},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.13218},
}
Figure