Aspects of the present invention relate generally to lifecycle management of machine learning (ML) models in a multi-tenant cloud computing environment, and, more particularly, to a system and method for managing core capabilities of continuous integration and continuous deployment (CI/CD) in artificial intelligence (AI) model development environments, champion-challenger testing, model versioning, and storage/rollback of AI/ML models.
Multi-tenancy in a cloud environment is a reference to a mode of operation of software where multiple independent instances of one or multiple applications operate in a shared environment. The instances (tenants) are logically isolated, but physically integrated.
In a first aspect of the invention, there is a computer-implemented method including: receiving a request for a subscription machine learning (ML) model by a tenant having a corresponding tenant configuration profile; automatically selecting one of at least one subscription ML models in a model registry based on the tenant configuration profile and in response to receiving the request for the subscription ML model; deploying, by a multi-tenant cloud server, the automatically selected subscription ML model to the tenant as a currently operating ML model; monitoring, by the multi-tenant cloud server, usage by the tenant of the currently operating ML model at a pre-determined refresh frequency, the pre-determined frequency based at least on the tenant configuration profile and the configuration profile category of the currently operating ML model; determining whether the currently operating ML model exceeds a pre-determined accuracy threshold; and automatically deploying by the multi-tenant cloud server a second subscription ML model from the model registry to the tenant in place of the currently operating ML model and becoming the currently operating ML model in response to the pre-determined accuracy threshold being exceeded.
In another aspect of the invention, there is a computer program product including one or more computer readable storage media having program instructions collectively stored on the one or more computer readable storage media. The program instructions are executable to: receive a request for a subscription machine learning (ML) model by a tenant having a corresponding tenant configuration profile; automatically select one of at least one subscription ML models in a model registry based on the tenant configuration profile and in response to receiving the request for the subscription ML model; deploy the automatically selected subscription ML model to the tenant as a currently operating ML model; monitor usage by the tenant of the currently operating ML model at a pre-determined refresh frequency, the pre-determined frequency based at least on the tenant configuration profile and the configuration profile category of the currently operating ML model; determine whether the currently operating ML model exceeds a pre-determined accuracy threshold; and automatically deploy a second subscription ML model from the model registry to the tenant in place of the currently operating ML model and becoming the currently operating ML model in response to the pre-determined accuracy threshold being exceeded.
In another aspect of the invention, there is system including a processor, a computer readable memory, one or more computer readable storage media, and program instructions collectively stored on the one or more computer readable storage media. The program instructions are executable to: receive a request for a subscription machine learning (ML) model by a tenant having a corresponding tenant configuration profile; automatically select one of at least one subscription ML models in a model registry based on the tenant configuration profile and in response to receiving the request for the subscription ML model; deploy the automatically selected subscription ML model to the tenant as a currently operating ML model; monitor usage by the tenant of the currently operating ML model at a pre-determined refresh frequency, the pre-determined frequency based at least on the tenant configuration profile and the configuration profile category of the currently operating ML model; determine whether the currently operating ML model exceeds a pre-determined accuracy threshold; and automatically deploy a second subscription ML model from the model registry to the tenant in place of the currently operating ML model and becoming the currently operating ML model in response to the pre-determined accuracy threshold being exceeded.
Aspects of the present invention are described in the detailed description which follows, in reference to the noted plurality of drawings by way of non-limiting examples of exemplary embodiments of the present invention.
Aspects of the present invention relate generally to lifecycle management of machine learning (ML) models in a multi-tenant cloud computing environment, and, more particularly, to a system and method for managing core capabilities of continuous integration and continuous deployment (CI/CD) in artificial intelligence (AI) model development environments, champion/challenger testing, model versioning, and storage/rollback of AI/ML models. This type of monitoring and management system is often referred to as “Model Ops.”
In embodiments, a customized Model Ops (MLOps) framework is used in a multi-tenant cloud environment. The MLOps framework may identify model accuracy drift and select alternate or refreshed models for use by a tenant. A dynamic configuration may be used to provide an appropriate frequency for refreshing a model. It will be understood that a refresh frequency may differ based on the ultimate application of the models for a tenant.
In embodiments, an operation or MLOps framework is established that can store models and model versions with the following details: target, prediction, accuracy, tenant/overall champions, categoric features list, numeric features list, etc. The tenant metadata, e.g., profiles and usage history, may be stored. The MLOps framework orchestrates the deployment of models using an AI Model dynamic model selector (DMS) to pick the best base model.
In particular, the DMS may be configured to help automatically identify the best model to use for each tenant. In an example, a tenant may want to use a virtual machine (VM) profiling model. The DMS may use the tenant's configuration profile to select the correct VM profiling model version (X, Y or Z) for a specific tenant.
An automated model refresh may be based on results from another AI model, e.g., a dynamic configuration for model monitoring (DCMM) to select the right frequency and accuracy thresholds. The DCMM may provide the optimal frequency and best thresholds for model refresh, in response to a specific tenant, the cost spends, and other operational constraints. In the discussion herein, “model frequency” refers to how often a model may be refreshed based on current cost spends from the tenant, e.g., daily, weekly, or monthly. Other model frequencies may be used based on the tenant's customized configuration, for instance, hourly, daily, weekly, semi-weekly, bi-weekly, monthly, semi-monthly, bi-monthly, annually, and semi-annually, etc.
The term “model performance threshold” as used herein, may also be referred to as a model metric value. The model performance threshold may trigger a model refresh in response to the model metric value being lower than a model performance threshold, e.g., 80%, 70%, 76%, etc.
In embodiments of the present disclosure, configurations may use two sets of parameters. One set of parameters may be controlled offline by a data scientist such as: target, prediction, numerical and categorical features. The second set of parameters may be controlled by a machine learning (ML) model that will dynamically pick the right values per tenant for a refresh frequency and the right values per tenant for a refresh threshold. In an example, for one customer (tenant A), the monitoring might run every week. In another example, for a second customer (tenant B), the monitoring might be run every day, or every hour, etc.
Implementations of various embodiments may provide an improvement in the technical field of multi-tenancy cloud environments. In particular, the cloud environment includes operational ML models that may be used for multiple tenants in the course of their business practice to forecast cloud usage. Reusing an operational ML model and/or generating multiple versions of the same base model improves efficiency of the cloud environment in terms of storage and speed. An ML model, also referred to herein as “model Ops,” or “MLOps,” may be used to monitor and refresh the operational models that a tenant uses to forecast cloud usage in the conduct of their business. As elements of the tenant's business evolve over time, operational ML models may become inaccurate and/or obsolete. The MLOps framework, as described herein, enables the cloud environments and cloud servers to act more efficiently for multiple tenants. Accordingly, the MLOps provides an improvement to cloud server processor throughput/load, storage requirements for each model, etc. Further, the MLOps may keep the tenants' models up-to-date and accurate for business purposes.
Implementations of various embodiments may provide an improvement in the technical field of identifying and refreshing ML models used by customers of a cloud environment. In particular, implementations use machine learning to train an AI-based dynamic model selector (DMS) to automatically identify the best model for each tenant at runtime, with either minimal or no human intervention. Implementations may transform an article to a different state or thing, for instance, modifying/updating tenant profiles and cloud environment ML model variants, and deployment of the ML model variants to tenants. In particular, implementations may cause a secondary device to perform a requested action and update stored context and state information related to the machine learning functions. Historical information may be dynamically updated along with configuration profiles for the tenants. In the present disclosure, by automating the machine learning cost forecasting models for cloud usage, time and cost savings may be provided to tenants. In known systems, a data scientist was needed to update the tenants' forecasting models. In contrast, in embodiments, by automating this step using machine learning, the tenant may perform cost optimization, determine whether to switch cloud service providers, or switch a usage plan with the same provider. For example, a tenant may spend $1 million per month on their cloud services. A quick cost forecast that identifies a near future increase to $2 million per month may allow the tenant to avoid future increases earlier. Accordingly, the tenant may save money.
Implementations of the present invention are necessarily rooted in computer technology. For example, the operations of the claims that recite use of the ML models for DMS and DCMM are computer-based and cannot be performed in the human mind. Training and using a machine learning model are, by definition, performed by a computer and cannot practically be performed as a mental process (or with pen and paper) due to the complexity and massive amounts of calculations involved. For example, an artificial neural network (ANN) may have millions or even billions of weights that represent connections among nodes in one or more layers of the model. Values of these weights are adjusted, e.g., via backpropagation and stochastic gradient descent, when training the model and are utilized in calculations when using the trained model to generate an output in real time (or near real time). Given this scale and complexity, it is simply not possible for the human mind, or for a person using pen and paper, to perform the number of calculations involved in training and/or using a machine learning model. For purpose of brevity, the term “neural network” may be used herein as an equivalent to the more accurate term of “artificial neural network” to indicate a computer-based artificial intelligence methodology.
It should be understood that, to the extent implementations of the invention collect, store, or employ personal information provided by, or obtained from, individuals (for example, tenant configuration information), such information shall be used in accordance with all applicable laws concerning protection of personal information. Additionally, the collection, storage, and use of such information may be subject to consent of the individual to such activity, for example, through “opt-in” or “opt-out” processes as may be appropriate for the situation and type of information. Storage and use of personal information may be in an appropriately secure manner reflective of the type of information, for example, through various encryption and anonymization techniques for particularly sensitive information.
The present invention may be a system, a method, and/or a computer program product at any possible technical detail level of integration. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium or media, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, configuration data for integrated circuitry, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++, or the like, and procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer readable program instructions may be provided to a processor of a computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the Figures. For example, two blocks shown in succession may, in fact, be accomplished as one step, executed concurrently, substantially concurrently, in a partially or wholly temporally overlapping manner, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
It is to be understood that although this disclosure includes a detailed description on cloud computing, implementation of the teachings recited herein are not limited to a cloud computing environment. Rather, embodiments of the present invention are capable of being implemented in conjunction with any other type of computing environment now known or later developed.
Cloud computing is a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal management effort or interaction with a provider of the service. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
Characteristics are as follows:
On-demand self-service: a cloud consumer can unilaterally provision computing capabilities, such as server time and network storage, as needed automatically without requiring human interaction with the service's provider.
Broad network access: capabilities are available over a network and accessed through standard mechanisms that promote use by heterogeneous thin or thick client platforms (e.g., mobile phones, laptops, and PDAs).
Resource pooling: the provider's computing resources are pooled to serve multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically assigned and reassigned according to demand. There is a sense of location independence in that the consumer generally has no control or knowledge over the exact location of the provided resources but may be able to specify location at a higher level of abstraction (e.g., country, state, or datacenter).
Rapid elasticity: capabilities can be rapidly and elastically provisioned, in some cases automatically, to quickly scale out and rapidly released to quickly scale in. To the consumer, the capabilities available for provisioning often appear to be unlimited and can be purchased in any quantity at any time.
Measured service: cloud systems automatically control and optimize resource use by leveraging a metering capability at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported providing transparency for both the provider and consumer of the utilized service.
Service Models are as follows:
Software as a Service (SaaS): the capability provided to the consumer is to use the provider's applications running on a cloud infrastructure. The applications are accessible from various client devices through a thin client interface such as a web browser (e.g., web-based e-mail). The consumer does not manage or control the underlying cloud infrastructure including network, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings.
Platform as a Service (PaaS): the capability provided to the consumer is to deploy onto the cloud infrastructure consumer-created or acquired applications created using programming languages and tools supported by the provider. The consumer does not manage or control the underlying cloud infrastructure including networks, servers, operating systems, or storage, but has control over the deployed applications and possibly application hosting environment configurations.
Infrastructure as a Service (IaaS): the capability provided to the consumer is to provision processing, storage, networks, and other fundamental computing resources where the consumer is able to deploy and run arbitrary software, which can include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure but has control over operating systems, storage, deployed applications, and possibly limited control of select networking components (e.g., host firewalls).
Deployment Models are as follows:
Private cloud: the cloud infrastructure is operated solely for an organization. It may be managed by the organization or a third party and may exist on-premises or off-premises.
Community cloud: the cloud infrastructure is shared by several organizations and supports a specific community that has shared concerns (e.g., mission, security requirements, policy, and compliance considerations). It may be managed by the organizations or a third party and may exist on-premises or off-premises.
Public cloud: the cloud infrastructure is made available to the general public or a large industry group and is owned by an organization selling cloud services.
Hybrid cloud: the cloud infrastructure is a composition of two or more clouds (private, community, or public) that remain unique entities but are bound together by standardized or proprietary technology that enables data and application portability (e.g., cloud bursting for load-balancing between clouds).
A cloud computing environment is service oriented with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure that includes a network of interconnected nodes.
Referring now to
In cloud computing node 10 there is a computer system/server 12, which is operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and/or configurations that may be suitable for use with computer system/server 12 include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments that include any of the above systems or devices, and the like.
Computer system/server 12 may be described in the general context of computer system executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, and so on that perform particular tasks or implement particular abstract data types. Computer system/server 12 may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
As shown in
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnects (PCI) bus.
Computer system/server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 12, and it includes both volatile and non-volatile media, removable and non-removable media.
System memory 28 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32. Computer system/server 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 34 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a “hard drive”). Although not shown, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a “floppy disk”), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM or other optical media can be provided. In such instances, each can be connected to bus 18 by one or more data media interfaces. As will be further depicted and described below, memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program/utility 40, having a set (at least one) of program modules 42, may be stored in memory 28 by way of example, and not limitation, as well as an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data or some combination thereof, may include an implementation of a networking environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments of the invention as described herein.
Computer system/server 12 may also communicate with one or more external devices 14 such as a keyboard, a pointing device, a display 24, etc.; one or more devices that enable a user to interact with computer system/server 12; and/or any devices (e.g., network card, modem, etc.) that enable computer system/server 12 to communicate with one or more other computing devices. Such communication can occur via Input/Output (I/O) interfaces 22. Still yet, computer system/server 12 can communicate with one or more networks such as a local area network (LAN), a general wide area network (WAN), and/or a public network (e.g., the Internet) via network adapter 20. As depicted, network adapter 20 communicates with the other components of computer system/server 12 via bus 18. It should be understood that although not shown, other hardware and/or software components could be used in conjunction with computer system/server 12. Examples, include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
Referring now to
Referring now to
Hardware and software layer 60 includes hardware and software components. Examples of hardware components include: mainframes 61; RISC (Reduced Instruction Set Computer) architecture based servers 62; servers 63; blade servers 64; storage devices 65; and networks and networking components 66. In some embodiments, software components include network application server software 67 and database software 68.
Virtualization layer 70 provides an abstraction layer from which the following examples of virtual entities may be provided: virtual servers 71; virtual storage 72; virtual networks 73, including virtual private networks; virtual applications and operating systems 74; and virtual clients 75.
In one example, management layer 80 may provide the functions described below. Resource provisioning 81 provides dynamic procurement of computing resources and other resources that are utilized to perform tasks within the cloud computing environment. Metering and Pricing 82 provide cost tracking as resources are utilized within the cloud computing environment, and billing or invoicing for consumption of these resources. In one example, these resources may include application software licenses. Security provides identity verification for cloud consumers and tasks, as well as protection for data and other resources. User portal 83 provides access to the cloud computing environment for consumers and system administrators. Service level management 84 provides cloud computing resource allocation and management such that required service levels are met. Service Level Agreement (SLA) planning and fulfillment 85 provide pre-arrangement for, and procurement of, cloud computing resources for which a future requirement is anticipated in accordance with an SLA.
Workloads layer 90 provides examples of functionality for which the cloud computing environment may be utilized. Examples of workloads and functions which may be provided from this layer include: mapping and navigation 91; software development and lifecycle management 92; virtual classroom education delivery 93; data analytics processing 94; transaction processing 95; and MLOps framework 96.
Implementations of the invention may include a computer system/server 12 of
In an example, the multi-tenant cloud environment 400 includes shared services 407 which may comprise data operations (DataOps) services 407A; development operations (DevOps) services including an open-source continuous integration/continuous delivery and deployment (CI/CD) automation software DevOps tool 407B written in the Java programming language, and cloud services 407C; IT services 407D; compliance and risk model risk management (MRM) services 407E; and data visualization services 407F.
In an exemplary embodiment, the lifecycle of tools and services used by a tenant may be automated 410. A CIO or chief risk officer 405 may also drive the lifecycle of tools and models used. Model operators 408 may work with an enterprise AI architect 409 to develop an automated lifecycle that monitors, governs, and orchestrates the use of pre-developed models 410 to provide integration with a tenant's business forecasting needs. For example, as a tenant's business expands, their use of the cloud, for instance for hosting an online marketplace or customer service chatbot may significantly increase. Thus, being able to forecast future cloud resource needs can assist the tenant in determining whether they might need to increase storage device capacity, rehost applications, modify their SLAs with providers, etc., based on their resource and cost constraints. Elements of the lifecycle may include modules for managing: model inventory 420A; concept and data drift 420B; retrain and refresh of operational ML models 420C; model validation 420D; deployment and execution of models for tenants' use 420E; champion/challenger 420F; statistical performance metrics 420G; regulatory compliance 420H; and ethical fairness/bias compliance 420I. The automated lifecycle provides consuming applications (apps) 430 such as AI-enabled business apps, business intelligence (BI) & analytics, and digital decision systems.
Using a customized model Ops framework, as described herein, may provide a variety of advantages in deploying operational ML models to tenants in a multi-tenant cloud environment. In particular, model development and experimentation of new models, retrained models, or variants of existing operational ML models may take less time because the ML models may be periodically refreshed for the tenant so that inaccurate models are automatically replaced with more accurate models. New or updated operational ML models may be deployed to tenants more quickly because the deployment is automated. Accordingly, delays in waiting for a data scientist to choose to deploy an updated model are avoided. Quality assurance of updated models is inherent in the framework because inaccurate models are automatically updated in favor of more accurate operational ML models. Moreover, handoff of new or updated operational ML models from data scientists to a production team may be seamless.
In an example, a single tenant environment 510 may be used. In this example, each user/client 511A-N may operate their own instance of an application 513A-N. It will be understood that while only three users/clients are shown, the number of clients that are currently accessing services or applications in the multi-tenant cloud environment may be more or fewer than the three shown. In this example, each app 513A-N may access a dedicated database (DB) 515A-N.
In another example of a multi-tenant cloud environment 530, clients 531A-N may share access of a single instance of an application 533. Various access control schemes may be used within the app 533 to sequester each client and protect their data from being accessed by an unauthorized client. In this example, each client 531A-N has their own dedicated database 535A-N even though they access the same app or service 533.
In another example, multi-tenant cloud environment 550, clients 551A-N may share access of a single instance of an application 553. Various access control schemes may be used within the app 553 to sequester each client and protect their data from being accessed by an unauthorized client. In this example, the clients 551A-N share a common database 555. Various access control schemes may be used within the database 555 to protect a client's data from access by an unauthorized client.
It will be understood that while each type of multi-tenant cloud environment has its own advantages and disadvantages, that environment 550 may provide more efficiency of data, processing throughput, and device storage because fewer applications need to be deployed and executed in the cloud environment. Database efficiencies may also be realized due to fewer database management systems required to be run, and possibly fewer hardware storage resources required.
In an example, a client may subscribe to an operational ML model that provides an accuracy of 95% in January 2020 (at 601). In February 2020, the accuracy may decrease to 93% (at 603). In March 2020, the accuracy may decrease to 92% (at 605). This client may find any accuracy over 90% to be acceptable. Updating the model may incur increased costs and the client may prefer to allow this drift. However, in this example, in April 2020, the accuracy is reduced again to only 81% (at 607). This level of accuracy may trigger the client to obtain an automated refresh of the operational ML model (at 610). In contrast, in known systems, this trigger may be performed manually, resulting in delays before use of a more accurate model can be utilized by the client.
A configuration profile for the tenant may specify a minimum threshold for accuracy. In embodiments as discussed herein, the MLOps framework monitors the accuracy reached for the various tenants. In this example of
In known systems, there may be 100 different algorithms that may be used for a tenant for their cloud usage forecasting. A data scientist may need to make educated guesses to determine which subset of those 100 algorithms to test for use with the tenant before selecting one to deploy. For instance, the data scientist may guess that linear regression or logistical regression many be viable candidates, but the testing and validation of these algorithms is time intensive. Further, as the tenant's data changes, the whole process may need to be manually repeated. In the examples discussed herein, the term Model 1 may refer to a particular machine learning (ML) algorithm that may be used or customized for the tenant. The term Model 1.2 may refer to the same algorithm that is trained with different data, or another variant of Model 1. Model 2 may refer to a different algorithm than Model 1 or Model 1.2. In known systems, manually selecting the best model for a tenant is time-consuming, expensive and may be error prone, requiring empirical trial and error tests. Further, refreshing the models when the tenant's data or business changes and degrades the accuracy of the initial model selected may require a full manual refresh. In contrast, embodiments as described herein provide an automated system for selecting, deploying, and refreshing machine learning models for multiple tenants.
Maintaining accurate operational ML Models in multi-tenant environment is important, especially when different tenants may use variations of an original baseline model. Initially, one base model may be selected for all tenants in a specific industry/application or cloud usage category. Visibility or availability of tenant data may also be limited due to legal/security/privacy issues. Further, huge variations in data across tenants may exist or occur over time. Thus, it is desirable to manage multiple models per solution per tenant. In contrast, in known systems, manual processes involved in analyzing tenant specific data, usage profiles and feedback may be cumbersome and cause unnecessary and unacceptable delays.
In embodiments, a framework for multi-tenant MLOps, where each tenant is provided their own customized version of the operational ML model is discussed herein. A model version for a specific project is dynamically selected using an artificial intelligence-based (AI-based) machine learning model operations (MLOps). The MLOps AI-based model is dynamically tuned over time based on service level agreements (SLA), resource constraints, and cost using a new AI model. The model refresh for tenants is triggered based on tenant usage, cost thresholds, and tenant profile along with other approaches, such as data and target drifts. The number of operational ML models needed may depend on similarity across tenants rather than number of tenants. For example, N similar tenants may utilize one operational ML model.
Referring again to
The dynamic configuration includes information about the tenant that may drive the version of model used. The dynamic configuration determines the frequency of monitoring and the thresholds which will trigger determining a new model due to drift. Two sets of parameters may be included in the dynamic configuration. One set of parameters may be controlled offline by a data scientist and include target, prediction, numerical and categorical features. Another set may be controlled by an ML model that dynamically picks appropriate values per tenant for (a) refresh frequency, and (b) refresh threshold. For instance, each tenant. i.e., customer, monitoring may be set to a different frequency (i.e., periodicity). In an example, tenant A (841A) may be monitored every week, and tenant B (841B) may be monitored every day.
As illustrated, model evaluation 826 evaluates the model used by each tenant of tenants A-C (841A-C). In embodiments, a determination may be made as to whether each model is accurate enough at decision block 828, based on criteria in the tenant's configuration. If the model does not meet the accuracy threshold, as determined in decision block 828, model customizer 824 is executed to provide a better model. When a new model is indicated, the model registry 801 is updated with the model or model variation that works for the particular tenant. As illustrated, the accuracy of model 1 (803A) being used by tenant B (841B) has drifted beyond a pre-determined accuracy threshold. In this situation, model customizer 824 provides a variation of the model (e.g., model 1.2 (803D)) to tenant B (841B) to accommodate this drift. In embodiments, models either in use or no longer in use may be due to accuracy drift, e.g., tenant B model 1 (821A) and tenant C model 1 (821B) may be archived in the model registry 801 at 815. Optionally, a new customized model or variation, such as model 1.2 (803D) may be set as the new default champion model for use with tenants having a similar configuration to tenant B (841B). In an example, tenant C (841C) will operate with the new default champion model 1.2 (803D).
In
Feature engineering 920 used in the model selector 930 may include a high profile 921, a medium profile 923, and a low profile 925. In an example, a tenant may have the high profile 921 if the customer/tenant has been operating their resources in the cloud a long time (e.g., greater than a predetermined time) such that the customer/tenant understands cloud practices. A tenant may be considered the medium profile 923 when their cloud use is moderate. Lastly, a tenant may be considered the low profile 925 when they have just begun to implement cloud usage and are generally unaware of cloud usage and practices. A more sophisticated tenant, i.e., high profile 921, may inform the model selection with more complex inferences, assuming that the tenant will understand the nuances of the complex model.
In an example, a tenant may want to use a VM profiling model and there may be several versions of this model in the model repository. The DMS 930 may dynamically select a version of the model than will work well for the tenant. In embodiments, a typical classification algorithm such as gradient-boosted decision trees (GBDT), random forest (RF), support vector machines (SVM), or logistic regression model may be used to classify tenant by using the historical infrastructure data 910 and feature profile 920. Once classified, the infrastructure data and profile information are passed to the DMS 930. In embodiments, the DMS 930 uses an ML classification algorithm as discussed above to classify a given tenant that corresponds to a preferred version of the VM Profile model that should be used.
In an embodiment, the deep learning neural network 1021 identifies similar tenants. This model uses historical infrastructure data 1010 that may include input which contains cost and asset data. Cost data comprises AssetId, asset type, unit cost, total cost, region, data center, period, and description. Reservation details and asset data comprise of asset name, utilization, allTags, asset source, etc., as well as types of providers and maturity of the customer/tenant. In an example, a given input space is first converted into numerical vector space using known embedding methods and a cosine similarity distance metric used to identify similar clients in higher dimensional space. A known distance based algorithm, such as K-nearest neighbors (KNN), with cosine similarity is used to identify top K clients which match a given tenant and gives a majority voting to identify a similar tenant (if one exists).
In an embodiment, service level agreement (SLA) 1011 may include time constraints in units of seconds. Resource constraints may include data for scalability, regulatory, maintainability, serviceability, security, and cost. Cost data may contain AssetId, asset type, unit cost, total cost, region, data center, period, and description. Outputs of the deep learning neural network 1021 include a model performance threshold 1030 and model refresh frequency 1040. Two different loss functions may be used to learn the outputs. As discussed above, softmax is used to determine the model refresh frequency 1040, and linear regression is used to identify the model performance threshold 1030. In particular, softmax is a generalization of the logistic function to multiple dimensions, and used in multinomial logistic regression, and may be used to normalize output of the neural network 1021. The deep learning neural network uses a Leaky Rectified Linear Unit (Leaky ReLU) function across the hidden layers. Leaky ReLU is a type of activation function based on a ReLU, but it has a small slope for negative values instead of a flat slope. The slope coefficient may be determined before training, i.e., the slope coefficient may not be learned during training. Input is passed to deep hidden layers where weights have been shared among each other for both outputs. After backpropagation and forward propagation models are used to reduce the loss and return the model refresh frequency 1040 and model performance threshold 1030 for the tenant.
Model management 1020 may identify a new champion model, i.e., an accurate model for the tenant's configuration, from a specific tenant and may apply the champion model to others and create a challenger for all tenants. In other words, if there is a tenant with better data than that provided during model training, a higher accuracy model may be created. The higher accuracy model can benefit models between tenants securely without sharing data.
The model management 1020 considers the tenant type and tenant resources, e.g., bronze, sliver, gold, or entry, standard, enterprise, etc., so that the trained deep learning model 1021 is able to execute on the data 1010 of the tenant successfully within the resource constraints 1015, cost 1013 and performance 1011 constraints for the tenant. In an example, the deep learning 1021 is a neural network that may use a softmax function 1022 to assign decimal probabilities to each class in a multi-class problem. Softmax function 1022 may be used to determine a best model refresh frequency. Linear regression 1024 may be used to identify a best model performance threshold. Linear regression may be a supervised learning technique that involves learning the relationship between the features and the target. Alternatively, other algorithms and techniques may be used with the neural network 1021 to help determine model refresh frequency and model performance or accuracy thresholds.
For some tenants the database, application, and CPU resources and history can be very different, even for a similar industry. In an example, one tenant may have four months of historical data, and another tenant may have 13 months of historic data. The refresh/customized model should be able to perform within the resources, data, and cost constraints for that tenant. Using a deep learning model 1021 assists in automatically identifying configuration customizations for individual tenants.
The model performance thresholds 1030 may be determined and adjusted dynamically and continuously for each tenant for the model customization/refresh 1040 by evaluating the data, usage behavior, drifts and tenant type and cost. In an example, if the tenant ingests data weekly or monthly, instead of daily, the time threshold can dynamically change to weekly or monthly.
The initial model used by the tenant may be automatically selected using a dynamic model selector (DMS) ML model 1133. Once the automatically selected model has been deployed to the tenant in 1130, corresponding to operation (1) of
When a tenant subscribes to the cloud model service, a default ML model may be automatically deployed to the tenant based on the tenant's initial configuration profile 1132, in block 1130. In an example, the configuration profile may include information for data pull, data prep, feature engineering, model search, model validation and testing, and model evaluation. A data scientist may create the initial configuration profile for a tenant or a set of similar tenants. In an example, the data pull is the time period for querying usage for a refresh. The data prep may include information regarding joins, filtering, sampling, missing values, imputations, etc. Feature engineering may include derived features, aggregations, text mining, etc. Model search may include a subset of models and parameters to use for testing the models during a refresh cycle. In an example, the models selected may include parameters such as maximum depth, learning rate, number of trees to test, etc. Using an initial same configuration profile for multiple similar tenants improves the costs as compared to a data scientist needing to create an initial customized profile for every tenant individually. The configuration profile includes which technique should be used for validation of the models, as well as a metric for evaluating the validation test.
The configuration profile 1132 may be dynamically modified by a dynamic configuration ML model 1131, as discussed in detail above in conjunction with
The initial model used by the tenant may be automatically selected using a dynamic model selector (DMS) ML model 1133. Once the automatically selected model has been deployed to the tenant in 1130, tenant model usage is monitored at block 1140. The initial periodicity of monitoring, or refresh frequency, is informed by the tenant's configuration profile 1132. The usage of the model deployed to the tenant is monitored for accuracy, data drift and concept drift at the pre-determined frequency. Monitoring at block 1150 may identify that some of the underlying assumptions about tenant type and business scope may be determined during model evaluation. As discussed above, the tenant may have entered a new region, changed or added to its product or service list, increased or decreased its business or revenue stream, added or omitted computing or staff resources, changed its ML model budget for cloud subscriptions, etc. This information is automatically provided to the dynamic configuration model 1131 to update the configuration profile 1132 of the tenant. The model evaluation 1150 may evaluate the model and then may determine whether the model is accurate enough for the tenant at block 1160. The threshold accuracy metric may be retrieved from the tenant's configuration profile.
If the model is accurate enough as determined in block 1160, this information is provided to the model registry so that the model in use may be deemed a champion model corresponding to the tenant's business category, cost, and resource constraints, etc., and corresponding to operation (10) of
In embodiments, the MLOps cloud server comprises a dynamic configuration model 1131, a dynamic model selector model 1133, a model monitoring module 1140, model evaluation module 1150, and a model customizer module 1170, each of which may comprise one or more program modules such as program modules 42 described with respect to
In embodiments, a service provider could offer to perform the processes described herein. In this case, the service provider can create, maintain, deploy, support, etc., the computer infrastructure that performs the process steps of the invention for one or more customers. These customers may be, for example, any business that uses technology. In return, the service provider can receive payment from the customer(s) under a subscription and/or fee agreement and/or the service provider can receive payment from the sale of advertising content to one or more third parties.
In still additional embodiments, the invention provides a computer-implemented method, via a network. In this case, a computer infrastructure, such as computer system/server 12 (
The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.