---
title: "Choosing Multiple Parameters for Support Vector Machines (2002)"
description: "Chapelle and colleagues show how to tune many support vector machine settings by following an error estimate, and test when this improves…"
canonical: "https://research.elamur.ai/free/en/papers/chapelle-2002-choosing-multiple-parameters-support-vector/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/chapelle-2002-choosing-multiple-parameters-support-vector/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2002](https://md.research.elamur.ai/free/en/papers/2002/) / Choosing Multiple Parameters for Support Vector Machines

# Choosing Multiple Parameters for Support Vector Machines

Paper · 2002 · Olivier Chapelle, Vladimir N. Vapnik, Olivier Bousquet et al.

**Authors:** Olivier Chapelle, [Vladimir N. Vapnik](https://md.research.elamur.ai/free/en/authors/vladimir-n-vapnik/), Olivier Bousquet and Sayan Mukherjee · **Year:** 2002 · **Venue:** Machine Learning · **Licence:** No open licence stated (free-to-read copy; rights reserved) — text kept private

[Cited by **8** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/chapelle-2002-choosing-multiple-parameters-support-vector/cited-by/) · Machine Learning

- [PDF](https://link.springer.com/content/pdf/10.1023/A:1012450327387.pdf)
- [DOI 10.1023/a:1012450327387](https://doi.org/10.1023/a:1012450327387)

## Summary

A support vector machine learns a boundary between classes, but the settings it starts with determine which boundaries it can learn. A setting may control how strongly the machine penalizes mistakes on training examples. Another may control how it measures similarity between inputs. If every input feature gets a setting of its own, searching by trying combinations soon becomes impractical. Chapelle and colleagues ask whether the training data can tell the search which way to move in this much larger space.

Their method alternates between fitting a classifier and adjusting its settings. For a given setting, ordinary support vector training finds the separating boundary. The authors then estimate how well that classifier will generalize and compute how the estimate changes as the settings move. Some of their criteria approximate what would happen if each training point were left out and classified in turn. One simpler criterion compares the spread of the mapped training points with the width of the margin around the boundary. It can guide the search even when its value gives a poor prediction of the actual error rate.

On the benchmark tasks where the authors tune a shared kernel width and a penalty together, gradient search gives test errors close to those from grid search with cross-validation, with fewer SVM fits. On a binary task made from the USPS handwritten digits, a polynomial kernel reaches 9% test error with separate scales for image tiles, compared with 9.9% for the best setting with a shared scale. The authors also fit 256 scales in a separate experiment, one for each pixel. In the feature-selection studies, the learned scales help the authors retain small subsets of gene-expression measurements or image components. On the myeloid-versus-lymphoblastic leukemia test set, for instance, they report 0 errors with 30 genes, compared with 1 error for a linear SVM using the full input.

These experiments distinguish two things an error criterion can do. It can estimate how often a classifier will be wrong, and it can help select settings that make the classifier wrong less often. The authors find that the second task can succeed even when the first is done poorly. Their results show that derivative-based selection can make richer kernels and feature selection practical in the settings they study. The generalization bounds they use to choose settings leave open a further question about the behavior of the entire procedure after that choice has been made.

## Deep dive: Choosing Multiple Parameters for Support Vector Machines

Chapelle and colleagues show how to tune many support vector machine settings by following an error estimate, and test when this improves classification. · about 37 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### A boundary depends on how the data are represented

In supervised [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/), a training example pairs an input with its correct output. Here the input is a vector of measurements, such as pixel intensities or gene-expression values, and the output is a binary class label. The task is to learn a rule that assigns the right class to future inputs. Several rules can agree on the training labels, so their agreement with the examples already seen gives only part of the information needed to choose between them.

An SVM approaches the problem by mapping those inputs into a feature space and finding a hyperplane, a flat decision boundary in that space. The mapping can make a boundary that is simple in feature space correspond to a curved boundary in the original inputs. For a separable training set, the SVM puts the boundary where it leaves the widest gap to the nearest points. That gap is the margin. The points on which the fitted boundary depends are called support vectors. The kernel supplies the inner products between mapped points, which lets the training algorithm work with the geometry of a feature space without explicitly constructing all its coordinates.

The geometry depends on the choice of kernel. In a radial basis function kernel, a small width makes similarity fall rapidly with distance. With a large width, the same pair of inputs remains more similar. A shared width treats the axes of the input space alike after any initial normalization. Separate widths make it possible for a difference along one axis to matter more than an equally large difference along another. The paper sees this flexibility as important in databases whose attributes describe different kinds of measurements. Standardizing their units alone leaves the question of which measurements matter for classification unanswered.

Training also needs a way to deal with examples that cannot be separated cleanly. The constant called C in the paper controls the cost assigned to errors or margin violations in the soft-margin formulation. The authors use quadratic penalization, which allows that constant to enter the same kernel-matrix calculation as the width settings. That gives the search a common way to handle changes in the penalty and changes in the representation. The underlying soft-margin formulation comes from work the paper cites on support vector classifiers. [Support-Vector Networks](https://md.research.elamur.ai/free/en/papers/cortes-1995-support-vector-networks/)

The margin gives a reason to expect better generalization, but its size has to be interpreted in the scale of the mapped data. A kernel can enlarge both the margin and the cloud of points around it. The theoretical result discussed in the paper compares the margin with the radius of the smallest sphere containing that cloud. This comparison makes the geometry of the whole training set relevant to kernel choice. It also gives the authors a quantity they can compute from the training data, with a derivative that changes as the kernel changes.

#### The cost of comparing settings

With a single setting, a straightforward procedure is to fit the classifier at several candidate values and select the one with the best estimate of future error. With a few settings, the same idea becomes a grid. Each combination gets its own fit, or several fits if the estimate comes from cross-validation. An additional setting adds an axis to the grid. Giving a separate width to each input feature makes the resulting number of combinations the central obstacle.

The paper describes two broad ways to estimate future error. A hold-out estimate evaluates predictions on examples reserved for validation. Cross-validation uses different parts of the available data for fitting and evaluation in turn. The other route uses a bound or approximation derived from the training problem. Leave-one-out validation sits between these ideas. Every example gets tested by a rule fitted without it, but straightforward computation repeats SVM training for every omission. A useful bound or approximation can recover some of that information from the full-data fit.

There had already been work on making a nearby kernel setting cheaper to evaluate. As the authors describe it, Cristianini, Campbell, and Shawe-Taylor used incremental optimization to update the SVM when the parameter moved by a small amount. That approach takes advantage of continuity in the fitted solution. The present paper addresses the additional problem of choosing a direction when there are many settings. It also identifies earlier uses of derivatives for selecting hyper-parameters in linear regression, time-series prediction, and regularization of neural networks. Its own contribution is to work out which SVM error criteria can supply such derivatives and how to compute them.

This distinction matters because the classifier is fitted before its quality can be assessed. Changing a width alters the similarity of examples, and that in turn alters the fitted boundary. A derivative for parameter selection may therefore need to account for a classifier that moves as the kernel changes. The paper develops several ways to handle that dependence. Some criteria require differentiating the fitted coefficients explicitly. For others, the authors can differentiate an optimum value using the current coefficients and the derivative of the kernel alone.

### The method, step by step

#### Fit the classifier, then move the kernel

The authors use an inner fit and an outer search. The inner fit takes the kernel and penalty as given and finds the SVM coefficients. The outer search asks whether the fitted classifier would score better under slightly different settings. Its objective may come from validation scores, from the geometry of all mapped training points, or from an estimate of the influence of leaving out a support vector. After moving the settings, the procedure fits again so that the next criterion value describes the classifier appropriate to the new kernel.

Gradient-based selection of SVM settings The steps in order.

The procedure begins with a choice of kernel family. That choice determines which changes the search can express. A radial basis function, or RBF, kernel can give every coordinate its own width.

```
K(x, z) = exp(−Σᵢ (xᵢ − zᵢ)² / (2σᵢ²))
```

Here K is the similarity assigned to inputs x and z. The index i runs across their coordinates, xᵢ and zᵢ are the corresponding values, and σᵢ is the width for that coordinate. The summation is inside the exponential, denoted by exp. For the same difference between coordinate values, a smaller width increases that coordinate’s contribution to the distance in the exponent. A width and the multiplier that scales a feature have inverse effects on that feature’s influence. This distinction becomes important when the paper describes discarding features with small multipliers.

With a kernel fixed, the SVM fits a real-valued score and uses its sign to make a decision. Writing the score and the sign together makes a distinction that matters later. Margin, loss, and sensitivity calculations use how far the score lies from the threshold.

```
f(x) = sign(g(x)),  g(x) = Σᵢ αᵢ⁰ yᵢ Kθ(xᵢ, x) + b
```

Here f is the class decision, sign takes the sign of its argument, and g is the score. The index i runs through the training examples. The input of example i is xᵢ, its class label is yᵢ, and αᵢ⁰ is its fitted coefficient. The superscript ⁰ indicates the optimum from the fit using all the training points. The kernel Kθ depends on the setting vector θ, and b is the offset. Here and in the SVM training equations, xᵢ denotes an entire example. In the coordinate-wise kernel formula, the same subscript indexes an input coordinate.

The fitted coefficients are the solution to a constrained quadratic maximization. Its first term rewards increasing the coefficients. The second term accounts for their joint contribution to the geometry of the separating boundary.

```
W(α, θ) = Σᵢ αᵢ − (1/2) Σᵢ,ⱼ αᵢ αⱼ yᵢ yⱼ Kθ(xᵢ, xⱼ)
```

Here W is the SVM training objective, α is the vector of candidate coefficients, θ specifies the kernel, and i and j range over the training examples. The symbols αᵢ and αⱼ select coefficients, yᵢ and yⱼ select labels, and Kθ(xᵢ, xⱼ) supplies the inner product for the pair. Every coefficient must be non-negative. When the offset b is fitted, the sum of the coefficients weighted by their class labels must equal zero. If the hyperplane is constrained to pass through the origin, that equality constraint is omitted.

In the hard-margin formulation, every signed training score reaches at least the unit margin level, and the positively weighted examples sit at that level. These are the support vectors. A point with a zero coefficient contributes nothing to the sum defining the decision score. This property later makes it possible to focus leave-one-out calculations on support vectors.

For soft-margin fitting with quadratic penalties, the paper rewrites the training problem using a modified matrix.

```
K ← K + I/C
```

Here K is the training kernel matrix before and after the replacement, I is the identity matrix of the same size, and C is the positive penalty constant. The arrow denotes replacement. Only diagonal entries receive the added term. This is a device for fitting the quadratic-penalty SVM. A prediction on a new input uses the kernel similarities between that input and the training examples. Treating C as part of the training kernel matrix lets the outer search include its effect on the fitted coefficients.

#### Choose a criterion for future error

The direct validation criterion counts sign mistakes on held-out examples. The signed score is positive when the score points toward the correct class. Reversing its sign gives the argument to a step function that counts mistakes.

```
T = (1/p) Σᵢ Θ(−yᵢ′ g(xᵢ′))
```

Here T is validation error, p is the number of validation examples, and i runs over those examples. The primes distinguish the validation input xᵢ′ and label yᵢ′ from training inputs and labels. The function g is the fitted score. The step function Θ returns 1 for a positive argument and 0 otherwise. The formula averages the resulting indicators. For a fixed rule fitted independently of the validation set, the paper describes this estimate as unbiased, with variance that decreases as the validation set grows. Reserving those examples reduces the data available for that fit.

Leave-one-out testing makes a different use of the examples. It fits a rule with each point omitted, then tests that rule on the omitted point. In expectation, the fraction of mistakes estimates the test error of the training procedure with a sample the size of those reduced fits.

```
E[pₑᵣᵣ⁽ℓ⁻¹⁾] = (1/ℓ) E[L]
```

Here E is expectation over random samples, ℓ is the full training sample size, pₑᵣᵣ⁽ℓ⁻¹⁾ is the test-error probability of a rule fitted on a sample of size ℓ − 1, and L is the count of leave-one-out mistakes on the full sample. The sample-size distinction explains the paper’s description of leave-one-out as an almost unbiased estimate for the full-size training problem. Computing the count directly requires refitting after each omission.

The authors examine ways to avoid those repeated fits. For an omitted point, compare the score from the full fit with the score from the reduced fit, then orient that change using the point’s label. A hard-margin fit starts from a signed score at least as large as the unit margin. An upper bound on how much the signed score falls can therefore also bound the mistake indicator.

```
L ≤ Σₚ Θ(Uₚ − 1)
```

Here L is the leave-one-out error count, p indexes the omitted training example, Θ is the step function, and Uₚ bounds the loss in signed score on example p after it is omitted. The 1 is the hard-margin reference level in the full fit. If removing a point leaves the fit unchanged, its loss in signed score is zero. The paper uses this observation to obtain the simplest bound, the fraction of training points that are support vectors. It also motivates more discriminating criteria that ask how influential each support vector is.

For a hard-margin SVM without a fitted offset, the Jaakkola–Haussler result bounds the score loss using the point’s own kernel value and the coefficient assigned to it by the full fit.

```
Uₚ = αₚ⁰ K(xₚ, xₚ)
```

Here Uₚ is the upper bound for example p, αₚ⁰ is its coefficient in the full training solution, and K(xₚ, xₚ) is its inner product with itself in feature space. Substituting this quantity into the leave-one-out bound and dividing by the sample size gives a bound on the error fraction. The paper also describes a related estimate that sums these coefficient-times-kernel terms directly. A large term can then contribute more than a single mistake would contribute to an error count.

The Opper–Winther approach also treats the hard-margin case without an offset. It uses the inverse of the kernel matrix on the support vectors. If the remaining support-vector set stays the same when a point is removed, the quantity controlling its leave-one-out prediction is the point’s coefficient divided by the corresponding diagonal entry of that inverse. This brings the other support vectors into the calculation. The span rule generalizes that geometric idea to the case with an offset.

#### Compare the radius with the margin

The radius–margin criterion uses two quantities from the full training problem. The radius R is the smallest radius of a sphere containing the mapped training points. The margin γ is the distance from the separating hyperplane to the closest mapped training points, measured on their correct sides. With Φ denoting the map defined by the kernel, their definitions can be written in terms of distances in feature space.

```
γ = minᵢ yᵢ(w · Φ(xᵢ) + b) / ‖w‖
```

Here γ is the margin, i runs over training examples, yᵢ is the label, xᵢ is the input, and Φ(xᵢ) is its image in feature space. The vector w is normal to the hyperplane, b is its offset, the dot is the feature-space inner product, and ‖w‖ is the norm of w. The minimum selects the closest point in signed distance. Separability means that a boundary exists with a positive margin.

```
R = minₐ maxᵢ ‖Φ(xᵢ) − a‖
```

Here R is the enclosing radius, a ranges over candidate centers in feature space, and i runs through the training inputs xᵢ. The norm measures distance from center a to mapped point Φ(xᵢ). The maximum gives the distance to the farthest point from that center. The minimum chooses the center for which that distance is smallest.

For separable data, the paper quotes a bound on expected test error in terms of this geometry. Its left side describes training on a reduced sample, while the radius and margin on its right side use the full sample.

```
E[pₑᵣᵣ(Lℓ₋₁(Zℓ₋₁)))] ≤ (1/ℓ) E[R(Zℓ)² / γ(Lℓ(Zℓ), Zℓ)²]
```

Here E denotes expectation over random training samples. The full sample is Zℓ, the sample with size ℓ − 1 is Zℓ₋₁, and L with a sample-size subscript denotes the maximum-margin learning rule for that size. The probability pₑᵣᵣ is the error on a fresh example for the returned separator. The right side uses R(Zℓ), the enclosing radius of the full sample, and γ(Lℓ(Zℓ), Zℓ), the margin of its fitted separator on that sample. The theorem concerns expected quantities under draws of the specified sizes. A separate result described in the paper gives a leave-one-out bound using the radius and margin for a hard-margin SVM without an offset.

In a comparison of kernels on a fixed training set, the sample-size factor is constant. The authors optimize the ratio of squared radius to squared margin in several experiments. Under the normalization used for SVM training, the margin is the reciprocal of the norm of the boundary normal. The ratio can therefore be differentiated by working with the squared radius and the squared norm.

```
R²/γ² = R² ‖w‖²
```

Here R is the enclosing radius, γ is the margin, and ‖w‖ is the norm of the fitted normal. This form is helpful because the authors can express each factor as the value of a quadratic optimization. They can then differentiate those values without explicitly differentiating every optimizing coefficient.

```
R² = maxᵦ [Σᵢ βᵢ K(xᵢ, xᵢ) − Σᵢ,ⱼ βᵢ βⱼ K(xᵢ, xⱼ)]
```

Here R² is the squared radius, and the maximum is over weight vectors β with non-negative entries summing to 1. The entries βᵢ and βⱼ weight training examples i and j. The kernel K supplies the inner products of their images. The expression balances the weighted squared norms of the individual points against the squared norm of their weighted center. It gives the radius calculation a form that uses the same kernel matrix as the classifier.

#### Use the support vectors to estimate the effect of an omission

The span rule measures how well a support vector can be represented by the other support vectors. With a fitted offset, the coefficients in that representation are required to sum to 1. They can have either sign. Geometrically, this makes the comparison set the affine space of the remaining support vectors, which includes points outside their convex hull. The span is the distance from the point being tested to that set.

```
Sₚ² = minλ ‖Φ(xₚ) − Σᵢ≠ₚ λᵢ Φ(xᵢ)‖²,  Σᵢ≠ₚ λᵢ = 1
```

Here Sₚ² is the squared span of support vector p, xₚ is its input, and Φ is the feature map. The index i runs over the other support vectors. The vector λ contains their representation coefficients λᵢ. The norm measures the residual in feature space, and the minimum chooses the closest permitted combination. The sum constraint is dropped in the hard-margin case without an offset.

The paper relates this distance to the signed score loss on the omitted point. If the remaining support vectors stay the same in the leave-one-out fit, the loss is the original coefficient multiplied by the squared span. Each support vector starts at the full fit’s unit margin level, so the predicted mistakes follow from comparing this loss with that level.

```
T = (1/ℓ) Σₚ Θ(αₚ⁰ Sₚ² − 1)
```

Here T is the span estimate of the leave-one-out error fraction, ℓ is the training size, and the sum is over points with non-zero coefficients, with all other points contributing zero. The index p selects a support vector, αₚ⁰ is its fitted coefficient, Sₚ² is its squared span, and Θ counts a mistake when its argument is positive. The assumption about support-vector membership is what allows this expression to recover the leave-one-out count. It concerns the effect of deleting a training example. Smoothness during kernel search raises a separate question about the effect of moving a kernel parameter.

The geometric connection puts several criteria on the same footing. Without the affine constraint, the all-zero representation is feasible. Its residual is the point itself, so the squared span is at most its diagonal kernel entry. This recovers the connection to the Jaakkola–Haussler bound. The paper also relates the span to the diameter of the enclosing sphere. Bounding each span by that diameter and using the sum of SVM coefficients gives a looser radius–margin expression for the mistake count. The sphere summarizes the full data cloud, while the span can reflect differences among individual support vectors.

#### Smooth the criterion before following its slope

The validation count and the raw span rule both use a step. A change in a setting can move a score toward the decision boundary while leaving the count unchanged. Crossing the boundary then changes the count all at once. The authors investigate smooth approximations because a useful derivative should register movement toward or away from a mistake before the classification actually flips.

```
s(u) = 1 / (1 + exp(−Au + B))
```

Here s is the smooth replacement for the step, u is the quantity compared with the decision threshold, and exp is the exponential function. The constants A and B set the steepness and position of the transition. The authors describe a tradeoff in choosing these constants. A gradual transition can give appreciable weight to points well away from the decision threshold. A steep transition behaves more like a count and leaves little useful slope across much of the search. A linear upper estimate gives gradients, too, but lets large errors carry more weight than they do in the original count.

The paper also considers fitting a probability curve to the validation data using the calibration procedure it attributes to Platt. The input to that curve is the SVM score.

```
P̃ₐ,ᵦ(x) = 1 / (1 + exp(A g(x) + B))
```

Here P̃ₐ,ᵦ(x) estimates the conditional probability of the positive class for input x. The subscripts indicate the fitted parameters A and B. The function g is the real-valued SVM score, and exp is the exponential function. The parameters are fitted by maximizing the validation labels’ likelihood under this curve. A score is assigned to the positive class when the fitted probability exceeds 0.5. The fitted offset can shift the classification threshold relative to the original score’s sign boundary.

The resulting error estimate adds the probability of the less likely class at each validation input. If the classifier chooses the more likely class, that smaller probability estimates its chance of being wrong on the input.

```
Tcal = Σᵢ min(P̃(xᵢ′), 1 − P̃(xᵢ′))
```

Here Tcal is the sum of the estimated error contributions, i runs over the validation inputs xᵢ′, and P̃ is the probability curve evaluated at the fitted calibration parameters. The expression 1 − P̃(xᵢ′) gives the estimated probability of the negative class, and min selects the smaller of the two probabilities. The paper writes the expression as a sum. On a fixed validation set, its mean has the same minimizing settings. The labels enter through the calibration fit. The final sum evaluates that curve on the validation inputs.

The span has another source of abrupt changes. Its representation set changes when a training point enters or leaves the support vectors. A coefficient may approach zero smoothly while that point still gives the other support vectors a full direction in which to construct an affine combination. Once it leaves, the direction may disappear all at once. Smoothing the final mistake indicator leaves that geometric jump intact.

The authors first describe limiting each representation coefficient in proportion to the corresponding SVM coefficient. That would let a point’s contribution fade as it approaches the edge of the support-vector set. They then use a quadratic penalty to produce a similar effect while retaining a matrix solution.

```
Sₚ² = minλ [‖Φ(xₚ) − Σᵢ≠ₚ λᵢ Φ(xᵢ)‖² + η Σᵢ≠ₚ λᵢ²/αᵢ⁰],  Σᵢ≠ₚ λᵢ = 1
```

Here Sₚ² is the regularized squared span of support vector p. The feature map Φ and the inputs xₚ and xᵢ define the residual, and the norm gives its size. The vector λ contains the representation coefficients λᵢ, with i running through the other support vectors. Each αᵢ⁰ is the original SVM coefficient of vector i, and η controls the penalty. The smaller αᵢ⁰ gets, the more expensive a given non-zero λᵢ becomes. The authors use η = 0.1 in their experiments. The equality constraint still applies when the SVM has an offset.

#### Differentiate the optimum and update the settings

The outer objective depends on the settings in two ways. It can use kernel values explicitly, as the radius or span does. It can also use a classifier whose coefficients change as a consequence of fitting with that kernel. The distinction is visible if the objective is written as a function of the fitted coefficients and the settings.

```
dT₀/dθₚ = ∂T/∂θₚ + (∂T/∂α⁰)(∂α⁰/∂θₚ)
```

Here T₀ is the criterion evaluated along the fitted SVM solution, T is the criterion before that dependence is substituted, and θₚ is the setting indexed by p. The first partial derivative holds the coefficient vector α⁰ fixed. The second term combines the sensitivity of T to the fitted coefficients with the sensitivity of those coefficients to θₚ. If a criterion also uses the fitted offset b, the same calculation includes its change. The derivatives on the right are evaluated at the current fit.

For the squared radius and the squared norm of the boundary normal, the paper uses a result about differentiating the value of a constrained optimum. At a unique optimizer, with the feasibility constraints held fixed and the smoothness conditions used in the derivation, the value derivative can be computed by differentiating the objective with the optimizer held at its current value. In the SVM and enclosing-sphere problems, this leaves the derivatives of the kernel entries weighted by the optimizing coefficients.

```
∂‖w‖²/∂θₚ = −Σᵢ,ⱼ αᵢ⁰ αⱼ⁰ yᵢ yⱼ ∂Kθ(xᵢ, xⱼ)/∂θₚ
```

Here w is the fitted boundary normal, θₚ is one kernel or penalty setting, and i and j index training examples. The symbols αᵢ⁰ and αⱼ⁰ are their fitted SVM coefficients, while yᵢ and yⱼ are their labels. The last factor measures how the kernel entry changes with θₚ. The negative sign comes from the quadratic term in the SVM objective. Half the squared norm equals the optimum value of that objective.

```
∂R²/∂θₚ = Σᵢ βᵢ⁰ ∂Kθ(xᵢ, xᵢ)/∂θₚ − Σᵢ,ⱼ βᵢ⁰ βⱼ⁰ ∂Kθ(xᵢ, xⱼ)/∂θₚ
```

Here R² is the squared enclosing radius, and βᵢ⁰ and βⱼ⁰ are entries of the optimizing radius weights. The indices i and j run through training examples. The partial derivatives refer to diagonal and pairwise entries of the kernel Kθ, respectively, and θₚ is the setting being varied. These two derivative formulas give the slope of the radius–margin criterion by the product rule.

For a validation objective that depends on the scores themselves, the authors compute the coefficient and offset derivatives. They restrict the calculation to support vectors and use the fact that their signed scores equal the margin level. Together with the coefficient equality constraint, those conditions form a linear system.

```
H(α⁰, b)ᵀ = (1, …, 1, 0)ᵀ
```

Here H is the square matrix whose main block contains the kernel entries on support vectors multiplied by both class labels. Its extra column and row contain the labels, and its lower-right entry is 0. The vector on the left stacks the support-vector coefficients α⁰ and the offset b. The superscript ᵀ marks the column-vector form. On the right, each 1 represents the signed-score condition for a support vector, and the final 0 represents the coefficient equality constraint. The matrix calculation applies where the support-vector set is fixed and the system has an inverse.

```
∂(α⁰, b)ᵀ/∂θₚ = −H⁻¹ (∂H/∂θₚ) (α⁰, b)ᵀ
```

Here θₚ is the varied setting, H⁻¹ is the inverse of the support-vector system, and ∂H/∂θₚ is its entrywise derivative. The stacked vector contains the current coefficients α⁰ and the offset b. Differentiating the linear system while its right-hand side is constant gives this expression. A validation score derivative can now account for changes in coefficients, offset, and kernel entries.

The span calculations use a related inverse. The authors augment the support-vector kernel matrix with a row and column of ones to enforce the affine constraint, and the bottom-right entry is zero. In the regularized version, they add the span penalty on the diagonal of the support-vector block.

```
Sₚ² = 1 / [(K̃SV + D)⁻¹]ₚₚ − Dₚₚ
```

Here Sₚ² is the regularized squared span for vector p, K̃SV is the augmented support-vector kernel matrix, and D is diagonal. For each support-vector entry i, Dᵢᵢ equals η divided by αᵢ⁰, with η the span penalty and αᵢ⁰ the fitted coefficient. The extra diagonal entry for the affine constraint is zero. The subscript pp selects the diagonal entry for p, and the superscript ⁻¹ denotes matrix inversion. The subtraction removes the diagonal penalty for the very point whose span is measured. Without regularization, the formula uses the inverse of the augmented matrix alone.

Using a shared inverse gives spans for the different support vectors from its separate diagonal entries. To compute derivatives, the authors differentiate the kernel entries and the inverse. In the regularized version the diagonal penalty also depends on the fitted coefficients. The matrix method avoids a separate SVM fit for each leave-one-out estimate, though the span calculation still depends on the size and conditioning of the support-vector system.

The gradient points towards increasing values of the criterion. The authors move in the opposite direction and describe using curvature to improve convergence.

```
δθₖ = −ε ∂T₀/∂θₖ
```

Here δθₖ is the change to setting k, ε is the positive step size, and ∂T₀/∂θₖ is the derivative of the criterion along the fitted solution. The negative sign gives a descent step. A curvature-based update uses the matrix of second derivatives across settings. The experiments use the Matlab optimization toolbox with second-order updates and a loose stopping criterion. The objective is a useful choice of settings, so the authors give little weight to locating a minimum to high numerical precision.

#### Refit after discarding weak features

When the settings are feature multipliers, the same search becomes a feature-selection procedure. The paper considers scaling the original coordinates and scaling coordinates defined by principal component analysis. Principal components give a new set of axes for expressing variation in the observed inputs. Scaling these axes lets the search assign importance to combinations of original measurements. That is the useful distinction for the face experiment, where keeping a component means keeping an image direction in the reduced representation.

The authors start with equal multipliers, fit the SVM, and optimize the error criterion over the scales. After reaching a local minimum, they discard dimensions with small multipliers and return to the fitting procedure. In the principal-component version, the workflow includes computing the component representation. The next fit consequently works with the dimensions that survived selection. A small scale indicates that the current classifier can give a coordinate little influence. Discarding that coordinate and refitting tests the consequences of turning a continuous preference into an actual reduced input.

The target is different in different experiments. In the synthetic tasks the authors specify how many features the method may keep, which lets them compare selection rules under the same size constraint. In the digit study they also inspect a full map of learned scales. Its purpose is to see how input influence is distributed spatially. In the gene-expression and face studies, the examples of interest are classifiers refitted with fewer measurements or components and evaluated using the error measure for that task.

### Experiments and results

#### A shared width and a penalty across benchmark splits

The benchmark experiments tune the RBF width σ together with the SVM penalty C. For these tasks the kernel’s exponent uses summed squared coordinate differences divided by 2nσ², where n is the number of input coordinates. The authors normalize each coordinate by its standard deviation. They search in log C and log σ, which keeps both original settings positive and, in their experience, makes optimization more stable. The starting settings are C = 1 and log σ = −2.

The benchmarks come from Rätsch, Onoda, and Müller, together with 100 training and test splits. The tasks are Breast cancer, Diabetes, Heart, Thyroid, and Titanic. The authors follow the benchmark protocol of selecting parameters separately on the first 5 training sets, then taking the median of those 5 estimates for each parameter. The comparison is between grid search using 5-fold cross-validation, gradient minimization of the radius–margin criterion, and gradient minimization of the span criterion. The grid results come from the earlier benchmark study.

Kernel and penalty selection on Thyroid, test error The span criterion gives the lowest reported test error, with similar results across selection methods.

**The numbers**

| System or setting | test error % |
| --- | --- |
| Grid search with cross-validation | 4.80 |
| Gradient search with radius–margin | 4.62 |
| Gradient search with span (this paper) | 4.56 |

The differences among selection methods are small in relation to the reported variation. On Thyroid the test-error percentages are 4.80 ± 2.19 for cross-validation, 4.62 ± 2.03 for radius–margin, and 4.56 ± 1.97 for span. Breast cancer has the same ordering for span and cross-validation, with test error of 25.59 ± 4.18 for span and 26.04 ± 4.74 for cross-validation. Radius–margin gives 26.84 ± 4.71 on that task. On Heart, radius–margin has the lowest reported test error, 15.92 ± 3.18, alongside 15.95 ± 3.26 for cross-validation and 16.13 ± 3.11 for span. Diabetes gives 23.19 ± 1.67 for span, 23.25 ± 1.7 for radius–margin, and 23.53 ± 1.73 for cross-validation. On Titanic, cross-validation gives 22.42 ± 1.02, span gives 22.5 ± 0.88, and radius–margin gives 22.88 ± 1.23.

The more pronounced difference is the search cost measured in SVM fits. The grid tries 10 values for each setting with 5-fold cross-validation, for 500 fits per training set used in parameter selection. According to the paper, the gradient searches needed one hundredth as many SVM training iterations on average. This comparison is against a specified grid, at its chosen resolution and fold count. A gradient update also requires calculation of the criterion and its derivatives. The fit count conveys how much repeated training the search avoids, while the algebra used in each update determines the rest of its cost.

#### Giving parts of a handwritten digit separate scales

The USPS data comprise 7291 training images and 2007 test images. Each image has 16 × 16 pixels. The authors form a binary problem by grouping digits 0 to 4 against digits 5 to 9. They divide the training set into 23 subsets of 317 examples and use those subsets successively during training. The scaling experiment starts with 16 parameters, each shared by a square tile containing 16 pixels. Every scale starts at 1.

The authors compare a polynomial kernel of degree 2 with an RBF kernel. In the polynomial case the individual scales enter the inner product, and the squared polynomial can use interactions between coordinates. In the RBF case the scales change the distances used in the exponential. The optimization criterion is the radius–margin ratio. The authors plot the test error alongside that ratio through the optimization, for each kernel, to show how the search objective and the quality of the resulting predictions evolve.

Polynomial kernel scaling on binary USPS, test error Giving image tiles separate scales lowers the reported test error relative to the best shared scale.

**The numbers**

| System or setting | test error % |
| --- | --- |
| Best shared scale | 9.9 |
| Learned tile scales (this paper) | 9 |

The polynomial kernel reaches 9% test error under tile scaling, compared with 9.9% for its best shared scale. The paper supplies the RBF optimization curve alongside the polynomial curve. The explicit shared-scale comparison concerns the polynomial kernel.

In a separate polynomial-kernel experiment, the authors fit 256 scales, one per pixel. The resulting map gives smaller multipliers near the image border than in the middle. This agrees with their expectation that central pixels contribute more to this task. The pixel map displays the outcome of fitting at that finer resolution. The numerical comparison in the chart comes from tile scaling.

#### Selecting measurements when most inputs are irrelevant

The synthetic experiments test whether the scales help identify informative dimensions among distractors. Both problems have balanced class probabilities. The linear problem has six relevant dimensions among 202. The relevant dimensions are arranged in groups that carry the class signal in different draws, creating redundancy. The other dimensions are independently generated noise. In the nonlinear problem, two dimensions among 52 carry the class information. The classes occupy different mixtures in those two coordinates, and the other dimensions are noise. The authors use a linear kernel for the first task and a second-order polynomial kernel for the second.

All feature-selection methods have to keep the best two features. The SVM fitted to the full set of features supplies a baseline for the value of selection. The comparison also includes filters that rank features before fitting a classifier. Pearson correlation measures association with the label. The Fisher score compares separation in class means with within-class variation. The Kolmogorov–Smirnov filter compares empirical distributions. The gradient-based procedures use either the span criterion or the radius–margin ratio, so their ranks reflect the SVM’s fitted geometry.

The paper plots mean test error as a fraction against the number of training examples. For each training-set size, the errors are evaluated on 500 test samples and averaged over 30 runs. The authors report that their feature-selection method outperforms the filter methods on both tasks. On the nonlinear task, the Kolmogorov–Smirnov filter is the only filter that improves on the full-input SVM. The paper also reports that the Fisher and Pearson results are almost identical, so the plotted curves omit the Fisher score.

#### Gene-expression measurements and classification error

The first leukemia task uses expression measurements for 7129 genes to distinguish myeloid from lymphoblastic leukemia. It has 38 training examples and 34 test examples. A standard linear SVM makes 1 error on the test set. Selecting genes by radius–margin optimization gives 0 errors using 30 genes and 1 error using 1 gene. A Fisher ranking gives 1 error at both of those retained sizes. This experiment records how the choice and number of retained measurements affect a fixed test set.

The other leukemia task distinguishes B from T cells among the lymphoblastic cases. The standard linear SVM makes 1 error. A set of 5 genes selected using either span or radius–margin gives 0 errors. Fisher selection with 5 genes gives 2 errors. The equality of the span and radius–margin counts is at the level of classification error. Those counts alone do not identify which genes the methods retained or establish that their predictions would coincide on new samples.

The medulloblastoma experiment predicts treatment outcome. The dataset has 60 examples with 7129 expression values per example. The reported metric is the count of errors under leave-one-out evaluation. An SVM with a Gaussian kernel gives 24 errors, and the radius–margin feature-selection procedure gives 15 errors using 60 genes.

Feature selection for medulloblastoma treatment outcome, leave-one-out errors The radius–margin feature-selection run makes fewer leave-one-out errors than the standard Gaussian SVM.

**The numbers**

| System or setting | leave-one-out errors |
| --- | --- |
| Standard Gaussian SVM | 24 |
| Radius–margin selection (this paper) | 15 |

The leukemia and medulloblastoma results describe different evaluation arrangements. In the first leukemia task, a difficulty is predicting the labels of the designated test examples after selecting measurements from a small training set. In the medulloblastoma task, each example is an omitted case in the reported evaluation measure. The error counts answer the corresponding question for each experiment, so their absolute sizes cannot be used as a comparison of the difficulty of the classification tasks.

#### Face detection with a smaller input representation

For face detection, the paper describes a system based on gray-scale patches of 19 × 19 pixels and a second-degree polynomial SVM. Its feature space contains more than 40,000 features. According to the authors, it took a PC several minutes to scan an image at multiple scales. The feature-selection experiment addresses the cost of that input representation by keeping fewer principal components. Each retained component expresses a direction in the original patch space, so this operation reduces the classifier’s input dimension before applying the polynomial kernel.

The evaluation uses large CMU test set 1, with 479 faces and about 57,000,000 non-face patterns. The paper compares receiver operating characteristic curves, which trace detection against false positives as the decision threshold changes. This is important for a detector operating over many candidate patches, since the threshold determines how many of those patches it passes as detections. According to the authors, the plotted detection performance shows no improvement when the number of retained components exceeds 60. The evidence concerns the tradeoff over thresholds and the number of retained components. The paper gives no resulting end-to-end detection time for the reduced configuration.

### What the ablations show

#### The criterion can guide selection without estimating the error closely

The paper offers several controlled comparisons. In the benchmark study, the kernel family and the two tunable settings are shared while the selection criterion changes. The span estimate uses the individual influence of support vectors to approximate omissions. The radius–margin ratio summarizes the geometry of the entire fitted problem. Their similar held-out results suggest that the extra detail of the span is of limited practical value in that particular search. There are tasks on which each criterion gives a better test error than the other, and the differences are small beside the reported variability.

The comparison helps explain why accuracy as an error estimate and usefulness for optimization can diverge. If a criterion is systematically high but reaches a minimum in a good part of the search space, the absolute height is secondary for selection. The more consequential failure is a criterion that assigns its lowest values to settings with worse test predictions. The benchmark study evaluates the classifiers selected by each criterion. It gives evidence about the usefulness of their minima as used by the search, and offers less evidence about how precisely the criterion ranks settings throughout the space.

The authors favor radius–margin for the subsequent scaling results because it is simpler to implement and control. They describe the span search as having more local minima, and report that they obtained similar scaling results using it. The numerical benchmark comparison provides the direct basis for assessing both criteria. The later scaling experiments show what the simpler one can do across substantially more parameters.

#### There are two distinct reasons to smooth

In the paper’s width example for the validation criterion, a step, a sigmoid, and a piecewise linear function are applied to the signed errors. With the step, a shift in the width may move several scores without changing the count. The sigmoid gives a continuous response to those score changes. The piecewise linear alternative also responds, but its minimum is displaced in the example. Once a wrong prediction is far enough beyond the decision boundary, the linear estimate keeps increasing its contribution. That changes which improvements the criterion values most. A function can therefore supply a slope and still favor the wrong width.

The analysis of the span isolates a different change. With an unregularized span, the curves show sudden jumps as the support-vector set changes during a width sweep. A local derivative can point towards a smaller span within one stretch of the sweep even though jumps along that direction produce a larger value across the whole region. This explains why differentiating the closed-form span alone can give poor guidance. Its slope accurately describes the current support-vector configuration and can fail to describe what happens when that configuration changes.

The paper compares η values of 0, 0.001, 0.01, and 0.1 to show the effect of the span penalty. In the displayed sweep, regularization smooths the detailed variation and leaves the minimum close to that of the unregularized estimate. This matters because a penalty strong enough to remove jumps could also change which setting the criterion favors. The comparison supports the penalty choice for the case shown. It is a demonstration of the shape of the objective, distinct from a comparison of test error across all the regularization values.

The authors give an additional analytic comparison for an SVM without an offset. At η = 0 the span reduces to the inverse-matrix expression used by Opper and Winther. As the penalty tends to infinity, the remaining support vectors’ representation coefficients are forced toward zero, leaving the point’s self-similarity. The result then agrees with the Jaakkola–Haussler criterion. These cases show what the penalty changes: it controls how much the approximation can use the rest of the support-vector configuration.

#### Learned scales help most where the inputs have different roles

On USPS the clean comparison is between the best common scale and multiple learned scales under the same polynomial kernel family. The improvement illustrates how rescaling can help a classifier even when all inputs are the same kind of measurement. A central pixel and a border pixel have comparable physical meaning as intensities, yet they occupy different positions in the images. The finer map of fitted scales provides a separate check that the learned variation follows that spatial structure.

The synthetic problems control relevance in a stronger sense because the authors specify how the data are generated. A selection method can therefore be challenged by irrelevant coordinates or by redundant signal. Matching the number of retained features holds one factor constant across the filters and the gradient-based method. On the nonlinear problem in particular, coordinates can matter through how their joint values distinguish the classes. Ranking them by a linear association with the label has limited access to that information. The polynomial SVM and its selection criterion can use joint structure during fitting.

The filter comparison also shows that several mechanisms can help. Kolmogorov–Smirnov selection improves on the full-input SVM in the nonlinear example, while the gradient-based selection performs better according to the authors’ comparison. That pattern separates the benefit of removing noise from the benefit of choosing removals based on the fitted classifier. On the leukemia tasks, holding the number of genes fixed provides a related comparison with Fisher selection. The B-versus-T result shows the clearest separation of the reported counts under a common feature budget.

The face detection curves vary how many principal components are retained. Their flattening above the reported threshold shows that the detector can omit further components while preserving the detection tradeoff observed in the test. This is a comparison of representation size at the level of the selected components. It answers a practical question about dimensionality and detection together, while the gene-expression and synthetic comparisons put more direct emphasis on the relative value of different selection rules.

### Limitations

#### Limits the authors identify

The authors distinguish tuning by a training-set criterion from proving a generalization guarantee for the entire tuning procedure. Their radius–margin theorem and omission arguments give reasons to prefer certain fits. The procedure then inspects the training data to choose the kernel and penalty themselves. The paper’s conclusion leaves bounds for that whole process as a question for future work. The reported ability to tune many scales with limited signs of overfitting is an empirical observation from their experiments. The authors say that understanding why it occurs requires more work.

Some of the leave-one-out expressions are conditional. The span equality and the Opper–Winther calculation use stability of the remaining support-vector set under omission. The paper’s own width-sweep analysis also shows that membership can change under a small kernel adjustment. The regularized span smooths how individual vectors contribute to the geometric estimate. The original assumption is still relevant when deciding whether a value can be read as the exact effect of an omission.

The search requires kernel settings for which derivatives of the relevant quantities can be worked out or approximated. The paper discusses potential differentiability problems in its optimum-value calculation and uses a uniqueness condition there. The support-vector matrix calculations require a usable inverse. The authors also report that the span criterion is harder to control and has more local minima. Their loose stopping rule and preference for the simpler radius–margin objective reflect the practical aim of finding good settings from the search, with less emphasis on numerical precision at the minimum reached.

Finally, the authors describe the digit example as a feasibility check. They expected limited improvement because many pixel features have similar roles, and a common scale was already reasonable for the task. The value of that experiment is that it gives an example where a larger setting space is computationally accessible and yields a plausible pattern of learned influence. The ablations on irrelevant inputs address stronger situations for feature selection.

#### Limits visible in the experimental design

The runtime comparison provides counts of SVM fits for particular search procedures. A fit count leaves out the enclosing-sphere optimization, the derivative calculations, and the cost of the support-vector matrix operations. It also depends on how many candidates the grid evaluates and how many folds the baseline uses. The paper therefore supports a large reduction in repeated training for that benchmark design. It gives less information about elapsed-time differences across training sizes, implementations, or other search procedures.

On the benchmark tasks, the mean errors and spreads are consistent with broadly similar prediction performance across the criteria. Ranking the means would give different preferred criteria on different tasks. The paper supplies no significance analysis establishing a durable advantage for one criterion across the collection. Likewise, the USPS digit task tests a particular grouping of labels and a specified way of using training subsets. The existence of a plausible per-pixel map gives evidence about that fit. It leaves open how the map or the test error would change under different training draws or different binary groupings.

The small gene-expression evaluations make the reported results concrete but place a limit on the claims that follow from them. The first leukemia test set has 34 examples, and both leukemia tasks are evaluated by reported counts of errors. A gene can help a fitted classifier because it is correlated with some useful part of the signal. A low count does not establish a biological role for that gene or establish that it would consistently be selected in independently drawn data. For medulloblastoma, the paper reports leave-one-out error and gives limited detail on how feature selection is organized within those fits. The account leaves uncertainty about how fully every selection decision was isolated from each omitted case.

The face curves support dimensionality reduction for the tested detector and image collection. The shape of those curves is tied to that detector, its representation, and the tested range of thresholds. The experiment gives no measured speed for the final reduced detector, so the degree to which dimensionality reduction changes the full scanning time remains unresolved.

More broadly, fitting a scale gives a measure of how much the corresponding coordinate matters to the classifier under the chosen kernel and criterion. If two inputs carry overlapping information, the search can reduce the influence of one while keeping the other. The synthetic linear task deliberately includes that kind of redundancy. Interpreting an individual scale as a property of the measurement alone would leave out its dependence on the other inputs, the fitted boundary, and the chosen representation.

### What came after

The later citing work identified here is a 2021 study of true few-shot learning. Its title places the question of learning with few examples in another setting. Chapelle and colleagues’ paper is relevant to that broader question because it separates fitting a predictor from choosing the settings under which it should be fitted or evaluated. A procedure can have very few examples available for fitting while still drawing on additional labeled data to select its settings. In the SVM paper, the training-set criteria are a way to address that dependence on validation data. [True Few-Shot Learning](https://md.research.elamur.ai/free/en/papers/perez-2021-true-few-shot-learning-language/)

The citation establishes a connection to the earlier work. The specific role of that citation is unspecified, so a direct transfer of the gradient method or a particular leave-one-out criterion cannot be established. The comparison supported by the topics of the two works is about the information used to make a selection decision. Chapelle and colleagues make that decision an explicit part of the procedure and evaluate the resulting classifiers on separate tests where the experiment provides them. Their distinction between the quality of a selection rule and the accuracy of its error estimates remains the relevant connection.

## Cite

Cite as Olivier Chapelle, Vladimir N. Vapnik, Olivier Bousquet and Sayan Mukherjee. 2002. Choosing Multiple Parameters for Support Vector Machines. Machine Learning.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1023/a:1012450327387](https://doi.org/10.1023/a:1012450327387)

```bibtex
@inproceedings{chapelle2002choosing,
  title = {{Choosing Multiple Parameters for Support Vector Machines}},
  author = {Olivier Chapelle, Vladimir N. Vapnik, Olivier Bousquet and Sayan Mukherjee},
  booktitle = {Machine Learning},
  year = {2002},
  doi = {10.1023/a:1012450327387},
  url = {https://doi.org/10.1023/a:1012450327387}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
