---
title: 'JacobiConv: Spectral GNN with Jacobi Polynomials'
url: https://www.emergentmind.com/topics/jacobiconv
type: topic
---

# JacobiConv: Spectral GNN with Jacobi Polynomials

JacobiConv is a spectral graph neural network (GNN) architecture that leverages Jacobi polynomial bases to parameterize graph filters. Originally proposed in the context of analyzing the expressive power and optimization landscape of spectral GNNs, JacobiConv abandons pointwise nonlinearities and instead focuses on orthogonal polynomial parameterizations, yielding models with provably universal expressive power under mild conditions and superior empirical performance on both synthetic and real-world datasets [2205.11172]. The Jacobi polynomial basis is chosen for its ability to be adapted to the empirical distribution of graph Laplacian eigenvalues via parameters α and β, enabling accelerated convergence through improved Hessian conditioning in training. Separately, JacobiConv also refers to fast transforms between Chebyshev and Jacobi polynomials, realized through Hahn’s asymptotic formula and stabilized recurrences for numeric stability across the spectrum [1602.02618].

## 1. Spectral GNNs and the Motivation for JacobiConv

In a spectral GNN framework, each node feature matrix $X\in\mathbb R^{n\times d}$ is interpreted as a graph signal to be filtered in the eigenspace of the graph’s normalized Laplacian $\widetilde L$. The action of a filter $g(\cdot)$ on $X$ is formulated as $X \mapsto g(\widetilde L) X = U g(\Lambda) U^{\top} X$, where $U$ is the eigenvector matrix and $\Lambda$ the diagonal matrix of eigenvalues ($\widetilde L = U\Lambda U^{\top}$). To circumvent runtime eigendecomposition, $g$ is typically chosen polynomial in $\widetilde L$—classically $g(\widetilde L) = \sum_{k=0}^K \theta_k \widetilde L^k$—and polynomial bases such as Chebyshev or Bernstein have been standard.

The choice of polynomial basis affects optimization: if $g$ is represented in a basis orthogonal with respect to the empirical spectral density of the graph signal, the Hessian in squared loss for filter coefficients is (nearly) diagonal, leading to better-conditioned gradients and faster convergence. Jacobi polynomials, parameterized by $(\alpha, \beta)>-1$, provide a flexible family of orthogonal polynomials adjustable to the distribution of Laplacian eigenvalues encountered in real graphs [2205.11172].

## 2. Jacobi Polynomial Basis: Definitions and Properties

For $k\ge0$, Jacobi polynomials $P_k^{(\alpha,\beta)}$ are defined on $x\in[-1,1]$ via the three-term recurrence
\[
P_0^{(\alpha,\beta)}(x) = 1, \qquad
P_1^{(\alpha,\beta)}(x) = \frac12[(2+\alpha+\beta)x + (\alpha-\beta)],
\]
\[
P_k^{(\alpha,\beta)}(x) = (A_k x + B_k) P_{k-1}^{(\alpha,\beta)}(x) - C_k P_{k-2}^{(\alpha,\beta)}(x),\quad k\ge2
\]
with explicit $A_k,B_k,C_k$ depending on $\alpha,\beta$ (see He et al. 2021; also [1602.02618]). Jacobi polynomials are orthogonal with respect to the weight $(1-x)^{\alpha}(1+x)^{\beta}$:
\[
\int_{-1}^1 (1-x)^{\alpha}(1+x)^{\beta} P_m^{(\alpha,\beta)}(x) P_n^{(\alpha,\beta)}(x) dx = 0 \text{ if } m\ne n\,.
\]
In spectral GNNs, the normalized Laplacian spectrum $[0,2]$ is shifted to $[-1,1]$ via $x\mapsto 1-\lambda$, and the Jacobi polynomial basis $P_k^{(\alpha,\beta)}(I-\widetilde L)$ is used as the functional basis for $g$.

## 3. JacobiConv Architecture and Spectral Filter Parameterization

JacobiConv parameterizes the spectral filter $g$ as a $K$th-order Jacobi polynomial expansion:
\[
g_\theta(\widetilde L) = \sum_{k=0}^K \theta_k P_k^{(\alpha,\beta)}(\widetilde L),
\]
where the $\theta_k$ are learned coefficients, and each output channel $\ell$ may use its own $\{\theta_k^{(\ell)}\}$. In the forward computation, the input $X$ is linearly projected by $W\in\mathbb R^{d\times d'}$ to $XW$, followed by spectral filtering to produce $Z = g_\theta(\widetilde L) XW$.

Filter learning is cast as minimizing Frobenius loss $R(\theta,W) = \|g_\theta(\widetilde L)(XW) - Y\|_F^2$ with $\ell_2$ weight decay on both $W$ and the filter coefficients. Optimization is performed via Adam with grid/random search for learning rates and polynomial order $K\in[5,20]$.

To further stabilize coefficient learning, JacobiConv employs Polynomial-Coefficient-Decomposition (PCD), expressing $\theta_k$ as bounded linear combinations $\theta_k = \sum_{i=1}^B y_i n_{ik}$ with $y_i$ bounded by $\tanh$ nonlinearity.

## 4. Orthogonality, Hessian Conditioning, and Adaptivity

Near a loss-minimizing solution, the Hessian with respect to the filter coefficients $\theta$ is determined by the inner products $\int g_k(x)g_\ell(x)f(x)dx$, where $f(x)$ is the empirical spectral density weighted by $|(U^\top X)_i|^2$ (Fourier coefficients of $X$). Orthogonalizing the basis $g_k$ for this $f$ minimizes the Hessian's condition number. Jacobi polynomials' orthogonality to $(1-x)^{\alpha}(1+x)^{\beta}$ provides the flexibility to fit the observed empirical density $f(x)$ by grid-searching over $\alpha,\beta\in[-1,2]$.

This adaptivity is not present in fixed bases such as Chebyshev or Bernstein, allowing JacobiConv to maintain fast convergence and stable optimization over diverse spectral densities encountered in practice [2205.11172].

## 5. Expressive Power and Universality without Nonlinearities

Theorem 4.1 of [2205.11172] shows that a purely linear spectral GNN of the form $Z=g(\widetilde L) X W$ can realize any mapping $X\mapsto Z$ provided:
- $\widetilde L$ has distinct eigenvalues (no repeated eigenvalues).
- $X$ has no missing frequency components (nonzero in every eigen-direction).

Consequently, adding nonlinearities does not increase expressive power for general graphs with suitable features. Nonlinearities can assist in degenerate edge cases (repeated eigenvalues, missing frequencies), but these are empirically rare ($<1\%$ repeated eigenvalues). Universality extends to multi-output nodes by assigning each output channel an independent $g^{(\ell)}$. Further, polynomial filter GNNs have at most the discriminative power of $(K+1)$-step 1-Weisfeiler–Leman (1-WL), which in the absence of eigenvalue multiplicity and frequency gaps already achieves full node distinction.

## 6. Empirical Results and Benchmark Comparisons

JacobiConv's empirical validation covers both synthetic filtering tasks and real-world graph classification:

| Task/Domain                          | Baselines      | JacobiConv outcome        |
|--------------------------------------|----------------|---------------------------|
| Synthetic filtering ("image-on-graph") | GPRGNN, ARMA, ChebyNet, BernNet, monomial/Chebyshev/Bernstein/Jacobi linear GNNs | Up to 50× lower MSE (e.g., $3\times10^{-4}$ for Jacobi vs. $1.8$ for ARMA on low-pass); outperforms all linear baselines (10× lower than monomial, Bernstein) |
| Real-world node classification (10 datasets) | GCN, APPNP, ChebyNet, GPRGNN, BernNet (with nonlinearities) | Wins 9/10 datasets; up to +12% accuracy gain (e.g., Squirrel); 2–3 points better than BernNet on average, using $\sim 10\%$ as many parameters |

This demonstrates that JacobiConv delivers universal spectral filtering capability and state-of-the-art empirical performance using only linear operations and no activations [2205.11172].

## 7. Fast Chebyshev–Jacobi Transforms and Numerical Implementation

In the context of polynomial basis transforms, JacobiConv also refers to the fast numerically stable computation of Chebyshev–Jacobi transforms [1602.02618]. This is realized using:

- Hahn’s interior asymptotic formula for $P_n^{(\alpha,\beta)}(x)$ with rigorous error bounds, allowing reduction to a sum of diagonally scaled DCT-I and DST-I transforms for "asymptotic blocks".
- Stable three-term recurrence and the Clenshaw–Smith algorithm, with Reinsch's endpoint modifications to maintain uniform accuracy even near $x=\pm1$.
- Complexity $O(N\log^2N/\log\log N)$ for the full transform, using $M\approx5-8$ for double precision and careful block partitioning of the computation domain.

Key implementation details include:
- Pre-planning DCTs/DSTs via FFTW or equivalent libraries.
- Explicitly handling edge cases and parameter regimes for $\alpha,\beta$, including parameter shifting for half-integer cases.
- Clenshaw–Curtis quadrature and accurate endpoint handling [1602.02618].

This fast transform is essential for efficient evaluation and inversion of Jacobi polynomial expansions in GNN filtering and beyond.

---

In conclusion, JacobiConv unifies advances in spectral graph filtering, polynomial basis adaptivity, and fast, stable transforms to provide a highly expressive, optimizable, and empirically dominant spectral GNN framework without the need for nonlinearities or large overparameterization [2205.11172][1602.02618].

Source: https://www.emergentmind.com/topics/jacobiconv