INFN Cloud上的超参数优化即服务
Hyperparameter Optimization as a Service on INFN Cloud
AI总结:
本文提出Hopaas服务,通过REST API在INFN Cloud上协调多训练实例,利用Optuna贝叶斯优化进行超参数搜索,并成功应用于LHCb超快模拟参数化开发。
摘要:
并行化复杂机器学习模型训练的最简单且通常最有效的方法,是在多台机器上执行多个训练实例,扫描超参数空间以优化底层统计模型和学习过程。通常,这种元学习过程受限于能否安全地访问一个公共数据库,该数据库用于组织先前和正在进行试验的知识。在设计此类优化活动时,利用不同环境中提供的零散GPU资源构成了进一步的挑战。在本文中,我们讨论如何利用一组REST API访问基于INFN Cloud的专用服务,通过简单的HTTP请求,采用无梯度优化技术来监控和协调多个训练实例。该服务名为Hopaas(Hyperparameter OPtimization As A Service,超参数优化即服务),由一个Web界面和一组API组成,这些API通过FastAPI后端实现,并在INFN Cloud的虚拟实例中通过Uvicorn和NGINX运行。优化算法目前基于Optuna提供的贝叶斯技术。还提供了一个Python前端用于快速原型开发。我们展示了将私有资源、INFN Cloud和CINECA资源相结合进行的超参数优化活动的应用。这种多节点多站点的优化研究为LHCb实验的超快模拟开发一组参数化方案提供了显著推动。
英文摘要:
The simplest and often most effective way of parallelizing the training of complex machine learning models is to execute several training instances on multiple machines, scanning the hyperparameter space to optimize the underlying statistical model and the learning procedure. Often, such a meta-learning procedure is limited by the ability of accessing securely a common database organizing the knowledge of the previous and ongoing trials. Exploiting opportunistic GPUs provided in different environments represents a further challenge when designing such optimization campaigns. In this contribution, we discuss how a set of REST APIs can be used to access a dedicated service based on INFN Cloud to monitor and coordinate multiple training instances, with gradient-less optimization techniques, via simple HTTP requests. The service, called Hopaas (Hyperparameter OPtimization As A Service), is made of a web interface and sets of APIs implemented with a FastAPI backend running through Uvicorn and NGINX in a virtual instance of INFN Cloud. The optimization algorithms are currently based on Bayesian techniques as provided by Optuna. A Python frontend is also made available for quick prototyping. We present applications to hyperparameter optimization campaigns performed by combining private, INFN Cloud, and CINECA resources. Such multi-node multi-site optimization studies have given a significant boost to the development of a set of parameterizations for the ultra-fast simulation of the LHCb experiment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。