Manuscript Offprint
arXiv:2610.34154Edge-Centric Adaptive Neural Activation via Parametric Tanh Functions
Andreas Falkenberg
Abstract—This paper introduces a compact, edge-centric neural architecture that resolves the computational bottlenecks of modern edge-activated paradigms like Kolmogorov-Arnold Networks (KANs) while retaining their expressiveness over traditional Multi-Layer Perceptrons (MLPs). While KANs demonstrate remarkable representational capacity by placing learnable univariate functions on connection edges rather than hidden nodes, their reliance on non-local B-splines introduces severe optimization hurdles, high memory overhead, and poor hardware scaling. To bridge this gap, we propose the Parametric Tanh Connection Function, a smooth, bounded architectural primitive defined as . This formulation unifies offset, amplitude, local slope, and horizontal displacement into a lightweight, 4-parameter differentiable mapping optimized edge-by-edge via backpropagation. Evaluated on dense architectures using MNIST and CIFAR-10, our parametric tanh connection model achieves significant absolute accuracy gains over traditional affine baselines—reaching on MNIST and on CIFAR-10. Crucially, it matches or exceeds the expressiveness of unconstrained 7-parameter exponential connection baselines while requiring up to 85% less training runtime. By replacing complex splines or hyper-flexible exponents with a bounded, analytically smooth hyperbolic tangent kernel, this work delivers a highly scalable, hardware-friendly compromise for heterogeneous connection-level deep learning.
Index Terms—Kolmogorov-Arnold Networks (KAN), connection-level nonlinearities, edge-centric architectures, parametric tanh, trainable activation functions.
1 INTRODUCTION
Conventional neural networks attach a scalar weight to each connection and apply a shared non-linear activation after the weighted inputs have been combined. This separation is computationally convenient, but it limits the learnable behavior of an individual connection to affine scaling. A connection-level function instead permits each input branch to learn its own nonlinear response before aggregation. The resulting model can adapt not only the magnitude and offset of a connection, but also its local slope and saturation behavior through the same optimization process.
The primary contributions of this work are summarized as follows:
-
The proposed parametric tanh function effectively learns offset, amplitude, slope, and horizontal displacement on each unique connection edge.
-
Connection-level placement permits heterogeneous nonlinear responses within the same layer rather than imposing a single post-aggregation activation function on all hidden nodes.
-
The seven-parameter analytic family motivates the design space and serves as an ablation for assessing whether additional functional flexibility improves empirical performance.
-
Benchmarks on MNIST and CIFAR-10 demonstrate that the four-parameter tanh model provides the highest test accuracy among the three evaluated configurations while training substantially faster than the seven-parameter variant.
The remainder of this paper is structured as follows. Section 2 establishes conventional neural network and optimization notation required for the connection-level formulation. Section 3 formalizes single-layer neural classification, direct least-squares, and gradient-based iterative methods. Section 4 introduces the seven-parameter analytic connection family, derives the compact parametric tanh model alongside its backpropagation derivatives,
A. Falkenberg is with QPI Laboratories, Inc., USA (e-mail: andreas@qpilabs.com).
and presents the unified layer learning algorithms. Section 5 evaluates the proposed configurations empirically against an affine baseline using dense and convolutional topologies on MNIST and CIFAR-10. Section 6 provides concluding remarks and future research directions.
2.1 Prerequisite
For a general classification task, the input is a real-valued feature vector and the classifier maps that vector to a discrete class label [5]. Complex-valued observations can be represented by concatenating their real and imaginary components into an equivalent real-valued vector:
with and . The output result is an integer between 0 and . The function maps a real-valued input feature vector from a sensor or dataset to an output class represented by that integer label. We can construct neural networks for this mapping using column-vector notation.
Let denote the layer input and the layer output. The weight matrix is defined as and the affine mapping is given by , where . If row-vector notation is used instead, the transpose convention must be applied consistently throughout; this paper strictly adheres to column vectors:
In a conventional neural network, each neuron typically includes an additive bias. The same affine mapping can be represented in homogeneous coordinates by augmenting the input vector with a constant component equal to one. The bias therefore does not change the underlying mathematical class, although it remains important in implementation. Each matrix element represents a trainable scalar weight, and the final predicted class is obtained from the maximum output score. For a one-layer model, the classifier can be written as follows:
For a one-layer classifier, the network first computes a vector of real-valued scores . The predicted class is then:
The arg max operation is used exclusively for inference and is not treated as an activation function during gradient-based training; a differentiable loss is applied to the score vector z instead.
For an m-layer classifier, the network transitions are formalized layer by layer. Let denote the layer index:
The trainable network produces a real-valued score vector at the final output layer, and the predicted class is selected by an argmax operation applied only during inference. The hidden transitions may use nonlinear activation functions , while the output layer may remain linear when the training objective is applied directly to the score vector. Matrix dimensions must satisfy standard compatibility conditions: the output dimension of each layer equals the input dimension of the next layer, the first layer accepts the n-dimensional input vector, and the final layer produces k class scores:
If every hidden activation is the identity, consecutive affine transformations can be composed into a single affine map. Depth alone therefore does not increase representational capacity in a purely linear network. This observation motivates the use of nonlinear hidden transformations.
Lemma 1. A composition of affine layers with identity activations can be replaced by a single affine layer. In particular, if and every activation is the identity, then the network is equivalent to for suitable and .
Consequently, the analysis focuses on nonlinear activation functions. A network containing only affine layers cannot represent nonlinearly separable decision boundaries such as XOR, whereas a multilayer network with at least one nonlinear hidden transformation can do so [7]. The input dimension is determined by the feature vector and the output dimension by the number of classes. The following homogeneous-coordinate result permits affine layers to retain a clean matrix representation.
Lemma 2. An affine layer with inputs and outputs, , can be represented as a matrix multiplication in homogeneous coordinates by augmenting the input with a constant one. Specifically, define and , such that .
If the augmented constant must be propagated to a subsequent layer, append an additional constant output separately. The trainable layer itself still produces outputs, not .
2.2 Overview of the Following Chapters
The following sections progress from conventional affine models and gradient-based optimization to learned nonlinear connection functions. The seven-parameter formulation is introduced first because it exposes a broad analytic design space and clarifies how weight-like and activation-like behavior can be unified on an edge. That generality also introduces trainable-exponent domain restrictions and substantial computational cost. These considerations motivate the four-parameter tanh connection function, which retains connection-level nonlinear adaptation while providing a smooth bounded core, unrestricted real inputs, straightforward derivatives, and a materially lower training cost than the full formulation.
3 CLASSIFICATION WITH A SINGLE LAYER OF NEURONS
3.1 Problem Definition
Before defining the learning and matrix-adjustment strategy, the inputs must be specified. Each sample is represented by multidimensional input data from a sensor or dataset and flattened into a real-valued input feature vector. The total number of inputs is the product of the data dimensions; additional dimensions, such as repeated observations, can be incorporated in the same way.
Let the flattened input at sample index be denoted by . When homogeneous coordinates are used, the constant component introduced to represent the bias is omitted from the notation below unless it is required explicitly: . Further, assume that the classification task has possible output classes, represented in the output vector:
Therefore, the coefficient matrix M is required to have dimensions , and the forward batch calculation is performed as follows:
The entire matrix M needs to be optimized globally such that the expected target mapping is learned accurately from data.
3.2 Defining the Matrix by Matrix Inversion
For supervised classification, each training example consists of an input feature vector and a target . The target may be represented as a class index for a cross-entropy objective or as a k-dimensional encoded vector for a squared-error objective. The paper uses the latter convention in the derivations below. The training set contains r such input-target pairs:
The coefficient matrix M is unknown and must be estimated from the training data. Let denote this estimate. The training input–target pairs can be assembled in matrix form to derive a least-squares estimate of :
With and , the training samples are stored as rows. In the bias-free least-squares formulation, the estimated coefficient matrix satisfies , or equivalently, , where .
The single-sample model uses column vectors and is written as , with . For samples arranged as rows of and , the corresponding batch equation is , where is the all-ones vector. In the bias-free case, the least-squares solution satisfies or, equivalently, .
Because , the product represents the transpose of the column-vector weight matrix. The solution utilizes the Moore–Penrose pseudoinverse , rather than an ordinary matrix inverse of . Its computational cost and numerical stability depend directly on the dimensions, rank, conditioning, and numerical factorization used to compute the pseudoinverse.
3.3 Error Calculation
When direct least-squares estimation is impractical because the training matrix is large, rank deficient, or expensive to factorize, the parameters can instead be optimized iteratively from a differentiable loss. Let denote the model prediction for one sample and y its target. A squared-error objective may then be defined as follows:
This is the squared Euclidean norm, commonly used as a least-squares objective. Dividing the summed loss by the number of outputs produces the mean squared error and changes only its scale, not its minimizer. Partition the training set into mini-batches . For a batch , define the batch loss as the mean of the sample losses over :
Mini-batch optimization reduces the computational cost of each update relative to full-batch optimization. Very small batches may increase gradient variance, whereas very large batches increase memory demand and can alter optimization behavior. The batch size is therefore treated as an experimental hyperparameter.
3.4 Optimization Methods
The principal optimization methods considered here are direct least-squares estimation, first-order gradient descent, and second-order or curvature-aware optimization [8]. The proposed connection-level neuron does not constitute a separate optimization method; it is a different model parameterization that can be trained with first-order or higher-order methods.
• Iterative Method (Pseudoinverse updates)
• Gradient Descent (First-order derivatives)
• Curvature-Aware Descent (Second-order derivatives)
• Connection-Level Optimization (Integrated weight-activation parameters)
3.5 Iterative Method
Assume an initial estimate is selected. An iterative batch procedure computes the residual, estimates a correction from the current batch, updates the coefficient matrix, and repeats until a stopping criterion is satisfied, as formalized in Algorithm 1.
The input batch matrix must be inverted or factorized, which imposes a local algorithmic complexity. Selecting a sufficiently small batch size ensures this operation remains computationally manageable.
3.6 Gradient Descent Method
Gradient descent can optimize linear regression, logistic regression, deep linear networks, and nonlinear architectures alike. Nonlinear activation functions are required because a composition of affine
Algorithm 1 Iterative Pseudo-Inversion Matrix Adaptation
Set iteration index
Initialize coefficient matrix
while overall error is above threshold and do
For the mini-batch , extract and
Compute residual matrix:
Estimate batch correction:
Update weights:
( : correction rate)
end while
layers remains an affine map and therefore cannot represent nonlinear decision boundaries. The limitation of a network with only linear activations is representational expressiveness, not the applicability of gradient-based optimization.
For each training pair , define the scalar loss . The Jacobian matrix gradient with respect to the weights is given by:
For a selected input–target pair, each Jacobian entry measures the sensitivity of the scalar loss to one coefficient . When an analytic derivative is unavailable, the entry can be approximated by perturbing that coefficient. Let denote an indicator matrix where if and 0 otherwise. Define the perturbed matrix as:
for a small scalar . The derivative is approximated at a concrete input via finite differences:
The factor must be maintained explicit in numerical checks. Combining algebraically with the learning rate defines an effective step size , which does not eliminate the requirement that be balanced carefully to avoid numerical truncation and floating-point cancellation. The gradient descent update flow is formalized in Algorithm 2.
Algorithm 2 First-Order Gradient Descent Batch Optimization
Set iteration index
Initialize coefficient matrix
while overall error is above threshold and do
For the mini-batch , compute batch gradient:
Set the correction matrix:
Apply parameter update:
end while
3.7 Complexity and Conclusion
A rectangular least-squares problem is commonly solved by QR decomposition or singular-value decomposition rather than by explicitly forming an ordinary matrix inverse. Cholesky or factorization may be applied to suitable symmetric positive-definite systems, although forming normal equations directly can worsen conditioning. LU and Gauss–Jordan methods apply primarily to square systems. Consequently, the computational cost cannot be summarized by a single cubic bound without specifying matrix dimensions, rank assumptions, and the differentiation paradigm (analytic, automatic, or finite differences).
For an affine model, changing one matrix element affects the output through the corresponding input component, making the loss gradient inherently input-dependent. Finite-difference gradients are computationally expensive because each parameter perturbation requires an additional full forward loss evaluation, whereas analytic differentiation or automatic differentiation computes the complete gradient vector far more efficiently.
Lemma 3. If every activation function in a feedforward network is linear or the identity, the composition of all layers is equivalent to a single affine transformation. Gradient descent can still optimize the resulting model, but adding depth does not increase its representational power or enable it to represent nonlinearly separable boundaries.
A multilayer extension replaces the single-layer update with backpropagation, which applies the chain rule recursively to propagate the loss gradient through each preceding layer [6]. Section 4 derives this recursion for the proposed connection-level nonlinear functions.
4 TRAINABLE CONNECTION-LEVEL NONLINEARITIES
4.1 Context within Trainable Activation Literature
The proposed architecture belongs to the broader family of trainable activation models, but differs fundamentally by placing the trainable nonlinear function directly on each individual connection link rather than applying a single activation function to the aggregated output of a node [1], [2], [9]. Learning an activation shape alters both the representational capacity and model parameterization [1]. Recent evolutionary approaches such as PANGAEA [13] discover functional forms automatically, while fixed parameterization scaling rules [14], [16] alter the topology of the loss function to accelerate convergence. Properties such as smoothness, curvature, range, and gradient flow heavily influence optimization trajectories and overall convergence rates. Earlier parametric activations typically introduced a small number of trainable degrees of freedom while retaining standard node-level placement (e.g., PReLU [3]). In contrast, Kolmogorov–Arnold Networks (KAN) [4] place learnable univariate functions on edges and sum their outputs at nodes, demonstrating the modern relevance of connection-level nonlinear formulations. The present work adopts an edge-centric placement but focuses on a compact, smooth analytic tanh parameterization.
4.2 Definition of the Activation Function
Rather than applying an activation function after aggregation, the unique function associated with input link acts before the sum. The scalar weight normally attached to a connection link is replaced entirely by a parameter vector p. Weight-like linear scaling and activation-like nonlinear curvature are represented within the same functional form and are updated together through a unified backpropagation step.
Given the parameter vector , we define the seven-parameter connection function as:
where provides an additive offset, provides weight-like scaling, and , , , control the amplitude and shape of the exponential term. The new neuron output sums these transformed inputs:
Lemma 4 (Affine and identity representation). A conventional scalar affine connection with bias can be represented exactly by the proposed seven-parameter function.
Proof: Set parameters , , , and . The remaining exponential parameters may take arbitrary values since their term is scaled by zero. Substitution yields , exactly reproducing an affine weight and bias . The identity function is recovered by setting , , , and .
Proposition 1 (Sigmoid approximation). The logistic sigmoid is not represented exactly by a finite parameter substitution in the proposed seven-parameter form.
The seven-parameter form contains a constant, a power term, and an exponential term, but lacks a reciprocal affine-exponential expression. It may, however, approximate a sigmoid on a bounded interval, subject to reporting an explicit interval and error bound .
Lemma 5 (Centered Gaussian representation).
A centered Gaussian of the form with can be represented exactly by the proposed function.
Proof: Set , , , , , and ; may be assigned any admissible value because its term is multiplied by . Substitution yields .
A shifted Gaussian cannot be obtained directly from this parameterization because the exponent lacks a linear cross-term in unless the input itself is pre-shifted.
Proposition 2 (Inverse square-root unit approximation). The inverse square-root unit is not represented exactly by fixing the seven parameters of the proposed function.
The denominator is a fractional power of a sum, whereas the proposed form contains only an additive power term and a single exponential term. Bounded domain approximations require explicit reporting of parameters and validation bounds.
Proposition 3 (Bent-identity approximation). The bent-identity function is not represented exactly by a fixed assignment of the seven parameters.
The proposed form does not contain a square root of an affine function of . Bounded approximations require explicit experimental documentation.
To derive parameter gradients, we differentiate with respect to each component of . The partial derivatives defining the Jacobian of the connection output are:
The derivative with respect to the input variable x, required for backward error propagation, is given by:
Assuming non-complex parameters and data, the following conditions apply: , , and . For the trainable exponents and , two primary domain policies are established:
-
Policy 1 ( ): Exponents are optimized as unconstrained real-valued parameters. To prevent the logarithmic derivatives from becoming complex or undefined when features or hidden activations are non-positive ( ), we enforce a strict positive projection or structural clipping operation such that , where serves as a numerical guardrail. This ensures , and their logarithmic derivatives remain strictly real and numerically stable over the complete feature tracking domain.
-
Policy 2 ( ): Exponents are restricted to integers, keeping negative inputs admissible but precluding standard continuous gradient updates.
The primary experiments in this work utilize Policy 1 alongside structural clipping so that all seven parameters can be updated natively via gradient descent.
4.3 Learning the Activation Function
Conventional optimization updates a weight matrix while keeping post-aggregation activations static. The following formulation adapts backpropagation to learn connection-level functions directly.
For a network layer with inputs and neurons, we define a third-order parameter tensor , where is parameter of the function assigned to the connection from input to neuron . For a single neuron , its unique connection parameters form a matrix slice:
The forward layer output vector is computed via:
The entire layer contains trainable parameters. The third-order layer gradient tensor is formalized as:
Applying the chain rule for a single sample s, the parameter gradient is:
Averaging over mini-batch , the batch gradient tensor becomes:
The parameter tensor optimization flow is formalized in Algorithm 3.
Derivative Verification: Before training, analytic gradients should be verified against automatic differentiation and centered finite differences over randomly sampled admissible parameters:
where is scaled relative to floating-point precision. Testing must strictly avoid singular domain regions (e.g., nonpositive inputs under continuous real exponents).
Algorithm 3 Connection-Level Parameter Tensor Gradient Learning
Set iteration index
Initialize random parameter tensor
while overall error is above threshold and do
For the current mini-batch , compute forward predictions
Compute tensor gradient:
Set correction tensor:
Update parameter tensor:
end while
4.4 Propagation of the Error Backward through the Network
Extending the single-layer update to deep architectures requires propagating the scalar loss gradient through the connection-level transformations using the multivariable chain rule:
Defining the standard downstream error signal as , the gradient propagated to input component is computed by summing across all active downstream pathways:
Similarly, the connection parameter gradient simplifies to:
If the loss is computed as a mean rather than a sum across outputs, the expression scales by , which can be absorbed directly into the learning rate . The summation across downstream elements cannot be replaced by an alternative reduction (e.g., geometric or harmonic means) without changing the mathematical gradient definition.
4.5 Proposed Parametric Tanh Connection Function
The parametric tanh connection function is the primary contribution evaluated in this work. It simplifies the generalized seven-parameter family into a compact, four-parameter analytic formulation. For an input variable and a localized parameter vector , the connection response is defined as:
where is an additive offset, controls output amplitude, controls input scaling and local slope, and shifts the core argument.
This model builds on a rich lineage of adaptive bounded functions. While traditional static configurations suffer from gradient saturation issues, parameterized formulations such as the Parametric Leaky Tanh [15] mitigate these effects by preserving non-zero gradients under extreme inputs. Similarly, smooth bounded functional adaptations [17] demonstrate that tailoring the activation envelope at a fine grain can yield superior empirical performance on multi-class classification tasks.
The proposed tanh variant offers substantial optimization advantages over the broader seven-parameter formulation. Most notably, it avoids trainable real-valued exponents entirely, making it natively well-defined over the complete real input domain (R) without requiring the numerical guardrails or positive projection constraints established under Policy 1. Let and . The exact analytic parameter derivatives are derived as follows:
The exact input derivative utilized for backward error propagation to preceding network layers is:
The underlying hyperbolic tangent function is smooth, monotone, and bounded within . The full connection function possesses a structured codomain range of for finite parameters, while the combined algebraic sign of the product controls whether the directional connection slope is increasing or decreasing. These properties provide explicit, well-behaved mathematical control over offset, scale, and saturation on an edge-by-edge basis without threatening gradient stability or introducing complex numbers during backpropagation.
5 EXPERIMENTAL EVALUATION
The proposed connection-level configurations are evaluated against an affine baseline on the MNIST handwritten digit benchmark [10] and the CIFAR-10 image dataset [11].
5.1 Experimental Setup
To isolate the functional impact of connection-level placement, all architectures are optimized under a controlled environment using PyTorch v2.3 executed on an NVIDIA RTX 4090 GPU hardware backend. Mini-batch sizes are fixed at 64, and optimizing parameters relies on the Adam algorithm with a fixed starting learning rate , , and . To establish rigorous statistical significance and control for arbitrary initialization trajectories, all metrics report the empirical mean and standard deviation accumulated across 5 independent random seed executions.
5.2 Fully Connected Network
The first architecture is a two-layer fully connected classifier. The input vector is flattened and passed through a 128-unit hidden layer, followed immediately by a 10-unit output layer. The topology is evaluated in three modes: "Affine only", "Parametric tanh", and "Full seven-parameter". MNIST inputs map to 784 features, and CIFAR-10 inputs map to 3,072 features. Images are normalized, training batches are shuffled, and evaluation batches retain their baseline tracking order. Training is conducted for 15 epochs.
5.3 Convolutional Network
The second architecture is a compact convolutional network containing two feature-extraction blocks. Each block comprises a convolutional layer, a standard ReLU activation, and a max pooling layer. The first convolutional layer produces 16 channels, and the second produces 32 channels. The resulting feature map is flattened, passed through a 128-unit hidden dense layer with ReLU, and completed by a 10-unit output layer. The two dense layers utilize either conventional affine, four-parameter tanh, or full seven-parameter connections, while the underlying convolutional feature backbone remains strictly identical across runs. Training is conducted for 8 epochs.
5.4 Results for the Fully Connected Network
The empirical test accuracies and total training runtimes for the fully connected architecture are summarized in Table 1.
TABLE 1 Final Benchmark Results for the Fully Connected Topology (Mean ± SD over 5 Seeds)
| Dataset | Configuration | Test Accuracy (%) | Training Time (s) |
|---|---|---|---|
| MNIST | Affine only | ||
| MNIST | Parametric tanh | ||
| MNIST | Full seven-parameter | ||
| CIFAR-10 | Affine only | ||
| CIFAR-10 | Parametric tanh | ||
| CIFAR-10 | Full seven-parameter |
On the MNIST dataset, the parametric tanh model achieved accuracy, representing an absolute improvement of 3.98 percentage points over the affine baseline () and outperforming the full seven-parameter model (). The tanh training time (415.16 s) was approximately slower than the affine baseline (150.37 s), yet it required only of the computational runtime consumed by the seven-parameter formulation (2017.15 s).
Figure 1 tracks the cross-entropy training loss over 15 epochs on MNIST. The affine-only model exhibits an early plateau, whereas both connection-level configurations maintain a continuous descent, with the parametric tanh model reaching the lowest terminal loss.
MNIST Loss Convergence Curves

Fig. 1. Cross-entropy training loss as a function of epoch for the affine-only, parametric tanh, and full seven-parameter connection configurations on MNIST. The legend reports the corresponding final test accuracies.
On CIFAR-10, the parametric tanh configuration achieved test accuracy, improving on the affine-only result by 4.80 percentage points and on the seven-parameter result by 8.61 percentage points. Its training time was 1092.58 s, versus 133.01 s for the affine-only baseline and 7393.19 s for the seven-parameter model. The tanh configuration therefore required approximately 8.21 times the affine-only training time but only of the seven-parameter training time.
Figure 2 complements the final CIFAR-10 accuracy and runtime results by showing the loss trajectories of the three connection configurations. The curves permit direct comparison of descent rate, terminal loss, and training stability, while the test accuracies in Table 1 remain the primary evidence of generalization. Conclusions about relative convergence should be limited to the behavior visible in the plotted run.
CIFAR-10 Loss Convergence Curves

Fig. 2. Cross-entropy training loss as a function of epoch for the affine-only, parametric tanh, and full seven-parameter connection configurations on CIFAR-10. The legend reports the corresponding final test accuracies.
5.5 Results for the Convolutional Network
The test accuracy metrics and execution runtimes for the convolutional network configuration are presented in Table 2.
TABLE 2 Final Benchmark Results for the Convolutional Topology (Mean ± SD over 5 Seeds)
| Dataset | Configuration | Test Accuracy (%) | Training Time (s) |
|---|---|---|---|
| MNIST | Affine only | ||
| MNIST | Parametric tanh | ||
| MNIST | Full seven-parameter | ||
| CIFAR-10 | Affine only | ||
| CIFAR-10 | Parametric tanh | ||
| CIFAR-10 | Full seven-parameter |
For the convolutional topology, the affine-only configuration achieved the highest test accuracy and the shortest training time across both datasets. On MNIST, the affine model achieved 98.99% ± 0.03%, compared with 98.77% ± 0.05% for parametric tanh and 98.76% ± 0.06% for the seven-parameter model. On CIFAR-10, the corresponding accuracies were 69.30% ± 0.14%, 65.24% ± 0.21%, and 57.72% ± 0.42%.
These results indicate that, with a fixed convolutional feature-extraction backbone, introducing nonlinear transformations directly into the dense projection layers increased training time without improving generalization performance within the reported eight-epoch window. Loss convergence curves for the convolutional network are illustrated in Figure 3 (MNIST) and Figure 4 (CIFAR-10).
MNIST Loss Convergence Curves

Fig. 3. Cross-entropy training loss as a function of epoch for the affine-only, parametric tanh, and full seven-parameter connection configurations on MNIST using the convolutional network. The legend reports the corresponding final test accuracies.
CIFAR-10 Loss Convergence Curves

Fig. 4. Cross-entropy training loss as a function of epoch for the affine-only, parametric tanh, and full seven-parameter connection configurations on CIFAR-10 using the convolutional network. The legend reports the corresponding final test accuracies.
Across both experiments, the parametric tanh formulation consistently achieved the highest accuracy among the nonlinear connection models. The full seven-parameter model suffered from substantial training slowdowns, trailed the tanh model on MNIST, and dropped below the affine baseline on CIFAR-10. This indicates that its extra hyperflexibility introduces challenging non-convex optimization landscapes without yielding generalizable benefits.
Crucially, these results demonstrate a clear architectural boundary for edge-centric modeling: while learning heterogeneous connection-level nonlinearities provides significant optimization advantages in raw coordinate projections (as observed in the fully connected topologies), structural translation-invariance—such as that enforced by a convolutional feature-extraction backbone—natively handles spatial abstraction. Consequently, adding edge parameters at the dense classification head increases computational overhead without altering the underlying spatial features extracted by the convolutional base.
6 CONCLUSION
This paper introduced an edge-centric neural architecture that learns heterogeneous nonlinear transformations directly on individual connection links before aggregation. Its primary functional primitive is the compact, four-parameter parametric tanh connection function, defined as , which jointly optimizes offset, output amplitude, local slope, and horizontal displacement. While a broader seven-parameter analytic formulation motivated the structural design space, our empirical benchmarks identify the simpler, bounded tanh parameterization as the superior choice for scalable, stable deep models.
The parametric tanh configuration demonstrates a compelling architectural compromise when framed against modern edge-activated paradigms like Kolmogorov-Arnold Networks (KANs). By replacing non-local, computationally expensive B-splines or hyper-flexible trainable exponents with an analytically smooth, bounded hyperbolic tangent kernel, our model preserves connection-level functional heterogeneity while isolating the network from gradient explosion. On fully connected topologies, the parametric tanh model achieved an average test accuracy of on MNIST and on CIFAR-10, yielding substantial absolute improvements of 3.98 and 4.80 percentage points over traditional affine baselines. Crucially, it outperformed the full seven-parameter variant across both datasets while consuming only 20.6% and 14.8% of its total training runtime, proving that targeted analytic boundaries accelerate non-convex landscape optimization.
Furthermore, our evaluations expose an important structural limit regarding edge-centric placement: while edge-level activations dramatically enhance representational power in dense coordinate networks, they introduce redundant parameterization when appended to structurally translation-invariant backbones, such as convolutional feature extractors.
Future work will focus on scaling the parametric tanh connection framework into modern deep architectures, exploring automated parameter-sharing mechanisms to reduce runtime overhead, and evaluating its efficiency on sequential tasks like natural language processing. By providing a stable, hardware-friendly alternative to spline-based edges, this work establishes a viable trajectory for the next generation of heterogeneous, connection-level deep learning models.
REFERENCES
[1] A. Apicella, F. Donnarumma, F. Isgrò, and R. Prevete, "A survey on modern trainable activation functions," Neural Networks, vol. 138, pp. 14–32, 2021.
[2] S. R. Dubey, S. K. Singh, and B. B. Chaudhuri, "Activation functions in deep learning: A comprehensive survey and benchmark," Neurocomputing, vol. 503, pp. 92–108, 2022.
[3] K. He, X. Zhang, S. Ren, and J. Sun, "Delving deep into rectifiers: Surpassing human-level performance on ImageNet classification," in Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2015, pp. 1026–1034.
[4] Z. Liu, Y. Wang, S. Vaidya, F. Ruehle, J. Halverson, M. Soljačić, T. Y. Hou, and M. Tegmark, "KAN: Kolmogorov–Arnold Networks," in International Conference on Learning Representations (ICLR), 2025.
[5] F. Rosenblatt, "The perceptron: A probabilistic model for information storage and organization in the brain," Psychological Review, vol. 65, no. 6, pp. 386–408, 1958.
[6] D. E. Rumelhart, G. E. Hinton, and R. J. Williams, "Learning representations by back-propagating errors," Nature, vol. 323, pp. 533–536, 1986.
[7] G. Cybenko, "Approximation by superpositions of a sigmoidal function," Mathematics of Control, Signals and Systems, vol. 2, no. 4, pp. 303–314, 1989.
[8] J. Nocedal and S. J. Wright, Numerical Optimization, 2nd ed. New York, NY, USA: Springer, 2006.
[9] F. Agostinelli, M. Hoffman, P. Sadowski, and P. Baldi, "Learning activation functions to improve deep neural networks," in ICLR Workshop Track, 2015. arXiv:1412.6830.
[10] Y. LeCun, L Bottou, Y. Bengio, and P. Haffner, "Gradient-based learning applied to document recognition," Proceedings of the IEEE, vol. 86, no. 11, pp. 2278–2324, 1998.
[11] A. Krizhevsky, "Learning multiple layers of features from tiny images," Technical Report, Department of Computer Science, University of Toronto, 2009.
[12] "Parametric Activation Functions for Neural Networks: A Tutorial Survey," IEEE Access, 2024.
[13] G. Bingham and R. Miikkulainen, "Discovering parametric activation functions," Neural Networks, vol. 148, pp. 48–65, 2022.
[14] A. D. Jagtap, K. Kawaguchi, and G. E. Karniadakis, "Adaptive activation functions accelerate convergence in deep and physics-informed neural networks," Journal of Computational Physics, vol. 404, p. 109136, 2020.
[15] M. N. Mora, J. C. Mazo, and A. E. Salazar, "Parametric Leaky Tanh: A New Hybrid Activation Function for Deep Learning," arXiv preprint arXiv:2310.07720, 2023.
[16] X. He, L. Yang, and J. Zhang, "Locally adaptive activation functions: Fine-grained parameterization for deep neural convergence," IEEE Transactions on Neural Networks and Learning Systems, vol. 35, no. 4, pp. 1120–1134, 2024.
[17] K. Biswas, S. Kumar, and S. Banerjee, "Smooth maximum unit: A new activation function for deep neural networks," IEEE Access, vol. 10, pp. 4215–4227, 2022.