Learning hyper-parameter scaling model for unsupervised anomaly detection
Scaling and predicting hyperparameter values in unsupervised anomaly detection through meta-learning methods solves the problem of expensive hyperparameter tuning in unsupervised anomaly detection and improves model performance and efficiency.
Patent Information
- Application Number
- CN202380027588.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-12-06
- Filing Date
- 2023-06-29
- Publication Date
- 2024-10-29
AI Technical Summary
The existing technology lacks an effective method to select hyperparameter values in unsupervised anomaly detection, resulting in the hyperparameter tuning process being expensive and relying on expensive model evaluation, which limits the performance improvement of ML models.
Adopt a meta-learning method to scale hyperparameter values through descriptive information of historical data sets, and use linear scaling models and meta-models for hyperparameter prediction, avoiding expensive model evaluation and hyperparameter tuning processes, and is suitable for different types of ML models .
It realizes the rapid selection of high-quality hyperparameter values without accessing the ground truth labels of the new data set, reduces the computational cost, improves the generalization ability of the model and the construction efficiency of multi-model integration.
Smart Images

Figure CN118871933A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to anomaly detector configuration for machine learning (ML). This paper is a meta-learning for hyperparameter optimization of anomaly detectors that are domain-neutral and highly reusable. Background Art
[0002] As the amount of data continues to grow, machine learning (ML) has been gaining traction, solving many problems that were previously thought to be infeasible. ML using supervised training has been the focus of research and industry as it is easier than unsupervised training. Unsupervised anomaly detection (UAD) strives to detect unusual, rare, out-of-distribution data points without access to the true label set.
[0003] ML models rely on various training factors, such as the training dataset and the hyperparameter values chosen for the ML model. While most ML algorithms come with a set of default hyperparameter values, these values do not make the corresponding model achieve optimal performance for every dataset. There are almost no unsupervised methods that allow scoring of different models and model configurations.
[0004] Hyperparameter values must be chosen specifically for each dataset. Greedy approaches to hyperparameter value discovery based on evaluation are called hyperparameter tuning, which leads to significant performance gains in supervised settings, where available training labels allow for direct evaluation of hyperparameters. Obtaining a good set of default hyperparameter values is particularly important and challenging in unlabeled UAD, e.g., utilizing and evaluating multiple different target model classes for which the hyperparameter tuning process is independent of each other.
[0005] The performance of the target ML model is highly dependent on the (e.g., huge) dataset. Target model configuration settings should be chosen with care, such as hyperparameter tuning that utilizes a computationally very expensive (i.e., slow) process and relies heavily on scoring of (e.g., many) actual evaluations of the target model. Many techniques can only avoid such delays by resorting to using default provided hyperparameter values, which leaves major performance improvements underutilized. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] In the attached picture:
[0007] Figure 1 is a block diagram of an example computer that illustrates the use of meta-learning for hyperparameter optimization of an anomaly detector that is domain neutral and highly reusable;
[0008] Figure 2 is a flow chart illustrating an example process that a computer may perform, including meta-learning for hyperparameter optimization of an anomaly detector;
[0009] Figure 3 is a flow chart illustrating an example process that a computer may perform to optimize multiple hyperparameters of different types of anomaly detectors;
[0010] Figure 4 is a block diagram illustrating a computer system upon which embodiments of the present invention may be implemented;
[0011] Figure 5 is a block diagram illustrating a basic software system that may be used to control the operation of a computing system. DETAILED DESCRIPTION
[0012] In the following description, for the purpose of explanation, in order to provide a thorough understanding of the present invention, many specific details are set forth. However, it is apparent that the present invention can be implemented without these specific details. In other cases, well-known structures and devices are shown in block diagram form to avoid unnecessary obscurity of the present invention.
[0013] General Overview
[0014] The present invention relates to anomaly detector configuration for machine learning (ML). Herein is meta-learning for hyperparameter optimization of anomaly detectors that are domain-neutral and highly reusable. By using only meta-features, the method leverages descriptive (e.g., statistical) information of the dataset to scale hyperparameters and select dataset-dependent default hyperparameter values. Although designed with unsupervised anomaly detection (UAD) learning algorithms in mind, the method is also applicable to other (e.g., supervised) ML algorithms.
[0015] For given hyperparameters of the training algorithm, various linear ML models are trained to predict the best hyperparameter values for a given dataset size. Scaling of the hyperparameters is performed by selecting the linear model predicted to have the best performance on a set of historical, labeled anomaly detection datasets. This not only allows the selection of hyperparameter values without having to perform expensive hyperparameter tuning, but also facilitates various ensemble-based models that utilize different types of constituent models.
[0016] In the combinatorial optimization domain, existing methods are designed for instance-specific algorithms for a single dataset. However, the techniques in this paper use multiple (e.g., schematically and semantically different) datasets. Existing approaches only support numerical hyperparameters and operate only through interpolation. Given a new dataset, the techniques in this paper predict a set of hyperparameter values by extrapolation rather than interpolation, without having to train or evaluate a target model, so that a variety of well-performing target models can be quickly exploited.
[0017] This approach is based on the intuition that the selection of hyperparameter values needs to be done for each dataset separately, but is not an independent process. Knowing previous evaluations on similar datasets helps to quantitatively better decide which hyperparameter values perform better. This approach has at least the following novel aspects:
[0018] Through the use of adaptive dataset sampling, hyperparameter tuning to a specific dataset can be accelerated while reducing the risk of overfitting to smaller dataset sizes.
[0019] High-quality default values that take the size of the dataset into account can be used to predict the hyperparameters for the target model.
[0020] From a technical perspective, both of the novel aspects mentioned above are based on a combination of the following strategies:
[0021] Fit a linear scaling model to the first X% of the data in order to learn good hyperparameter representations for each value of X.
[0022] To speed up, several candidate scaling models are ranked using a meta-model that predicts the quality of scaling models as surrogates, rather than empirically evaluating configurations by training a target model on a real dataset.
[0023] This approach has at least the following advantages:
[0024] Ability to predict hyperparameter values without access to ground truth labels for new datasets.
[0025] Automatically select high-quality hyperparameter values when given a larger portion (e.g., the entirety) of the same dataset.
[0026] Generalize across different domains by training on different datasets.
[0027] Ability to choose good hyperparameters based on the dataset size.
[0028] Automatically select good hyperparameters for multiple classes (i.e., categories) of models, which makes building good ensembles much faster.
[0029] Can be applied using a set of historical hyperparameter configuration performance data, provided that the user has recorded such data from previous experiments, thus eliminating the need for the large computational cost of generating a large amount of performance data from scratch.
[0030] In one embodiment, a computer ranks the empirical validation scores of validated training scenarios of anomaly detectors. Each validated training scenario has a training data set to train an instance of an anomaly detector configured with a value of a hyperparameter of the anomaly detector. Each training data set has a value of a meta-feature set. For each ranking percentage in a predefined different ranking percentage, a best training scenario subset consisting of a ranking percentage of validated training scenarios with the highest empirical validation score is selected. A linear optimizer is trained to infer the value of a hyperparameter. The training is based on the value of the meta-feature of the training data set of the best training scenario subset and the empirical validation score of the best training scenario subset. For each meta-feature value set in a number of unvalidated meta-feature value sets that do not correspond to the actual data set, the linear optimizer infers the value of the hyperparameter. Different unvalidated training scenarios of anomaly detectors having meta-feature values and values of hyperparameters containing the inferred value of the hyperparameter are generated into a number of different unvalidated training scenarios. For each unvalidated training scenario, a corresponding inference validation score is inferred. Based on the inference validation scores of the unvalidated training scenarios, the best linear optimizer with the highest combined inference validation score is selected. For a new data set, the best linear optimizer infers the value of the hyperparameter. Anomalies are detected by new instances of the anomaly detector based on the inferred value of the hyperparameter.
[0031] 1.0 Sample Computer
[0032] Figure 1 is a block diagram illustrating an example computer 100. In one embodiment, the computer 100 uses meta-learning for hyperparameter optimization of a domain-neutral and highly reusable anomaly detector 110. The computer 100 may be one or more of a rack-mounted server such as a blade, a personal computer, a mainframe, or a virtual computer.
[0033] 1.1 Anomaly Detector
[0034] Anomaly detector 110 is a reusable machine learning (ML) algorithm that can be repeatedly instantiated to generate configurable and operational anomaly detector instances (not shown). For example, one instance of anomaly detector 110 can be configured and trained to detect anomalous network packets. Another instance of anomaly detector 110 can instead be configured and trained to detect anomalous photos.
[0035] When hosted and operated by a computer such as computer 100, an instance of anomaly detector 110 accepts a feature vector (not shown) as input and generates an inference as output. Depending on the embodiment, the inference can be a binary class (i.e., anomaly or non-anomalous) or can be compared to a predefined anomaly threshold to derive a numerical anomaly score for the binary class. A feature vector is an encoding of features (e.g., data fields) of an object to be analyzed, such as a network packet. The width (i.e., feature count) of a feature vector depends on the domain. For example, the width and pattern of a network packet feature vector may be different from the width and pattern of a photo feature vector.
[0036] 1.2 Hyperparameters
[0037] The anomaly detector 110 has a number of adjustable hyperparameters AB that customize the configuration of the internal structure of each instance of the anomaly detector 110. For example, two instances of the anomaly detector 110 may have the same or different values of hyperparameters A. Even if two instances have the same values for all hyperparameters AB, the two instances may still be internally and operationally different if they are trained differently (e.g., using different training data sets).
[0038] Hyperparameters AB may have the same or different data types, such as continuous numbers with corresponding value ranges or categories with a set of (e.g., mutually exclusive) symbolic (i.e., non-numeric) values. Each of the hyperparameters AB contributes a respective dimension to the multi-dimensional configuration space of anomaly detector 110, which may be so large that it is difficult to exhaustively explore.
[0039] 1.3 Proven Training Scenarios
[0040] Prior to operating the computer 100, the enterprise may or may not have accumulated an archive of the training history of many different instances of the anomaly detector 110. The archive may be stored in a console log file or database for access by the computer 100. For each respective training of the many separate instances of the anomaly detector 110, the archive contains a respective metadata record indicating details about the respective validated training scenario 121. In other words, the archive contains the validated training scenario 121, or if the archive is empty, the datasets D1-D4 should be used to train various instances of the anomaly detector 110 with various values of the hyperparameters AB to generate validated training scenarios 121.
[0041] The validated training scenarios 121 include validated training scenarios V1-V5 that each use a corresponding training data set (i.e., training corpus). In various embodiments, each log entry in the console log file or each database record represents a corresponding object such as a network packet. For example, each row in a database table can store or represent a network packet. Such object representations are referred to as tuples in this article, and each tuple is encoded into a feature vector or is easily encoded into a feature vector.
[0042] 1.4 Diversity of training datasets
[0043] In this article, the diversity of training data means that two training datasets can store corresponding sets of tuples representing the same or different kinds of objects, respectively. For example, dataset D1 can represent network packets; dataset D2 can represent photos; and datasets D3-D4 can represent logical statements. However, tuples of different kinds of objects will not appear in the same dataset. Therefore, each dataset is respectively homogeneous.
[0044] Other examples of various objects represented in the dataset include communication messages, log entries, logical statements, semi-structured documents such as JavaScript Object Notation (JSON) or Extensible Markup Language (XML), photographs or computer-generated images, database records or spreadsheet rows, logical diagrams, and parse trees such as Abstract Syntax Trees (ASTs). The diversity of the training data in this article means that an instance of an anomaly detector can be dedicated to one kind of object, but it is counterintuitive to have hyperparameter values optimized in this article based on datasets containing other kinds of objects. For example, a photo anomaly detector can have hyperparameters optimized based on meta-features of a non-graph dataset such as a network packet dataset, and vice versa for optimizing a network packet anomaly detector based on (multiple) photo datasets.
[0045] 1.5 Neutral meta-features
[0046] Each of the validated training scenarios V1-V5 has a corresponding training data set, which may be different or the same. For example, validated training scenarios V1-V2 share training data set D1, but each of validated training scenarios V3-V5 has its own corresponding different training data set D2-D4, as shown in the meta-feature Z value column of validated training scenario 121. Although the corresponding dimensions, patterns, and entire meta-feature sets of each of the data sets D1-D4 may be different or the same due to domain or application characteristics, various statistical and information theoretic meta-features can be derived from each of the data sets D1-D4, regardless of the dimensions and patterns of those data sets.
[0047] In other words, the validated training scenario 121 may contain values of multiple meta-features that are domain and application neutral, such as the example meta-feature Z. For example, the meta-feature Z may be the cardinality (i.e., tuple count) of the data set. In this case, the values M1-M2 are the same value or different values, depending on whether the respective data sets D1-D2 have the same cardinality.
[0048] Historical (e.g., manual) tuning may provide the same or different values of hyperparameter A for different domains, applications, and / or training datasets, respectively. For example, validated training scenarios V2-V3 share a value H2 for hyperparameter A, but each of validated training scenarios V1 and V4-V5 has its own respective different value H1 or H3-H4 for hyperparameter A, as shown in the Hyperparameter A Value column of validated training scenarios 121. Most or all validated training scenarios 121 are different combinations of datasets and values of hyperparameters AB, and each dataset may have its own value of a neutral (i.e., common to all datasets D1-D4 in different domains) meta-feature, such as meta-feature Z.
[0049] 1.6 Verification Scoring
[0050] All training scenarios 121 have been or are easily verified (e.g., by computer 100 or another computer), which means that each verified training scenario 121 has a corresponding instance (not shown) of anomaly detector 110 that is or was configured, trained, and tested (i.e., validated) using the values of hyperparameters AB as indicated in each training scenario, and is configured to accept corresponding feature vectors whose format (i.e., width and mode) matches the dataset of the training scenario. For example, if datasets D3-D4 all contain or do not contain tuples of network packets, then each verified training scenario V4-V5 may or may not share the same feature vector format.
[0051] Whether validated or not, a training scenario should contain values for the neutral meta-features and values for the hyperparameters AB. A validated training scenario should also contain an empirical validation score that is numeric and is actually achieved and empirically measured by testing an instance of the anomaly detector 110 for that scenario, which also requires training that instance when it has not been trained. For example, validated training scenarios V1-V2 are all trained with dataset D1, but the anomaly detector instance for scenario V1 is better (i.e., more accurate) than the anomaly detector instance for scenario V2 only if the empirical validation score E1 is higher than the score E2.
[0052] 1.7 Computer Life Cycle
[0053] The operation of the computer 100 occurs in two phases, namely the design phase and the runtime. Both phases have one or more phases. In this example, the design phase has phases P2-P4.
[0054] The preparation phase P1 occurs before the design period and requires the execution of all validated training scenarios 121, which may have already occurred (e.g., without computer 100) and been archived as history. Phase P1 requires the configuration of the corresponding instance of the anomaly detector 110 using the values of the hyperparameters AB as specified in each of the scenarios V1-V5. Phase P1 also requires training, testing, and measuring the respective empirical validation scores. The purpose of phase P1 is to completely fill each row and column of the validated training scenario 121.
[0055] 1.8 Linear Optimizer
[0056] After stage P1, the design period immediately or eventually performs stages P2-P3, which can occur in sequence or simultaneously. For example, any one of stages P2-P3 can start first, and any one can end first. In some cases, stages P2-P3 can start and / or end simultaneously. In this example, stage P2 occurs before stage P3.
[0057] Phase P2 generates and trains linear optimizers O1-O3, each of which learns to predict (i.e., infer) the best value of a hyperparameter A based on the value(s) of some or all of the neutral meta-features of the data set. The best value of the hyperparameter is the value for which an instance of the anomaly detector 110 can obtain the highest validation score using the data set. The implementation of the linear optimizers O1-O3 is discussed later in this article.
[0058] Phase P2 uses the validated training scenario 121 as training metadata for meta-learning training of linear optimizers O1-O3. Phase P2 uses each of the validated training scenarios V1-V5 as a separate tuple for training zero, some, or all of the linear optimizers O1-O3. The empirical validation scores of each validated training scenario V1-V5 are used as training labels and supervise the training of the linear optimizers O1-O3.
[0059] All linear optimizers O1-O3 accept the same feature vector format, which contains values from the validated training scenario 121, but only for (e.g., some or all) neutral meta-features, such as meta-feature Z. In other words, in the validated training scenario 121, stage P2 only accesses the meta-feature column(s) and the empirical validation score column for supervision.
[0060] For example, phase P2 does not require datasets D1-D4 and does not require instances of anomaly detector 110 that execute validated training scenarios V1-V5, as long as the meta-feature columns and empirical validation score columns have been populated in validated training scenario 121. For example, datasets D1-D4 and those anomaly detector instances may no longer exist when phase P2 occurs. The hyperparameter columns in validated training scenario 121 are not used during phase P2.
[0061] 1.9 Top ranking percentage of empirical validation scores
[0062] Phase P2 initially configures linear optimizers O1-O3 identically, but then trains them with different respective nested subsets of the validated training scenarios 121. For example, linear optimizer O3 is trained using a superset of the validated training scenarios used by linear optimizer O2. Likewise, linear optimizer O2 is trained using a superset of the validated training scenarios used by linear optimizer O1.
[0063] For example, as shown in the rank percentage column of unvalidated training scenarios 122, linear optimizer O1 is trained with only a subset of validated training scenarios 121 having the top 1% of empirical validation scores. Similarly, optimizer O2 is trained with only a subset of validated training scenarios 121 having the top 50% of empirical validation scores.
[0064] In one embodiment, the values in the ranking percentage column are provided by predefined sequences of different percentages. In various embodiments, the predefined sequence includes some or all of the following: a subsequence that increases by 1 and a subsequence that increases by 5 or 10. Example predefined sequences are 1%, 2%, 3%, 4%, 5%, 10%, 15%, 20%, 25%, 30%, 35%, 40%, 50%, 60%, 70%, 80%, 90% and 100%. In another example, all values in the predefined sequence are separated by the same fixed interval (e.g., 10%).
[0065] In the meta-feature Z value column, the predicted hyperparameter A value column, and the inferred validation score column in the unvalidated training scenario 122, the values I1_M6-I1_M7, I2-I3, H6-H11, and M6-M7 are shown, which are illustrative single values or value subsets until they are verified later in this article. Figure 2 The discussion of the model selection facilitation in step 205 is explained. For demonstration purposes, some rows of the unverified training scenario 122 are shown as combined or not shown, as discussed later in this article.
[0066] 1.10 Metamodel
[0067] The purpose of stage P2 is to perform meta-learning by training linear optimizers O1-O3. After stage P2, the trained linear optimizers O1-O3 can be immutable and only used for prediction (i.e., inference).
[0068] Also during the training period of the computer 100, stage P3 performs meta-learning by training the meta-model 130 using the validated training scenarios V1-V5 as training tuples instead. The meta-model 130 can be any trainable (e.g., linear or nonlinear) regression model, such as the ML architecture discussed later in this article. Depending on the embodiment, the meta-model 130 is or is not an artificial neural network (ANN).
[0069] Metamodel 130 accepts a feature vector format that contains only the values as recorded in validated training scenario 121 for: some or all of the neutral meta-features, such as meta-feature Z, and some or all of the hyper-parameters AB. In other words, in validated training scenario 121, stage P3 only accesses the meta-feature column(s), the hyper-parameter column, and the empirical validation score column for supervision.
[0070] Phase P3 does not require datasets D1-D4 and does not require instances of anomaly detector 110 that execute validated training scenarios V1-V5, as long as the meta-feature columns, hyperparameter columns, and empirical validation score columns have been populated in validated training scenarios 121. For example, when phase P3 occurs, datasets D1-D4 and those anomaly detector instances may no longer exist. After phase P3, the trained meta-model 130 may be immutable and used only for prediction (i.e., inference).
[0071] 1.11 Model selection
[0072] Model selection requires detecting which of the linear optimizers O1-O3 should predict the best value of the hyperparameter A for the anomaly detector 110. One of the ways in which the computer 100 can optimize the hyperparameter A for a new training data set is implemented in the following scaling embodiment.
[0073] In a scaling embodiment, some or all of the linear optimizers O1-O3 accept a feature vector format consisting of a single feature that is only one of the neutral meta-features, such as meta-feature Z, which may or may not be dataset cardinality. For example, each of the linear optimizers O1-O3 may be a linear regression model consisting of a single term that is the product of the value of the neutral meta-feature multiplied by a learned scaling factor. For example, each of the linear optimizers O1-O3 may have learned a different corresponding scaling factor.
[0074] In other words, in a scaling embodiment, the linear optimizers O1-O3 may differ only in the degree of linear (i.e., monotonic) scaling. In this case, the model selection in stage P4 determines the scaling of the hyperparameters (i.e., causes the scaling selection). For example, the anomaly detector 110 may implement K nearest neighbor (KNN) clustering, and the hyperparameter A may be the neighbor count K of the KNN. In this case, the value of K (i.e., the hyperparameter A) should scale directly proportional to the cardinality of the data set. Scaling will be discussed further later in this document.
[0075] 2.0 Example Meta-Learning Process
[0076] Figure 2 is a flow chart illustrating an example process that the computer 100 may perform including meta-learning for hyperparameter optimization of the anomaly detector 110 . Figure 2 refer to Figure 1 discuss.
[0077] Start 200 corresponds to Figure 1 1. Depending on the circumstances, start 200 may or may not be optional. As explained earlier herein, an archive of the empirical performance history of the anomaly detector 110 may or may not already be available. If the archive does not yet exist, start 200 populates the archive with empirical performance data of the anomaly detector 110, as explained earlier herein.
[0078] As explained earlier herein, the operation of the computer 100 occurs in two phases, a design phase requiring steps 201-208 and a runtime requiring steps 209-210. After start 200, the design phase occurs to process validated training scenarios 121, which may or may not include scenarios that specify some or all of the following: an unlabeled training dataset, two respective training datasets having different respective dimensions for two scenarios, and two respective training datasets having different respective meta-feature sets for two scenarios, both meta-feature sets including a common (i.e., shared) subset of meta-features, such as meta-feature Z.
[0079] The design phase has a sequence of two training sub-phases, namely training requiring steps 201-203 and 206 and then model selection requiring steps 204-205 and 207-208. These phases and sub-phases are shown in the demonstrative diagram 240, which is not actually operated or stored by the computer 100.
[0080] As shown, processing after start 200 is divided into left and right vertical control flows, which (e.g., simultaneously) perform two corresponding examples of meta-learning. The left stream consists of steps 201-205, in which linear optimizers O1-O3 meta-learn.
[0081] As explained earlier herein, each of the linear optimizers O1-O3 is trained with the corresponding best subset of the validated training scenarios 121 having the highest corresponding ranked percentage of the empirical validation scores. Step 201 ranks (i.e., sorts) the empirical validation scores of the validated training scenarios 121. For each of the linear optimizers O1-O3, step 202 selects the corresponding subset of the best training scenarios as the corresponding top ranked percentage of the validated training scenarios 121 having the highest empirical validation scores.
[0082] Step 203 supervisedly trains each of the linear optimizers O1-O3 to infer the value of the hyperparameter A, as explained earlier and later in this article. After step 203, the trained linear optimizers O1-O3 can be considered immutable and used only for inference. In other words, according to the legend 240, step 203 is in the training sub-phase of the design phase, but the next step 204 is in the model selection sub-phase of the design phase.
[0083] Steps 204-205 collaborate to generate exploratory (i.e., new) unvalidated training scenarios 122, which may be more or less hypothetical scenarios: a) whose training datasets need not actually exist nor be identified, as long as values of some or all neutral meta-features are provided, including meta-feature Z, which may or may not be dataset cardinality, and b) need not actually occur and need not have empirical validation scores. In step 204, each of the linear optimizers O1-O3 infers a respective specific value of a hyperparameter A, as explained previously and later herein.
[0084] Step 205 generates different unvalidated training scenarios 122, including corresponding inferred values of the hyperparameter A as inferred in the previous step 204. Figure 1 In the demonstration in , some rows of the unverified training scene 122 are shown as combined or not shown, as described below.
[0085] The column headings of two columns are shown in bold, and these two columns are the linear optimizer column and the meta-feature Z value column. These two columns together store the different value combinations in each row of the unverified training scenario 122. For each of the linear optimizers O1-O3, there are corresponding many rows (shown or not shown) in the unverified training scenario 122.
[0086] For example, each row for linear optimizer O1 contains a different predefined value for meta-feature Z. For each of linear optimizers O1-O3, those same different predefined values for linear optimizer O1 are repeated in the meta-feature Z value column. For example, all linear optimizers O1-O3 display repeated predefined values M6 in the meta-feature Z value column.
[0087] For example, for a predefined value of M6, linear optimizer O1 infers that the value of hyperparameter A should be value H5. Thus, the scenario shown in the top row of unvalidated training scenarios 122 indicates values H5 and M6 for linear optimizer O1. Step 205 generates the shown and not shown rows of unvalidated training scenarios 122 based on a predefined set (e.g., 100 evenly spaced) of values for meta-feature Z and an exhaustive combination between the three linear optimizers O1-O3.
[0088] For example, in the unverified training scenario 122, 3 optimizers x 100 meta-feature Z values = 300 rows, i.e., 100 rows for each linear optimizer. If the linear optimizers O1-O3 instead expect values for two meta-features, both with 100 evenly spaced grid values, then the unverified training scenario 122 contains 3 x 100 x 100 = 30,000 rows.
[0089] Steps 203 and 206 are shown above step 204 to indicate that steps 203 and 206 occur (e.g., simultaneously) during a training sub-epoch, which does not mean that step 206 should occur before step 204. In various examples, step 206 may end before step 201 begins; step 206 may begin after step 205 ends; and / or step 206 may occur simultaneously with some or all of steps 201-205.
[0090] Step 206 supervisedly trains the metamodel 130 to infer validation scores for the training scenarios of the anomaly detector 110, as discussed earlier and later herein. After step 206, the trained metamodel 130 can be considered immutable and used only for inference. Although the model selection sub-phase of the design phase begins with step 204, the subsequent step 207 does not occur until steps 205-206 are completed.
[0091] In step 207, for each unverified training scenario 122, the meta-model 130 infers a corresponding inferred verification score, as discussed earlier and later herein. Figure 1 In the demonstration in FIG. 2 , some rows of the unverified training scenario 122 are shown as combined or not shown, as described below. The predefined values H6-H7 and M6-M7 are shown in the top two rows of the unverified training scenario 122. For these two scenarios, the meta-model 130 infers the corresponding inferred verification scores I1_M6-I1_M7 in step 207.
[0092] For linear optimizers O2-O3, the corresponding rows in the unverified training scenarios 122 are shown as combined (i.e., summarized) to demonstrate that all rows of one linear optimizer can be combined based on the arithmetic average of step 208. For example, the inferred verification score I2 or I3 illustratively represents the arithmetic average of the inferred verification scores of all scenarios of the corresponding linear optimizer O2 or O3. For example, the average value of the linear optimizer O1 will be the average of the inferred verification scores I1_M6-I1_M7.
[0093] Step 208 performs model selection by selecting the best linear optimizer with the highest combined inference validation score among predefined different ranking percentages. For example, if the average inference validation score I2 is the highest average among all linear optimizers O1-O3, then step 207 selects linear optimizer O2 as the best optimizer for hyperparameter A.
[0094] After step 208, the unselected linear optimizers O1 and O3 may be discarded. The (e.g., long) duration may separate steps 208-209, which may occur in the same or different computers. For example, design-time steps 201-208 may occur in a lab environment, while runtime steps 209-210 may or may not occur in a production environment.
[0095] In step 209, the optimal linear optimizer O2 infers inferred values of hyperparameters A for a new (e.g., unlabeled) data set, which may have values of meta-features Z that are present or absent in the training scenarios 121-122. A new instance of the anomaly detector 110 may be configured with the values of the hyperparameters A inferred in step 209. During subsequent training, validation, or production inference, the new instance of the anomaly detector 110 detects anomalies in step 210.
[0096] 3.0 Example Target Model Optimization Process
[0097] Figures 1 to 2 The first meta-model 130 for optimizer model selection of a first hyperparameter A for the first anomaly detector 110 is highlighted, which may be a minimal use case. Figure 3 is a flow chart illustrating an example process that the computer 100 may perform with some or all of: a) a second set of linear optimizers for second hyperparameters B of the first anomaly detector 110, b) a second meta-model and a second set of linear optimizers for hyperparameters of the second anomaly detector, and c) an ensemble including instances of the two anomaly detectors. Figures 2 to 3 Some or all of the steps may be complementary and combined or interleaved. Figure 3 refer to Figures 1 to 2 discuss.
[0098] Similar to Figure 2 Starting 200, starting 300, generating or obtaining a first validated training scenario 121 for the first anomaly detector 110, including the empirical validation scores discussed earlier in this document. Figure 3 A second anomaly detector is needed, so start 300 also generates or obtains a second validated training scenario with an empirical validation score for the second anomaly detector. The first and second validated training scenarios may or may not share some or all of the datasets D1-D4. In any case, the first and second validated training scenarios should have some or all of the neutral meta-features in common, such as meta-feature Z. The first and second validated training scenarios may or may not share hyperparameters, depending on whether the first and second anomaly detectors have the same set of hyperparameters.
[0099] Unlike the start 200 which occurs only before the training sub-epoch, the start 300 also executes the entire training sub-epoch of the design epoch, which in this example entails training the first set of linear optimizers O1-O3 and the first meta-model 130 discussed earlier herein. Figure 3 It is necessary to optimize the second hyperparameter B of the first anomaly detector 110, so start 300 and also train a second set of linear optimizers for hyperparameter B. Figure 3 A second anomaly detector is needed, and start 300 also trains a second meta-model and an additional set of linear optimizers for the hyperparameters of the second anomaly detector. To indicate that start 300 also performs a full training sub-epoch, start 300 is shown with a dashed outline according to legend 340, which is similar to Figure 2 The legend of 240 is different.
[0100] After start 300, the model selection sub-phase of design time is ready to begin. According to legend 340, steps 301 and 306-308 are shown in bold to indicate that they occur during the model selection sub-phase of design time discussed earlier herein.
[0101] Similar to start 200, start 300 is followed by two (e.g., concurrent) vertical control flows. The left flow contains steps 301-305. The right flow contains steps 306-309. The vertical intervals between the various steps shown in either flow demonstrate the logical progression of the sub-periods, but do not represent timing. For example, the large interval shown between steps 308-309 indicates neither duration nor order. For example, step 309 does not wait to start based on steps 304 or 305. Similarly, the horizontal alignment of steps 301 and 308 shown does not mean simultaneous, but rather indicates that they occur in the same logical sub-period that requires training the corresponding metamodel.
[0102] Specifically, the left stream uses the first anomaly detector 110 and the first metamodel 130. Similarly, the right stream uses the second anomaly detector and the second metamodel. Since the techniques herein are target model (i.e., anomaly detector) neutral, these techniques can be directly reused for the left stream and the right stream. The left stream and the right stream illustratively show different steps, using anecdotal examples to show different aspects and capabilities, which does not mean that the right stream and the left stream are characterized differently or actually have different steps.
[0103] Although not shown as such, the left and right streams can be the same stream with the same steps but with different corresponding data and target models. For example, only some steps shown in the left stream are dedicated to the second hyperparameter B to demonstrate that multiple hyperparameters of the same anomaly detector can be optimized, but this does not mean that the second anomaly detector cannot also have multiple hyperparameters optimized in the same way, even if the corresponding steps are not shown in the right stream.
[0104] The left stream and the right stream each generate a corresponding set of unvalidated training scenarios to be scored by the corresponding meta-model. For the left stream, the unvalidated training scenario generation occurs between steps 300-301, as discussed earlier in this document. Step 301 is required for model selection of the best linear optimizer for the second hyperparameter B. Different hyperparameters of the same anomaly detector should not generate and use the same set of different unvalidated training scenarios for model selection. Instead, a separate set of different unvalidated training scenarios should be generated and used to select the corresponding best linear optimizer for each hyperparameter.
[0105] In one embodiment, hyperparameter B is categorical (ie, non-numeric) and the optimizer for hyperparameter B is logistic regression rather than linear regression.
[0106] In step 301, the first meta-model 130 infers a respective inferred validation score for each unvalidated training scenario in the respective first or second set of different unvalidated training scenarios. Step 301 is repeated for each hyperparameter AB, each hyperparameter having a respective separate set of different unvalidated training scenarios. Unlike the unvalidated scenarios during the model selection sub-epoch, all hyperparameters AB of the anomaly detector 110 may share the validated training scenarios 121 during the training sub-epoch in step 300. Step 301 also performs any remaining activities of the model selection sub-epoch for the hyperparameters AB. For example, when step 301 ends, a respective optimal linear optimizer has been selected for each of the hyperparameters AB.
[0107] An arbitrarily long duration may elapse between design time (e.g., steps 301 and 308) and runtime (e.g., steps 302 and 309), as explained earlier herein. The runtime may be caused by the need to train respective instances of the first and second anomaly detectors against a new training data set. For example, the runtime may require retraining (e.g., due to data drift) both anomaly detectors with a new training data set that contains newer training than previous instances used to train the anomaly detectors.
[0108] In the scaling embodiments discussed earlier in this document, linear optimizers for the same hyperparameters may differ only in the degree of scaling. A neutral meta-feature (e.g., a meta-feature Z such as the cardinality of a dataset) may be input that causes the linear optimizer to scale the hyperparameter, and the linear optimizer may have either of the following two embodiments: a) a default embodiment, which scales the hyperparameters with built-in default values, and b) an amplification embodiment, whose inputs include: i) an (e.g., small) initial value of the hyperparameter to be amplified, and ii) an (e.g., small) initial value of the neutral meta-feature (e.g., the cardinality of the dataset).
[0109] To provide an optimal initial value for a first hyperparameter A based on a small subset of training items (e.g., rows or tuples) in the new training dataset, step 302 first tunes the first hyperparameter A. For example, to find an optimal initial value for hyperparameter A for the new training dataset, an intensive (i.e., slow) initial tuning (e.g., HyperOpt) of hyperparameter A may use a smaller (i.e., fast, low dataset cardinality, such as low values of meta-feature Z) subset of training items in the new training dataset.
[0110] After automatically discovering the best initial value of the hyperparameter A for a small subset of the new training dataset (e.g., randomly sampled without replacement), a rescaling (e.g., upscaling) linear optimizer can quickly (e.g., in constant time) rescale the hyperparameter A for the (e.g., huge) entirety of the new training dataset. The rescaling linear optimizer can accept as input: an initial value of the meta-feature Z for a smaller subset of the new dataset, a (e.g., larger) value of the meta-feature Z for the entire new dataset, and an initial value of the hyperparameter A. Based on the input, the rescaling linear optimizer can infer the best value of the hyperparameter A for the entire new dataset. For example, step 303 can rescale the first hyperparameter A based on the cardinality of the entire new dataset.
[0111] As described above, the previous step 301 selects a corresponding best linear optimizer for each of the hyperparameters AB. In step 303, the best linear optimizer for the first hyperparameter A infers a scaled value for the first hyperparameter A. In step 304, the best linear optimizer for the second hyperparameter B infers a value for the second hyperparameter B.
[0112] Step 305 configures and intensively trains a new instance of the first anomaly detector 110 based on the inferred (eg, scaled) values of the hyperparameters AB for the entire new dataset having a larger cardinality (ie, meta-features Z) than a smaller subset of the new dataset.
[0113] As explained earlier in this document, the left control flow and the right control flow each have a corresponding metamodel. Emphasizing other aspects of the techniques herein, the right control flow shows different steps than the left flow, which, as explained earlier in this document, means that both flows may actually have additional steps not shown, such as steps of the other flow. For example, a particular technique for the second metamodel and its meta-learning dataset, as shown in the right flow, may also occur in the corresponding first metamodel 130 in the left flow.
[0114] The left control flow and the right control flow may share a data set D1-D4 with meta-feature Z. However, the left control flow and the right control flow have separate (i.e., not shared) training scenarios. For example, step 301 in the left flow and step 306 in the right flow are both shown as using a set of unverified training scenarios, which should be a separate corresponding set for each of steps 301 and 306.
[0115] As described above, the previous step 301 selects the corresponding best linear optimizer for the hyperparameters AB of the first anomaly detector 110. For similar model selection for the second anomaly detector, steps 306-308 collaborate in the right stream as follows.
[0116] Step 306 uses the trained linear optimizer for the hyperparameters of the second anomaly detector. Being a set of different unvalidated training scenarios only for the second anomaly detector, step 306 generates various unvalidated training scenarios, which contain: values of various hyperparameters of the second anomaly detector inferred (e.g., scaled) in step 306 and values of various neutral meta-features (including meta-feature Z). A sub-step of step 306 is step 307, wherein, for each unvalidated training scenario, each of the linear optimizers for the hyperparameter infers a corresponding inferred value for the hyperparameter. Each hyperparameter value inferred in step 307 is stored in a corresponding one of the unvalidated training scenarios for the hyperparameter.
[0117] In step 307, the second meta-model infers a corresponding inferred validation score for each unvalidated training scenario of the second anomaly detector. The linear optimizer of the hyperparameter with the highest average inferred validation score is selected as the best linear optimizer for the hyperparameter.
[0118] In a similar manner as discussed earlier herein for hyperparameters AB of the first anomaly detector 110, multiple hyperparameters of the second anomaly detector may have optimal values inferred by the corresponding linear optimizer. Based on the inferred values of the hyperparameters for the new data set (e.g., the new data set of step 305), step 309 configures and trains a new instance of the second anomaly detector.
[0119] Thus, after completing the left and right control flows by completing the respective steps 305 and 309, the instances of the first and second anomaly detectors have been intensively trained with the new data set. Step 310 combines the instances of the first and second anomaly detectors into an ensemble. The ensemble can have various ways of combining inferences by combining instances of one or two anomaly detectors for the same input, such as averaging the two anomaly scores to compute a combined anomaly score.
[0120] 4.0 First Exemplary Embodiment
[0121] The following first exemplary embodiment may combine aspects of the embodiments previously presented herein. The design choices in this exemplary embodiment are illustrative and do not limit the previous embodiments.
[0122] The following process contains the following steps 1-4, which train a hyperparameter scaling model (ie, optimizer) for each hyperparameter of a single target machine learning (ML) model.
[0123] 1. Large-scale configuration evaluation to collect metadata datasets (i.e., training scenarios): In order to learn hyperparameter scaling, a large number of hyperparameter configurations are evaluated (i.e., validation scores) to provide information about their performance on various dataset sizes. This data set of data that maps hyperparameter configurations and dataset sizes to scores is a metadata dataset (i.e., a metadata dataset for training scenarios) used in subsequent steps 2-3. The metadata dataset contains a column for each hyperparameter, a column for the size of the dataset, and a supervised training target column that is a validation score obtained using a given hyperparameter configuration for a given dataset size. Each row corresponds to data in a specific hyperparameter configuration evaluated on a specific dataset and dataset size. Some users may have obtained a large amount of configuration performance data from logs of previous hyperparameter tuning runs that they have performed on several old datasets. In these cases, if their old datasets are sufficiently diverse in size, users can skip step 1 by collating all of these old log data into a single metadata dataset, thereby skipping the main part of the computational cost of the process.
[0124] 2. Train a surrogate model (i.e., metamodel) to predict hyperparameter quality: Based on this evaluated metadata set, a metamodel is trained to predict the average score of the target model with a given hyperparameter configuration on a given dataset size. This can be done by taking all the data in the metadata set, setting the score as the training target, and then passing all of this data into the ML pipeline. The ML pipeline then outputs an adapted metamodel that can be used to predict the scores of candidate hyperparameter configurations for a given dataset size.
[0125] 3. Fit the hyperparameter scaling model (i.e., optimizer): Learn how each hyperparameter of the target model should scale with the dataset size. For a given dataset size, each hyperparameter scaling model predicts the value that should be used for a specific hyperparameter. Although any ML model can be used as the optimizer in step 3, either of two models is optimal due to their simplicity: a linear regression model (in the case of numerical hyperparameters) or a logistic regression model (in the case of categorical hyperparameters). The reason for doing this is to avoid overfitting, as more powerful models are more likely to infer (i.e., extrapolate or interpolate) hyperparameter values outside the range of plausible values for neutral meta-features (e.g., dataset size) that are missing from the metadata set. Step 3 has three sub-steps:
[0126] A. For each dataset and dataset size, discard all but the first 5% of the rows in the metadata set that correspond to the hyperparameter configurations evaluated in step 1 for that particular dataset and sample size.
[0127] B. In a subsample of the meta-dataset from step 1, drop all columns except for a specific hyperparameter and dataset size. Set the hyperparameter value to the target, and set the dataset size to the (single) input feature. In addition to dataset size alone, more neutral meta-features can be used; for example, the number of columns in the dataset can be included as a neutral meta-feature. However, overfitting is avoided when fewer than four meta-features are used.
[0128] C. Fit a machine learning model to this subset of the meta-dataset so that it can predict high-quality hyperparameter values given a specific dataset size.
[0129] 4. Selecting a hyperparameter scaling model using surrogate models: For each hyperparameter, there are multiple candidate hyperparameter scaling models, each trained using a different amount of metadata dataset. If trained on too little metadata, the scaling model may overfit to the random noise in the metadata, causing it to predict poor hyperparameter values for certain dataset sizes. If given too much metadata, it may not have enough information to know which hyperparameter values are optimal, so it may still provide below-average predictions. For a given meta-feature, each hyperparameter scaling model in step 3 predicts (i.e., infers) hyperparameter values for various dataset sizes. Next, the surrogate models from step 2 predict (i.e., infer) the scores that each of these hyperparameter configurations will obtain on a dataset of the indicated size. For each hyperparameter, the corresponding hyperparameter scaling model with the best average prediction validation score is selected based on the surrogate models.
[0130] The trained hyperparameter scaled model can be used in either of two ways:
[0131] Given a new dataset with a specific number of rows, these scaled models can be used to predict high-quality default values for the hyperparameters of a target ML model.
[0132] Given a new dataset that requires hyperparameter tuning, these hyperparameter scaling models can be used to speed up the tuning process. First, a representative subsample of the new dataset can be obtained. Second, hyperparameter tuning can be performed on this subsample of the dataset. Finally, the hyperparameter scaling models can be used to extrapolate the best hyperparameter values for the original, full dataset size by scaling up the best hyperparameter values found on the dataset sample. This use case helps avoid overfitting of hyperparameter values that would result from subsampling the dataset size.
[0133] 5.0 Second Exemplary Embodiment
[0134] The following second exemplary embodiment may combine aspects of the embodiments presented previously herein. The design choices in this exemplary embodiment are illustrative and do not limit the previous embodiments. Hyperparameter scaling in this embodiment requires the following stages 1-4.
[0135] 1. Large-scale configuration evaluation: In order to learn a dataset-dependent hyperparameter scaling model, a large number of configurations need to be evaluated on different sets of datasets. First, a supervised hyperparameter tuning process such as random search or Bayesian optimization is run to explore and evaluate various configurations. This is run on multiple datasets to achieve generalization across different dataset size features. In addition, the dataset is downsampled to evaluate the performance of the configuration given a dataset of different sizes. The various dataset scores are selected between 1% and 100%.
[0136] 2. Training Alternative Models: The hyperparameter scaling model in this paper suggests hyperparameter values that depend on the size of a given dataset. In order to evaluate the performance of a hyperparameter scaling model, it is necessary to score the performance of its predicted configuration. Due to the continuous (multiple) hyperparameters, the hyperparameter space of all possible values is effectively infinite, and it is very unlikely to accurately predict the values that have been evaluated. To this end, an alternative model is trained to predict the validation score for any experimental hyperparameter configuration. This validation score facilitates the selection between various hyperparameter scaling models. The alternative model is trained on all evaluated configurations (i.e., validated training scenarios).
[0137] 3. Train hyperparameter scaling models (i.e., optimizers): Based on the evaluated configurations and their scores, learn the dependency between the dataset size and the corresponding hyperparameter values. To avoid training with poorly performing configurations, only validated training scenarios whose empirical validation scores exceed a threshold percentile ranking are used to train the optimizer. Train various optimizers on the top 1, 5, 10, 15, … 100 percentiles of the evaluated configurations (i.e., validated training scenarios), and select the best performing configuration based on their test scores on a specified metric (e.g., ROC AUC, Precision@N, etc.). The optimizer takes the dataset size as input and outputs the corresponding hyperparameter values.
[0138] 4. Model selection based on surrogate models (i.e., meta-model): As a final step, the best performing hyperparameter scaling model (i.e., optimizer) is selected based on the scores of the previously trained surrogate models. This is achieved by predicting configurations across all dataset sizes (across dataset parts and datasets) evaluated in the hyperparameter tuning step for all hyperparameter scaling models. These predicted configurations are scored by the surrogate models and averaged for the corresponding hyperparameter scaling models. The optimizer with the highest score is selected as the final hyperparameter scaling model.
[0139] The experimental results are as follows. For all various selected scikit-learn unsupervised anomaly detectors including histogram-based outlier detection (HBOS), IsolationForest, and LocalOutlierFactor, the validation scores of the second exemplary embodiment exceed the default hyperparameter values of the original equipment manufacturer (OEM). Consistent improvements in validation score statistics (e.g., mean, median, and first and third quartiles) were observed for all three unsupervised anomaly detectors.
[0140] Hardware Overview
[0141] According to one embodiment, the techniques described herein are implemented by one or more special-purpose computing devices. Special-purpose computing devices may be hardwired to perform these techniques, or may include digital electronic devices, such as one or more application-specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs) that are permanently programmed to perform these techniques, or may include one or more general-purpose hardware processors that are programmed to perform these techniques according to program instructions in firmware, memory, other storage devices, or a combination thereof. Such special-purpose computing devices may also combine customized hardwired logic, ASICs, or FPGAs with custom programming to implement these techniques. Special-purpose computing devices may be desktop computer systems, portable computer systems, handheld devices, networking devices, or any other devices that incorporate hardwiring and / or program logic to implement these techniques.
[0142] For example, Figure 4 4 is a block diagram illustrating a computer system 400 upon which embodiments of the present invention may be implemented. Computer system 400 includes a bus 402 or other communication mechanism for communicating information, and a hardware processor 404 coupled to bus 402 for processing information. Hardware processor 404 may be, for example, a general purpose microprocessor.
[0143] The computer system 400 also includes a main memory 406, such as a random access memory (RAM) or other dynamic storage device, coupled to the bus 402 for storing information and instructions to be executed by the processor 404. The main memory 406 may also be used to store temporary variables or other intermediate information during execution of instructions to be executed by the processor 404. When stored in a non-transitory storage medium accessible to the processor 404, these instructions turn the computer system 400 into a special-purpose machine customized to perform the operations specified in the instructions.
[0144] Computer system 400 also includes a read only memory (ROM) 408 or other static storage device coupled to bus 402 for storing static information and instructions for processor 404. A storage device 410, such as a magnetic disk, optical disk, or solid state drive, is provided and coupled to bus 402 for storing information and instructions.
[0145] The computer system 400 may be coupled to a display 412, such as a cathode ray tube (CRT), via the bus 402 for displaying information to a computer user. An input device 414, including alphanumeric and other keys, is coupled to the bus 402 for communicating information and command selections to the processor 404. Another type of user input device is a cursor control 416, such as a mouse, trackball, or cursor direction keys, for communicating direction information and command selections to the processor 404 and for controlling cursor movement on the display 412. The input device typically has two degrees of freedom in two axes, a first axis (e.g., x) and a second axis (e.g., y), which allows the device to specify a position in a plane.
[0146] Computer system 400 may implement the techniques described herein using custom hardwired logic, one or more ASICs or FPGAs, firmware, and / or program logic that is combined with the computer system to enable computer system 400 to function as or be programmed to function as a special purpose machine. According to one embodiment, the techniques herein are performed by computer system 400 in response to processor 404 executing one or more sequences of one or more instructions contained in main memory 406. Such instructions may be read into main memory 406 from another storage medium such as storage device 410. Execution of the sequences of instructions contained in main memory 406 causes processor 404 to perform the processing steps described herein. In alternative embodiments, hardwired circuitry may be used in place of or in combination with software instructions.
[0147] The term "storage medium" as used herein refers to any non-transient medium that stores data and / or instructions that cause a machine to operate in a particular manner. Such storage media may include non-volatile media and / or volatile media. Non-volatile media include, for example, optical disks, magnetic disks, or solid-state drives, such as storage device 410. Volatile media include dynamic memory, such as main memory 406. Common forms of storage media include, for example, floppy disks, disks, hard disks, solid-state drives, magnetic tapes or any other magnetic data storage media, CD-ROMs, any other optical data storage media, any physical media with a pattern of holes, RAM, PROMs and EPROMs, FLASH-EPROMs, NVRAMs, any other memory chips, or cassettes.
[0148] Storage media are distinct from, but may be used in conjunction with, transmission media. Transmission media participate in the transfer of information between storage media. For example, transmission media include coaxial cables, copper wire, and optical fiber, including the cables that make up bus 402. Transmission media may also take the form of acoustic or light waves, such as those generated during radio wave and infrared data communications.
[0149] Various forms of media may be involved when one or more sequences of one or more instructions are transmitted to the processor 404 for execution. For example, the instructions may initially be carried on a disk or solid-state drive of a remote computer. The remote computer may load the instructions into its dynamic memory and send the instructions over a telephone line using a modem. A modem local to the computer system 400 may receive the data on the telephone line and convert the data into an infrared signal using an infrared transmitter. An infrared detector may receive the data carried in the infrared signal, and appropriate circuitry may place the data on the bus 402. The bus 402 transmits the data to the main memory 406, from which the processor 404 retrieves and executes the instructions. The instructions received by the main memory 406 may optionally be stored on the storage device 410 before or after execution by the processor 404.
[0150] Computer system 400 also includes a communication interface 418 coupled to bus 402. Communication interface 418 provides a bidirectional data communication coupling with a network link 420 connected to a local network 422. For example, communication interface 418 can be an integrated services digital network (ISDN) card, a cable modem, a satellite modem, or a modem to provide a data communication connection to a corresponding type of telephone line. As another example, communication interface 418 can be a local area network (LAN) card to provide a data communication connection to a compatible local area network. A wireless link can also be implemented. In any such implementation, communication interface 418 sends and receives electrical, electromagnetic, or optical signals carrying digital data streams representing various types of information.
[0151] The network link 420 typically provides data communication to other data devices through one or more networks. For example, the network link 420 may provide a connection to a host computer 424 or to data equipment operated by an Internet Service Provider (ISP) 426 through a local network 422. The ISP 426 in turn provides data communication services through the World Wide Web packet data communication network now commonly referred to as the "Internet" 428. Both the local network 422 and the Internet 428 use electrical, electromagnetic, or optical signals that carry digital data streams. The signals through the various networks and the signals on the network link 420 and through the communication interface 418 are example forms of transmission media that carry the digital data to and from the computer system 400.
[0152] Computer system 400 can send messages and receive data, including program code, through network(s), network link 420 and communication interface 418. In the Internet example, server 430 can send the requested code for an application through Internet 428, ISP 426, local network 422 and communication interface 418.
[0153] The received code may be executed by processor 404 as it is received, and / or stored in storage device 410 or other non-volatile storage for later execution.
[0154] Software Overview
[0155] Figure 5 is a block diagram of a basic software system 500 that may be used to control the operation of computing system 400. Software system 500 and its components, including their connections, relationships, and functions, are intended to be exemplary only and are not meant to limit implementation of the example embodiment(s). Other software systems suitable for implementing the example embodiment(s) may have different components, including components with different connections, relationships, and functions.
[0156] Software system 500 is provided for directing the operation of computing system 400. Software system 500, which may be stored in system memory (RAM) 406 and fixed storage (eg, hard disk or flash memory) 410, includes a kernel or operating system (OS) 510.
[0157] OS 510 manages low-level aspects of computer operation, including managing the execution of processes, memory allocation, file input and output (I / O), and device I / O. One or more application programs, represented as 502A, 502B, 502C ... 502N, can be "loaded" (e.g., transferred from fixed storage device 410 to memory 406) for execution by system 500. Applications or other software intended for use on computer system 400 can also be stored as a set of downloadable computer-executable instructions, for example, for downloading and installation from an Internet location (e.g., a Web server, application store, or other online service).
[0158] The software system 500 includes a graphical user interface (GUI) 515 for receiving user commands and data in a graphical (e.g., "point and click" or "touch gesture") manner. These inputs can, in turn, be acted upon by the system 500 according to instructions from the operating system 510 and / or the application(s) 502. The GUI 515 is also used to display the results of operations from the OS 510 and the application(s) 502, so that the user can provide additional input or terminate the session (e.g., log off).
[0159] The OS 510 may execute directly on the bare hardware 520 (e.g., processor(s) 404) of the computer system 400. Alternatively, a hypervisor or virtual machine monitor (VMM) 530 may be inserted between the bare hardware 520 and the OS 510. In this configuration, the VMM 530 acts as a software "buffer" or virtualization layer between the OS 510 and the bare hardware 520 of the computer system 400.
[0160] VMM 530 instantiates and runs one or more virtual machine instances ("guest machines"). Each guest machine includes a "guest" operating system, such as OS 510, and one or more applications designed to execute on the guest operating system, such as application(s) 502. VMM 530 presents a virtual operating platform to the guest operating system and manages the execution of the guest operating system.
[0161] In some cases, VMM 530 can allow a guest operating system to run as if it were running directly on bare hardware 520 of computer system 400. In these cases, the same version of the guest operating system that is configured to execute directly on bare hardware 520 can also execute on VMM 530 without modification or reconfiguration. In other words, in some cases, VMM 530 can provide full hardware and CPU virtualization to the guest operating system.
[0162] In other cases, the guest operating system may be specially designed or configured to execute on VMM 530 to improve efficiency. In these cases, the guest operating system "knows" that it is executing on a virtual machine monitor. In other words, in some cases, VMM 530 can provide paravirtualization to the guest operating system.
[0163] A computer system process includes an allocation of hardware processor time and an allocation of memory (physical and / or virtual) for storing instructions executed by the hardware processor, for storing data generated by the hardware processor in executing instructions, and / or for storing hardware processor state (e.g., contents of registers) between allocations of hardware processor time when the computer system process is not running. A computer system process runs under the control of an operating system and may run under the control of other programs executing on the computer system.
[0164] cloud computing
[0165] The term "cloud computing" is generally used herein to describe a computing model that enables on-demand access to a shared pool of computing resources, such as computer networks, servers, software applications, and services, and allows resources to be rapidly provisioned and released with minimal management effort or service provider interaction.
[0166] Cloud computing environments (sometimes called cloud environments or just clouds) can be implemented in a variety of different ways to best meet different needs. For example, in a public cloud environment, the underlying computing infrastructure is owned by the organization that provides cloud services to other organizations or the public. In contrast, a private cloud environment is typically used only by or within a single organization. A community cloud is intended to be shared by multiple organizations within a community; while a hybrid cloud includes two or more types of clouds (e.g., private, community, or public) bound together by data and application portability.
[0167] In general, the cloud computing model enables some of the responsibilities that might previously have been provided by an organization's own information technology department to be delivered as a service layer in a cloud environment for consumption by consumers (either internal or external to the organization, depending on the public / private nature of the cloud). The exact definition of the components or functionality provided by each cloud service layer may vary depending on the specific implementation, but common examples include: Software as a Service (SaaS), where consumers use software applications running on cloud infrastructure, while the SaaS provider manages or controls the underlying cloud infrastructure and applications. Platform as a Service (PaaS), where consumers can develop, deploy, or control their own applications using software programming languages and development tools supported by the PaaS provider, while the PaaS provider manages or controls other aspects of the cloud environment (i.e., everything below the runtime execution environment). Infrastructure as a Service (IaaS), where consumers can deploy and run arbitrary software applications, and / or provision processing, storage, networking, and other basic computing resources, while the IaaS provider manages or controls the underlying physical cloud infrastructure (i.e., everything below the operating system layer). Database as a Service (DBaaS), where the consumer uses a database server or database management system running on a cloud infrastructure, while the DbaaS provider manages or controls the underlying cloud infrastructure and applications.
[0168] The above basic computer hardware and software and cloud computing environment are presented to illustrate the basic underlying computer components that can be used to implement the (multiple) example embodiments. However, the (multiple) example embodiments are not necessarily limited to any particular computing environment or computing device configuration. Instead, the (multiple) example embodiments can be implemented in any type of system architecture or processing environment that a person skilled in the art will understand in light of the present disclosure as being capable of supporting the features and functions of the (multiple) example embodiments presented herein.
[0169] Machine Learning Models
[0170] A machine learning model is trained using a specific machine learning algorithm. Once trained, the input is applied to the machine learning model to make predictions, which may also be referred to herein as predicted outputs or outputs. The attributes of the input may be referred to as features, and the values of the features may be referred to herein as feature values.
[0171] A machine learning model includes a model data representation or model artifact. The model artifact includes parameter values, which may be referred to herein as theta values, and is applied to the input by the machine learning algorithm to generate a predicted output. Training a machine learning model requires determining theta values of the model artifact. The structure and organization of theta values depends on the machine learning algorithm.
[0172] In supervised training, a supervised training algorithm trains a machine learning model using training data. The training data includes inputs and "known" outputs. In one embodiment, a supervised training algorithm is an iterative process. In each iteration, the machine learning algorithm applies the model artifacts and the inputs to generate a predicted output. The error or variance between the predicted output and the known output is calculated using an objective function. In practice, the output of the objective function indicates the accuracy of the machine learning model based on a particular state of the model artifact in the iteration. The theta value of the model artifact is adjusted by applying an optimization algorithm based on the objective function. An example of an optimization algorithm is gradient descent. Iterations can be repeated until the desired accuracy is achieved or some other criteria are met.
[0173] In a software implementation, when a machine learning model is referred to as receiving inputs, being executed, and / or generating outputs or predictions, a computer system process executing the machine learning algorithm applies the model artifacts to the inputs to generate predicted outputs. A computer system process executes the machine learning algorithm by executing software configured to cause the algorithm to be executed. When a machine learning model is referred to as performing an action, a computer system process executes the machine learning algorithm by executing software configured to cause the action to be performed.
[0174] Inference requires a computer to apply a machine learning model to inputs such as feature vectors to generate inferences by processing the inputs and content of the machine learning model in an integrated manner. Inference is data-driven based on the data contained in the machine learning model (e.g., learning coefficients). In this article, this is referred to as inference through a machine learning model, and in fact, a machine learning model is a machine learning algorithm that processes the machine learning model by executing a computer.
[0175] Classes of problems at which machine learning (ML) excel include clustering, classification, regression, anomaly detection, prediction, and dimensionality reduction (i.e., simplification). Examples of machine learning algorithms include decision trees, support vector machines (SVMs), Bayesian networks, randomized algorithms such as genetic algorithms (GAs), and connectionist topologies such as artificial neural networks (ANNs). Implementations of machine learning can rely on matrices, symbolic models, and hierarchical and / or associative data structures. Parameterized (i.e., configurable) implementations of the best combinations of machine learning algorithms can be found in open source libraries such as Google's TensorFlow (for Python and C++) or Georgia Tech's MLPack (for C++). Shogun is an open source C++ ML library with adapters for multiple programming languages, including C#, Ruby, Lua, Java, MatLab, R, and Python.
[0176] Artificial Neural Networks
[0177] An artificial neural network (ANN) is a machine learning model that models, at a high level, a system of neurons interconnected by directed edges. An overview of neural networks is described in the context of a hierarchical feedforward neural network. Other types of neural networks share the properties of the neural networks described below.
[0178] In a layered feedforward network such as a multilayer perceptron (MLP), each layer comprises a set of neurons. A layered neural network comprises an input layer, an output layer, and one or more intermediate layers called hidden layers.
[0179] The neurons in the input layer and the output layer are referred to as input neurons and output neurons, respectively. Neurons in the hidden layer or the output layer may be referred to as activation neurons in this article. Activation neurons are associated with an activation function. The input layer does not contain any activation neurons.
[0180] From each neuron in the input and hidden layers, there can be one or more directed edges pointing to activated neurons in the subsequent hidden or output layers. Each edge is associated with a weight. The edge from a neuron to an activated neuron represents the input from the neuron to the activated neuron adjusted by the weight.
[0181] For a given input to a neural network, each neuron in the neural network has an activation value. For an input neuron, the activation value is simply the input value of the input. For an activation neuron, the activation value is the output of the corresponding activation function that activates the neuron.
[0182] Each edge from a particular neuron to an activated neuron represents that the activation value of the particular neuron is the input to the activated neuron, i.e., the input to the activation function of the activated neuron adjusted by the weight of the edge. Thus, an activated neuron in a subsequent layer represents that the activation value of the particular neuron is the input to the activation function of the activated neuron adjusted by the weight of the edge. An activated neuron may have multiple edges pointing to the activated neuron, each edge representing that the activation value from the originating neuron as adjusted by the weight of the edge is the input to the activation function of the activated neuron.
[0183] Each activated neuron is associated with a bias. To generate an activation value for an activated neuron, the neuron’s activation function is applied to the weighted activation value and the bias.
[0184] Illustrative data structures for neural networks
[0185] Artifacts of a neural network may include matrices of weights and biases. Training a neural network may iteratively adjust the matrices of weights and biases.
[0186] For layered feedforward networks, as well as other types of neural networks, the artifacts may include one or more edge matrices W. Matrix W represents the edges from layer L-1 to layer L. Given that the number of neurons in layers L-1 and L is N[L-1] and N[L] respectively, the dimensions of matrix W are N[L-1] columns and N[L] rows.
[0187] The bias for a particular layer L may also be stored in a matrix B with one column and N[L] rows.
[0188] The matrices W and B may be stored in RAM memory as vectors or arrays, or as a set of comma-separated values in memory. When the artifact is saved in persistent storage, the matrices W and B may be stored as comma-separated values, in compressed and / or serialized form, or in other suitable persistent forms.
[0189] The specific input applied to the neural network includes the value of each input neuron. The specific input can be stored as a vector. The training data includes multiple inputs, each input is called a sample in the sample set. Each sample includes the value of each input neuron. The sample can be stored as a vector of input values, and the multiple samples can be stored as a matrix, each row in the matrix is a sample.
[0190] When input is applied to the neural network, activation values are generated for the hidden and output layers. For each layer, the activation values of can be stored in a column of a matrix A with a row for each neuron in that layer. In a vectorized approach for training, the activation values can be stored in a matrix with a column for each sample in the training data.
[0191] Training a neural network requires storing and processing additional matrices. The optimization algorithm generates matrices of derivative values that are used to adjust the weights W and bias B matrices. Generating derivative values can use and requires matrices that store intermediate values generated when calculating the activation values of each layer.
[0192] The number of neurons and / or edges determines the size of the matrices required to implement a neural network. The fewer the number of neurons and edges in a neural network, the smaller the matrices and the amount of memory required to store the matrices. Additionally, a smaller number of neurons and edges reduces the amount of computation required to apply or train a neural network. Fewer neurons means fewer activation values need to be calculated and / or fewer derivative values need to be calculated during training.
[0193] The properties of the matrices used to implement the neural network correspond to neurons and edges. A cell in the matrix W represents a particular edge from a neuron in layer L-1 to L. An activated neuron represents an activation function for a layer including an activation function. An activated neuron in layer L corresponds to a row of weights in matrix W for the edge between layer L and layer L-1 and a column of weights in matrix W for the edge between layer L and layer L+1. During execution of the neural network, a neuron also corresponds to one or more activation values stored in matrix A and generated by the activation function.
[0194] ANNs are subject to vectorization of data parallelism, which can take advantage of vector hardware such as single instruction multiple data (SIMD), for example, using a graphics processing unit (GPU). Matrix partitioning can achieve horizontal scaling, for example, using symmetric multiprocessing (SMP), for example, using a multi-core central processing unit (CPU) and / or multiple coprocessors, such as GPUs. Feedforward calculations within ANNs can occur in one step per neural layer. The activation values in one layer are calculated based on the weighted propagation of the activation values of the previous layer, so that values are calculated for each subsequent layer in the sequence, for example, using the corresponding iteration of a for loop. Layering forces the ordering of non-parallelizable calculations. Therefore, the network depth (i.e., the number of layers) may cause computational delays. Deep learning requires giving multiple layers to multilayer perceptrons (MLPs). Each layer implements data abstraction, where complex (e.g., multidimensional, because there are several inputs) abstractions require multiple layers that implement cascade processing. Reusable matrix-based implementations of ANNs and matrix operations for feed-forward processing are readily available and parallelizable in neural network libraries such as Google's TensorFlow (for Python and C++), OpenNN (for C++), and the University of Copenhagen's Fast Artificial Neural Networks (FANN). These libraries also provide model training algorithms such as backpropagation.
[0195] Backward Propagation
[0196] The output of an artificial neural network may be more or less correct. For example, an ANN that recognizes letters may mistake I for L because the letters have similar features. The correct output may have a specific (multiple) value, while the actual output may have some different value. The arithmetic or geometric difference between the correct output and the actual output can be measured as the error according to a loss function, such that zero represents error-free (i.e., perfectly accurate) behavior. For any edge in any layer, the difference between the correct output and the actual output is the delta value.
[0197] Backpropagation requires distributing the error backward through the layers of the ANN to all connected edges within the ANN in varying amounts. The propagation of the error results in adjustments to the edge weights, which depend on the gradient of the error on each edge. The gradient of an edge is calculated by multiplying the edge's error delta by the activation of the upstream neuron. When the gradient is negative, the more error the edge contributes to the network, the more the edge weight should be decreased, which is negative reinforcement. When the gradient is positive, positive reinforcement requires increasing the weights of edges whose activations reduce the error. Edge weights are adjusted based on a percentage of the edge's gradient. The steeper the gradient, the larger the adjustment. Not all edge weights are adjusted by the same amount. As the model continues to be trained with additional input samples, the error of the ANN should decrease. Training can stop when the error stabilizes (i.e., stops decreasing) or vanishes below a threshold (i.e., approaches zero). Example mathematical formulas and techniques for feed-forward multilayer perceptrons (MLPs), including matrix operations and backpropagation, are taught in the related reference "EXACT CALCULATION OF THE HESSIAN MATRIX FOR THE MULTI-LAYER PERCEPTRON" by Christopher M. Bishop.
[0198] Model training can be supervised or unsupervised. For supervised training, the expected (i.e., correct) output is already known for each example in the training set. The training set is preconfigured by assigning classification labels to each example (e.g., by a human expert). For example, a training set for optical character recognition might have blurred photos of a single letter, and an expert might pre-label each photo according to which letter is shown. Error computation and backpropagation occur as described above.
[0199] Autoencoder
[0200] Unsupervised model training is more complex because the desired output needs to be discovered during training. Unsupervised training may be easier to adopt because no human expert is required to label the training examples in advance. Therefore, unsupervised training can save manpower. A natural way to implement unsupervised training is to use an autoencoder, which is a type of ANN. An autoencoder acts as an encoder / decoder (codec) with two sets of layers. The first set of layers encodes the input examples into a compressed code that needs to be learned during model training. The second set of layers decodes the compressed code to regenerate the original input example. These two sets of layers are trained together into a combined ANN. The error is defined as the difference between the original input and the decoded regenerated input. After sufficient training, the decoder outputs the original input more or less accurately.
[0201] Autoencoders rely on compressed codes as an intermediate format for each input example. It may be counterintuitive that the intermediate compressed codes do not exist initially but emerge only through model training. Unsupervised training can implement a vocabulary of intermediate codes based on features and distinctions of unexpected relevance. For example, which examples and which labels to use during supervised training may depend on some non-scientific (e.g., anecdotal) or otherwise incomplete understanding of the problem space by a human expert. However, unsupervised training discovers the apt intermediate vocabulary more or less entirely based on statistical trends that reliably converge to a well-trained optimal value due to internal feedback from the regenerated decoding. Techniques for unsupervised training of autoencoders for anomaly detection based on reconstruction error are taught in the following non-patent literature (NPL): "VARIATIONAL AUTOENCODER BASED ANOMALY DETECTION USING RECONSTRUCTIONPROBABILITY", by Jinwon An et al., IE Special Lecture, Dec 27, 2015;2(1):1-18.
[0202] Principal component analysis
[0203] Principal Component Analysis (PCA) provides dimensionality reduction by utilizing and organizing mathematical correlation techniques such as normalization, covariance, eigenvectors, and eigenvalues. PCA combines aspects of feature selection by eliminating redundant features. PCA can be used for prediction. PCA can be used in conjunction with other ML algorithms.
[0204] Random Forest
[0205] A random forest or random decision forest is a collection of learning methods that builds a collection of randomly generated nodes and decision trees during the training phase. The different decision trees of the forest are constructed so that each is randomly constrained to a specific subset of the feature dimensions of the dataset, for example using feature-guided aggregation (bagging). As a result, the decision trees gain accuracy as they grow, without being forced to overfit the training data as would happen if the decision trees were forced to learn all feature dimensions of the dataset. The predictions can be calculated based on the average (or other integrals such as soft maximum) of the predictions from the different decision trees.
[0206] Random forest hyperparameters can include: the number of trees in the forest, the number of layers in each decision tree, the minimum number of data points at a leaf node, the method of sampling data points, etc.
[0207] In the foregoing specification, embodiments of the present invention have been described with reference to numerous specific details, which may vary from implementation to implementation. Accordingly, the specification and drawings should be regarded as illustrative rather than restrictive. The sole and exclusive indicator of the scope of the invention, and what the applicants intend to be the scope of the invention, is the literal and equivalent range of the set of claims issuing from this application, in the specific form in which such claims issue, including any subsequent corrections.
Claims
1. A computer-implemented method comprising: Rank the corresponding empirical validation scores of multiple validated training scenarios of anomaly detectors, where: Each verified training scenario has a corresponding training data set to train a corresponding instance of the anomaly detector, and the corresponding instance of the anomaly detector is respectively configured with a corresponding plurality of values of a plurality of hyperparameters of the anomaly detector, and The corresponding training data set has a corresponding value set of the meta-feature set; For each of several predefined different rank percentiles: a) selecting an optimal subset of training scenarios, the optimal subset of training scenarios consisting of the ranked percentages of the plurality of validated training scenarios of the anomaly detector having the highest empirical validation scores; b) training a corresponding linear optimizer that infers a corresponding value of a specific hyperparameter among the plurality of hyperparameters of the anomaly detector, wherein The training is based on a value set of the meta-feature set of the training data set of the best training scenario subset and an empirical validation score of the best training scenario subset, c) for each meta-feature value set in a plurality of unverified value sets of the meta-feature set, wherein the meta-feature value set does not correspond to an actual data set: i) inferring, by the linear optimizer, a specific value of a specific hyperparameter among the plurality of hyperparameters of the anomaly detector; ii) generating different unverified training scenarios of the anomaly detector into a plurality of different unverified training scenarios, the different unverified training scenarios having: the set of meta-feature values and a plurality of values of the plurality of hyperparameters of the anomaly detector including a specific value of the specific hyperparameter; for each unvalidated training scenario of the plurality of different unvalidated training scenarios of the anomaly detector, inferring a corresponding inferred validation score; selecting a best linear optimizer having a ranking percentage with a highest combined inference validation score among the plurality of predefined different ranking percentages based on the inference validation scores of the plurality of different unvalidated training scenarios of the anomaly detector; inferring an inferred value of a specific hyperparameter among the plurality of hyperparameters of the anomaly detector by the best linear optimizer of the ranked percentage among the plurality of predefined different ranked percentages; and An anomaly is detected by a new instance of the anomaly detector based on the inferred value of the particular hyperparameter among the plurality of hyperparameters of the anomaly detector.
2. The method of claim 1 , further comprising training a meta-model to infer validation scores for training scenarios of the anomaly detector, wherein the meta-model performs the inferring validation scores, and training the meta-model is based on: empirical validation scores of the plurality of validated training scenarios of the anomaly detector, a set of values of the meta-feature set of the training data sets of the plurality of validated training scenarios, and The plurality of values for the plurality of hyperparameters of the anomaly detector.
3. The method of claim 2, wherein one item is selected from the group consisting of: The training metamodel occurs after the training linear optimizer, and The training meta-model and the training linear optimizer occur simultaneously.
4. The method of claim 2, further comprising: inferring, by a second optimizer for a second specific hyperparameter of the plurality of hyperparameters of the anomaly detector, a specific value of the second specific hyperparameter; generating different unvalidated training scenarios for the anomaly detector into a second plurality of different unvalidated training scenarios, the different unvalidated training scenarios having a plurality of values for the plurality of hyperparameters of the anomaly detector including a particular value for the second particular hyperparameter; A respective inferred validation score is inferred by the meta-model for each unvalidated training scenario of the second plurality of different unvalidated training scenarios of the anomaly detector.
5. The method of claim 4, wherein the second optimizer is one selected from the group consisting of linear regression and logistic regression.
6. The method of claim 2, wherein: The plurality of validated training scenarios of the anomaly detector include: a first training scenario having a first training data set consisting of representations of instances of objects of a first category, and a second training scenario having a second training data set consisting of representations of instances of objects of a second category; The first category of objects and the second category of objects are different categories of objects selected from the group consisting of: network packets, communication messages, log entries, logic statements, semi-structured documents, photographs, database records, logic graphs, and parse trees.
7. The method of claim 2, wherein: The anomaly detector is a first anomaly detector; The plurality of hyperparameters of the first anomaly detector are disjoint from a plurality of hyperparameters of the second anomaly detector; The method further comprises: inferring, by a linear optimizer for the particular hyperparameter among the plurality of hyperparameters of the second anomaly detector, a particular value of the particular hyperparameter among the plurality of hyperparameters of the second anomaly detector; A corresponding inferred validation score for an unvalidated training scenario of the second anomaly detector having a specific value of the specific hyperparameter of the plurality of hyperparameters of the second anomaly detector is inferred from the second meta-model.
8. The method of claim 7, further comprising combining the instance of the first anomaly detector and the instance of the second anomaly detector into an ensemble.
9. The method of claim 2, wherein the meta-model does not include an artificial neural network.
10. The method of claim 1, wherein at least one item is selected from the group consisting of: The meta-feature set consists only of neutral meta-features, The meta-feature set includes the cardinality meta-features of the dataset, The optimal linear optimizer linearly scales the specific hyperparameter based on only one meta-feature, and The optimal linear optimizer monotonically scales the particular hyperparameter.
11. The method of claim 10, further comprising: Before inferring the inferred value of the specific hyperparameter among the plurality of hyperparameters of the anomaly detector, tuning the specific hyperparameter based on a subset of the new data set to provide an initial value of the specific hyperparameter; An instance of the anomaly detector based on the inferred value of the particular hyperparameter is trained on the entire new data set.
12. The method of claim 1, wherein the training data set of the plurality of validated training scenarios of the anomaly detector comprises at least one item selected from the group consisting of: two training datasets with different corresponding dimensions, and Two training data sets having respective different plurality of meta-features, the plurality of meta-features comprising the meta-feature set.
13. The method of claim 1, wherein: The steps are based on an unlabeled training dataset; The step is at least one selected from the group consisting of: said inferring an inferred value of said particular hyperparameter among said plurality of hyperparameters of said anomaly detector, and An anomaly is detected by the new instance of the anomaly detector based on the inferred value of the particular hyperparameter among the plurality of hyperparameters of the anomaly detector.
14. One or more non-transitory computer readable media storing instructions which, when executed by one or more processors, cause the steps of any of claims 1-13 to be performed.
