Pfaffian Activation Functions
- Pfaffian activation functions are neural network activations expressed as Pfaffian functions, where outputs are polynomials in auxiliary smooth functions solving triangular differential equations.
- They unify common smooth nonlinearities—such as sigmoid, tanh, arctan, and exponential—thereby providing a cohesive framework for analyzing VC-dimension in graph neural networks and classifier robustness.
- Their explicit analytic structure supports rigorous proofs that link architecture parameters with capacity and robustness, offering actionable insights for designing deep neural networks.
Pfaffian activation functions are neural-network activation functions that are Pfaffian functions, namely functions represented by a polynomial in auxiliary smooth functions that satisfy a triangular system of first-order differential equations with polynomial right-hand sides. In the cited literature, this class is used as a unifying analytic framework for smooth nonlinearities such as the logistic sigmoid, hyperbolic tangent, arctangent, exponential, and polynomials, and it supports two distinct lines of analysis: VC-dimension bounds for message-passing graph neural networks and tube-volume and condition-number bounds for classifier robustness near decision boundaries (D'Inverno et al., 2024, Lezeau et al., 9 Jul 2026).
1. Formal definition and Pfaffian format
Let be an open domain. A Pfaffian chain of length and degree on is a sequence of functions
such that, for each ,
where each is a polynomial in of total degree 0. Given such a chain, a function 1 is Pfaffian of format 2 if
3
where 4 is a polynomial of degree 5 (D'Inverno et al., 2024).
A notationally equivalent formulation uses a chain of order 6 and chain-degree 7, with functions 8 satisfying
9
where each 0 is a real polynomial of total degree 1; then 2 is Pfaffian of format 3 if 4 has degree 5 (Lezeau et al., 9 Jul 2026).
The central structural parameters are the chain length, written as 6 or 7; the maximal degree 8 of the polynomial coefficients in the differential system; and the degree 9 of the terminal polynomial representation. In the neural-network applications considered in the cited work, these parameters become explicit complexity descriptors. This suggests that “Pfaffian activation function” refers less to a specific nonlinearity family than to an analytic representation class whose format can be propagated into statistical-capacity and robustness bounds.
2. Canonical activation functions in the Pfaffian class
Several standard activations admit low-complexity Pfaffian representations. The logistic sigmoid and hyperbolic tangent are singled out because each satisfies a first-order ODE whose right-hand side is polynomial in the function itself. The arctangent also belongs to the class, although its representation uses a chain of length 0 rather than 1 (D'Inverno et al., 2024, Lezeau et al., 9 Jul 2026).
| Activation 2 | Pfaffian chain | Format 3 |
|---|---|---|
| Polynomial 4 | none | 5 |
| 6 | 7 | 8 |
| 9 | 0 | 1 |
| 2 | 3 | 4 |
| 5 | 6 | 7 |
For the logistic sigmoid,
8
so in differential form
9
and 0 has degree 1. Hence 2 is Pfaffian of format 3. For the hyperbolic tangent,
4
so
5
and 6 is also Pfaffian of format 7 (D'Inverno et al., 2024).
The class is therefore broad enough to include most of the “engineer-friendly” smooth activations discussed in the source material. A common misconception is that the term is essentially synonymous with sigmoid-type nonlinearities; the available examples show otherwise, since polynomial, exponential, and arctangent activations are also explicitly listed as Pfaffian (Lezeau et al., 9 Jul 2026).
3. VC dimension in graph neural networks with Pfaffian activations
In the graph-learning setting, the cited work studies a generic message-passing GNN with 8 layers, hidden dimension 9, input graphs of at most 0 nodes, node attributes of dimension 1, and total number of real parameters 2. The analysis is motivated by prior results for piecewise polynomial activations and extends them to smooth activations such as sigmoid and hyperbolic tangent by using Pfaffian function theory. The bounds are also tied to the Weisfeiler-Lehman framework: the paper denotes by 3 the number of distinct initial colors in the 4-WL initialization, and by 5 the total number of node colors produced over all 6 iterations of 7-WL color refinement, summed across graphs in the training set (D'Inverno et al., 2024).
For the most general case, if every combine, every aggregate, and the final readout are Pfaffian functions of formats
8
then Theorem 1 states that
9
where
0
and 1 is a bound on the number of connected components of a certain Pfaffian variety. By a Gabrielov–Vorobjov bound,
2
with
3
4
5
A specialization in which all Pfaffian degrees are bounded by 6 yields, up to lower-order terms,
7
For the widely used “linear-combine + sum-aggregate + 8” model with a single scalar activation 9 of format 0, Theorem 2 gives
1
where 2 is an absolute constant for 3, with 4, or 5, with 6. In big-7 form, this is again 8.
The color-refined formulation sharpens dependence on graph structure. By merging nodes of the same color, Theorem 3 yields
9
This suggests that, in these bounds, combinatorial compression through 0-WL colors can be more informative than raw node count.
The theoretical analysis is supported by two prototype experiments on the TUDatasets PROTEINS, NCI1, and PTC-MR using arctan or tanh activations. As the hidden dimension 1 or the number of layers 2 grows, the training-test accuracy gap widens in a manner consistent with an 3, 4 rise in complexity. When graphs are partitioned by increasing ratio 5, the same gap increases, matching the 6 dependence. The reported test-training gap curves track the polynomial VC-dimension growth predicted by the theory (D'Inverno et al., 2024).
4. Proof architecture: from Pfaffian equations to capacity bounds
The proof strategy for the GNN VC-dimension bounds proceeds in three stages. First, the forward pass of the network is rephrased as the solution to a system of
7
equations of the form
8
where 9 collects hidden-unit variables together with graph-input variables, and 00 denotes the network parameters. Each 01 is a Pfaffian function of some shared Pfaffian chain of length 02 and degrees 03 (D'Inverno et al., 2024).
Second, a theorem of Gabrielov–Vorobjov bounds the number of connected components 04 of the solution set
05
in terms of 06. This is the geometric core of the argument: the topology of a Pfaffian variety becomes a quantitative input to a statistical-capacity estimate.
Third, a result of Karpinski–Macintyre, also attributed in the paper to Scarselli–Tsoi–Hagenbuchner in this context, yields
07
Combining the connected-component bound with this sign-pattern bound produces the stated polynomial or near-polynomial dependencies on 08, and on the color counts 09 and 10.
The significance of this proof architecture is methodological. The derivation does not depend on piecewise-polynomial partitioning; instead it replaces combinatorial region counting by Pfaffian geometry. This suggests a route for analyzing smooth activations while still obtaining explicit, architecture-level capacity bounds.
5. Tubular neighbourhoods and robustness of Pfaffian classifiers
A second research direction studies Pfaffian activations through the geometry of decision boundaries. Let 11 be a bounded smooth hypersurface defined by a Pfaffian function 12 of format 13, with 14 on 15. For a point 16, radius 17, and a random point 18 uniform in the Euclidean ball 19, writing 20, Theorem 3.3 states
21
where
22
A weaker form drops the negative term:
23
These tube-volume bounds are then transferred to classification robustness. For a classifier 24, define
25
so that the decision boundary 26 satisfies
27
The local condition number at 28 is
29
If each 30 is a bounded smooth Pfaffian hypersurface of format 31, then for 32 uniform in 33, Theorem 5.1 gives
34
Theorem 5.3 states the same bound for Gaussian input 35:
36
The conclusions drawn in the source are explicit. The tube-volume bound shows that the probability that a random point lies within 37 of a Pfaffian decision boundary decays polynomially in 38 with coefficients depending on the format 39, hence on network depth, activation complexity, and number of neurons. The uniform and Gaussian tail bounds quantify robustness by bounding the chance that a relative perturbation of size 40 suffices to misclassify. For deep networks with Pfaffian activations, the worst-case prefactor 41 grows exponentially in the chain length 42, hence in the total hidden units 43, reflecting the complexity of fewnomial intersection theory (Lezeau et al., 9 Jul 2026).
6. Single-hidden-layer sigmoid networks and scope of the theory
The robustness analysis has a sharper special case for single-hidden-layer sigmoid networks with rational weights. Consider
44
where 45 is logistic, 46 have common denominator 47, and
48
If 49 is smooth and contained in 50, then Theorem 4.1 and Section 4.4 show that the section-degree of 51, described as the maximal Gauss-map degree, satisfies
52
and that all tube-section degrees 53 can be bounded by
54
Hence, for 55 uniform in 56, Theorem 4.4 yields
57
and Corollary 5.5 gives
58
Moreover, Lemma 4.9 states that the leading-order term is governed by line intersections,
59
which yields the sharp regime
60
Within the available sources, this special case marks an important distinction. In the general deep Pfaffian setting, the prefactor in the robustness bound can grow exponentially with chain length. In the single-hidden-layer rational-weights sigmoid setting, that fewnomial factor is replaced by a polynomial 61, and the leading tail sharpens to 62. A plausible implication is that Pfaffian analysis separates two phenomena that are often conflated: the analytic tractability of the activation itself and the geometric complexity induced by depth and hidden-unit proliferation.
The same source formulates these implications for network design directly. Limiting depth, choosing activations of low Pfaffian format, or restricting to single-layer rational-weight sigmoid networks yields better provable robustness guarantees under random or adversarial perturbations. Together with the GNN VC-dimension results, this places Pfaffian activation functions at an interface between o-minimal-style geometric control and neural-network learning theory: the activation is smooth, but its differential-algebraic format remains sufficiently explicit to support nonasymptotic bounds on both capacity and robustness (D'Inverno et al., 2024, Lezeau et al., 9 Jul 2026).