Elamur Research

Ranking Learning Algorithms: Using IBL and Meta-Learning on Accuracy and Time Results

Paper · 2003 · Pavel Brazdil, Carlos Soares and Joaquim Pinto da Costa

Summary

Choosing a classification algorithm can take almost as much thought as using it. Running every candidate on a new dataset would give direct evidence, but some candidates take long enough to make a full comparison impractical. Brazdil and colleagues ask whether the results of earlier experiments can narrow that search. Their method uses machine learning at the level of whole datasets. It looks up past tasks that resemble a new one and uses the recorded performance of the candidates on those tasks to produce an ordered list. The user can follow the list as far as the available time and computing resources allow.

The authors characterize datasets through properties such as the amount of data, the mix of symbolic and numeric inputs, and the distribution of class labels. A nearest-neighbor procedure uses those descriptions to find relevant past tasks. The ranking then reflects both predictive accuracy and total execution time. For each pair of algorithms, the method adjusts their accuracy ratio according to their runtime ratio and a preference supplied by the user. The preference indicates how much accuracy the user would give up in exchange for a factor-of-ten change in speed. An algorithm can therefore move up or down the list even when its measured performance stays the same.

The study uses METAL records for 10 classifiers on 53 datasets. In each round of evaluation, the authors hold out one dataset and use the others to recommend an ordering. They compare that recommendation with orderings obtained from experiments on the held-out dataset. With accuracy dominant at AccD = 0.1%, the method using the single closest dataset achieved a mean Spearman rank correlation of 0.619. The same scoring rule applied to every available training dataset reached 0.524. Under the paper’s statistical procedure, using the closest dataset beat that baseline at every tested accuracy–time preference. Using 5 neighbors also improved mean agreement at every preference, with statistically significant gains over the baseline in some settings.

The distinction between recommending an order and choosing its first entry matters. In the authors’ practical comparison, running only the first recommended algorithm yielded lower accuracy than always running boosted C5.0, the strongest candidate on average. Running the first few recommendations gave a different result. The Top-5 strategy came within a reported accuracy loss of 0.15% of exhaustive cross-validation while taking roughly 15 min. on average, compared with approximately four hours for the exhaustive strategy. The evidence is strongest for using the recommendations to decide which candidates to test under a budget.

Deep dive: Ranking Learning Algorithms: Using IBL and Meta-Learning on Accuracy and Time Results

Brazdil and colleagues rank classifiers for a new dataset using accuracy and runtime measurements from similar classification tasks. · about 37 minutes to read

The problem and its context

Choosing what to try on a new dataset

The paper starts from a decision that occurs before a classifier is fitted. A practitioner has labeled examples, several algorithms that could learn from them, and a limited amount of time to see which algorithm works well. The experiments and theoretical work that the authors cite give them reason to expect the choice to vary across tasks. A candidate can be a reliable default across a collection of datasets and still be a poor use of time on a particular one. Past experience has value if a system can tell which parts of that experience apply to the dataset at hand.

A practitioner who can afford a full comparison can run the candidates, estimate their accuracy and measure their execution times. The authors treat cross-validation as a practical way to obtain this evidence. Each candidate is assessed by repeatedly fitting it on one part of the data and checking its predictions on a held-out part. The cost grows when the candidate list is long, the datasets are large, or some of the procedures are slow. By the time the practitioner has enough direct evidence to order every candidate, much of the work that a recommendation was supposed to save has already been done.

The authors place this decision inside a broader problem of choosing among strategies in data analysis. Before fitting a classifier, a practitioner might transform input values or divide the original task into related subproblems. A system that assists with these choices would eventually need to reason about combinations of steps. The paper studies the narrower choice of classifier for a given dataset. That focus lets the authors examine how to generate and evaluate a recommendation before trying to rank entire analysis procedures.

Earlier work described in the paper drew on different kinds of knowledge. An expert could formulate rules about where a family of algorithms was likely to work well. An empirical system could instead collect experimental results and look for relationships between measurable properties of datasets and the performance of competing algorithms. The authors call that second activity meta-learning. In a classification experiment, an example is an item with input attributes and a class label. In the meta-learning problem, an example is an entire dataset, described by its attributes at the dataset level and accompanied by experimental results for the candidate classifiers.

The distinction matters for the amount of evidence available. A dataset can offer many examples for fitting a classifier and still supply a single case for studying classifier choice. The authors expect the archive of cases to grow as more tasks are processed, but they begin with a relatively small collection. They are concerned that inducing a tree of decisions or a set of rules from it may yield sharp boundaries that are hard to justify. For example, a threshold on the proportion of symbolic inputs could send very similar datasets down different branches. A procedure that works directly from stored cases offers a simpler starting point and can take account of newly recorded experiments as they arrive.

Why recommend an ordered list?

The paper’s account of earlier algorithm recommendation includes systems that return one candidate or a small group of promising candidates. Some work treated recommendation as a classification problem in its own right. The output was the name of the algorithm expected to win. Other work predicted an individual algorithm’s performance, which could then be used to inform selection. The authors build on a separate line of work in which past experiments support a ranking of the available candidates.

They liken the decision to choosing which results to inspect in information retrieval. A person may act on the first result, continue down the list, or choose an alternative near the top whose other qualities suit the task. Algorithm users have similar discretion. A familiar classifier may be worth keeping when its performance is close to that of an unfamiliar candidate. Someone with more computing time may prefer to test several candidates and make the final choice from measurements on the new data. A ranking accommodates both decisions without requiring the recommendation system to know in advance how many candidates the practitioner will test.

A full ranking also changes what counts as a successful prediction. Naming the eventual winner does not say whether the rest of the list is useful. Conversely, a list can help a practitioner find strong candidates even if their exact order near the top varies across experiments. The authors therefore need a way to rate the agreement between whole lists. They also need a way to say what the target list means when measured performance is uncertain. Their solution to this latter problem is to evaluate against several observed orders from the same held-out task.

What performance means in the ranking

The paper uses success rate and accuracy interchangeably. Both refer to how often a classifier predicts the correct class. Accuracy is an obvious criterion for comparing candidates, but the authors argue that speed can matter even when faster computers are available. A long-running procedure can remain impractical on a sufficiently large dataset. They also discuss interpretability as a possible criterion. Its value depends on what a user can understand and wants to know, which makes it harder to combine directly with accuracy and time. Their experiments concentrate on the two criteria they can measure across the candidate set.

A ranking by both criteria requires a choice about their relative importance. The authors want the user to be able to express that choice in familiar terms and understand what increasing or decreasing the preference does. Their starting point is an earlier comparison of aggregation schemes. One scheme orders algorithms by ranks accumulated across datasets. Another counts significant wins. A third uses ratios of success rates. The authors report that the ratio approach compared well with the alternatives in their earlier work, and it gives them a direct way to introduce a corresponding ratio for elapsed time.

The paper also draws a connection to Data Envelopment Analysis, an approach to comparing benefits and costs. In the interpretation the authors borrow, accuracy supplies a benefit and time supplies a cost. Their implementation of the idea compares candidates in pairs, with the user setting the tradeoff in advance. In the alternative they discuss, the efficiency calculation determines the balance of criteria as part of identifying the efficient candidates. This difference matters when comparing rankings from the two approaches, because their ordering rules embody different choices about what counts as good performance.

The method, step by step

From past experiments to a recommendation

The recommender needs two kinds of information about earlier tasks. First it needs a compact description of each dataset, so that it can decide which datasets resemble the new one. Then it needs accuracy and time measurements for the same candidate classifiers on those earlier tasks. A query supplies the description of the new dataset and the user’s preference about speed and accuracy. The recommendation can be made before the candidate classifiers have been run on the query.

The authors call the procedure instance-based learning because a recommendation is derived from particular stored cases. There is no need to induce a fresh set of selection rules whenever an experimental record is added. At query time, the procedure computes distances to the stored datasets and retrieves the closest ones. It then uses the measured performances on those datasets to score candidates in pairwise comparisons. An algorithm’s final score summarizes how it compares with the full candidate list on the selected evidence.

Here is the sequence for a single query. The later evaluation adds an independent step in which the authors compare the recommendation with performance measured on the query itself.

From a query dataset to a classifier ranking

The steps in order.

From a query dataset to a classifier rankingStep 1: Describe the query using dataset characteristics1. Describe the query using dataset characteristicsStep 2: Measure distances to stored datasets2. Measure distances to stored datasetsStep 3: Retrieve the closest datasets3. Retrieve the closest datasetsStep 4: Compare candidates using accuracy and runtime ratios4. Compare candidates using accuracy and runtime ratiosStep 5: Pool each comparison across the selected datasets5. Pool each comparison across the selected datasetsStep 6: Average each candidate’s scores against its alternatives6. Average each candidate’s scores against its alternativesStep 7: Order candidates by their resulting scores7. Order candidates by their resulting scores

Describing the dataset

The attributes used to find neighbors describe whole datasets. The paper calls them meta-attributes. A full inventory of possible descriptors would offer many ways to compare datasets, but the authors want a short list. Every added descriptor can influence the retrieval of neighbors, and an irrelevant one can make two useful cases seem far apart. This concern is particularly important when the store contains few past datasets relative to the number of possible descriptors.

The authors initially choose descriptors because they expect them to capture properties that affect classifier performance. The number of examples represents the scale on which a candidate must operate. The proportion of symbolic attributes indicates how much of the input is categorical. Two datasets could have the same number of symbolic attributes and still differ greatly in the balance between symbolic and numeric inputs. A proportion captures that balance. The proportion of missing values was initially included in the expectation that incomplete inputs would favor candidates with different ways of coping with them.

Another descriptor is the proportion of attributes flagged for outlying values. The check applies to numeric attributes, for which the authors use a variance ratio involving the ordinary mean and an α-trimmed mean. A trimmed mean is calculated after excluding values at the extremes. They set the trimming parameter α to 0.05 and flag an attribute when the ratio is below 0.7. The resulting dataset descriptor summarizes how widespread the flagged attributes are. The authors had no corresponding descriptor readily available for outliers in symbolic inputs.

The remaining descriptors concern the labels and their relationship to the inputs. Class entropy describes how class membership is distributed. It reflects both the number of classes and how often they occur. Two tasks of similar size and input composition can therefore differ in their entropy. Even so, entropy is a partial description of difficulty. It concerns the distribution of the answers, while the ability to predict those answers also depends on what the input attributes reveal about them.

Average mutual information between the class and the attributes was initially used to represent useful signal in symbolic inputs. Mutual information measures how much information about one variable is carried by another. For numeric inputs, the authors use the canonical correlation involving the most discriminating single linear combination of the numeric attributes and the class distribution. The idea is to summarize how informative a combination of numeric inputs can be. The descriptor can therefore reflect a relationship that looking at each numeric attribute individually would not capture.

The authors then examine scatterplots relating each proposed descriptor to each classifier’s rank across the datasets. This is an exploratory check on the initial choices. The final set omits the missing-value measure and average mutual information. It retains dataset size, the share of symbolic attributes, the outlier measure, class entropy and canonical correlation. The retained descriptors determine which earlier results will count as local evidence for any given query.

Calculating the distance

The distance is a sum of absolute differences, with each difference expressed relative to the observed range of its descriptor. This is the unweighted L₁ distance after range normalization. Without normalization, a difference in example counts could dominate a distance simply because counts are on a larger numerical scale than proportions. With normalization, the comparison concerns how far apart the two datasets are relative to the spread of values for each descriptor.

dist(dᵢ, dⱼ) = ∑ₓ |vₓ,ᵢ − vₓ,ⱼ| / (maxₖ vₓ,ₖ − minₖ vₓ,ₖ)

Here dist is the distance between datasets dᵢ and dⱼ, identified by indices i and j. The summation ∑ₓ adds the contributions of the retained meta-attributes, each indexed by x. The quantities vₓ,ᵢ and vₓ,ⱼ are the values of descriptor x on those datasets. The vertical bars take the absolute value of their difference. The index k in maxₖ and minₖ runs over datasets used to obtain the observed range, and vₓ,ₖ is the value of x on such a dataset. Subtracting the minimum from the maximum gives the denominator for that descriptor. This index is distinct from the neighbor count in k-NN.

Some descriptors are undefined for particular datasets. Canonical correlation, for example, has no application when the inputs contain no numeric attributes. When the descriptor is inapplicable to both datasets, the contribution to the distance is 0. When it is inapplicable to one and available for the other, the contribution is 1, the maximum after normalization. This rule treats shared absence as common structure and preserves the distinction between a dataset with numeric inputs and one without them.

The recommender sorts the available cases by distance and takes the requested number of nearest neighbors. With 1-NN, the nearest past case supplies all the performance evidence for that query. With 5-NN, the algorithm pools evidence from the selected group. Distance determines admission to that group. Each admitted dataset then contributes on the same footing to the aggregation. With all available cases admitted, the same scoring rule becomes a general ranking based on the training archive.

Turning accuracy and time into a pairwise score

The authors call their score the adjusted ratio of ratios, or ARR. It begins with the accuracy of one candidate divided by the accuracy of another candidate tested on the same dataset. The runtime comparison starts with another ratio, using total execution times. Time ratios can vary over a much greater range than accuracy ratios. The authors take the logarithm of the time ratio so that a change by a given factor has a consistent interpretation. They multiply the result by the user’s tradeoff parameter and add it to the neutral value for the adjustment.

ARRᵢ(p, q) = (SRᵢ(p) / SRᵢ(q)) / (1 + AccD × log(Tᵢ(p) / Tᵢ(q)))

ARRᵢ(p, q) is the score for candidate p relative to candidate q on dataset i. SRᵢ(p) and SRᵢ(q) are their success rates there. Tᵢ(p) and Tᵢ(q) are their total execution times. The slash denotes division, × denotes multiplication, and log uses the base implied by the paper’s tenfold speed comparison. AccD is the accuracy concession entered as a proportion, expressed as a percentage when discussing settings. The constant 1 gives a neutral denominator adjustment when the time ratio is unity.

When candidate p takes longer than q, the logarithm is positive. The adjustment raises the denominator and lowers the score for p. When p is faster, the logarithm is negative and the adjustment lowers the denominator, raising the score where the denominator remains positive. Equal runtimes leave the accuracy ratio as the score. The use of ratios means that a common change in time units has no effect on a comparison. It also means that the same factor of speedup has the same effect on the adjustment whether the original runtime was short or long.

The authors illustrate the preference with AccD = 10%. The user is expressing willingness to trade 10% of accuracy for a factor of 10 in speed. Because ARR compares success rates by ratio, the concession is expressed relative to the comparison candidate’s accuracy. The runtime term is therefore a way to express a preference about proportional changes. It does not specify an absolute deadline. For instance, an operator who needs a job finished before a fixed time would still need to decide whether a recommended candidate can meet that constraint.

Combining comparisons into a ranking

A pair of candidates can compare differently on each of the selected datasets. The method first pools the scores for that pair with a geometric mean. This is the natural averaging operation for the multiplicative interpretation the authors want. When a collection of comparisons is reciprocal, taking the geometric mean preserves that relationship between the comparison in one direction and the comparison in the other. The motivation is clearest for plain success-rate ratios. ARR’s time adjustment does not in general give exactly reciprocal scores when the direction is reversed, so this motivation should be distinguished from a guarantee about every time-adjusted comparison.

G(p, q) = (∏ᵢ ARRᵢ(p, q))^(1/n)

G(p, q) is the pooled comparison of candidate p with candidate q. The product ∏ᵢ multiplies their dataset-specific ARRᵢ(p, q) values over the selected datasets indexed by i. The variable n is the number of those datasets. Raising the product to the power 1/n, where 1 is unity and ^ indicates exponentiation, takes its geometric mean. This operation treats the selected datasets equally.

The second aggregation proceeds across candidates. For each candidate, the authors take the ordinary arithmetic mean of its pooled comparisons with the candidate set. When a candidate is compared with itself, the accuracy and time ratios are both neutral, provided the underlying quantities are defined. The resulting scores are sorted from largest to smallest, with the first position assigned to the largest score.

ARR(p) = (∑ᵩ G(p, q)) / m

ARR(p) is the overall score for candidate p. The sum ∑ᵩ runs over candidates indexed by q, and G(p, q) is the pooled comparison just defined. The divisor m is the number of candidate algorithms. Using the same candidate set for each sum gives each algorithm a score against a common collection of comparators. Changing that collection can change the scores, even if the measured performances of the original candidates stay fixed.

The two aggregations answer different questions. The geometric mean asks how the same pair compares across relevant datasets. The arithmetic mean asks how a given algorithm compares with the other available choices. This order of operations lets the ranking use the magnitude of a relative advantage. If two algorithms finish in the same order on several datasets, their ARR scores can still reflect whether the gap in measured performance was narrow on some and wide on others.

Creating the evidence used to evaluate a recommendation

The authors use METAL project measurements as their case archive. Those measurements come from 10-fold cross-validation for each candidate on each of the 53 datasets. Cross-validation serves a different role here from the leave-one-out procedure used to evaluate the recommender. At the classifier level, folds are parts of a dataset used to estimate accuracy and execution time. At the recommendation level, an entire dataset is held out. The other datasets supply performance evidence for the recommendation, and the held-out dataset supplies the observations used to assess it.

For each held-out dataset, the authors generate a reference order for every cross-validation fold. They call the collection an ideal ranking. The name denotes its role in the evaluation. Each order still depends on estimated performance under the particular fold. For a fold, the authors compute the pairwise adjusted ratios using the accuracy and time measured there, then average the comparisons across candidates and sort the resulting scores.

Iᵢ,ⱼ(p) = (∑ᵩ ARRᵢ,ⱼ(p, q)) / m

Iᵢ,ⱼ(p) is the score used to place candidate p in the reference ordering for fold j of held-out dataset i. ARRᵢ,ⱼ(p, q) is the pairwise score for candidates p and q, computed using only the measurements for that fold. The sum ∑ᵩ runs over candidates q, and m is the number of candidates. The score is a fold-specific arithmetic average because only one fold’s measurements enter that order.

This procedure addresses uncertainty in assigning rank positions. On the glass dataset, the paper reports an error of 30% for C5.0 and 32% for Ltree in one comparison, with positions of 2nd and 3rd. The authors say the performance difference was statistically indistinguishable. Imposing a single strict ordering would freeze that small difference into the reference. Using separate fold orderings lets two candidates change places when their measured performances change. A recommendation then earns credit according to its agreement with the range of observed orders.

Measuring agreement between orders

For each reference order, the authors use Spearman’s rank correlation coefficient. The score compares the position assigned to every classifier by the recommendation with its position in the fold reference. A larger displacement contributes a larger squared discrepancy. When candidates tie, the authors assign them the average of the corresponding positions. They illustrate the calculation with a shared second place, for which the tied candidates each receive a rank of 2.5.

rₛ = 1 − 6 × ∑ᵢ (rrᵢ − irᵢ)² / (m³ − m)

rₛ is the rank agreement for one recommendation and one reference order. The sum ∑ᵢ runs over the m algorithms, using i here as a candidate index. rrᵢ is the recommended position, and irᵢ is the ideal position for that comparison. The exponent ² squares a displacement, and ³ cubes the candidate count. The multiplier 6 and the denominator m³ − m scale the sum for a ranking of this size. The formula subtracts the scaled discrepancy from 1, the value for perfect agreement. In the paper’s interpretation, a value of −1 indicates complete reversal and a value of 0 indicates no rank association.

The paper offers a way to understand the scale in terms of individual misplaced candidates. An error in an algorithm’s position contributes an amount that depends on the distance moved and the length of the ranking. The calculation isolates that contribution. A swap affects both algorithms involved.

d(e) = 6e² / (m³ − m)

d(e) is the reduction in correlation attributable to a candidate displaced by e positions. The variable e is the absolute difference between its recommended and reference ranks. The candidate count is m, and 6, ² and ³ have the same roles as in the correlation formula. In the paper’s example for a list of 10 algorithms, swapping candidates in the 3rd and 5th positions while placing all others correctly gives a loss of 0.048 and a correlation of 0.952. An observed correlation can be compatible with several different patterns of errors, so such examples give a sense of scale without identifying which mistakes occurred.

The authors average the fold correlations to obtain a score for the recommendation on the held-out dataset. An overall mean then summarizes performance across the dataset holds. If some of the fold-specific orders differ, a fixed recommendation cannot match all of them perfectly. The resulting ceiling reflects the stability of the observations as well as the difficulty of predicting them.

Comparing the recommendation methods statistically

The numerical comparison uses the same held-out tasks for each recommendation method. The authors use Friedman’s test because several methods are compared on matched observations and they do not assume a particular population distribution for the correlations. The test first ranks the recommendation methods by the correlations they achieve on a shared observation. Thus it acts on a different ranking from the one produced by the recommender. At this stage, the items being ranked are the recommendation procedures themselves.

Let an observation be a shared evaluation block. In the paper’s introductory example a block is a dataset. In the actual tests, the authors use a dataset and cross-validation fold as a block. The following equations use n for the number of blocks in whichever version is being described.

R̄ⱼ = (∑ᵢ Rᵢ,ⱼ) / n

R̄ⱼ is the average position of recommendation method j. Rᵢ,ⱼ is that method’s rank on shared evaluation block i, and ∑ᵢ adds the ranks over the n blocks. Equal correlations on a block are assigned the mean of the affected positions. A smaller mean rank corresponds to a method that more frequently places near the top of these comparisons.

R̄ = (k + 1) / 2

R̄ is the overall mean of the method ranks. Here k is the number of recommendation methods being compared, which is distinct from its use as a neighbor count. The constants 1 and 2 express the midpoint of ranks beginning at 1 and ending at k.

S = ∑ⱼ (R̄ⱼ − R̄)²

S is the dispersion of the methods’ mean ranks around the common mean. The sum ∑ⱼ runs over methods j, R̄ⱼ is a method’s mean rank and R̄ is the overall mean. Squaring each deviation, as indicated by ², gives more influence to methods whose average ranks are further from the center.

M = 12nS / (k(k + 1))

M is the Friedman statistic in the form used by the authors. The quantity S is the squared dispersion, n is the block count, and k is the number of methods. The factor 12 and the denominator k(k + 1) normalize the dispersion for the design. Under the null hypothesis of equal performance, the methods should have similar mean ranks. The authors compare the statistic with a critical value to determine whether the observed spread is large enough to reject that hypothesis.

The paper also explains the correction to apply when ties require it. The correction distinguishes a tied group from the number of observations on which ties occur. A group involving more methods contributes a larger adjustment.

t* = t³ − t

t is the number of methods in a group of tied correlations, and t* is that group’s correction contribution. The exponent ³ cubes the size of the group before t is subtracted.

C = 1 − T / (n(k³ − k))

C is the tie correction factor. T is the sum of the contributions t* across tied groups in the blocks, n is the number of blocks and k is the number of methods. The cubed term k³ enters the normalization. The constant 1 supplies the starting factor before the tie adjustment.

M* = M / C

M* is the corrected Friedman statistic, M is the original statistic, and C is the factor just defined. The corrected value is assessed using the same critical values as the original statistic.

A Friedman result can establish overall evidence of a difference while leaving open which methods differ. The authors follow it with Dunn’s multiple comparison procedure. For each pair, they subtract the methods’ rank sums and scale the difference by the standard deviation used in the test.

stdev = √(nk(k + 1) / 6)

stdev is the standard deviation for the difference in rank sums in this procedure. The square root √ applies to the entire quantity inside the parentheses. The number of blocks is n, the number of methods is k, and 1 and 6 are constants in the normalization.

Tᵢ,ⱼ = Dᵢ,ⱼ / stdev

Tᵢ,ⱼ is the normalized comparison for recommendation methods i and j. Dᵢ,ⱼ is their signed rank-sum difference, with the sum for method j subtracted from the sum for method i. The denominator stdev gives the scale of the difference. This Tᵢ,ⱼ is a test statistic for a pair of methods, distinct from the total T in the Friedman tie correction.

p = k(k − 1) / 2

p is the number of distinct pairs to compare among k methods. The factor k − 1 counts the other candidates for each method, and dividing by 2 counts each pair once. Here p counts hypotheses and does not denote a probability.

αtail = α / (k(k − 1))

αtail is the per-tail significance level used to obtain the normal critical value for the two-sided comparisons. α is the overall significance level. The denominator counts both tails for all the distinct pairs among the k methods. This Bonferroni adjustment accounts for the simultaneous tests. The authors compare the absolute normalized difference with the resulting critical value. They then use the observed direction of the difference to identify the better-performing method where the comparison meets the threshold.

Experiments and results

The benchmark and its candidates

The METAL archive contains accuracy and time estimates for 10 algorithms evaluated on 53 datasets by 10-fold cross-validation. The dataset collection includes UCI tasks with more than 1000 cases, Sisyphus data and two confidential datasets from DaimlerChrysler. Some tasks required preparation, so the authors caution that their versions do not necessarily match those in other studies. Timing results came from experiments that did not all run on the same machine. The authors used time normalization to make those measurements comparable.

The tree-based candidates were the C5.0 tree, boosted C5.0 and Ltree, which can fit oblique decision boundaries. The rule learners were C5.0 rules and RIPPER. The neural network candidates were a multilayer perceptron, MLP, and a radial basis function network, RBFN. The remaining candidates were IB1, naive Bayes and linear discriminant. IB1 is a classifier in the benchmark. Its role is separate from the nearest-neighbor procedure that chooses past datasets for the recommender. All classifier runs used default settings.

The principal baseline applies ARR to all 52 training datasets available on each leave-one-out iteration. It shares the pairwise scoring rule and the user preference with the local methods. For a given preference, it changes the recommended list only through the omission of the held-out case. The 1-NN and 5-NN methods can change it further by drawing on different training cases for different queries. This design lets the study examine whether choosing evidence by similarity improves agreement beyond what can be obtained from overall performance.

The authors examine AccD settings of 0.1%, 1% and 10%. The first strongly favors accuracy. The middle setting gives time greater weight while retaining a substantial role for accuracy. At 10%, the paper describes time as the dominant criterion. Each setting is used both to generate the recommendation and to make its reference orders. The correlations for different settings therefore reflect agreement with different targets.

What a recommendation looks like

The authors first illustrate the scoring rule with the complete collection of 53 datasets. With AccD = 0.1%, boosted C5.0 leads the overall ranking with an ARR score of 1.13. With AccD = 1%, it still leads, with 1.14. At AccD = 10%, the C5.0 tree leads the full-collection ranking with an ARR score of 1.26, and boosted C5.0 is below Ltree. Linear discriminant also moves up as speed carries more weight, while RIPPER falls. These are scores for the classifiers under different preferences, separate from the correlations later used to judge recommendation quality.

The abalone example shows the change when the same rule uses local evidence. The target is left out. The 5-NN procedure retrieves vowel, pendigits and vehicle, along with satimage and letter. At AccD = 0.1%, it places IB1 immediately behind boosted C5.0. Both have displayed ARR scores of 1.13. The overall ranking at that setting has IB1 further down the order, with a score of 1.06. The example illustrates how the recommender can give a candidate a more prominent place when the relevant evidence differs from its standing across the whole archive. The rounded scores alone do not establish whether the two leading candidates had exactly the same underlying score.

Rank agreement across the held-out datasets

In the charts below, each value is the mean, over the held-out METAL datasets, of the fold-averaged Spearman correlation. The correlations describe agreement with the observed orders of the candidate classifiers. They are distinct from the candidates’ classification accuracies and from their ARR scores.

Mean rank agreement on held-out METAL datasets at AccD 0.1%

The recommendation based on the closest dataset agrees most closely with the observed orders.

Mean rank agreement on held-out METAL datasets at AccD 0.1%ARR using all training datasets: 0.524ARR using all training datasets0.524ARR with 5-NN: 0.543ARR with 5-NN0.543ARR with 1-NN (this paper): 0.619ARR with 1-NN (this paper)0.619
The numbers
System or settingMean Spearman rank correlation
ARR using all training datasets0.524
ARR with 5-NN0.543
ARR with 1-NN (this paper)0.619

With accuracy dominant, the single-neighbor method has the highest mean and improves on the baseline for more datasets than it loses to it. The paper reports a higher/lower count of 32/21 for 1-NN relative to the baseline. The corresponding count for 5-NN is 28/24. These counts complement the means. They show that the average gain is compatible with a substantial group of datasets on which all-data evidence gives a better ordering.

Mean rank agreement on held-out METAL datasets at AccD 1%

Using the nearest dataset gives the highest mean agreement at the intermediate trade-off.

Mean rank agreement on held-out METAL datasets at AccD 1%ARR using all training datasets: 0.569ARR using all training datasets0.569ARR with 5-NN: 0.587ARR with 5-NN0.587ARR with 1-NN (this paper): 0.649ARR with 1-NN (this paper)0.649
The numbers
System or settingMean Spearman rank correlation
ARR using all training datasets0.569
ARR with 5-NN0.587
ARR with 1-NN (this paper)0.649

At the intermediate tradeoff, the baseline and both local methods have higher mean correlations than in the accuracy-dominant setting. The single-neighbor method again has the highest mean. Its higher/lower count against the all-data baseline is 31/22. The count for 5-NN is 30/23. The nearby counts tell a different part of the story from the means. A count gives the same weight to each improvement, while the mean reflects the sizes of gains and losses in correlation.

Mean rank agreement on held-out METAL datasets at AccD 10%

Both local methods give similar mean agreement and outperform the all-data ranking on average.

Mean rank agreement on held-out METAL datasets at AccD 10%ARR using all training datasets: 0.736ARR using all training datasets0.736ARR with 5-NN: 0.758ARR with 5-NN0.758ARR with 1-NN (this paper): 0.759ARR with 1-NN (this paper)0.759
The numbers
System or settingMean Spearman rank correlation
ARR using all training datasets0.736
ARR with 5-NN0.758
ARR with 1-NN (this paper)0.759

At the time-dominant setting, the baseline already achieves a relatively high mean correlation. The two local methods have close mean scores, and 5-NN has a higher/lower count of 31/22 against the baseline, compared with 30/23 for 1-NN. The paper’s result table gives 0.736 for the baseline at this setting, the value used in the chart. The surrounding discussion gives 0.737 as the top of the baseline’s range.

The authors attribute the baseline’s strength in part to the uneven distribution of classifier ranks in the archive. Boosted C5.0 often ranks near the top, whereas RBFN with default settings has substantially weaker overall results. A fixed recommendation that takes advantage of such regularities can agree with many task-specific orders. The experiment therefore compares local retrieval with a baseline that captures a real pattern in the measurements.

The paper provides 0.564 as the critical correlation for an individual ranking of 10 algorithms in a one-sided test at 95% confidence. The authors use it as a reference for interpreting their results. Their reported means average multiple correlations, so this individual-ranking threshold does not establish significance for those means. The formal comparisons of methods proceed through the matched-observation tests.

Comparing the local methods with the baseline

For the actual Friedman tests, the authors retain the correlations for the individual folds of every held-out dataset. With AccD = 0.1%, the reported statistic is 10.0. At AccD = 1%, it is 13.8, and at AccD = 10%, it is 24.4. All exceed the reported critical value of 9.21 for the 99% confidence level. Under this procedure, there is evidence of a difference among recommendation methods at each tested preference.

For Dunn’s follow-up procedure, the authors report an overall significance level of 25%, an adjusted level of 4.2%, and a critical value of 1.73. Against the all-data baseline, the normalized statistics for 1-NN are 3.16, 3.71 and 3.55 in the order of increasing AccD. The authors conclude that 1-NN is significantly better than the baseline at each setting. The 5-NN statistics against the baseline are 1.67, 1.90 and 4.74. The first is below the threshold and the other two exceed it. These figures are normalized test statistics. They describe separation in rank sums, so their ordering need not match the ordering of gaps between the mean correlations.

The direct comparison of 1-NN with 5-NN crosses the reported threshold only at AccD = 1%, with a statistic of 1.81 in favor of 1-NN. The other reported statistics are 1.49 at AccD = 0.1% and 1.20 at AccD = 10%. In particular, the time-dominant setting offers little basis for preferring the variant with the slightly higher mean correlation. The strongest recurring result is the improvement of 1-NN over the all-data baseline under the authors’ test.

What happens when the ranking is used to choose trials?

The paper also asks how much accuracy a user gives up by restricting which algorithms get run. This is a practical evaluation with a different outcome from Spearman correlation. The authors compare running every candidate through cross-validation, always running the candidate with the highest average accuracy, and running a prefix of the recommended list. The prefix strategy makes it possible to spend additional time only on candidates the recommendation places relatively high.

In the METAL setting, exhaustively comparing the candidates by cross-validation achieves average accuracy of 89.93% and takes roughly four hours per dataset. Boosted C5.0, the best fixed choice by average accuracy, achieves 87.94% and takes less than two minutes on average. Running just the first recommended candidate yields worse results than using boosted C5.0. The ability to recommend a credible full ordering thus does not on its own establish that its first entry is the best default.

With Top-2, the authors report an accuracy loss of 1.20% relative to exhaustive cross-validation and average runtime under 6 min. Top-3 has a reported loss of 0.90% and takes less than 10 min. Top-5 has a reported loss of 0.15% and takes roughly 15 min. The losses and times describe this benchmark and trial strategy. The comparison gives the practical case for a ranking. When the budget permits several trials, the user can approach the accuracy of the full search while running fewer candidates.

Generating a recommendation adds its own cost. On the 53 datasets, the data characterization tool took at most 1 min to compute its measures. The tool computes more descriptors than the recommender uses, so the paper treats that time as an upper bound for computing the needed descriptors in this study. The neighbor lookup itself is reported as nearly instantaneous. The large time cost remains in running the selected classifiers, and the archive of earlier measurements must already exist for this use of the recommender.

What the ablations show

Selecting local evidence

The clearest controlled comparison changes how many past datasets are allowed to contribute while retaining ARR, the same candidate set, the evaluation tasks and the user’s preference. The all-data variant measures the benefit that can be obtained from a broad summary of previous performance. The two local variants test whether relevance, as judged by the dataset descriptors, can improve on that summary. The gain can be attributed to the shift in which cases make up the pool for each query, since the score and target orderings are the same within any given setting.

A smaller pool places more trust in the closest case. A larger pool reduces the influence of an individual past result but can add cases whose relationship to the query is weaker. Both effects are plausible with these data. The closest case could be an unusually good comparison, or it could be close by the chosen descriptors while differing in some unmeasured property. Using 5 neighbors could make the estimate more stable, or it could dilute useful evidence. The means favor the single neighbor, especially when accuracy is important, but the per-dataset results show that each choice can win on particular tasks. The tested neighbor counts do not establish an optimal neighborhood size for a new archive.

The authors suggest that the descriptors explain some of the difference across preference settings. Their selection was guided mainly by properties expected to affect accuracy. It is therefore plausible that these descriptors help distinguish the tasks for which accuracy-based orderings differ, while doing less to distinguish runtime-based orders. The strong all-data baseline when time gets more weight is another part of their explanation. The comparison varies AccD for both the recommendation and its reference. It consequently does not isolate whether the narrower gain comes from the neighbor descriptions, the predictability of the reference rankings, or both.

Screening the descriptors

The exploratory plots show what led to the final descriptor set. For the C5.0 tree, the authors plot its ranks across 53 datasets against the proportion of symbolic attributes. They observe clusters consistent with better ranks on datasets with more symbolic inputs. The corresponding plot against the missing-value descriptor shows no comparably clear pattern. After making this kind of comparison across the candidate classifiers and descriptors, they drop the missing-value measure and average mutual information.

This is evidence about which descriptors the authors found promising in their archive. They do not report a held-out comparison in which each descriptor is removed from the final system in turn. In particular, the weak visual pattern for missingness does not give a numeric estimate of how much it would help or hurt neighbor retrieval. A descriptor with a weak relationship to any one classifier’s rank could still matter in combination with another descriptor. The procedure prioritizes a compact set in a small collection and leaves the contribution of individual descriptors uncertain.

Looking at the datasets where each method wins

The authors examine whether the winning recommendation method tends to differ with the kind of dataset. They focus on AccD = 0.1%, where accuracy dominates and where they expected their descriptors to distinguish relevant cases. They standardize each descriptor and then calculate the average standardized value among the datasets on which each method does best.

zᵢ = (Xᵢ − X̄) / σₓ

zᵢ is the standardized descriptor for dataset i. Xᵢ is that dataset’s original value of descriptor X, and X̄ is the descriptor mean. The denominator σₓ is the scaling quantity the authors describe as the standard error of X. Centering at the mean makes it possible to compare whether different groups of winning datasets lie above or below the archive average for a descriptor.

The reported groups contain 22 datasets for 1-NN, 13 for 5-NN and 19 for the all-data baseline. One dataset is included in two groups because 1-NN and the baseline tie. These are groups based on which method wins among all the tested methods, distinct from the higher/lower counts for a given method against the baseline. A dataset can contribute to a higher/lower count for a method even if the other local method performs better still.

The typical share of symbolic attributes is above the archive average in the group where 5-NN wins. It is below average in the baseline’s winning group and nearer the average in the 1-NN group. The class entropy comparison gives another pattern. Baseline wins are associated with below-average entropy, while the local methods’ winning groups have above-average entropy. These findings give some detail about the cases behind the aggregate results. Because the groups are defined after observing which method won, the patterns are descriptive. The authors do not show how accurately those group characteristics would select a recommendation method on unseen tasks.

Changing the objective and the trial budget

The overall rankings under different AccD settings show that the time term has practical consequences. Faster candidates such as Ltree and linear discriminant improve their positions when time is made more important. Boosted C5.0 loses its overall lead even though the accuracy measurements are unchanged. This comparison shows that ARR implements a choice of objective with observable consequences for the recommendation. The study uses the same formula throughout, so it does not establish how this particular time adjustment compares empirically with other ways to combine time and accuracy.

The comparison of prefixes of the recommended list varies how many candidates a practitioner tries. Using only the first entry serves a different purpose from using the first several as a shortlist. The improvement with longer prefixes shows that the recommendation retains alternatives that can repay the cost of testing them. Boosted C5.0 is relevant here both as a strong default and as an example of an ensemble within the candidate pool. It was the best classifier in 19 out of 53 datasets. The authors use that observation to argue that an ensemble can itself be treated as a candidate whose past performance is worth recording. Their experiment assesses the included ensemble, and they raise the applicability to other ensembles as an expectation.

Limitations

Limits the authors state

The archive contains a limited set of classification tasks and implementations. Every candidate was run with default parameters. The authors explicitly point out that these settings disadvantage some of the candidates, including MLP and RBFN. An ordering over tuned procedures could differ even if the dataset descriptions and ARR formula were unchanged. The measured time comparisons also reflect the runs available to METAL and the normalization used for experiments on different machines.

The authors recognize that their descriptors may miss some of the properties that make one classifier preferable to another. They mention concept complexity and resilience to noise as possible directions for refinement. Some existing descriptors can also be represented in different ways. A summary across numeric attributes may hide a distribution in which a few attributes differ sharply from the rest. The paper discusses earlier work that used histograms or information about individual attributes to retain more of this structure. Such representations would change the similarity calculation and may require more meta-data to support it.

The tradeoff in ARR addresses accuracy and total time. The authors point to understandability, novelty and complexity as other possible criteria, while recognizing problems in measuring or comparing them. Their parameter is designed for users who can describe a preference as an accuracy concession for a proportional increase in speed. It does not establish how users should express different kinds of preference. The paper also treats distance-weighted contributions from neighbors as a possible extension. The results concern the unweighted aggregation actually tested.

The reference orders come from cross-validation, which the authors regard as practically useful but imperfect. Their fold-based design carries some uncertainty into the evaluation, while each individual fold still supplies an estimated order. They also discuss using a partial order based on pairwise comparisons as another possible representation. Such an order could express uncertainty about particular relative positions without requiring a complete ordering for each observation.

The authors acknowledge that Spearman’s coefficient gives equal importance to a given positional error regardless of where it occurs. This can diverge from the practitioner’s interest. When only a few candidates will be tested, a swap near the beginning can change the actual trials, while a swap near the end may have no consequence. The paper considers a weighted correlation as a possible way to reflect that difference. Its analysis of trial prefixes gives separate evidence about practical selection under time constraints.

The authors also discuss other ranking systems that use data envelopment or predict performance with regressions. Comparing their reported results directly is difficult because they can use different definitions of the reference ranking. An apparent advantage could reflect the choice of what counts as the correct answer. The paper establishes the benefit of local retrieval relative to its own all-data ARR baseline and leaves a common evaluation against those other approaches open. Similarly, the suggestion that the same framework could help select combinations of analysis steps goes beyond the classifier selection experiments.

Limits visible in the experimental setup

The visual screening of meta-attributes draws on the dataset characteristics and on how the algorithms perform in this archive. The paper describes that screening before the leave-one-dataset-out comparison and does not report repeating it within each training portion. If judgments about which descriptors to keep use the eventual held-out tasks, then the result is a test of recommendations from a descriptor set already informed by the archive. It is weaker evidence for the performance of the entire descriptor-selection procedure on a fresh collection. This distinction matters most when a small archive is used for both exploration and evaluation.

The reported inferential comparison places the individual fold correlations into the tests. For the same held-out dataset, these correlations share the recommended order, and the fold experiments arise from a shared dataset with overlapping training portions. Treating dataset–fold combinations as separate blocks gives the tests more observations than a test at the dataset level would have. The paper’s reported confidence should be read in light of that dependence. The per-dataset mean correlations and higher/lower counts show the direction of the empirical comparison independently of how confidently one interprets the fold-level tests.

The reference orders also share ARR with the recommendations. That alignment is appropriate for asking whether past data predict the result of applying the same preference on a new task. It leaves a separate question about whether the chosen formula captures the user’s real objective. The trial-budget comparison partly addresses this distinction by reporting actual accuracy and time for restricted searches. Its favorable result for prefixes still depends on the particular classifiers, datasets and measurements in the benchmark.

ARR also has mathematical requirements that matter in a new setting. Its success-rate and time ratios require non-zero denominators, the logarithm requires a positive ratio, and pooling by a geometric mean calls for suitable positive scores. The time adjustment can reach zero or become negative if the preference and speed advantage are sufficiently large. The paper gives a convention for inapplicable descriptors, but it does not describe general handling of every degenerate ratio or a descriptor with a zero normalization range. The empirical results show how the method performed on this archive under the tested settings. They do not settle those implementation cases.

Finally, building the performance archive is itself a substantial experimental undertaking. The recommendation times concern using an existing archive. Where past benchmarks are scarce, where candidates have changed, or where query datasets have very different properties, the nearest case may offer little guidance. The method still returns a ranking, because it can identify whichever stored cases are closest. The experiment does not establish a distance beyond which the system should withhold a recommendation or switch to direct testing.

What came after

The later study identified in connection with this paper is Abdulrahman and colleagues’ 2017 work on introducing runtime into average ranking and active testing for algorithm selection. The title identifies the level at which it extends the question: runtime is part of the procedure for deciding which candidates to investigate. Brazdil and colleagues had already shown how past runtime measurements could enter a preference-dependent ordering. They also examined what happened when a practitioner followed that ordering for a limited number of trials. The later study brings the cost of selection into a framework that explicitly names active testing alongside average ranking. Speeding up algorithm selection using average ranking and active testing by introducing runtime

The connection is clearest when there are several plausible candidates and a trial consumes resources that could have been spent testing another. In the earlier paper, the order is generated from stored comparisons before the query trials, and the prefix controls how far the search proceeds. An active-testing formulation raises the corresponding question during the search itself: how to decide which trial is worth its time as testing proceeds. The later paper’s inclusion of average ranking also connects to the strong global baseline in the earlier study. General performance across datasets can give a starting order, while the cost of gathering evidence on the new dataset remains part of the selection problem.

Cite

Cite as Pavel Brazdil, Carlos Soares and Joaquim Pinto da Costa. 2003. Ranking Learning Algorithms: Using IBL and Meta-Learning on Accuracy and Time Results. Machine Learning.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1023/a:1021713901879

@inproceedings{brazdil2003ranking,
  title = {{Ranking Learning Algorithms: Using IBL and Meta-Learning on Accuracy and Time Results}},
  author = {Pavel Brazdil, Carlos Soares and Joaquim Pinto {da Costa}},
  booktitle = {Machine Learning},
  year = {2003},
  doi = {10.1023/a:1021713901879},
  url = {https://doi.org/10.1023/a:1021713901879}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/brazdil-2003-ranking-learning-algorithms-ibl-meta/