Ultraconservative Online Algorithms for Multiclass Problems
Paper · 2003 · Koby Crammer and Yoram Singer
Summary
An online classifier has to answer before it learns whether its answer was right. When several classes are possible, a wrong answer also raises a question about how much of the classifier should change. Suppose the correct class comes in behind several rivals but ahead of all the others. Which of those rivals should the learner adjust, and by how much? Crammer and Singer give a common answer to the first question. Their classifier keeps a vector, called a prototype, for each class and predicts whichever class scores highest on the current example. An ultraconservative update is confined to the correct class and rivals whose scores reach or exceed its score. The authors use that principle to build direct multiclass counterparts to several binary learning algorithms.
The simplest family adds a multiple of the current example to each participating prototype. The correct class receives a fixed increase, and the algorithm can divide a matching decrease among the eligible rivals in several ways. The authors bound the number of mistakes for this entire family under a separation assumption and analyze how the bound changes when a reference classifier falls short of a target margin. They also develop multiplicative updates and extend the Relaxed Online Maximum Margin Algorithm, or ROMMA, to multiclass prediction. With only two classes, the additive family gives the Perceptron, and the multiplicative construction provides a connection to Winnow.
The paper’s Margin Infused Relaxed Algorithm, or MIRA, chooses its update by minimizing the norm of the resulting prototypes under linear constraints. It can vary the size of the correction with the current score gap. For the basic rule, the authors bound the total size of the corrections and the number of errors beyond a specified severity. The version used in the experiments also learns from correct predictions with small leads. This positive margin requirement gives the authors a way to relate actual mistakes to corrections of appreciable size. They describe a fixed-point approach for computing the update and show how additive rules can use kernels and voting.
On the synthetic Chess-Board task and the natural datasets MNIST, USPS, and Letter, aggressive MIRA gave the lowest test error among the algorithms the authors ran under their shared protocol. After 3 passes through MNIST, it recorded 1.36% test error with 26,176 support patterns, compared with 1.68% and 7112 for the one-against-rest Perceptron. After 5 passes through Letter, the corresponding errors were 2.38% and 3.95%. The extra support patterns matter because a kernel classifier scores a new example using retained training patterns. The paper’s results therefore show both what the more flexible update gained in these tests and the size of the classifier that delivered that gain.
Deep dive: Ultraconservative Online Algorithms for Multiclass Problems
How ultraconservative online algorithms learn to distinguish many classes, and how MIRA trades a larger classifier for fewer test errors. · about 38 minutes to read
The problem and its context
A prediction before the answer is known
In the setting the authors study, each example has a feature vector and one correct label from a finite set. The learner sees the features first and must announce a label. It then receives the correct label and can use it to change how it answers future examples. The paper names character recognition, text classification, and medical analysis as settings that can be phrased as multiclass prediction. What matters for its analysis is that the learner sees a sequence of examples and gets feedback after each decision.
There are two distinct ways to judge the procedure. During learning, one can count the predictions the learner gets wrong before seeing their answers. This is the quantity addressed by the paper’s mistake bounds. One can also stop training and ask how frequently the resulting classifier mislabels a separate test set. This is the quantity reported in the empirical comparisons. A proof about the first depends on how well a chosen reference can separate the sequence. A measurement of the second depends on the test data and on the classifier the training procedure leaves behind.
The paper frames the difficulty as a balance between incorporating the latest evidence and preserving useful behavior acquired earlier. An example can expose a clearly inadequate decision rule. It can also sit near a boundary, so that a relatively small change would alter its outcome. An update that uses the same amount of movement in both situations has the virtue of simplicity. A rule with access to the actual scores can make a more selective decision about the extent of the correction.
For multiclass prediction, selectivity has another dimension. A single input produces a collection of competing scores. The learner may return only the highest-scoring label, but the remaining scores reveal which other classes would also beat the correct answer if the winner were removed. The authors use those scores to determine which prototypes are eligible for a correction. That makes the full ranking around the correct label relevant to training, even though prediction returns a single label.
Binary reductions and shared multiclass updates
One established approach in machine learning was to use a classifier designed for many classes, such as a decision tree or a neural network. The paper also describes output coding, a general way to express multiclass recognition through binary decisions. A familiar case is one-against-rest. Each binary classifier learns to distinguish a particular label from the combined set of alternatives. At prediction time, the confidence scores from these independently trained classifiers are compared.
A one-against-rest Perceptron and the authors’ direct multiclass Perceptron can therefore look alike at prediction time. Both can store one vector per label and produce a score for every class. Their training objectives lead to different updates. In one-against-rest, a binary learner applies its own rule to decide whether its designated label is present. In the direct approach, the score for the revealed label serves as the common reference for the other scores. A rival that already ranks below the correct class can be spared an additive correction, and the corrections given to participating classes are linked through constraints.
The binary Perceptron provides the starting point for the authors’ construction. It predicts from the sign of a dot product and adds or subtracts the current feature vector after an error. Recasting it as a pair of opposed prototypes makes one aspect of that movement explicit. The correct prototype approaches the example as the incorrect prototype moves away. Once there are several incorrect prototypes, the amount assigned to each one becomes a choice. The multiclass update rules exploit this freedom while retaining the distinction between promoting the true class and demoting its challengers.
The authors also discuss an earlier multiclass Perceptron known as Kesler’s construction. It converts the comparisons for one labeled example into a larger binary representation. When the authors express its updates in the original coordinates, they obtain a succession of pairwise corrections involving the true class. This supplies a precedent for the idea of correcting particular challengers. The new family gives the learner more ways to distribute a correction across them.
Norms, margins, and previous online methods
Several earlier lines of work shaped the design. Kivinen and Warmuth studied additive and multiplicative learning rules for regression whose update objectives combine a measure of change from the previous state with loss on the current example. In the account given by Crammer and Singer, that work emphasizes smooth losses. The multiclass classification setting here makes relative scores and their ordering central. Grove, Littlestone, and Schuurmans supplied a binary framework encompassing the Perceptron and Winnow, and Gentile developed an additive approach with decreasing learning rates.
The idea of favoring a small norm also has a batch counterpart in support vector machines. A batch support vector formulation uses linear inequalities to express desired separations and a quadratic objective to choose a separator. The paper describes sequential methods for solving such optimization problems, including Platt’s procedure for selecting a pair of training examples and changing their associated variables. Those methods proceed in steps over a sample. The online question posed by Crammer and Singer concerns the mistakes incurred while examples arrive and before their labels are available. Support-Vector Networks
Li and Long’s ROMMA brought a small-norm objective directly into binary online learning. It uses a constraint on the current example and a constraint involving the previous weight vector. The latter summarizes some information about the earlier examples in a single inequality. Its adaptive update gives Crammer and Singer a second route to a multiclass algorithm. Mesterharm’s Winnow-like multiclass work provides a related precedent on the multiplicative side. The authors’ purpose is to show how a shared restriction on the eligible classes can guide several such constructions, each with its own rule for the size or form of a change.
The method, step by step
From the feature vector to the error set
The learner stores its prototypes as rows of a matrix. A row is a vector of weights with a coordinate for every feature. To score an example, it multiplies the features by their corresponding weights and adds the products. A large score means that the example aligns with the prototype in the sense defined by this dot product. The prototypes are learned weights, so it is their relative scores that decide which label wins.
H(x) = arg maxᵣ (M[r] · x)
Here x is an input feature vector, M is the prototype matrix, and M[r] is the row for class r. The centered dot is the dot product. H(x) is the predicted class, and arg max returns an index attaining the maximum over the class indices r. The matrix has k rows for k classes and n columns for the n feature coordinates.
After the true label is known, the learner can ask how well that label did against its strongest challenger. The difference between their scores is the multiclass margin. It is positive when the true label is the unique winner, zero when another class shares its score at the top, and negative when a rival is ahead. A negative margin describes a failure of ranking and also records the size of the deficit.
margin(M, x, y) = M[y] · x − maxᵣ≠ᵧ (M[r] · x)
Here margin(M, x, y) is the margin of prototype matrix M on example x with true class y. M[y] is the true class’s prototype, M[r] is a competing prototype, and max takes the largest dot product over all class indices r different from y.
The error set keeps the identities of the rivals that contribute to the update decision. The margin gives the size of the gap to the highest rival, while the error set can contain several labels. The definition includes a tie with the correct class. An announced label still depends on how the prediction rule resolves a tie, which is why the set and the recorded correctness of the prediction are worth distinguishing.
E = {r ≠ y : M[r] · x ≥ M[y] · x}
Here E is the set of eligible rival labels, r ranges over classes other than the true label y, and M[r] · x and M[y] · x are their respective scores on x. The inequality ≥ includes equality. The ultraconservative condition says that a change requires a nonempty error set and that its eligible rows lie in this set together with the row for y. The aggressive rules use the same kind of comparison after lowering the true label’s score for the update decision.
An online round with a coupled multiclass update
The steps in order.
Sharing an additive correction
For the starting additive family, training begins with zero prototypes. If the round calls for an update, the current example is added to the true class prototype. Copies of the same example, scaled by coefficients whose total matches that addition, are subtracted from eligible rivals. The coefficients state how much responsibility each rival receives. They also make the update easy to analyze, because all row changes point along the same example vector.
M′[r] = M[r] + τᵣ x
Here M′[r] is the prototype for class r after the round, M[r] is its previous value, x is the current example, and τᵣ is the scalar coefficient for that row. A positive coefficient increases that row’s score on this example by a multiple of the example’s squared length. A negative coefficient decreases the score. A zero coefficient leaves the row as it was.
Σᵣ τᵣ = 0
Here Σᵣ adds over the class indices r, and τᵣ is the update coefficient for class r. The true class has coefficient 1, eligible rivals have coefficients at most 0, and all other classes have coefficient 0. The equality balances the total promotion against the total demotion. Since every coefficient multiplies the same vector, the changes summed over the rows cancel. The paper also expresses the upper bounds through δᵣ,ᵧ, which is 1 when class r equals the true class y and 0 otherwise.
Uniform, Max, and Prop are specific choices. Uniform divides the demotion equally across the error set. In the paper’s geometric illustration, the first prototype is the correct one, the second and third are eligible rivals, and the fourth already scores below the correct row. Uniform adds the example to the first row and subtracts half of it from each of the second and third. Max puts the entire demotion on a highest-scoring rival. Both procedures use the ordering of the scores to decide where movement is allowed. Prop also uses the size of each rival’s lead over the true label.
τᵣ = −[Bᵣ − Bᵧ]₊ / Σₛ [Bₛ − Bᵧ]₊ for r ≠ y
Here τᵣ is the Prop coefficient for an incorrect class r, y is the true class, and Bᵣ, Bᵧ, and Bₛ are the current scores for classes r, y, and s. The index s runs over the classes in the denominator. The notation [·]₊ means the positive part, so a score excess at or below zero contributes zero. The expression describes the allocation when the denominator is positive. If all eligible rivals only tie the true score, the unshifted formula has a zero denominator. The update specification would need a convention for that case. In the experiments, lowering the true label’s score gives an originally tied rival a positive excess.
If only one rival exists, there is no allocation to choose. The fixed promotion and the balancing restriction determine the entire change. Starting with opposed prototypes preserves their opposition, and the sign of the dot product with either one, interpreted for its label, gives the binary Perceptron decision. With more classes, the allocation can change subsequent predictions because each rival retains its own vector. Kesler’s construction makes pairwise corrections in succession, while the rules in this family can compute a single allocation from the current scores.
Why different additive rules share a bound
The authors compare the learner with a reference prototype matrix that could be chosen with access to the whole sequence. In the separable analysis, this reference has Euclidean norm 1 and gives the true label a positive lead over every rival on every example. For a matrix, the authors take the Euclidean norm of the vector formed by concatenating its rows. This is the Frobenius norm. They use the corresponding matrix inner product, which adds the dot products of pairs of corresponding rows.
One part of the proof measures progress toward the reference through this matrix inner product. The sign and balance restrictions turn the change in alignment into a weighted sum of the reference’s correct-versus-rival margins. Each weight is non-negative, and their sum is fixed on a correcting round. Every such round therefore adds at least the reference’s minimum margin to the alignment. The result holds even if the learner’s choice of which rival to emphasize changes from one round to the next.
The other part of the proof bounds the growth of the learner’s squared norm. Expanding the norm after an update gives a term involving the old scores and another involving the squares of the correction coefficients. The score term is nonpositive because any rival given a negative coefficient has a score at least as large as the true score. The squared coefficients have a common bound under the sign and balance restrictions. Together, these facts put a ceiling on growth per correction. The learner can move toward the reference only as fast as its increasing norm permits, and comparing those two quantities limits the number of mistakes.
m ≤ 2R² / γ²
Here m is the number of mistakes in the separable additive analysis, R is the largest Euclidean norm of an input vector in the sequence, and γ is the smallest multiclass margin achieved on that sequence by the unit-norm reference matrix. The squared radius and squared margin express that a given amount of separation is more informative when considered relative to the size of the examples. The bound applies to each of the fixed-promotion rules under the theorem’s assumptions.
A reference can still be informative when it fails to achieve a positive target margin everywhere. The paper measures its shortfall on each round. An easy example whose reference margin reaches the target adds nothing to the shortfall. A reference can incur a shortfall even when it predicts correctly, because the calculation also asks whether it classifies with the requested lead.
dₜ = max(0, γ − margin(M*, xₜ, yₜ))
Here dₜ is the shortfall at round t, γ is the chosen positive target margin, and M* is the unit-norm reference prototype matrix. The inputs to margin are that matrix, the round’s example xₜ, and its true label yₜ. The maximum with 0 keeps only deficiencies relative to the target.
D² = Σₜ dₜ²
Here D is the Euclidean norm of the sequence of shortfalls, dₜ is the shortfall at round t, and Σₜ adds over all rounds. The proof introduces a separate auxiliary coordinate for each example, so the reference in the expanded space can repair that example’s deficit through a coordinate that affects no other example. Before the online learner sees each example, its corresponding auxiliary coordinate has yet to receive a weight. Its current scores therefore agree with the scores in the original space. The transformation makes it possible to apply a separation argument while keeping the original prediction sequence.
m ≤ 2(R + D)² / γ²
Here m is the mistake count for the additive family, R is the maximum input norm, D is the aggregate shortfall of the reference, and γ is the positive target margin. This is the expression obtained in the appendix. The main theorem statement prints the expression without the leading factor 2, whereas the appendix ends with it. The analytical dependence on the input radius, shortfall and target margin is visible in both expressions.
Choosing an update by minimizing the new norm
MIRA changes how the amount of promotion is chosen. The true class’s coefficient may take any feasible value up to 1, including 0, and the rival coefficients still have to balance it. The rule chooses the coefficients that give the smallest squared norm of the updated prototype matrix. It optimizes the size of the resulting matrix. The existing prototypes enter the objective through their scores on the new example, and the common update direction is still that example.
minimize over τ Q(τ) = (A / 2) Σᵣ τᵣ² + Σᵣ Bᵣ τᵣ
Here τ is the vector of all class coefficients τᵣ, Q is the part of the squared-norm objective that depends on τ, and r ranges over the classes. A is the squared Euclidean norm of the current feature vector x, and Bᵣ is the old dot-product score of the prototype for r on x. The constraints are that the coefficients sum to 0, the coefficient for y is at most 1, and each other coefficient is at most 0. The factor 2 in the denominator comes from writing the objective as half the squared norm before expanding it. The contribution from the old matrix alone is constant in this minimization.
For a non-zero example, the positive quadratic term makes the objective strictly convex on the feasible set, giving a unique coefficient vector. An example of zero length leaves all prototypes unchanged under any of these additive updates. The coefficient formula involving division by A applies to the positive-length case.
MIRA’s optimization shows why its basic form respects the error set without an explicit membership constraint. Suppose a rival at or below the true score received a negative coefficient. Its share of the demotion could be removed, with an equal reduction in the true class’s promotion so that the coefficients still balance. The squared-coefficient contribution would fall, and the score term could not increase. This contradicts optimality. For the unshifted MIRA objective, the argument covers rivals tied with the true score as well as those strictly below it.
The same fact clarifies what happens on a clear win. Every rival has zero coefficient, so the balance restriction makes the true coefficient zero too. There is also a consequential tie case at initialization. If all prototypes start at zero and the basic, unshifted objective is used exactly as written, every score is equal and the minimizing coefficients are zero. With that initialization the procedure needs a source of asymmetry to start moving. A positive margin offset supplies one by assigning the true label a lower score for the purpose of the optimization.
Finding the common score threshold
The score-based expression for the solution makes MIRA easier to interpret. The optimal coefficients can all be expressed through a single threshold. Each coefficient is the value implied by that threshold, clipped at its own upper bound. The threshold is chosen so that the resulting coefficients add to zero.
τᵣ = min(θ* − Bᵣ / A, δᵧ,ᵣ)
Here τᵣ is the optimal coefficient of class r, θ* is the common threshold in normalized score units, Bᵣ is the current score for that class, and A is the squared length of the example. δᵧ,ᵣ equals 1 when r is the true label y and 0 otherwise. The min operation enforces the upper bound. The star on θ* marks the threshold that satisfies the balance constraint.
Σᵣ min(θ* − Bᵣ / A, δᵧ,ᵣ) = 0
Here the sum runs over the classes r, and each term is the coefficient determined by the common threshold θ*, the score Bᵣ, the squared length A, and the class-specific upper bound δᵧ,ᵣ. The paper describes binary search and a fixed-point computation for this scalar problem and presents the fixed-point approach as a convergent way to obtain an update. The reduction to a scalar matters because the coefficients must be feasible jointly. Selecting each coefficient in isolation would leave their required total unaccounted for.
B′ᵣ = min(Aθ*, Bᵣ + Aδᵧ,ᵣ)
Here B′ᵣ is the score of class r on the same example after the update, Aθ* is the common score ceiling, Bᵣ is the old score, and Aδᵧ,ᵣ gives the largest allowed increase for that class. A rival below the ceiling can retain its original score. An affected rival descends to the ceiling. The true class rises as allowed by the same solution. If its increase is capped, its attainable score can remain below the ceiling. As a consequence, solving the problem is a way to make progress on the current example within the permitted update size. It carries no guarantee of a strict win immediately after every individual correction.
What changes in binary MIRA
With two opposite rows, the variable part of the update reduces to a choice of one step size. Write the two true-label possibilities as signs, and represent the first prototype by a weight vector with the other prototype its negative. An example’s label times the signed score gives the signed margin in this representation. Negative values call for a correction whose size depends on that deficit and the squared length of the example.
w′ = w + τ y x
Here w is the binary weight vector before the update and w′ is its new value. The scalar τ is the step size, y is the true label in {−1, +1}, and x is the feature vector. The label sign determines whether the vector is added or subtracted.
τ = G(−y(w · x) / ‖x‖₂²)
Here τ is the binary MIRA coefficient, w · x is the signed score, and y supplies the direction in which a score counts as correct. The denominator ‖x‖₂² is the squared Euclidean length of x. The function G clips its argument to the interval from 0 to 1. Thus a small negative signed margin gives a small positive step, and a sufficiently large normalized deficit gives the maximum step. In the paper’s corresponding Perceptron expression, a step function replaces this gradual increase. Both rules use the same direction of movement.
Learning from a lead that is too small
A variable correction exposes a weakness in the mistake argument. The fixed additive family can charge each mistake a full true-class promotion. MIRA sometimes makes arbitrarily small promotions. Accumulating such promotions can yield a useful bound on total movement while saying little about the number of times the learner picked a rival that led by a tiny amount.
Under the separation assumptions, the authors bound the cumulative sum of absolute coefficients. They then use a lower bound on the promotion required when the margin is sufficiently negative. A round with a substantial miss consumes a corresponding portion of the total allowed movement. That argument provides a count of sufficiently severe errors.
Σₜ ‖τᵗ‖₁ ≤ 4R² / γ²
Here τᵗ is MIRA’s coefficient vector on round t, ‖τᵗ‖₁ is the sum of the absolute values of its entries, and Σₜ sums over all rounds. R is the maximum Euclidean length of the examples and γ is the positive minimum margin of a reference matrix whose Frobenius norm is 1. Because the correct class’s promotion balances all demotions, the norm on the left records both sides of the movement.
nᵦ ≤ 4R⁴ / (βγ²)
Here nᵦ is the number of rounds whose current margin is at most −β. The severity threshold β is positive and at most 2R², R is the maximum input length, and γ is the reference margin. Such a round has true-class promotion at least β/(2R²) in the paper’s analysis. As β approaches zero, the count bound grows without limit. That is the obstacle to using the result for all mistakes of the basic algorithm.
The aggressive formulation adds a positive margin requirement. It subtracts a constant from the true class’s score before choosing the coefficients. To the update solver, a correct answer with a narrow lead can now look like an error. Rivals that remain below even the adjusted correct score still receive zero coefficients. The same allocation mechanism consequently applies to clear errors, ambiguous decisions, and correct decisions whose lead falls short of the desired margin.
B̃ᵣ = Bᵣ − βδᵧ,ᵣ
Here B̃ᵣ is the score used in the aggressive optimization for class r, Bᵣ is its actual prediction score, β is the requested margin, and δᵧ,ᵣ equals 1 only for the true class y. The learner can make its online prediction before receiving y because it uses the original scores for prediction. The offset is available after the label arrives.
Every mistake with the true class already behind has an adjusted deficit of at least the offset. The authors use this observation to transfer the severe-error analysis to aggressive MIRA. The derivation in the discussion retains the factor 4 in the displayed bound for severe errors, while the following corollary prints a bound without that factor. Its bound is finite for a positive β. The operational point is that increasing the requested lead broadens the set of rounds on which the rule can learn, including rounds that were already correct.
For the binary version, the same change moves the clipping rule’s input by half the multiclass offset in the signed-score numerator. This happens because the two prototypes are opposed. The difference between their scores is twice the signed score. In both the binary and multiclass versions, a positive offset can initiate a correction at a tie, even when the unshifted coefficient would vanish.
Kernels and voting
An additive prototype can be represented as a weighted sum of the examples used to change it. This representation also gives an alternative way to score a new input. The learner takes the dot product of that input with the stored examples and combines the results using the corresponding class coefficients. Because the method relies on these inner products, it can replace them with a kernel that supplies inner products in an implicit feature space.
M[r] · x = Σₜ τᵣᵗ K(xₜ, x)
Here M[r] · x denotes the score of class r in the feature space, Σₜ sums over training rounds, and τᵣᵗ is the coefficient assigned to class r on round t. K(xₜ, x) is the kernel evaluation between the training example xₜ and the input being scored, x. The score representation starts from zero prototypes. The squared example norm used by MIRA corresponds to evaluating the kernel on the example paired with itself.
This form explains why the empirical paper tracks support patterns. An example that has received an update can contribute when the classifier scores a future input. An increased number of retained patterns can mean more kernel evaluations and more state to store. The authors also note that voting schemes can combine predictions associated with successive stages of learning. Their tables use the final prototypes after the relevant training pass, so the reported results give the performance of that last state.
Multiplication with local or global normalization
The multiplicative family keeps non-negative weights. It applies the same idea of choosing class coefficients under sign, support, and balance restrictions, but uses each coefficient inside an exponential multiplier on the coordinates of the corresponding row. The feature coordinate determines the direction and size of the change to a weight. Positive and negative feature values can have opposite effects even under the same class coefficient.
M′[r, i] = M[r, i] exp(ητᵣxᵢ) / Zᵣ
Here M′[r, i] and M[r, i] are the new and old weights for feature coordinate i in class row r. exp is the exponential, η is a positive learning-rate parameter, τᵣ is the class coefficient, and xᵢ is the current example’s feature value. In the row-normalized version, Zᵣ is the sum of the unnormalized updated weights in row r. The other version uses a single normalization factor over the whole matrix in place of Zᵣ.
With row normalization, a row that receives zero coefficient retains its old distribution of weights and its old scale. With whole-matrix normalization, the same common positive rescaling acts on every row. It preserves the ranking of scores that would result from the unnormalized update. This qualification matters when interpreting ultraconservativeness as a property of the decision rule. A row can change numerically through the shared rescaling even though it receives no class-specific correction.
For the analysis, the input coordinates have absolute values at most 1. The reference matrix has the same type of normalization as the learner, and it separates the sequence with a positive margin. The proof for the row-normalized version adds a relative entropy for each row, measuring how far the current weights are from the reference distribution. The margin makes one term in the change of relative entropy favorable on a correcting round. The normalization terms also enter the calculation. The zero sum of the class coefficients cancels a score-dependent contribution, and an appropriate learning rate gives a bound on the total number of errors.
m = O(k² log(n) / γ²)
Here m is the mistake count bounded in order of growth for the row-normalized version, k is the number of class rows, and n is the number of input features. log is the logarithm and γ is the positive margin of the reference whose rows each have absolute weights summing to 1. The notation O gives the stated order of the upper bound for a suitable learning rate.
m = O((log(n) + log(k)) / γ²)
Here m is the mistake count for the whole-matrix version, n counts features, k counts classes, and log is the logarithm. In this expression γ is the reference margin when the absolute weights of the entire matrix sum to 1. The definitions of γ therefore differ across the two bounds. The paper compares the variants by rescaling to a common reference norm. Under that comparison the whole-matrix bound has an additional logarithmic term in the number of classes. The multiplicative construction is related to Winnow in the binary setting, where the space for distributing demotion among rivals disappears.
Extending the ROMMA update
Binary ROMMA asks for a small-norm separator that scores the newly misclassified example with a margin of at least 1 and maintains a specified inner product with the old separator. The old separator supplies a single inequality that stands in for information about the preceding examples. In moving to multiclass prediction, an obvious analogue of the current-example condition is to require a margin of 1 against every rival. The authors point out that solving that full problem can produce a change outside the desired set of rows.
Their multiclass ROMMA family instead chooses a weighted average of the rival constraints. The weights on eligible rivals are non-negative in the average and add to 1. The same constraint can be written with the additive family’s coefficients, where the true coefficient is 1 and the selected rival coefficients are negative. The average is a relaxation of the separate constraints. Achieving the requisite margin in that average leaves open the margin against any particular rival, especially one receiving zero weight.
Σᵣ τᵣᵗ (M[r] · xₜ) ≥ 1
Here M is the candidate new prototype matrix, M[r] is its row for label r, and xₜ is the example on round t. τᵣᵗ is the chosen coefficient for class r on that round, and the sum runs over all class rows. The coefficient of the true label is 1, the participating rival coefficients are nonpositive and sum to −1, and coefficients outside the true label and error set are zero. The right-hand side 1 is the desired weighted margin.
M · Mᵗ ≥ ‖Mᵗ‖₂²
Here M is again the candidate matrix and Mᵗ is the learner’s matrix before round t is incorporated. The matrix dot product adds the rowwise inner products, and ‖Mᵗ‖₂² is the squared Frobenius norm of the old matrix. The algorithm minimizes the norm of M subject to this inequality and the weighted-margin inequality. The constraint involving the old matrix summarizes what the learner carries into the round.
Under the separable assumptions used in the proof, the constraints are active at the optimum on the appropriate correcting rounds. This gives a solution made up of the previous matrix and a multiple of the direction defined by the current example’s coefficients. The direction has non-zero rows only for the correct class and selected rivals. The other part of the update acts as a shared positive scaling, preserving the ranking of the class scores. The paper accordingly treats this update as ultraconservative in its effect on prediction.
m ≤ 2R²‖M*‖₂²
Here m is the number of mistakes in the multiclass ROMMA analysis, R is the greatest Euclidean norm among the input examples, and ‖M*‖₂² is the squared Frobenius norm of a reference matrix whose margin on every example is at least 1. The proof uses the distance the current matrix must travel to reach the new weighted-margin boundary. Every mistake requires a minimum increase in squared norm, and the feasible reference bounds that norm from above. This is a different use of the norm from the fixed additive proof, where norm growth gives an upper limit on how far alignment with the reference could have advanced.
Experiments and results
The datasets and evaluation procedure
Chess-Board is the synthetic task. Examples were sampled uniformly from the square with both feature coordinates in [0, 1]. An 8 × 8 grid divided that domain into 64 equally sized regions. A region’s label was computed from its row and column indices by adding them, taking the remainder modulo 8, and adding 1. The same class recurs at separated places in the square. The training and test sets each contained 10,000 examples. Each example had 2 attributes and one of 8 labels.
The natural datasets span different feature dimensions and numbers of labels. MNIST had 60,000 training examples and 10,000 test examples, with 784 attributes and 10 classes. USPS had 7,291 training examples and 2,007 test examples, with 256 attributes and 10 classes. Letter had 16,000 training examples and 4,000 test examples, with 16 attributes and 26 classes. These counts describe the particular splits used to train and evaluate the classifiers.
The main comparison used a one-against-rest Perceptron as the baseline. Each of its binary components learned a separate distinction, and the largest of the resulting scores supplied the label. Uniform, Max, and Prop shared the authors’ fixed-promotion additive framework. They differed in the distribution of demotion. Aggressive MIRA was the fifth learner in this comparison. The paper used an aggressive setting of β = 0.01 for the main runs, letting a small lead trigger training. This setting gives the fixed-promotion alternatives access to low-margin corrections as well.
Every pass presented the training examples one at a time. An epoch was one such pass. After a pass, the classifier made predictions on the test examples with the prototypes then available. The authors reported the percentage of incorrect test labels and the number of support patterns. They used Mercer kernels, kept the kernel fixed within each dataset for their own comparisons, and did no kernel-parameter tuning. Their MNIST and USPS tables identify homogeneous polynomial kernels for the main comparison, and Letter used a Gaussian kernel. The paper reports repeated experiments and notes that the repetition setup varies with the dataset.
The paper also brings in previously reported ALMA and aggressive ROMMA figures. Those classifiers used binary algorithms through one-against-rest. Their entries are informative when comparing the range of accuracy and sparsity reported by different online methods. Their preprocessing and kernels differ from those in the main comparison, which matters when interpreting the ranking.
Chess-Board and MNIST
On the first Chess-Board pass, aggressive MIRA recorded a test error of 4.3%. The corresponding Perceptron error was 5.6%. Uniform, Max, and Prop each had a higher test error than the Perceptron on that pass. The support counts were 7229 for MIRA and 1891 for the Perceptron. After 3 passes, MIRA’s test error was 3.9%, with 7260 support patterns. Uniform and the Perceptron each recorded 4.7% test error at that checkpoint. The subsequent MIRA entries show 4.0% at epochs 4 and 5, so the smallest error in the displayed sequence occurs before the last reported pass.
MNIST shows both the accuracy advantage and the sparsity cost in a larger training set. After the first pass, the errors were 1.45% for MIRA and 1.83% for the Perceptron. MIRA then had 20,162 support patterns, against 5299 for the Perceptron and 2726 for Uniform. After the third pass, Uniform achieved a lower error than the Perceptron while using fewer supports. Max and Prop remained above the Perceptron’s test error.
MNIST test error after 3 training epochs
MIRA has the smallest test error among the learners run under the shared protocol.
The numbers
| System or setting | error % |
|---|---|
| One-against-rest Perceptron | 1.68 |
| Uniform | 1.62 |
| Max | 1.89 |
| Prop | 1.85 |
| MIRA (this paper) | 1.36 |
At that third-pass checkpoint, MIRA used 26,176 MNIST support patterns and the Perceptron used 7112. Each of the fixed-promotion direct multiclass learners remained below the Perceptron’s support count. Uniform, in particular, had 3458 patterns. Thus the method with the lowest error and the method with the strongest sparsity result among these particular settings serve different operating points.
The outside MNIST results place aggressive ROMMA at 1.67% test error with 58,583 support patterns after 3 epochs. The listed ALMA setting has 1.45% test error with 14,598 patterns at the same pass count. Aggressive ROMMA used a non-homogeneous polynomial kernel of degree four. ALMA used a non-homogeneous polynomial kernel of degree six. Those outside runs normalized inputs to have a maximum absolute coordinate of 1. The error and support counts show where the runs sit relative to one another. The kernel and preprocessing changes leave several possible reasons for the differences.
USPS and Letter
On USPS, MIRA recorded 4.78% test error after its first training pass, with 3242 support patterns. The Perceptron recorded 5.93% error with 936 patterns. MIRA’s test error reached 4.63% by the third epoch and stayed at that value at the fourth, while its support count continued increasing. The fifth-pass comparison shows a persistent error advantage for MIRA over the other learners in the shared experiment.
USPS test error after 5 training epochs
MIRA leads the shared comparison while all fixed multiclass allocations have higher error than the Perceptron.
The numbers
| System or setting | error % |
|---|---|
| One-against-rest Perceptron | 4.83 |
| Uniform | 5.43 |
| Max | 5.38 |
| Prop | 5.43 |
| MIRA (this paper) | 4.58 |
The fifth-pass support counts on USPS were 4726 for MIRA and 1281 for the Perceptron. The counts for Uniform, Max, and Prop were 621, 647, and 615, respectively. For its USPS entries, ALMA uses a Gaussian kernel whose standard deviation is 3.5. The listed ALMA rows have results through epoch 3, when the test errors were 4.85% and 4.90% for the two settings. Comparing them at epoch 3 matches the number of passes. The main comparison’s kernel is still different.
For Letter, the error advantage was already visible after the first pass, with MIRA at 3.68% test error and the Perceptron at 7.45%. Their support counts at that point were 8184 and 4215. Both recorded lower errors after further passes. Uniform began with lower error than the Perceptron in this dataset, while its later entries were higher than the corresponding Perceptron entries. This change in their order shows why an epoch count is part of the experimental setting.
Letter test error after 5 training epochs
MIRA has the lowest error at the final reported checkpoint for the shared comparison.
The numbers
| System or setting | error % |
|---|---|
| One-against-rest Perceptron | 3.95 |
| Uniform | 4.28 |
| Max | 4.73 |
| Prop | 4.45 |
| MIRA (this paper) | 2.38 |
The fifth-pass Letter entry for MIRA has 19,701 support patterns. The Perceptron has 7359, and Uniform has 3432. The ALMA comparison uses a poly-Gaussian kernel, and its Letter test error is 3.27% after the third pass, with 13,673 support patterns. At that pass, MIRA has 2.70% error with 14,929 support patterns. The pattern across these results is that MIRA’s accuracy is accompanied by a relatively large set of examples contributing to its predictions. The support counts are the paper’s evidence for that cost.
What the ablations show
The paper gives no component-by-component ablation of MIRA. Its closest controlled comparison is between Uniform, Max, and Prop, which change the allocation of demotion inside a common update family. The correct class receives the same fixed promotion in all three. The scores determine which rivals can participate. Their differences are whether the learner spreads the demotion evenly, concentrates it on a leading rival, or weights it by positive score excess. They therefore probe a specific freedom left open by the shared guarantee.
The comparison shows that a common theoretical upper bound allows materially different behavior. On MNIST after 3 epochs, Uniform achieves 1.62% test error, with Max at 1.89% and Prop at 1.85%. Chess-Board also favors Uniform among these rules at the same checkpoint. USPS after 5 epochs gives Max the smallest error of the three. On Letter the first-pass Uniform error is lower than those of Max and Prop, and the ordering remains favorable to Uniform at the fifth pass. These observations show that score-proportional weighting gives no consistent advantage in these experiments and that the strongest of the fixed allocations can depend on the dataset and checkpoint.
The contrast between those rules and the Perceptron addresses a second question. A jointly updated multiclass classifier can achieve good sparsity by making a targeted correction to the current ranking. At the third-pass MNIST checkpoint, Uniform shows that this smaller representation can coexist with a lower test error than one-against-rest. The USPS entries show a different outcome. The fixed-promotion rules keep fewer patterns, with higher errors than the Perceptron at the fifth pass. A shared error set determines who can move, and that restriction alone does not determine the resulting accuracy.
The MIRA comparisons introduce a more flexible total correction and an optimization criterion for allocating it. The positive-margin setting is shared with the main alternatives, so the test does compare MIRA with several learners that also get a chance to update on small correct leads. MIRA nonetheless tends to retain far more patterns. The experiment establishes the behavior of the complete aggressive MIRA update under this protocol. An isolation experiment varying the norm objective while holding the allocation and total promotion constant would answer a different question about how much each change contributes.
The paper’s relative plots show changes in both test error and updates after the first and third passes, each measured against the corresponding Perceptron baseline. The authors also plot MNIST methods according to test error and update count normalized by the Perceptron values. These views make it possible to compare accuracy and sparsity without equating them. They also show that additional passes can improve an already sparse algorithm’s error. Uniform’s third-pass result on MNIST is an example, as is the rise in retained patterns for MIRA between its first and third passes.
The formal margin analysis gives another kind of comparison. The basic MIRA rule can take a very small step on a very small negative margin. The aggressive rule shifts the point at which the solver starts to act. The proof explains why this gives a way to charge a mistake against the allowed total correction. It also suggests why more rounds may produce non-zero updates. The experiments use a single stated positive margin setting, so they show the outcome at that setting. They supply no response curve across values of the margin offset.
Finally, the comparison of the multiplicative normalizations is analytical. A global unit norm and a unit norm for each row give different numerical meanings to a unit-normalized reference margin. The paper puts the two bounds on comparable scales before discussing their difference. This controlled comparison concerns worst-case guarantees under assumptions on coordinate size and separation. The experimental sections chiefly evaluate the additive rules, so the normalization analysis does not give a measured choice between multiplicative variants.
Limitations
Limits identified by the authors
The authors describe their experiments as illustrative. The main runs hold kernels fixed within datasets and leave their parameters untuned. The outside results for ALMA and ROMMA use different kernels or preprocessing. The authors explicitly allow that these differences could account for differences in measured performance. Their accuracy and support-count plots are therefore most directly interpretable as records of particular runs, with stronger control over the comparison of the algorithms the authors tested together.
The authors identify small negative margins as a weakness of basic MIRA. An error that requires almost no movement of the prototypes places almost no demand on the total update bound. The theorem on severe errors consequently supplies useful control over one part of the mistake sequence. The aggressive rule addresses this difficulty by shifting the margin in the update calculation, at the price of more frequent learning and a potentially less sparse classifier.
The paper also names two extensions whose design remains open. One is imposing a MIRA-like optimization on the multiplicative family. The other is learning multiple prototypes for each class under an analogous restriction on updates. The latter would matter when examples with the same label occupy several distinct directions in feature space. In that case, the learner would have to decide which prototypes within a class take part as well as which classes are eligible. The paper’s update and its proofs are built around one score-producing row per class.
Limits of the setup and the guarantees
The mistake bounds depend on reference margins and input sizes in the representations analyzed. A minimum reference margin summarizes an entire sequence through its hardest example for that reference. A small value can make the bound large. The additive nonseparable analysis gives a way to use a reference whose margins sometimes fall short, but its shortfall is measured relative to a target and can accumulate across the sequence. The theory gives conditional guarantees in these terms. The experimental error percentages come from applying final prototypes to particular test splits.
The scope of the nonseparable result also matters. The explicit shortfall argument applies to the fixed-promotion additive family. The MIRA count arguments and the MC-ROMMA guarantee presented in the paper use their respective separation assumptions. The multiplicative theorem likewise assumes a positive sequence-wide margin with a suitable normalization. These results belong to a common framework, with different hypotheses and quantities bounded for its different members.
Tie handling deserves attention when implementing or interpreting the procedures. The formal error set includes equality, whereas the optimization for basic MIRA gives a zero coefficient to a rival tied at the true score. As a consequence, a tie that the prediction rule resolves in favor of a rival can count as a classification error without producing the kind of non-zero correction used in the basic MIRA margin argument. The additive Prop formula has its own all-ties issue through the denominator. The positive offset in the experiments changes how those rounds are presented to the update rules.
Support counts quantify sparsity. Training time, prediction latency, and memory consumption depend additionally on the kernel evaluation and how examples and coefficients are stored. The paper’s experimental measurements supply test error and support counts for the comparison, so the precise runtime cost of the different classifiers is unmeasured there. Repeated passes also mean that an update can revisit an example already contributing to the classifier. The count of retained patterns conveys a different cost from elapsed work over the full training sequence.
The results also leave open how the comparison would change under voting, which the paper discusses but omits from the reported runs. The authors use the last prototypes after each pass, and the appendix notes a report of better ALMA results with voting. An evaluation that combines successive classifiers would change the prediction procedure and can change the accuracy and storage tradeoff. Similarly, the tables supply no uncertainty intervals for individual entries, so small gaps are best read as observed differences at the stated checkpoint.
What came after
The later citing work reaches tasks where a prediction can have more internal structure than a class label. In dependency parsing, for example, the alternatives are trees relating words to one another. This makes the paper’s distinction between finding a winner and deciding which competitors should drive learning relevant in a different setting. A parser has to search for a high-scoring tree as part of prediction. The class list in the original prototype formulation can be scored by visiting its rows, while a structured output can call for a search procedure to produce the competitors under consideration.
Online Large-Margin Training of Dependency Parsers brings the two ingredients named by Crammer and Singer, online updates and margins, into parser training. The concrete change of task is from promoting a labeled class against rivals to training a predictor whose alternatives are parses. The earlier paper gives a way to understand the role of a lead between competing scores. The later work’s subject is how that idea enters training when the decision describes the dependencies for a sentence. Online Large-Margin Training of Dependency Parsers
Non-Projective Dependency Parsing using Spanning Tree Algorithms takes up the search side of the parsing problem. It treats non-projective dependency prediction through spanning tree algorithms. For the connection to online multiclass learning, a spanning tree is the kind of candidate that can compete with the intended answer as a whole. This gives a concrete setting in which even locating a leading rival is a substantive algorithmic step. Non-Projective Dependency Parsing using Spanning Tree Algorithms
Online Learning of Approximate Dependency Parsing Algorithms puts the interaction between online learning and approximate parsing at the center. Crammer and Singer’s presentation can form an error set directly from the scores of the available classes. The subject of the later work raises the analogous question when prediction itself is approximate. Training has to work with the results the parsing algorithm can deliver, and the choice of search procedure becomes relevant to which competing answers the learner encounters. Online Learning of Approximate Dependency Parsing Algorithms
Other citing parsing papers address different parts of the resulting system. Simple Semi-supervised Dependency Parsing takes up the use of supervision in building a dependency parser, extending the setting beyond the fully labeled rounds that define the original paper’s analysis. Multilingual Dependency Analysis with a Two-Stage Discriminative Parser applies a two-stage discriminative setup to multilingual dependency analysis. Both concern how a dependency predictor is built, with the respective emphasis on supervision and on the organization of the parser. Their relationship to the original framework is clearest at the level of training a scorer that must prefer an intended analysis to alternative analyses. Simple Semi-supervised Dependency Parsing and Multilingual Dependency Analysis with a Two-Stage Discriminative Parser
The same family of questions appears in machine translation, where a prediction can be an entire proposed translation. Online Large-Margin Training of Syntactic and Structural Translation Features applies online large-margin training to those types of features. Its focus is the use of syntactic and structural information in a translation scorer. Relative scores are again central, with the features applied to translation hypotheses. Tuning as Ranking takes ranking as the organizing problem for tuning, emphasizing the order assigned to candidates. Crammer and Singer’s margin is a particular way to express separation in such an ordering, between the intended answer and its strongest rival. Online Large-Margin Training of Syntactic and Structural Translation Features and Tuning as Ranking
Learning with Compositional Semantics as Structural Inference for Subsentential Sentiment Analysis carries the citing connection into sentiment and emotion. It frames subsentential sentiment as structural inference using compositional semantics. The relevant extension in the prediction task is that local judgments belong to a larger analysis. That makes it possible for alternatives to differ in multiple connected decisions, which is a broader setting for competing scores than the choice among individual class prototypes. Learning with Compositional Semantics as Structural Inference for Subsentential Sentiment Analysis
These citing works illustrate different roles for the original paper’s question about competitors. In parsing, the search procedure helps determine which alternative structures can compete in training. In translation, feature design and ranking help determine how competing hypotheses are ordered. In sentiment inference, the alternatives can describe how local decisions fit together. The original paper’s formal guarantees apply to the particular updates and assumptions it studies. Its distinction between the rule that scores an answer and the rule that selects and corrects its challengers provides a way to read these later problems in common terms.
Cite
Cite as Koby Crammer and Yoram Singer. 2003. Ultraconservative Online Algorithms for Multiclass Problems. JMLR 3:951–991.
@inproceedings{crammer2003ultraconservative,
title = {{Ultraconservative Online Algorithms for Multiclass Problems}},
author = {Koby Crammer and Yoram Singer},
booktitle = {JMLR 3:951–991},
year = {2003},
url = {https://www.jmlr.org/papers/v3/crammer03a.html}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/crammer-2003-ultraconservative-online-algorithms-multiclass-problems/