How does the Crammer-Singer multi-class SVM formulation differ from One-vs-Rest?

Quick Overview

Asks how the Crammer-Singer multi-class SVM differs from training one binary SVM per class. Tests whether you can state the joint objective and its constraints, relate each training loss to the argmax prediction rule, and weigh training cost, parallelism and accuracy.

How does the Crammer-Singer multi-class SVM formulation differ from One-vs-Rest?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

Assume $K$ classes and a linear model with one weight vector $w_k$ per class, where prediction is $\arg\max_k w_k^\top x$. How does the Crammer-Singer multi-class SVM formulation differ from One-vs-Rest? ```hint Count the optimization problems Write down what is optimized in each approach, and ask whether the $K$ weight vectors ever interact during training. ``` ```hint Compare training with prediction Prediction takes an argmax over class scores. Ask which training objective actually constrains the gaps between those scores. ``` ### What a Strong Answer Covers - The Crammer-Singer objective and constraints, including how slack is assigned to each example. - How One-vs-Rest trains its classifiers, and the problems that follow from training them separately. - How each training objective relates to the argmax prediction rule. - Trade-offs in training cost, parallelism and accuracy, and how the choice appears in common libraries. ### Follow-up Questions - How does the Weston-Watkins multi-class SVM differ from Crammer-Singer? - Write the Crammer-Singer constraints as an unconstrained hinge loss. What is its subgradient? - How does One-vs-One compare with both, and which strategy does scikit-learn's kernel `SVC` use? - How would you make One-vs-Rest scores comparable across classes?

Overview: Asks how the Crammer-Singer multi-class SVM differs from training one binary SVM per class. Tests whether you can state the joint objective and its constraints, relate each training loss to the argmax prediction rule, and weigh training cost, parallelism and accuracy.

Nov 24, 2026
hardMachine Learning EngineerOtherMachine Learning
0
0

Assume KK classes and a linear model with one weight vector wkw_k per class, where prediction is arg⁡max⁡kwk⊤x\arg\max_k w_k^\top x.

How does the Crammer-Singer multi-class SVM formulation differ from One-vs-Rest?

What a Strong Answer Covers Guidance

  • The Crammer-Singer objective and constraints, including how slack is assigned to each example.
  • How One-vs-Rest trains its classifiers, and the problems that follow from training them separately.
  • How each training objective relates to the argmax prediction rule.
  • Trade-offs in training cost, parallelism and accuracy, and how the choice appears in common libraries.

Follow-up Questions Guidance

  • How does the Weston-Watkins multi-class SVM differ from Crammer-Singer?
  • Write the Crammer-Singer constraints as an unconstrained hinge loss. What is its subgradient?
  • How does One-vs-One compare with both, and which strategy does scikit-learn's kernel SVC use?
  • How would you make One-vs-Rest scores comparable across classes?