Manuscript Offprint
arXiv:2611.05557Support Vector Machines Directly Minimise KL Divergence
ABSTRACT
Support vector machines (SVMs) are fundamentally grounded in geometric margin maximisation and currently lack a mainstream probabilistic interpretation. This keeps them theoretically isolated from probabilistic machine learning models that are naturally comparable and combinable. In this paper, we bridge this gap by proving that the dual objectives of both support vector classification and support vector regression are exact, constrained Kullback-Leibler (KL) divergence minimisation tasks between two Gaussian measures. We further show that this same divergence formulation recovers the exact objective function for kernel ridge regression when domain constraints are removed and regularisation is applied. By demonstrating that SVM duals directly minimise relative entropy, our results provide a unified information-theoretic model for standard kernel machines and lay the foundation for unifying broader kernel-based algorithms under probability theory.
1 INTRODUCTION
Support vector machines (SVMs) are machine learning algorithms based on maximising the geometric distance of points from different classes from the separating plane in classification and minimising the distance of points from the -insensitive tube in regression (Hofmann et al., 2008, Section 3). In essence, SVMs minimise the following objective function:
where and represent the parameters to be optimised, and represent the training data for the indices for some . is a feature mapping, and the inner product defines the norm by the identity for all . The definition of the loss function depends on whether the objective is classification or regression. is a hyper-parameter and is an inner product space. In the classification case, we have the following loss function:
When the target data take values in , we have and and the classification loss function is reduced to its familiar form . Meanwhile, in the regression case we have the following loss function for some :
SVMs do not yet have a mainstream probabilistic and statistical interpretation. There have been attempts at formulating specific likelihood functions, the maximisation of which reproduce SVMs in Franc et al. (2011) and ways of connecting SVMs to Gaussian processes in Sollich (1999). Additional contributions include maximum entropy discrimination Jaakkola et al. (1999), which generalises the margin maximisation problem in classification as a constrained Kullback-Leibler divergence minimisation problem; however, it derives classical SVMs probabilistically only through the
component of the primal objective, while the hinge loss component is left as a result of a Lagrange multiplier. These attempts require theory-heavy techniques to reproduce SVMs, thus leaving the geometric interpretation to remain as the primary way of introducing the algorithm.
The lack of a general probabilistic and statistical interpretation of SVMs keeps them theoretically separate from other probabilistic machine learning algorithms. This is a problem because it deprives the field of a unified mathematical model for systems that learn from data rooted in probability theory. Machine learning algorithms that are unified under probability theory have the advantage of being comparable, combinable, and interpretable. Examples of successful work that combine machine learning algorithms under a single probabilistic theory include Alshammari et al. (2025).
In light of these challenges, we introduce a probabilistic interpretation of SVMs by expressing their dual objectives exactly as Kullback-Leibler divergence minimisation tasks with constrained parameter spaces. This is in contrast to maximum entropy discrimination Jaakkola et al. (1999), as in our approach, the dual objective functions for both support vector classification and regression are expressed as the divergence between two Gaussian measures. We further demonstrate that this divergence serves as the exact objective function for kernel ridge regression.
We begin the paper with section 2 which covers the theoretical preliminaries necessary for understanding the notation we use in our derivation, including the definition of the Kullback-Leibler divergence and its physical interpretation, as well as a subsection on defining the Hilbert space of measurable functions and a Gaussian measure on the Borel space of the said Hilbert space. Next, in section 3 we demonstrate the primary result and its derivation, starting with the generalised description of the primal problem for SVMs, then an end to end derivation of the generalised dual problem for SVMs, finally finishing off with the direct comparison of the generalised dual with the divergence between two specific Gaussian measures to show their equivalence. Furthermore, we extend our result to demonstrate that this divergence also serves as the objective function for kernel ridge regression. Before ending the section, we show how the classical dual objective for SVMs is derived exactly as a result of restricting the Hilbert space on which the Gaussian measures are defined to be finite dimensional. Finally, in section 4 we conclude the paper with table 1, which summarises the primary differences between the machine learning algorithms analysed in this paper through the lens of our unifying theory, as well as a light overview of the type of research for which this paper will be useful. Section 5 is reserved for showcasing the proofs of the theorems stated in this paper.
2.1 KULLBACK-LEIBLER DIVERGENCE
Given a measurable space , where is the state space and is the event space, a sigma algebra on subsets of , and two probability measures and defined on it such that for all (i.e. is absolutely continuous with respect to ), the Kullback-Leibler divergence of with respect to is given by the following formula:
where is the -almost surely unique Radon-Nikodym derivative of with respect to . When working with laws of random variables, we use the following specialised notation. Suppose and are random variables on , then we define for any probability measure and . For conditional divergences, we adopt the following notation: . These notational definitions can be intuitively extended for multiple variables. Finally, we mention the chain rule for divergences:
The divergence has the physical interpretation of being the average number of bits of information obtained when your initial guess about the system changes to , given that is the actual probability distribution of the system (MacKay, 2003, Section 5.4).
2.2 HILBERT SPACE OF MEASURABLE FUNCTIONS
We consider the vector space of real measurable and square integrable functions on the abstract measure space . We define -almost everywhere equality as follows for any :
We set as the quotient space generated by -almost everywhere equality on . We introduce an inner product using the following rule for any :
The space is a Hilbert space defined with the inner product , as its completeness is ensured by the Riesz–Fischer theorem. From here, we simplify our notation for the inner product to just the representatives of the equivalence classes by for any . The Hilbert space is Rockafellar-Wets decomposable, the definition of which is given in (Rockafellar & Wets, 1997, Definition 14.59). This fact is stated in (Rockafellar & Wets, 1997, Page 677) and will be used in the derivation of the generalised dual problem for SVMs (i.e. for the proof of Theorem 4). Now we assume that is separable. We define the following measurable and square integrable function :
where , the variables and values for are the eigenvectors, which form an orthonormal basis of , and their respective eigenvalues of a covariance operator (self-adjoint, positive semi-definite and trace class) and for are independent standard normal variables. By the Karhunen–Loève theorem (Da Prato & Zabczyk, 1992, Proposition 2.18), is a -valued random variable for which is Gaussian for all . In this case, we say is Gaussian and we denote it as as a shorthand. Now we set a random variable and set . By definition, we have the following random variable:
By (Da Prato, 2006, Proposition 1.18), the random variable is a -valued Gaussian random variable such that , where is a linear operator defined by and its adjoint is defined by . The following theorem will be useful in defining the generalised primal problem for SVMs, as it provides a rigorous way to define the Gaussian variable on the diagonal set in cases where the event has a measure of zero.
Theorem 1 (Single Variable Evaluation Limit). Suppose that is independent of under , then define the following parameterised random variable for :
Then there is a -almost surely unique limit .
We have -almost surely for when , where the random variables and are independent of .
3 THEORY
3.1 PRIMAL PROBLEM
We begin by defining the primal problem for support vector machines, both classification and regression. The objective function that we wish to minimise is the following:
(11) where is the predictor random variable, the target variable is such that , the evaluated Gaussian random variable is defined as in Theorem 1 and the accompanying Gaussian variable for some covariance operator is defined via 9, where and are independent of . The parameter is defined as . The value is a hyper-parameter and is a measurable function for which is convex for all . For classification we set as defined in 2, while for regression we set as defined in 3.
Finally, the problem itself is expressed as . Our goal is to derive the dual problems for both classification and regression using the weak and strong Fenchel duality theorems (Borwein & Zhu, 2005, Theorem 4.4.2 & 4.4.3).
3.2 DUAL PROBLEM DERIVATION
To derive the dual problem from 11, we express the loss function in a form compatible with (Borwein & Zhu, 2005, Theorem 4.4.2):
where:
-
such that is convex in the Hilbert space
-
such that is convex in the Hilbert space
-
such that is a bounded linear operator on
The Hilbert space is equipped with the inner product defined as . The Hilbert space is equipped with the usual inner product on Hilbert spaces of measurable functions as defined in 7. To derive the dual problem according to (Borwein & Zhu, 2005, Theorem 4.4.2) we now derive the convex conjugates of the functions and as defined in (Borwein & Zhu, 2005, Section 4.4.1) and the adjoint of .
Theorem 2 (Convex Conjugate of f). The convex conjugate of is given as follows, where if , otherwise it is :
Theorem 3 (Adjoint of A). The operator is bounded and its adjoint is given as follows:
Theorem 4 (Convex Conjugate of g: Classification). The convex conjugate of when as defined in 2 is given as follows:
where:
Theorem 5 (Convex Conjugate of g: Regression). The convex conjugate of when is defined as in 3 is given as follows:
where:
According to (Borwein & Zhu, 2005, Theorem 4.4.2), the dual objective function is given as follows:
For classification, the dual optimisation problem is given as follows:
(20)
(21)
Meanwhile, for regression, the dual optimisation problem is given as follows:
(22)
(23)
Finally, to ensure that the conditions of (Borwein & Zhu, 2005, Theorem 4.4.3) take effect and achieve strong duality, we need to show that:
Where is the space of all inputs for for which . Trivially, we have . Next, the image of the linear operator is, in fact, the sum of the set of constant random variables in and the Cameron-Martin space associated with the covariance operator . This is because we have the following fact using the definition of from Theorem 1:
for some such that for all . The space is the space of all points in where is continuous. Trivially, one can check that , regardless of whether or , is Lipschitz continuous with the Lipschitz coefficient . Therefore . The Cameron-Martin space is not empty, since for , we have , therefore, strong duality holds.
3.3 DIVERGENCE CONNECTION
The objective functions of the dual objectives given by 20 and 22 can be reproduced exactly with the divergence between two Gaussian measures. Suppose under the probability measure , while under the probability measure . Since the two Gaussian measures and are mutually absolutely continuous with respect to each other, according to the Feldman–Hájek theorem (Da Prato & Zabczyk, 1992, Theorem 2.23), we use the definition of the divergence given in 2.1 and use the formula from (Quang, 2019, Theorem 12) to write down the following divergence:
(30) where the inner product is defined on the Cameron-Martin space such that for any , we have , while the respective norm is defined trivially as . This expansion of the divergence requires that .
We now have that minimising given the constraints that and -almost surely for some chosen exactly reproduces the support vector classification objective derived in 20. To derive such a representation for support vector regression, we define additional random variables that produce the loss exactly from their divergence.
Define the random variable such that on for some and on , while . Then we have the following divergence:
By making independent from , we now have that minimising given the constraints that and -almost surely for some chosen exactly reproduces the support vector regression objective derived in 22.
3.4 KERNEL RIDGE REGRESSION
Given the setting of section 3.3, we now set on . This gives us the following regularisation divergence:
This gives us the following objective:
The global minimiser of this objective function is given by . The operator is properly defined on the entirety of as is a bounded operator whose eigenvalues are at least , which makes it a bijection. By the bounded inverse theorem (Kreyszig, 1978, Theorem 4.12.2), is invertible. The solution is precisely the solution to kernel ridge regression, and thus the divergence in 33 is an exact reproduction of the objective function for kernel ridge regression.
3.5 FINITE DIMENSIONS
In the setting of finite dimensional Hilbert spaces of measurable functions, two results will come useful. The first is the following fact:
Lemma 1 (Finite Dimensional Spaces). For any given random variable on the probability space and separable and complete metric space , the following are equivalent statements for all :
Proof of Lemma 1. Assume . Since is a separable and complete metric space that generates the Borel -algebra on which the measure is defined, we have that , so and for some values for . By the Doob-Dynkin lemma, for any random variable there exists a measurable function such that -a.s..
The indicator functions for all form an orthogonal basis of size . Therefore, .
Now assume . Suppose . Since any separable and complete metric space is Hausdorff, we can form pairwise disjoint open -measurable sets around each of the values in . By definition, for all and we have that form an orthogonal set of functions. This contradicts . Therefore, we are left with the following:
This forces m = n.
In the setting of 11, if we make the dimension of the Hilbert space finite, by Lemma 1, the random variables and take a finite number of values -almost surely, similar to a training data set. We can define values and for the index for , just as defined in Section 1 and define a random index such that and and such that the indicators form an orthogonal basis in . We also have for all . The second fact we use in this section is stated in (Eleonora & Giuseppe, 2017, Section 2.2)
Lemma 2 (Finite Dimensional Cameron-Martin Spaces). Given a non-degenerate Gaussian variable defined on a Hilbert space according to (Da Prato & Zabczyk, 1992, Section 2.3.2) with a covariance operator , the Cameron-Martin space equals if and only if .
Lemma 1 and Lemma 2 grant us the ability to derive classical SVMs from their divergence formulation given in 3.3 as follows. Given that is finite, we have according to the Lemma 2. The operator acts as the Gram matrix on variables as follows:
where is an independent copy of and the coefficients satisfy the following conditions:
-
Symmetry:
-
Positive semi-definiteness: for all
Finally, we convert the divergence in 28 to its familiar form, assuming that the variable is uniformly distributed, which means for all .
where . We also have the following for the constraints:
This is exactly the classical objective function for support vector classification up to an additive constant and after rescaling the parameter by n. Analogous results can be shown for support vector and kernel ridge regression.
4 CONCLUSION
In this paper, we have proven that the generalised dual objectives of SVMs are exactly constrained divergence minimisation objectives, where the objective functions are precisely the divergence between two Gaussian measures, plus a regularisation divergence term for regression. Moreover, we showed that this divergence also reproduces the objective function for kernel ridge regression by adding the regularisation divergence term and removing constraints from the parameter space. To summarise the results of this paper, we give a brief overview of the main differences between support vector classification, regression, and kernel ridge regression in table 1.
The research in this paper lays foundations for building a stronger unifying information theoretic theory for machine learning algorithms such as kernel PCA, kernelised Fisher LDA and more, similar to the theoretical unification proposed in the paper Alshammari et al. (2025).
| Algorithm Name | Parameter Space | Channel Conditional Mean | Effective Objective Function |
|---|---|---|---|
| Support Vector Classification | 0 | ||
| Support Vector Regression | |||
| Kernel Ridge Regression |
Table 1: Unification of Support Vector Classification, Support Vector Regression, and Kernel Ridge Regression as relative entropy minimisation problems under varied channel conditional mean and parameter spaces.
5 APPENDIX
Proof of Theorem 1. We have to prove that the sequence for is a martingale and that the martingale is bounded in . Define the filtration for , where , then we have the following for :
Thus, is a martingale for . Now we show that is bounded. Firstly, . Next we derive the expected squares of the single step increments for all :
Finally we have that the following quantity is bounded:
Therefore, we have and the martingale is bounded in . By (Williams, 1991, Theorem 12.1.1), we have that the limit exists and is unique -almost surely and in , so .
Proof of Theorem 2.
□
Proof of Theorem 3. First, we prove A is bounded as follows:
Finally, we derive the adjoint:
Proof of Theorem 4. We have , so its conjugate is given as follows:
Where is a Carathéodory integrand, as defined in (Rockafellar & Wets, 1997, Example 14.29), making it a normal integrand as defined in (Rockafellar & Wets,
1997, Definition 14.27). Moreover, the space of functions is Rockafellar-Wets decomposable with respect to , as discussed in section 2.2. Therefore, according to (Rockafellar & Wets, 1997, Theorem 14.60) we have the following:
For each , we have the following:
For each , we have the following:
For each , we have the following:
Combining results, we have generally that:
Using this, we can trivially define the event from 16 and derive the convex dual as given in 15.
Proof of Theorem 5. Set as defined in 3, then repeat the proof of Theorem 4 up to 64. We have the following for each :
(73)
Using this, we can trivially define the event from 18 and derive the convex dual as given in 17.
REFERENCES
Shaden Alshammari, John Hershey, Axel Feldmann, William T. Freeman, and Mark Hamilton. I-con: A unifying framework for representation learning, 2025. URL https://arxiv.org/abs/2504.16929.
Jonathan M Borwein and Q J Zhu. Techniques of Variational Analysis. CMS Books in Mathematics. Springer, New York, NY, 2005 edition, June 2005.
Giuseppe Da Prato. An introduction to infinite-dimensional analysis. Universitext. Springer, New York, NY, January 2006.
Guiseppe Da Prato and Jerzy Zabczyk. Stochastic Equations in Infinite Dimensions. Encyclopedia of Mathematics and its Applications. Cambridge University Press, 1992.
Bardelli Eleonora and Mennucci Andrea Carlo Giuseppe. Probability measures on infinite-dimensional stiefel manifolds. Journal of Geometric Mechanics, 9(3):291–316, 2017. ISSN 1941-4889. doi: 10.3934/jgm.2017012. URL https://www.aimsciences.org/article/id/242550b9-8ea0-4839-a34f-efa425277403.
Vojtech Franc, Alexander Zien, and Bernhard Schölkopf. Support vector machines as probabilistic models. In Lise Getoor and Tobias Scheffer (eds.), Proceedings of the 28th International Conference on Machine Learning, ICML 2011, Bellevue, Washington, USA, June 28 - July 2, 2011, pp. 665–672. Omnipress, 2011. URL https://icml.cc/2011/papers/386_icmlpaper.pdf.
Thomas Hofmann, Bernhard Schölkopf, and Alexander J. Smola. Kernel methods in machine learning. The Annals of Statistics, 36(3), June 2008. ISSN 0090-5364. doi: 10.1214/009053607000000677. URL http://dx.doi.org/10.1214/009053607000000677.
Tommi Jaakkola, Marina Meila, and Tony Jebara. Maximum entropy discrimination. In Proceedings of the 13th International Conference on Neural Information Processing Systems, NIPS'99, pp. 470–476, Cambridge, MA, USA, 1999. MIT Press.
Erwin Kreyszig. Introductory functional analysis with applications. In Introductory Functional Analysis With Applications, 1978. URL https://api.semanticscholar.org/CorpusID:122969733.
David J. C. MacKay. Information Theory, Inference, and Learning Algorithms. Cambridge University Press, Cambridge, UK, 2003. ISBN 978-0521642989.
Minh Ha Quang. Regularized divergences between covariance operators and gaussian measures on hilbert spaces, 2019. URL https://arxiv.org/abs/1904.05352.
R T Rockafellar and Roger J-B Wets. Variational Analysis. Grundlehren der mathematischen Wissenschaften. Springer, Berlin, Germany, 1 edition, November 1997.
Peter Sollich. Probabilistic methods for support vector machines. In S. Solla, T. Leen, and K. Müller (eds.), Advances in Neural Information Processing Systems, volume 12. MIT Press, 1999. URL https://proceedings.neurips.cc/paper_files/paper/1999/file/a941493eeea57ede8214fd77d41806bc-Paper.pdf.
David Williams. Probability with Martingales. Cambridge University Press, 1991.