Targeting kernel methods in machine learning, this paper proposes a novel q-orthogonal kernel based on discrete q-Hermite I polynomials, proves that it satisfies Mercer's theorem and possesses inherent boundedness without additional explicit scaling, conducts comparative validation against classical kernels and traditional orthogonal polynomial kernels on 20 benchmark datasets, and publicly releases fully reproducible experimental code resources.
The performance of support vector machines (SVMs) depends heavily on the choice of kernel function, whose core role is to implicitly map data into a high-dimensional feature space. Classical kernels such as radial basis functions are the mainstream choice in industry and research settings, while orthogonal polynomial kernels offer a mathematically interpretable alternative that can embed structured prior knowledge into the kernel's construction. This property has made orthogonal polynomial kernels an important research branch in the field of kernel methods.
The theory of q-orthogonal polynomials is a systematic extension of classical orthogonal polynomial theory. Such q-analog structures arise naturally in multiple mathematical research settings, including the Rogers-Ramanujan identities in partition theory, quantum group theory, and the representation theory of quantum algebras. The deformation parameter q is typically chosen in the interval (0,1); as q approaches 1, all q-orthogonal polynomials degenerate, via limit relations, into their corresponding classical non-q orthogonal polynomials.
Existing kernel methods based on Gegenbauer orthogonal polynomials carry an inherent constraint: researchers must additionally introduce a dedicated scaling function to bound the magnitude of the Gegenbauer polynomials, because for certain parameter values the Gegenbauer polynomials diverge outside the interval [-1,1]. This additional scaling requirement directly increases the computational overhead and mathematical implementation complexity of the method.
The study adopts q-orthogonal polynomials as a new foundation for kernel design, gaining greater flexibility and adaptability through the deformation parameter q, which allows fine-grained tuning of kernel properties without sacrificing mathematical tractability. Unlike traditional orthogonal polynomial kernels with fixed recursive structures, q-orthogonal polynomials provide a continuous spectrum of kernel behavior that can be customized for specific data characteristics. This mathematical framework also builds a connection between classical kernel methods and quantum-inspired computing paradigms. Please refer to the figure immediately following to compare the value distributions of polynomials of different orders with and without weighting, and to understand the constraining effect of the weight function on polynomial magnitude.
The paper formally defines the q-Hermite kernel and proves its validity under Mercer's theorem, which is the first core contribution of this study. Unlike traditional orthogonal polynomial kernels, which require an additional explicit scaling function to keep polynomial magnitudes within the natural domain [-1,1], the q-Hermite kernel possesses inherent boundedness: when a=-1 and 0<q<1, the discrete q-Hermite I polynomials remain uniformly bounded on the compact domain [-1,1]. Combined with a carefully constructed weight function whose values lie strictly in the interval (0,1], this effectively avoids the magnitude annihilation or explosion problems common in orthogonal polynomial kernels, guaranteeing numerical stability without the need for additional explicit scaling functions.
The recurrence relation of the q-Hermite polynomials simplifies when a=-1, with the corresponding recurrence rule , and initial conditions set as , . From this recurrence rule, explicit expressions for the low-order q-Hermite polynomials can be directly derived, providing a verifiable foundational form for the subsequent derivation of the kernel function's properties.
In prior research on traditional Gegenbauer orthogonal kernels, a tiny offset ϵ had to be manually added to the weight function to constrain its value range and avoid annihilation or explosion effects during training. In contrast, the weight function of the q-Hermite kernel can be analytically proven to lie strictly within the interval (0, 1], requiring no such explicit correction; combined with the preceding proposition, this eliminates both adverse effects at the mechanism level.
Since the product of positive semi-definite kernels remains positive semi-definite, the one-dimensional q-Hermite kernel naturally extends to arbitrarily high-dimensional input spaces by taking kernel values per dimension and multiplying them. The resulting multi-dimensional kernel function inherently satisfies the positive semi-definiteness requirement of Mercer's theorem, with no additional adaptation needed.
In these experiments, the newly proposed q-Hermite kernel is compared in performance against classical kernels such as the linear kernel, polynomial kernel, and RBF kernel, as well as other orthogonal polynomial kernels including the standard Hermite kernel and Gegenbauer kernel. A total of 20 benchmark datasets were used, of which 7 overlap with datasets from prior related work and serve only as reference baselines, while 13 additional datasets were added to increase sample heterogeneity, including 7 multi-class datasets. All comparisons were conducted under a unified, pre-set set of evaluation metrics.
In the accuracy evaluation results, the Gegenbauer kernel consistently ranks in the top tier overall, while the q-Hermite kernel typically falls in the upper-middle range, with an overall rank of third. The relative ordering of F1 scores is consistent with the accuracy results. Across all 20 datasets, the q-Hermite kernel outperformed the Gegenbauer kernel in accuracy on 9 datasets—nearly half—with an average accuracy difference of only -1.373%, and this performance difference shows no statistically significant correlation with either the number of samples or the number of features in the datasets.
Across all benchmarks, the q-Hermite kernel exhibits a property whereby computational efficiency and accuracy are independent of each other, with its training-speed advantage systematically increasing as dataset dimensionality rises; the statistical test yielded a correlation coefficient of r=0.479, p=0.0325, reaching statistical significance. Meanwhile, the accuracy gap between the q-Hermite kernel and the Gegenbauer kernel remains consistently low, with no systematic degradation in accuracy as the number of features increases. Please refer to the figure immediately following to understand the distribution of the q-Hermite kernel's training-speed advantage as feature dimensionality varies.
This work proposes a completely new family of kernel functions for support vector machines, constructed from q-orthogonal polynomials—specifically, the discrete q-Hermite I polynomials—a result that represents an important extension of the established Gegenbauer paradigm in the field of orthogonal polynomial kernels for machine learning.
The authors explicitly identify a direction worth further exploration: designing dedicated kernel functions for quantum support vector machines (QSVMs) based on the discrete q-Hermite I polynomials. General-purpose QSVM quantum kernels can gain a decisive advantage over classical kernels by efficiently exploring high-dimensional Hilbert spaces, providing sufficient expressive power to capture complex nonlinear relationships without incurring the heavy computational costs of classical systems. Meanwhile, q-orthogonal polynomials originate in the context of quantum mechanics research and possess unique properties highly relevant to the description of complex quantum systems and quantum groups, making them naturally suited to QSVM kernel design; their built-in q deformation parameter also enables smooth parametric transition adjustments.
To support the reproduction of the research results and future extensions, the authors have released all code and experimental resources, hosted in the public GitHub repository https://github.com/Kokechacho/SVMs-QSVMs.