Coverage
What the software covers
Chapter-by-chapter status of the thesis in smo-solverand optimized-svm. Of 28 items,20 are implemented, 4 partly and 1 planned; the remaining 3 are theory that the code builds on.
ImplementedPartlyPlannedTheory
Training problems (Chapters 2–5)
| Sec. | Topic | Status | In the software |
|---|---|---|---|
| 2–3 | General training problem, Fenchel duality, representer theorem | Theory | Underlies the generic separable-quadratic dual that smo-solver solves; losses are described as loss terms in optimized-svm. |
| 4.1.1 | Support vector classification (hinge loss) | Implemented | Exact hinge (δ = 0) and quadratically smoothed hinge; sample and class weights. smo-solver: solve_classification; optimized-svm: SmoothSVC. |
| 4.1.2 | Maximal margin classifier | Implemented | MaximalMarginLoss and loss="hard_margin" in SmoothSVC/OptimizedSVC (optimized-svm 0.6.0): direct constrained QP with feasibility and KKT checks, no finite soft-margin approximation. Active-set hypergradient for kernel scalings; positive λ leaves predictions unchanged. Dense solver for moderate n; interactive hard/soft comparison on Explore. |
| 4.1.3 | Logistic-regression SVM | Implemented | LogisticLoss and loss="logistic" in optimized-svm, with predict_proba. Trained by Newton's method only: no SMO, dense solution, so best for moderate n. The home-page demo trains it in the browser (WebAssembly, Newton). |
| 4.2.1 | Least-squares SVM | Implemented | smo-solver: solve_least_squares; optimized-svm: SquaredLoss (closed-form reference in the tests). |
| 4.2.2 | ε-support vector regression | Implemented | Two loss terms per sample sharing one kernel row; exact and smoothed. |
| 4.2.3 | Hard ε-SVR | Implemented | HardEpsilonInsensitiveLoss and loss="hard_epsilon_insensitive" in SmoothSVR/OptimizedSVR (optimized-svm 0.6.0): minimum RKHS norm subject to |f(xᵢ) − yᵢ| ≤ εᵢ. Per-sample tolerances in the low-level API, scalar ε in estimators; infeasible constraints raise an error. Active-set kernel/ε gradients are local to a stable support set. Examples on Explore. |
| 4.4 | Smooth approximations of the maximum function | Implemented | Degrees 2, 3 and 6 in optimized-svm (Newton and hypergradient); degree 2 is solved by SMO. |
| 5.1 | Multi-class classification | Partly | Soft-max formulation (Prop. 5.1) as multi_class="softmax" in SmoothSVC/OptimizedSVC: one joint multinomial model with common hyperparameters, Newton training and exact hypergradient (dense systems, for r·n up to a few thousand; released in optimized-svm 0.5.0; covariance-root SPD Newton/adjoint solves since 0.6.0, without kernel jitter). One-vs-rest with separate hyperparameters per class remains the default. The simplified formulation (Prop. 5.2) is not implemented. |
| 5.2 | ν-support vector machines | Implemented | 1-norm constraint on the dual variables (max_asum), solved by SMO and Newton; also in the hypergradient. |
| 5.3 | Subspace SVM | Partly | Experimental: Newton training in the span of m basis points and exact hypergradient (n_basis in the estimators, basis re-selected during the optimization). Speed-up shown for fits with fixed hyperparameters on large regression problems with wide kernels; in complete hyperparameter optimizations no gain without loss of accuracy so far. |
Solution methods (Chapters 6–8)
| Sec. | Topic | Status | In the software |
|---|---|---|---|
| 6 | Finite-dimensional reformulations | Theory | The Newton method works on the formulation of Sec. 6.3 / 8.4. |
| 7.1–7.5, 7.8 | Decomposition framework and convergence | Theory | Basis of the SMO implementation. |
| 7.7 | Working set selection | Implemented | Maximal violating pair, second-order rules with and without step bounds, one- and two-sided search. Optional jointly solved blocks of 2–64 variables (default 2, smo-solver 0.2.0); matching regression copies can reduce zig-zagging at an active norm bound. Benchmarks compare actual accuracy and runtime, including ordinary problems where larger blocks are slower. |
| 7.9 | Implementation of SMO | Implemented | Rust, LRU kernel-row cache, permuted active set, AVX2 loops with run-time detection. Speed comparable to LIBSVM. |
| 7.10 | Shrinking | Implemented | Implemented with the threshold rule of the thesis; parameter and stopping studies tune the defaults (exponent 1 and a minimum removed fraction of 0.1). See Benchmarks. |
| 7.6 | Bound-aware violation measure | Implemented | Selectable in Rust and Python as stopping="bound_aware" (smo-solver 0.1.2); studies found no advantage over a larger ordinary tolerance. |
| 8.2–8.3 | Gradient descent and preconditioned gradient descent | Implemented | Implemented for the study only (benchmarks/primal_first_order.py in optimized-svm), not in the library: far slower than SMO and Newton's method (preconditioned GD needs about 3·10⁵ steps for distance 10⁻³ where SMO needs about 10⁴; plain GD hardly moves). Newton's method is used for the primal problem. |
| 8.4 | Newton's method for the primal problem | Implemented | Semismooth Newton with line search after rough SMO: tolerance 0.3 or a budget of five outer updates per loss term, followed by Newton refinement. Norm-constraint activity is rechecked after Newton, so a projected warm start cannot determine the final branch incorrectly (corrected in optimized-svm 0.6.0). |
Hyperparameter optimization (Chapter 9)
| Sec. | Topic | Status | In the software |
|---|---|---|---|
| 9.1–9.2 | Bilevel formulation and implicit-function hypergradient | Implemented | One adjoint linear system per fold, independent of the number of kernel scalings; checked against finite differences for all losses. |
| 9.2 | Regularization and one scaling per feature (ARD) | Implemented | Two-stage optimization with L-BFGS-B, time limits and full history. |
| 11 | HPO of further parameters (ε, smoothing δ) | Partly | Exact hypergradients w.r.t. ε and δ (loss_params, low-level API). Not used by the estimators: ε is not identifiable below δ, the CV error is multimodal in δ and tuning gains little (study in optimized-svm). |
| 11 | Cheaper validation than cross-validation (sampling) | Planned | Idea from the outlook; fold parallelization is planned as well. |
Computational study (Chapter 10)
| Sec. | Topic | Status | In the software |
|---|---|---|---|
| 10.1 | Checkerboard dataset | Implemented | Used in the demo and the CV-error landscape on this site. |
| 10.2 | SMO study (working sets, convergence, shrinking, stopping) | Implemented | Repeated with the new solver on the checkerboard problem; see Benchmarks. Working set rules (MVP, baMVP, MuDP, MDP, tMDP; steps to a tolerance in four settings), the measures against the violation and their factors c(λ) with new fits, the smoothed hinge, support vectors and free variables over λ, the dependence on the problem size (steps, time, free variables up to n = 50 000), shrinking (speed-up over size and tolerance, the parameters η and c, a minimal removed fraction) and the stopping measure (violation vs. bound-aware vs. duality gap against the actual error). |
| 10.3 | Primal methods, Newton vs. SMO | Implemented | Repeated with the new solvers; see Benchmarks. First-order methods (gradient descent, preconditioned gradient descent with and without the bias scaling, against SMO), the empirical error bound, Newton's method against SMO and the two-stage training for n up to 40 000 (benchmarks/primal_first_order.py, benchmarks/newton_vs_smo.py in optimized-svm), and the switching point: a measurement study over problem size, λ, kernel width, loss and solver options (benchmarks/smo_newton_switch.py) gave the default rule of tolerance 0.3 plus a step budget. |
| 10.4.1 | HPO on the artificial dataset | Implemented | Landscape and optimization path on the home page. |
| 10.4.2 | HPO on real regression data (Table 10.4.1) | Partly | Reproduced with benchmarks/thesis_regression.py: five of seven data sets agree; mpg and housing are 13–15 % worse in MSE (cause unknown, not the optimizer). |
From the original code
The thesis was accompanied by two code bases. Both were reviewed and replaced; the defects found are listed in LEGACY_BUGS.md of the workspace.
| Code | Purpose | Today |
|---|---|---|
| nimsmo (Nim, 2022) | SMO solver with Python bindings | Replaced by smo-solver (Rust). All ten defects found in the review are fixed or obsolete; tag legacy-nim keeps the old state. |
| optimized_svm (Python, 2022) | HPO package | Rebuilt as optimized-svm with tests and CI. Thirteen defects fixed, among them a regression HPO that did not terminate; tag legacy-2022. |
| hpo4svm (2018/19) | Early OpenML experiments | Evaluated for the data and the protocol of Table 10.4.1; not ported. |
| optimized-lssvr (Python, 2016–2023) | LS-SVR with optimized hyperparameters (Fischer et al. 2015) | Covered by OptimizedSVR(loss="squared"): same objective and gradient (checked against the old package to 1e-13), plus group-aware CV splitters. Deprecated with 0.0.3 and archived; migration guide in the optimized-svm docs. |
| gkm (Python, 2023–2024) | Generalized kernel method: kernel GLMs with deviance losses | Folded into optimized-svm as KernelGLMRegressor / OptimizedKernelGLMRegressor: binomial, negative binomial, Gamma and Tweedie families with log links, offsets/exposure and a hypergradient-tuned NB dispersion. Deprecated with 0.1.2. |
Beyond the thesis, the packages add further kernels (linear, polynomial, precomputed), Poisson regression, scikit-learn estimators, a WebAssembly build and a reproduction script for Table 10.4.1.