SlideShare a Scribd company logo
WIFI SSID:Spark+AISummit | Password: UnifiedDataAnalytics
Jim Dowling, Logical Clocks AB and KTH
Moritz Meister, Logical Clocks AB
Asynchronous Hyperparameter
Optimization with Apache Spark
#UnifiedDataAnalytics #SparkAISummit
@jim_dowling
@morimeister
The Bitter Lesson (of AI)*
“Methods that scale with computation
are the future of AI”**
3
** https://www.youtube.com/watch?v=EeMCEQa85tw
Rich Sutton
(Father of Reinforcement Learning)
* http://www.incompleteideas.net/IncIdeas/BitterLesson.html
“The two (general purpose) methods that seem to scale
... are search and learning.”*
Spark scales with
available compute
=>
Spark is the answer!
This talk is about why bulk-
synchronous parallel compute
(Spark) does not scale efficiently
for search and how we made
Spark efficient for directed
search (task-based
asynchronous parallel compute).
4
Inner and Outer Loop of Deep Learning
Inner Loop
Outer Loop
Training Data
worker1 worker2 workerN
…
∆
1
∆
2
∆
N
Synchronization
Metric
Search
Method
HParams
http://tiny.cc/51yjdz
Inner and Outer Loop of Deep Learning
Inner Loop
Outer Loop
Training Data
worker1 worker2 workerN
…
∆
1
∆
2
∆
N
Synchronization
Metric
Search
Method
HParams
http://tiny.cc/51yjdz
LEARNINGSEARCH
7
Hopsworks –
a platform for Data-Intensive AI
Hopsworks Technical Milestones
8
World’s first Hadoop
platform to support
GPUs-as-a-Resource
World’s fastest
HDFS Published at
USENIX FAST with
Oracle and Spotify
World’s First
Open Source Feature
Store for Machine
Learning
World’s First
Distributed Filesystem to
store small files in
metadata on NVMe disks
Winner of IEEE
Scale Challenge
2017
with HopsFS - 1.2m
ops/sec
2017
World’s most scalable
POSIX-like Hierarchical
Filesystem with
Multi Data Center Availability
with 1.6m ops/sec on GCP
2018 2019
First non-Google ML
Platform with
TensorFlow Extended
(TFX) support through
Beam/Flink
World’s first
Unified
Hyperparam and
Ablation Study
Framework
The Complexity of Deep
Learning
9
Data validation
Distributed
Training
Model
Serving
A/B
Testing
Monitoring
Pipeline
Management
HyperParameter
Tuning
Feature Engineering
Data
Collection
Hardware
Management
Data Model Prediction
φ(x)
Hopsworks
Feature Store
Hopsworks
REST API
[Adapted from Schulley et al “Technical Debt of ML” ]
10
11
12
Datasources
Applications
API
Dashboards
Hopsworks
Apache Beam
Apache Spark Pip
Conda
Tensorflow
scikit-learn
Keras
Jupyter
Notebooks
Tensorboard
Apache Beam
Apache Spark
Apache Flink
Kubernetes
Batch Distributed
ML & DL
Model
Serving
Hopsworks
Feature Store
Kafka +
Spark
Streaming
Model
Monitoring
Orchestration in Airflow
Data Preparation
& Ingestion
Experimentation
& Model Training
Deploy
& Productionalize
Streaming
Filesystem and Metadata storage
HopsFS
“AI is the new Electricity”
– Andrew Ng
14
What engine should we use?
Engines Matter!
15
[Image from https://twitter.com/_youhadonejob1/status/1143968337359187968?s=20]
Engines Really Matter!
16
Photo by Zbynek Burival on Unsplash
Hopsworks Engine: ML Pipelines
17
Data
Pipelines
Ingest & Prep
Feature
Store
Machine Learning Experiments
Data Parallel
Training
Model
Serving
Ablation
Studies
Hyperparameter
Optimization
Bottleneck, due to
• iterative nature
• human interaction
Horizontal Scalability at all Stages
Iterative Model Development
• Trial and Error is slow
• Iterative approach is greedy
• Search spaces are usually large
• Sensitivity and interaction of
hyperparameters
18
Set Hyper-
parameters
Train Model
Evaluate
Performance
Black Box Optimization
19
Learning
Black Box
Metric
Meta-level
learning &
optimization
Search space
Parallel Black Box Optimization
20
Which algorithm to use for search? How to monitor progress?
Fault Tolerance?How to aggregate results?
Learning
Black Box
Metric
Meta-level
learning &
optimization Parallel
WorkersQueue
Trial
Trial
Search space
This should be managed with platform support!
Maggy
A flexible framework for
running different black-box
optimization algorithms
on Hopsworks:
ASHA, Bayesian
Optimization, Random
Search, Grid Search and
more to come…
21
Synchronous Search
22
Task11
Driver
Task12
Task13
Task1N
…
HDFS
Task21
Task22
Task23
Task2N
…
Barrier
Barrier
Task31
Task32
Task33
Task3N
…
Barrier
Metrics1 Metrics2 Metrics3
Add Early Stopping
23
Task11
Driver
Task12
Task13
Task1N
…
HDFS
Task21
Task22
Task23
Task2N
…
Barrier
Barrier
Task31
Task32
Task33
Task3N
…
Barrier
Metrics1 Metrics2 Metrics3
Wasted Compute Wasted ComputeWasted Compute
Performance Enhancement
24
Early Stopping:
● Median Stopping Rule
● Performance curve prediction
Multi-fidelity Methods:
● Successive Halving Algorithm
● Hyperband Figure: Successive Halving Algorithm
25
Synchronous Successive Halving
Kevin G. Jamieson et al. “Non-stochastic Best Arm Identification and Hyperparameter Optimization” (2015).
Animation: https://blog.ml.cmu.edu/2018/12/12/massively-parallel-hyperparameter-optimization/
26
Asynchronous Successive Halving
Liam Li et al. “Massively Parallel Hyperparameter Tuning” (2018).
Animation: https://blog.ml.cmu.edu/2018/12/12/massively-parallel-hyperparameter-optimization/
Challenge
How can we fit this into the bulk synchronous execution model of Spark?
Mismatch: Spark Tasks and Stages vs. Trials
27
Databricks’ approach: Project Hydrogen (barrier execution mode) & SparkTrials in Hyperopt
28
Task11
Driver
Task12
Task13
Task1N
…
Barrier
Metrics
New Trial
Early Stop
The Solution
Long running tasks:
Enter Maggy
30
User API
31
Developer API
32
Results
33
Hyperparameter Optimization Task ASHA Validation Task
ASHA
RS-ES
RS-NS
ASHA
RS-ES
RS-NS
Ablation
34
PClassname survivesex sexname survive
Replacing the Maggy Optimizer with
an Ablator:
• Feature Ablation using
the Feature Store
• Leave-One-Layer-Out Ablation
• Leave-One-Component-Out
(LOCO)
Ablation API
35
Ablation API
36
Conclusion
● Avoid iterative Hyperparameter Optimization
● Black box optimization is hard
● State-of-the-art algorithms can be deployed asynchronously
● Maggy: platform support for automated hyperparameter
optimization and ablation studies
● Save resources with asynchronism
● Early stopping for sensible models
37
What next?
38
• More algorithms
• Comparability of experiments
• Implicit Provenance
• Support for PyTorch
Thank you!
Box 1263, Isafjordsgatan 22
Kista, Stockholm
https://www.logicalclocks.com
Register for a free account at
www.hops.site
Twitter
@logicalclocks
@hopsworks
GitHub
https://github.com/hopshadoop/maggy
https://maggy.readthedocs.io/en/latest/
https://github.com/logicalclocks/hopsworks
Acknowledgements and References
Thanks to the entire Logical Clocks Team ☺
Contributions from colleagues:
Robin Andersson @robzor92
Sina Sheikholeslami @cutlash
Kim Hammar @KimHammar1
Alex Ormenisan @alex_ormenisan
• Maggy
https://github.com/logicalclocks/maggy or https://maggy.readthedocs.io/en/latest/
• Feature Store: the missing data layer in ML pipelines?
https://www.logicalclocks.com/feature-store/
• Hopsworks white paper.
https://www.logicalclocks.com/whitepapers/hopsworks
• ePipe: Near Real-Time Polyglot Persistence of HopsFS Metadata, CCGrid, 2019
DON’T FORGET TO RATE
AND REVIEW THE SESSIONS
SEARCH SPARK + AI SUMMIT

More Related Content

PDF
The Feature Store in Hopsworks
PDF
The Bitter Lesson of ML Pipelines
PDF
Hopsworks hands on_feature_store_palo_alto_kim_hammar_23_april_2019
PDF
PyData Meetup - Feature Store for Hopsworks and ML Pipelines
PDF
Berlin buzzwords 2020-feature-store-dowling
PDF
Hopsworks data engineering melbourne april 2020
PDF
Hopsworks - The Platform for Data-Intensive AI
PDF
Kim Hammar - Feature Store: the missing data layer in ML pipelines? - HopsML ...
The Feature Store in Hopsworks
The Bitter Lesson of ML Pipelines
Hopsworks hands on_feature_store_palo_alto_kim_hammar_23_april_2019
PyData Meetup - Feature Store for Hopsworks and ML Pipelines
Berlin buzzwords 2020-feature-store-dowling
Hopsworks data engineering melbourne april 2020
Hopsworks - The Platform for Data-Intensive AI
Kim Hammar - Feature Store: the missing data layer in ML pipelines? - HopsML ...

What's hot (20)

PDF
Hops fs huawei internal conference july 2021
PDF
Hopsworks at Google AI Huddle, Sunnyvale
PDF
Managed Feature Store for Machine Learning
PDF
StreamSQL Feature Store (Apache Pulsar Summit)
PDF
Hopsworks Feature Store 2.0 a new paradigm
PDF
Introduction to Hivemall
PDF
Jfokus 2019-dowling-logical-clocks
PDF
Erin LeDell, H2O.ai - Scalable Automatic Machine Learning - H2O World San Fra...
PDF
Ml ops and the feature store with hopsworks, DC Data Science Meetup
PDF
3rd Hivemall meetup
PDF
Scaling and Unifying SciKit Learn and Apache Spark Pipelines
PDF
Hivemall talk@Hadoop summit 2014, San Jose
PDF
Bridging the Gap Between Data Scientists and Software Engineers – Deploying L...
PDF
Distributed Deep Learning with Hadoop and TensorFlow
PDF
Building Intelligent Applications, Experimental ML with Uber’s Data Science W...
PDF
Managing the Complete Machine Learning Lifecycle with MLflow
PDF
Asynchronous Hyperparameter Optimization with Apache Spark
PDF
20160908 hivemall meetup
PDF
Continuous Evaluation of Deployed Models in Production Many high-tech industr...
PDF
Bridging the Gap Between Datasets and DataFrames
Hops fs huawei internal conference july 2021
Hopsworks at Google AI Huddle, Sunnyvale
Managed Feature Store for Machine Learning
StreamSQL Feature Store (Apache Pulsar Summit)
Hopsworks Feature Store 2.0 a new paradigm
Introduction to Hivemall
Jfokus 2019-dowling-logical-clocks
Erin LeDell, H2O.ai - Scalable Automatic Machine Learning - H2O World San Fra...
Ml ops and the feature store with hopsworks, DC Data Science Meetup
3rd Hivemall meetup
Scaling and Unifying SciKit Learn and Apache Spark Pipelines
Hivemall talk@Hadoop summit 2014, San Jose
Bridging the Gap Between Data Scientists and Software Engineers – Deploying L...
Distributed Deep Learning with Hadoop and TensorFlow
Building Intelligent Applications, Experimental ML with Uber’s Data Science W...
Managing the Complete Machine Learning Lifecycle with MLflow
Asynchronous Hyperparameter Optimization with Apache Spark
20160908 hivemall meetup
Continuous Evaluation of Deployed Models in Production Many high-tech industr...
Bridging the Gap Between Datasets and DataFrames
Ad

Similar to Asynchronous Hyperparameter Search with Spark on Hopsworks and Maggy (20)

PDF
Scaling Machine Learning To Billions Of Parameters
PDF
Scaling Machine Learning to Billions of Parameters - Spark Summit 2016
PDF
HopsML Meetup: Maggy - 2019-06-04
PDF
Spark Under the Hood - Meetup @ Data Science London
PPTX
All AI Roads lead to Distribution - Dot AI
PDF
What are the Unique Challenges and Opportunities in Systems for ML?
PDF
Understanding Parallelization of Machine Learning Algorithms in Apache Spark™
PDF
Scaling TensorFlow with Hops, Global AI Conference Santa Clara
PDF
Machine learning at Scale with Apache Spark
PDF
Spark Based Distributed Deep Learning Framework For Big Data Applications
PPTX
What’s New in the Berkeley Data Analytics Stack
PDF
Tuning ML Models: Scaling, Workflows, and Architecture
PDF
Ml ops on AWS
PPTX
Combining Machine Learning frameworks with Apache Spark
PDF
Distributed TensorFlow on Hops (Papis London, April 2018)
PPTX
Amazon SageMaker (December 2018)
PDF
Julien Simon, Principal Technical Evangelist at Amazon - Machine Learning: Fr...
PDF
Project Hydrogen: State-of-the-Art Deep Learning on Apache Spark
PDF
Advanced Data Science on Spark-(Reza Zadeh, Stanford)
PPTX
My Master's Thesis
Scaling Machine Learning To Billions Of Parameters
Scaling Machine Learning to Billions of Parameters - Spark Summit 2016
HopsML Meetup: Maggy - 2019-06-04
Spark Under the Hood - Meetup @ Data Science London
All AI Roads lead to Distribution - Dot AI
What are the Unique Challenges and Opportunities in Systems for ML?
Understanding Parallelization of Machine Learning Algorithms in Apache Spark™
Scaling TensorFlow with Hops, Global AI Conference Santa Clara
Machine learning at Scale with Apache Spark
Spark Based Distributed Deep Learning Framework For Big Data Applications
What’s New in the Berkeley Data Analytics Stack
Tuning ML Models: Scaling, Workflows, and Architecture
Ml ops on AWS
Combining Machine Learning frameworks with Apache Spark
Distributed TensorFlow on Hops (Papis London, April 2018)
Amazon SageMaker (December 2018)
Julien Simon, Principal Technical Evangelist at Amazon - Machine Learning: Fr...
Project Hydrogen: State-of-the-Art Deep Learning on Apache Spark
Advanced Data Science on Spark-(Reza Zadeh, Stanford)
My Master's Thesis
Ad

More from Jim Dowling (17)

PDF
ARVC and flecainide case report[EI] Jim.docx.pdf
PDF
PyData Berlin 2023 - Mythical ML Pipeline.pdf
PDF
Serverless ML Workshop with Hopsworks at PyData Seattle
PDF
PyCon Sweden 2022 - Dowling - Serverless ML with Hopsworks.pdf
PDF
_Python Ireland Meetup - Serverless ML - Dowling.pdf
PDF
Building Hopsworks, a cloud-native managed feature store for machine learning
PDF
Real-Time Recommendations with Hopsworks and OpenSearch - MLOps World 2022
PDF
Hopsworks MLOps World talk june 21
PDF
Metadata and Provenance for ML Pipelines with Hopsworks
PDF
GANs for Anti Money Laundering
PDF
Invited Lecture on GPUs and Distributed Deep Learning at Uppsala University
PDF
Hopsworks in the cloud Berlin Buzzwords 2019
PDF
HopsML Meetup talk on Hopsworks + ROCm/AMD June 2019
PDF
Berlin buzzwords 2018 TensorFlow on Hops
PDF
End-to-End Platform Support for Distributed Deep Learning in Finance
PDF
Scaling out Tensorflow-as-a-Service on Spark and Commodity GPUs
PDF
Odsc workshop - Distributed Tensorflow on Hops
ARVC and flecainide case report[EI] Jim.docx.pdf
PyData Berlin 2023 - Mythical ML Pipeline.pdf
Serverless ML Workshop with Hopsworks at PyData Seattle
PyCon Sweden 2022 - Dowling - Serverless ML with Hopsworks.pdf
_Python Ireland Meetup - Serverless ML - Dowling.pdf
Building Hopsworks, a cloud-native managed feature store for machine learning
Real-Time Recommendations with Hopsworks and OpenSearch - MLOps World 2022
Hopsworks MLOps World talk june 21
Metadata and Provenance for ML Pipelines with Hopsworks
GANs for Anti Money Laundering
Invited Lecture on GPUs and Distributed Deep Learning at Uppsala University
Hopsworks in the cloud Berlin Buzzwords 2019
HopsML Meetup talk on Hopsworks + ROCm/AMD June 2019
Berlin buzzwords 2018 TensorFlow on Hops
End-to-End Platform Support for Distributed Deep Learning in Finance
Scaling out Tensorflow-as-a-Service on Spark and Commodity GPUs
Odsc workshop - Distributed Tensorflow on Hops

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
KodekX | Application Modernization Development
PPTX
Cloud computing and distributed systems.
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Electronic commerce courselecture one. Pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Advanced IT Governance
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
“AI and Expert System Decision Support & Business Intelligence Systems”
Diabetes mellitus diagnosis method based random forest with bat algorithm
KodekX | Application Modernization Development
Cloud computing and distributed systems.
Advanced Soft Computing BINUS July 2025.pdf
Modernizing your data center with Dell and AMD
Per capita expenditure prediction using model stacking based on satellite ima...
NewMind AI Monthly Chronicles - July 2025
Advanced methodologies resolving dimensionality complications for autism neur...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
MYSQL Presentation for SQL database connectivity
Electronic commerce courselecture one. Pdf
Understanding_Digital_Forensics_Presentation.pptx
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Review of recent advances in non-invasive hemoglobin estimation
Mobile App Security Testing_ A Comprehensive Guide.pdf
Advanced IT Governance
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton

Asynchronous Hyperparameter Search with Spark on Hopsworks and Maggy

  • 1. WIFI SSID:Spark+AISummit | Password: UnifiedDataAnalytics
  • 2. Jim Dowling, Logical Clocks AB and KTH Moritz Meister, Logical Clocks AB Asynchronous Hyperparameter Optimization with Apache Spark #UnifiedDataAnalytics #SparkAISummit @jim_dowling @morimeister
  • 3. The Bitter Lesson (of AI)* “Methods that scale with computation are the future of AI”** 3 ** https://www.youtube.com/watch?v=EeMCEQa85tw Rich Sutton (Father of Reinforcement Learning) * http://www.incompleteideas.net/IncIdeas/BitterLesson.html “The two (general purpose) methods that seem to scale ... are search and learning.”*
  • 4. Spark scales with available compute => Spark is the answer! This talk is about why bulk- synchronous parallel compute (Spark) does not scale efficiently for search and how we made Spark efficient for directed search (task-based asynchronous parallel compute). 4
  • 5. Inner and Outer Loop of Deep Learning Inner Loop Outer Loop Training Data worker1 worker2 workerN … ∆ 1 ∆ 2 ∆ N Synchronization Metric Search Method HParams http://tiny.cc/51yjdz
  • 6. Inner and Outer Loop of Deep Learning Inner Loop Outer Loop Training Data worker1 worker2 workerN … ∆ 1 ∆ 2 ∆ N Synchronization Metric Search Method HParams http://tiny.cc/51yjdz LEARNINGSEARCH
  • 7. 7 Hopsworks – a platform for Data-Intensive AI
  • 8. Hopsworks Technical Milestones 8 World’s first Hadoop platform to support GPUs-as-a-Resource World’s fastest HDFS Published at USENIX FAST with Oracle and Spotify World’s First Open Source Feature Store for Machine Learning World’s First Distributed Filesystem to store small files in metadata on NVMe disks Winner of IEEE Scale Challenge 2017 with HopsFS - 1.2m ops/sec 2017 World’s most scalable POSIX-like Hierarchical Filesystem with Multi Data Center Availability with 1.6m ops/sec on GCP 2018 2019 First non-Google ML Platform with TensorFlow Extended (TFX) support through Beam/Flink World’s first Unified Hyperparam and Ablation Study Framework
  • 9. The Complexity of Deep Learning 9 Data validation Distributed Training Model Serving A/B Testing Monitoring Pipeline Management HyperParameter Tuning Feature Engineering Data Collection Hardware Management Data Model Prediction φ(x) Hopsworks Feature Store Hopsworks REST API [Adapted from Schulley et al “Technical Debt of ML” ]
  • 10. 10
  • 11. 11
  • 12. 12 Datasources Applications API Dashboards Hopsworks Apache Beam Apache Spark Pip Conda Tensorflow scikit-learn Keras Jupyter Notebooks Tensorboard Apache Beam Apache Spark Apache Flink Kubernetes Batch Distributed ML & DL Model Serving Hopsworks Feature Store Kafka + Spark Streaming Model Monitoring Orchestration in Airflow Data Preparation & Ingestion Experimentation & Model Training Deploy & Productionalize Streaming Filesystem and Metadata storage HopsFS
  • 13. “AI is the new Electricity” – Andrew Ng 14 What engine should we use?
  • 14. Engines Matter! 15 [Image from https://twitter.com/_youhadonejob1/status/1143968337359187968?s=20]
  • 15. Engines Really Matter! 16 Photo by Zbynek Burival on Unsplash
  • 16. Hopsworks Engine: ML Pipelines 17 Data Pipelines Ingest & Prep Feature Store Machine Learning Experiments Data Parallel Training Model Serving Ablation Studies Hyperparameter Optimization Bottleneck, due to • iterative nature • human interaction Horizontal Scalability at all Stages
  • 17. Iterative Model Development • Trial and Error is slow • Iterative approach is greedy • Search spaces are usually large • Sensitivity and interaction of hyperparameters 18 Set Hyper- parameters Train Model Evaluate Performance
  • 18. Black Box Optimization 19 Learning Black Box Metric Meta-level learning & optimization Search space
  • 19. Parallel Black Box Optimization 20 Which algorithm to use for search? How to monitor progress? Fault Tolerance?How to aggregate results? Learning Black Box Metric Meta-level learning & optimization Parallel WorkersQueue Trial Trial Search space This should be managed with platform support!
  • 20. Maggy A flexible framework for running different black-box optimization algorithms on Hopsworks: ASHA, Bayesian Optimization, Random Search, Grid Search and more to come… 21
  • 23. Performance Enhancement 24 Early Stopping: ● Median Stopping Rule ● Performance curve prediction Multi-fidelity Methods: ● Successive Halving Algorithm ● Hyperband Figure: Successive Halving Algorithm
  • 24. 25 Synchronous Successive Halving Kevin G. Jamieson et al. “Non-stochastic Best Arm Identification and Hyperparameter Optimization” (2015). Animation: https://blog.ml.cmu.edu/2018/12/12/massively-parallel-hyperparameter-optimization/
  • 25. 26 Asynchronous Successive Halving Liam Li et al. “Massively Parallel Hyperparameter Tuning” (2018). Animation: https://blog.ml.cmu.edu/2018/12/12/massively-parallel-hyperparameter-optimization/
  • 26. Challenge How can we fit this into the bulk synchronous execution model of Spark? Mismatch: Spark Tasks and Stages vs. Trials 27 Databricks’ approach: Project Hydrogen (barrier execution mode) & SparkTrials in Hyperopt
  • 31. Results 33 Hyperparameter Optimization Task ASHA Validation Task ASHA RS-ES RS-NS ASHA RS-ES RS-NS
  • 32. Ablation 34 PClassname survivesex sexname survive Replacing the Maggy Optimizer with an Ablator: • Feature Ablation using the Feature Store • Leave-One-Layer-Out Ablation • Leave-One-Component-Out (LOCO)
  • 35. Conclusion ● Avoid iterative Hyperparameter Optimization ● Black box optimization is hard ● State-of-the-art algorithms can be deployed asynchronously ● Maggy: platform support for automated hyperparameter optimization and ablation studies ● Save resources with asynchronism ● Early stopping for sensible models 37
  • 36. What next? 38 • More algorithms • Comparability of experiments • Implicit Provenance • Support for PyTorch
  • 37. Thank you! Box 1263, Isafjordsgatan 22 Kista, Stockholm https://www.logicalclocks.com Register for a free account at www.hops.site Twitter @logicalclocks @hopsworks GitHub https://github.com/hopshadoop/maggy https://maggy.readthedocs.io/en/latest/ https://github.com/logicalclocks/hopsworks
  • 38. Acknowledgements and References Thanks to the entire Logical Clocks Team ☺ Contributions from colleagues: Robin Andersson @robzor92 Sina Sheikholeslami @cutlash Kim Hammar @KimHammar1 Alex Ormenisan @alex_ormenisan • Maggy https://github.com/logicalclocks/maggy or https://maggy.readthedocs.io/en/latest/ • Feature Store: the missing data layer in ML pipelines? https://www.logicalclocks.com/feature-store/ • Hopsworks white paper. https://www.logicalclocks.com/whitepapers/hopsworks • ePipe: Near Real-Time Polyglot Persistence of HopsFS Metadata, CCGrid, 2019
  • 39. DON’T FORGET TO RATE AND REVIEW THE SESSIONS SEARCH SPARK + AI SUMMIT