Manuscript Offprint
arXiv:2611.12248A method to automatically discover symbolic local learning rules
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We present a general method for discovering symbolic local learning rules that can replace backpropagation, applicable, in principle, to any deep learning architecture and task. The method automatically discovers local loss functions specific to each layer by (1) constructing a dictionary of monomials of local tensor variables, inspired by Penrose diagram notation, (2) regressing over coefficients weighting these monomials to build layerwise polynomial losses whose gradients together minimize a target global loss. We test the method on classification, reconstruction, and self-supervised learning tasks with small multilayer networks and minimal datasets. Across all tasks, the discovered rules induce non-trivial interactions between layers, which lead to significant reductions in the corresponding global losses. Furthermore, the method selects sparse combinations of monomials, finding local rules that are more interpretable than those generated by MLP-based alternatives. The potential implications of our method range from energy-efficient deep learning to the discovery of biologically plausible learning mechanisms.
1 Introduction
The plausibility of backpropagation as a model of biological learning is disputed [e.g., Crick, 1989, Lillicrap et al., 2016, 2020, Richards et al., 2019], mainly because it demands sharing gradient information across all layers of deep networks at each update step. A more plausible candidate would have to be local and require limited information sharing across the network [Bredenberg et al., 2023]. From a machine learning perspective, local learning rules—when supported by suitable hardware [Momeni et al., 2025]—may offer practical advantages over standard backpropagation: they reduce cross-layer information transfer, enable layers to be updated in parallel, and may reduce energy costs in hardware settings where communication is a bottleneck.
Different approaches have been proposed to replace backpropagation with local learning rules. For simple problems and shallow networks, closed-form learning rules have been derived analytically [e.g., Oja, 1982, 1989, Hyvärinen and Oja, 1998, Pehlevan et al., 2015]. For more complex problems and deeper networks, hand-engineered local learning rules have shown empirical success in specific settings [e.g., Löwe et al., 2019, Xiong et al., 2020, Siddiqui et al., 2024, Zihan et al., 2026]. Methods have also been proposed to automatically discover effective local learning rules [e.g., Metz et al., 2019, Gu et al., 2019, Gregor, 2020, Tyulmankov et al., 2022, Metz et al., 2022, Shervani-Tabar and Rosenbaum, 2023, Confavreux et al., 2023]. Typically, these methods train auxiliary multi-layer perceptrons (MLPs) to implement local weight updates. They, however, do not produce interpretable equations for the learning rules, as MLPs perform highly non-linear and complex transformations of their inputs.
Here, we start from the observation that many classical local learning rules can be expressed as low-order polynomial functions of locally available variables, such as weights and pre- and post-synaptic
*Corresponding author: andrea.perin@aalto.fi. †Co-last authors.
Preprint.
activities. We postulate that, for more complex problems (deeper networks and complex tasks), approximate solutions also exist that are expressible as polynomials of accessible local variables. We design a method that turns the construction of local learning rules into a systematic, learnable procedure: for each layer, our method (1) automatically generates a dictionary of monomials of local tensor variables, leveraging a method known in physics as Penrose diagram notation, and (2) learns the coefficients weighting these elements to build polynomial local losses. The gradients of these losses induce local updates that together conspire to satisfy a target global objective. We demonstrate the feasibility of our approach on minimal problems of classification, reconstruction, and self-supervised learning.
Specifically, we consider trace monomials, defined as those scalars that are computed by taking up to , possibly repeated, neighborhood elements, and contracting all their indices two by two according to shape compatibility. For example, for a linear layer with weight matrix , input and output , a few possible trace monomials, of orders 2, 3, and 4, respectively, are
where each contracted index appears twice and only twice in the expression.
We develop a method, inspired by Penrose's tensor diagram notation [Penrose et al., 1971], to generate all trace monomials up to order . In this notation, a tensor of rank is represented as a labeled box from which different "legs" protrude, one for each index in the tensor, and each labeled (by equipping it with bullet points, squares, or any other graphical sign) to reflect the size of the respective index (Fig. 1a). Two tensors can be connected by joining them on a common leg; the corresponding index is understood to be contracted, i.e., summed over. For a rank-0 tensor (i.e., a scalar), the box has no protruding legs. Our method generates all combinations of up to tensors in which all legs are paired according to their shapes, leading to scalars — the trace monomials (Fig. 1b). In all our experiments, we keep . In practice, we use the einsum function to compute the numerical values of the trace monomials (see Appendix A for a pseudo-code description of the method).

(a) Examples of tensor variables in Penrose diagram notation. Vectors have a single leg, matrices have two, in general differently sized, legs.

(b) Trace monomials in Eq. 1 written in Penrose diagram notation.
Figure 1: Examples illustrating the Penrose diagram notation.
Using these monomials as dictionary elements, for each layer in the network we construct a local loss function, defined as a weighted sum of its trace monomials:
We refer to the weights as rule coefficients for layer , and initialize them to 0.
We now describe a training episode. We start by randomly initializing the network parameters. Each parameter is then recursively updated by using the gradients obtained from their respective local loss function, as in standard gradient descent, for a certain number of time steps. For each layer in the network (dropping the superscript to simplify the notation):

Figure 2: Schematic illustrating key notations used in the method. Here, the degree of the neighborhood is 2 (indicated by the ellipses).
We compute the global loss on these resulting weights, and its gradients with respect to each layer's rule coefficients. We update each layer's rule coefficients, and conclude the training episode. In practice, a number of these episodes take place at once using the same rules, thus batching the process over different copies of the network parameters.
We repeat this process, each time running a new training episode with the freshly updated rule coefficients and a new set of initializations of the network parameters. This outer loop is executed until the value of is below a chosen threshold.
2.1 Implementation details
The meta-optimization is numerically delicate: the outer-loop optimization is sensitive to the scale of the trace monomials, the length of the unrolled dynamics, and the stability of the induced weight updates. In our experiments, the following implementation choices were important for stable training.
Normalization of trace monomials: Different trace monomials can have wildly different magnitudes at initialization. To make all of them comparable at initialization, we measure the average value of trace monomials over initializations of the network parameters, and scale initial coefficients by setting them to be the inverse of these values.
Increasing time horizon: During training, we progressively increase the number of time steps in a training episode. We also add a jitter to the number of steps within an episode for a given realization, in order to stabilize training. We rely on checkpointed backprop [Wang et al., 2009, Stumm and Walther, 2010], as implemented in the Equinox library Kidger and Garcia [2021]. For memory reasons, this algorithm can only be run on a limited amount of data. Thus, for each training episode, we sample a subset of the whole dataset; then, for each step in the episode, we subsample mini-batches of size from this subset.
Early stopping: For a given initialization of the network parameters, a specific rule may quickly lead to divergent weights or, on the contrary, to vanishing weights. We stop a training episode as soon as the max-norm of any of the greedily updated weights becomes either larger or smaller than a chosen maximum/minimum safety value. This saves compute time, but most importantly ensures that the resulting gradients for the rule coefficients are not themselves exploding or vanishing. For all experiments, we use a maximum of and a minimum of .
Minimax training: At every initialization of the network parameters, we sample different copies in parallel. After following the current rule for the necessary number of time steps, we keep a subset of the worst-performing seeds. The gradients for the rule coefficients are the average over the worst-performing seeds.
Optimizers: For the inner loop, we use SGD with Nesterov momentum and unit learning rate. For the rule coefficients, we use AdamW with learning rate .
Sparse prior on rule coefficients: Numerically, we form rule coefficients as a Hadamard product between two vectors and on which gradient updates are applied. This procedure results in an implicit sparse prior [Aladrah et al., 2026] on rule coefficients, which we found to improve optimization results. As described above, is initialized to the inverse norm of the corresponding trace monomial, and is set to 0 at initialization.

Figure 3: Classification task on the Sliced MNIST held-out split. (A) Evolution of coefficients throughout training for a representative run. Each tick represents the coefficient for one trace monomial of our dictionary. (B) Loss evolution throughout application of the learned rules (red), compared to backpropagation (grey), backpropagation with first layer frozen (dashed light grey), backpropagation with first layer frozen to the dataset's PCA (blue) and ICA (green). Results are aggregated over network initializations: the median loss value is reported as a solid line, and the shaded region corresponds to the 10th–90th percentile range. (C) Weights of the network after training with our learned rules (top) vs. backpropagation (bottom). Weights for PCA and ICA are shown in App. Fig. 11.
3 Results
3.1 Classification
Setup For classification, we consider a cross-entropy target loss with L2 regularization of weights (), and use a simple, three-layer MLP with ReLU activations in the first and second layers, and log-softmax activation in the last layer. Thus, the classification portion of the loss function is the negative dot product between the network's output and the one-hot encoded label.
To keep computational load minimal, we used a low-dimensional version of MNIST, Sliced MNIST, in which we extract the middle (14th) row of pixels in the image, resulting in inputs of dimension 28. In order to make the classification problem more challenging, we randomly flip the sign of each sample vector: this last step makes the problem unsolvable by linear methods. We standardize the dataset to 0 mean and unit variance before using it. We then split the dataset into a training split consisting of classes (0,1,2,3,4), and a held-out split consisting of classes (5,6,7,8,9). We apply the same pipeline to Fashion-MNIST, of which we keep classes (5,6,7,8,9); the rules we find on the training split are then used both on the held-out split and on the Sliced Fashion-MNIST dataset, to test how the rules we find transfer across similar datasets. We choose the following weight sizes: , , . We use , , , , , , and ranging from 1 to 500 over 4000 training episodes, and then staying at 500 for an additional 200 training episodes.
We consider neighborhoods of all possible degrees: for degree 1, the rules are purely local, as there are no cross-layer interactions. Conversely, at degree 3, all layers have access to the whole downstream computational graph, thus rules are global. At degree 2, the rules include nearest-neighbor interactions: layers 2 and 3 have access to the whole downstream computational graph, while layer 1 is limited to itself and layer 2. Thus, degree 2 is local, but not purely. By sweeping over the possible degrees, we show how the method can interpolate between purely local and global rules.
Results We test the learned rules by using them to train different copies of the same architecture we trained on, using the held-out splits of Sliced MNIST and Sliced Fashion-MNIST. The results for degree 2 on the held-out split of Sliced MNIST are reported in Fig. 3. Results for the other data splits, including Sliced Fashion-MNIST, are shown in App. Fig. 7. To meaningfully evaluate our method, we compare its performance to four alternatives: (1) standard backpropagation, (2) keeping the first layer frozen to its initialization value, and training only the last two layers (hereby called frozen backprop), (3) keeping the first layer frozen to the dataset's principal components (PCA)—a learner implementing a generalized Hebbian/Sanger rule will converge to this solution [Sanger, 1989, Oja, 1989], and (4) keeping the first layer frozen to the independent components (ICA)—a learner implementing a version of Oja's rule will converge to this solution Hyvärinen and Oja [1998]. Among these baselines, frozen backpropagation constitutes a lower threshold target: at degree 2, the last two layers have access to the target loss, which can be written as a dot product between the one-hot encoded labels and the net's outputs. Thus, we expect that a local update rule for layer 1 will improve on the results achievable by frozen backprop. The remaining baselines, instead, serve to provide a comparison to other local learning methods.
When local rules learned by our method are applied, the loss decreases more slowly than it does with backpropagation, but faster than frozen backpropagation—thus achieving the minimal result (see Fig. 3B). Our rule also outperforms the ICA baseline, but not the PCA baseline (rule: 0.89, frozen: 0.97, backprop: 0.77, PCA: 0.84, ICA: 0.94). In terms of accuracy, our rule achieves 67% (backprop: 71%, frozen: 63%, PCA: 68%, ICA: 65%). These results are remarkable, since classification tasks are known to be especially challenging to solve with local learning rules (see Baldi and Sadowski [2015] and Discussion).
A feature of our method is that it affords explicit, symbolic expressions for the local losses. In the following, we denote by the one-hot encoded labels. We restrict ourselves to a few of the top-magnitude terms for clarity :
Layers 2 and 3 are able to pick up the target loss (the term ), as well as a logit alignment monomial . In the case of layer 2, we also recognize a squared cross-entropy term, whose gradient is aligned with the cross-entropy but with inverse sign. Layer 1 does not have access to the target loss terms, since the degree is only 2. In its loss, instead, we recognize terms that promote output magnitude , together with others which moderate the dynamics and , for instance), and forward-looking terms which contain layer 2's quantities, such as . The latter terms are effectively a way for layer 1 to adapt to the features learned by layer 2, and thus may represent a surrogate of the usual backprop's backward channel.
3.2 Reconstruction
Setup We train a non-linear autoencoder on a reconstruction task on Sliced MNIST (see 3.1). We use a 3-layer MLP with sizes , , , ReLU activations on layers 1 and 2, and no nonlinearity on the last layer. The target is the L2 loss between samples and their reconstructions.
As in the classification case, we train the rules on classes of Sliced MNIST, and test them on the held-out classes , and on Sliced Fashion-MNIST. We use , , , , , J = 5, and T ranging from 1 to 300 over 2000 training episodes.
Results During training, coefficients are selected by the method (Fig. 4A), leading to interpretable local loss equations. As local rules are subsequently applied, the loss decreases more slowly than it does with backpropagation. However, it decreases faster than it does with a degree-2 local version of backpropagation, where the first layer is frozen to initial weights and only the two last layers
In the following, a norm operator applied to a matrix is understood to be a Frobenius norm.

B
C
Figure 4: Reconstruction task. Same caption as Fig. 3.
are trained with backpropagation (Fig. 4B). The fact that our method beats this frozen backprop setup demonstrates that the learned losses cooperate in a non-trivial way across all layers, beyond what backpropagation limited to a neighborhood of degree-2 can accomplish (average loss values are, for rule: 1.90, frozen: 3.35, backprop: 1.27). The learned weights are structurally similar to those obtained with backpropagation (Fig. 4C). Results for the other data splits, including Sliced Fashion-MNIST, are shown in App. Fig. 8.
We report the largest terms in the rules (the cutoff being chosen for legibility):
In this case, the target loss is not directly available as a dictionary element to any layer, being the squared difference . However, under assumptions of fixed norms and , it becomes proportional to . This latter term is found in layers 2 and 3, as well as terms which regularize the norm of . In layer 1, which does not have access to the final output , there are Hebbian-like terms (such as and ), reconstruction-promoting terms and , and forward-looking terms which contain , such as and . The latter terms are effectively a way for layer 1 to adapt to the features learned by layer 2, and thus may represent a surrogate of the usual backprop's backward channel.
3.3 Self-supervised learning
Setup We train a 3-layer MLP on a self-supervised learning task on full MNIST, flattening the digits into 784-dimensional input vectors. We consider random flips and shifts of up to 157 pixels (corresponding to a fifth of the total input length) as augmentations. The MLP has sizes , , , and we use the Barlow Twins loss function [Zbontar et al., 2021] with tradeoff parameter , and with L2 regularization of weights ( ). We use , , , , , , and ranging from 1 to 100 over 6000 training episodes. We keep to a smaller value than in previous experiments due to stability issues in this setup.
A

B
C
Backpropagation
Figure 5: Self-supervised task on the MNIST held-out split. (A) Evolution of coefficients throughout training for a representative run. Each tick represents the coefficient for one trace monomial of our dictionary. (B) Loss evolution throughout application of the learned rules (red), compared to backpropagation (grey) and backpropagation with first two layers frozen (dashed light grey). Results are aggregated over network initializations: the median loss value is reported as a solid line, and the shaded region corresponds to the 10th–90th percentile range. We evaluate the rules for approximately the number of time steps they were trained for. (C) Weights of the network after training with our learned rules (top) vs. backpropagation (bottom). has been rearranged to show the weights of each neuron as patches.
For this task, we choose to employ layerwise local learning rules, i.e., we choose a neighborhood of degree 1. Indeed, recent work [Zihan et al., 2026] suggests that backpropagation could be approximated with layerwise local learning rules for typical self-supervised learning objectives.
Results Local learning rules are learned on a training set of classes (0,1,2,3,4), and subsequently applied to a separate testing set of classes (5,6,7,8,9). Results on this held-out set are reported in Fig. 5. As before, when local rules learned by our method are applied, the loss decreases more slowly than it does with backpropagation, but faster than it does with a degree-1 local version of backpropagation where the first two layers are frozen to initial weights (average loss values are, for rule: 17.11, frozen: 22.47, backprop: 5.50). Results for the other data splits, including Fashion-MNIST, are shown in App. Fig. 9.
We report the largest terms in the rules (the cutoff being chosen for legibility). Terms with an apex denote one of the two augmentation pairs; we note how the method finds very similar coefficients for terms that are swap-invariant.


Figure 6: Effect of degree on the rules' performance as evaluated on the same-split of Sliced MNIST for classification (left) and reconstruction (right).
In these formulae, we recognize terms linked to the cross-augmentation pre- and post-nonlinearity (e.g., and , note the symmetry between augmented pairs) and others that are linked to activation magnitudes (e.g., ). Terms are also present that measure the cross-augmentation alignment, e.g., . We also note that many rule coefficients are matched in value. For these coefficients, we also observed that they typically evolve in a grouped manner during the optimization process, showing the same values throughout training. We take this “coefficient grouping” as a sign that our method is well-behaved. Indeed, in the self-supervised learning framework we use, inputs and outputs are always present in transformation pairs. To the model, there is no inherent difference between samples in an augmentation pair, as they share the same shape and statistics. Note that in layer 3 the grouped monomials are strictly equivalent due to the absence of nonlinearity in the final layer of our network.
3.4 Effects of degree and order
For both classification and reconstruction tasks, we perform degree sweeps: holding other hyperparameters fixed, we vary the degree, ranging from 1 (purely local rules) to 3 (global rules) (Fig. 6). Interestingly, we find that degree 2 can comfortably beat degree 1 on the classification task, but not on the reconstruction task, where degree 1 is competitive. This seems to corroborate previous theoretical work Baldi and Sadowski [2015] on the necessity of a backward communication channel for solving supervised tasks. Moreover, in both cases rules of degree 2 outperform global rules, but not full backpropagation. This shows that our global rules are not able to exactly recover backpropagation terms, even when they are explicitly available. Future work on the optimization side of the method could potentially address this limitation.
Another important hyperparameter in our method is the order of the monomials, which we fixed to K = 4 in all our experiments. Increasing the order results in larger dictionaries, and increases the expressive power of a ruleset (at the cost of increased computational burden). In App. Table 1 we provide the number of monomials as a function of degree and order for each of the layers in the MLP described in Sec. 3.1. We leave a detailed exploration of the effects of this hyperparameter for future work.
3.5 Shape invariance
The construction of the dictionary is shape-invariant: the number and the nature of the monomials do not depend on the specific shapes of the involved tensors. A natural question then is: are rules also shape-invariant? To test this, we run the degree-2 rules for the classification task on the held-out split of Sliced MNIST, on a network with different layer sizes than the network used for learning the rule (described in 3.1), specifically, , , . We report the results in App. Fig. 10. The rules transfer partially to this differently sized architecture, but the performance deteriorates and stability seems to worsen. We leave further investigations on shape-invariance for future work.
4 Discussion
We presented a general method to learn equations for local learning rules. Other symbolic regression methods, such as SINDy, share a similar aim of inferring equations from data [Petersen and Landajuela, 2019, Udrescu et al., 2020, Cranmer et al., 2020, Biggio et al., 2021, Kamienny et al., 2022, Angelis et al., 2023, Makke and Chawla, 2022, Shojaee et al., 2025, Brunton et al., 2016]. They are usually employed to reverse-engineer dynamical systems from observations of their trajectories. Therein lies a crucial distinction: our method does not use trajectory data as a ground truth signal, and instead relies solely on the signal given by the global loss. A trajectory-based method, on the contrary, would pose both practical as well as theoretical problems: practical because of the data requirements (a whole trajectory, in our case, would consist of many copies of the weights of a model), and theoretical because what we want to approximate is not the backpropagation-induced dynamics, but instead the backpropagation-induced performance. In analogy with physics, we wish to apply constraints on the macroscopic observable of the complex system (the network's performance as measured by the global loss) rather than on its microscopic configurations.
Most previous attempts at meta-learning local rules have used MLPs [e.g., Metz et al., 2019, Gu et al., 2019, Gregor, 2020, Tyulmankov et al., 2022, Metz et al., 2022, Shervani-Tabar and Rosenbaum, 2023, Confavreux et al., 2023], trained to learn the gradients associated with specific layers in a pre-specified network architecture. Our method offers advantages over MLP-based ones. First, once the target architecture is specified, we find expressions which are more interpretable (as demonstrated in the Results section) than previous methods. Second, our method offers promises for transferring rules learned on small architectures and low-dimensional datasets to larger architectures and higher-dimensional datasets. Once written symbolically, the rules we find for the gradients carry no explicit dependence on the tensor shapes of data or network. Our preliminary results indicate that rules learned on one architecture can, at least partially, transfer to another architecture similar to the one used for training. Finally, our design choice of using a dictionary of low-order monomials in the local variables also distinguishes our method from the few other existing symbolic meta-learning methods, which restrict themselves either to variants of the Hebbian rule [e.g., Lindsey and Litwin-Kumar, 2020, Sandler et al., 2021], or to the estimation of optimal hyperparameters for normal backpropagation [e.g., Zheng et al., 2022].
Our attempts at finding polynomial local learning rules should not be interpreted as assuming that such rules are sufficient for arbitrary deep supervised learning, as limitations of local learning are known [Baldi and Sadowski, 2015]. In our framework, locality is a tunable parameter rather than a hard constraint: increasing the neighborhood degree gives each layer access to progressively larger portions of the downstream computational graph, up to the global case where the target loss itself can be represented at each layer. Indeed, if the target loss can be expressed as a linear combination of the trace monomials, our method can potentially recover backpropagation as one possible learning rule, where each layerwise loss is the target loss itself. Our framework is thus not limited to using purely local rules, but can be used to quantify how much nonlocal information is needed to obtain useful learning dynamics. Indeed, we have started exploring the effects of tuning the degree of our rules, and found corroborations to existing theoretical predictions. In addition to locality, our method allows us to tune the order of the trace monomials. Higher-order trace monomials can produce more complex local gradients, at the cost of increased computational burden and less stable dynamics.
Future work will also focus on scaling up the method to more realistic architectures and datasets. Improving the stability of the training process should be prioritized, as it is currently quite sensitive to hyperparameter choices, in part because the optimization landscape is fractal Sohl-Dickstein [2024]. Another promising direction is the analysis of the algebraic structure and interpretability of the rules learned by the method and, crucially, their transferability across datasets and architectures. If such transferability holds, the method could be used to discover local rules on simple datasets and then apply them to more complex ones. Lastly, we mention a possible alternative training method, known as the adjoint method [as used in, e.g., Bai et al., 2019], which relies on the implicit function theorem, and unlike the greedy procedure we presented, does not require to keep track of the whole trajectory. Instead, it requires reaching a fixed point of the dynamics, after which the gradients can be obtained by solving a linear system.
Acknowledgments
We thank Jaakko Lehtinen for useful discussions, and the Aalto Science-IT project for providing the computational resources. Funding: Research Council of Finland grant 3357590 (“Neuroscience-inspired Deep Learning”) to S.D. The authors declare no competing interests.
References
N. Aladrah, E. Ballarin, M. Biagetti, A. Ansuini, A. d'Onofrio, and F. Anselmi. Understanding and inverse design of implicit bias in stochastic learning: a geometric perspective. arXiv preprint arXiv:2601.06597, 2026.
D. Angelis, F. Sofos, and T. Karakasidis. Artificial intelligence in physical sciences: Symbolic regression trends and perspectives. Archives of Computational Methods in Engineering, pages 1–21, 2023.
S. Bai, J. Z. Kolter, and V. Koltun. Deep equilibrium models. Advances in Neural Information Processing Systems, 2019.
P. Baldi and P. Sadowski. A theory of local learning, the learning channel, and the optimality of backpropagation. Neural Networks : The Official Journal of the International Neural Network Society, 83:51–74, 2015.
L. Biggio, T. Bendinelli, A. Neitz, A. Lucchi, and G. Parascandolo. Neural symbolic regression that scales. arXiv, abs/2106.06427, 2021.
C. Bredenberg, E. Williams, C. Savin, B. Richards, and G. Lajoie. Formalizing locality for normative synaptic plasticity models. Advances in Neural Information Processing Systems, 2023.
S. L. Brunton, J. L. Proctor, and J. N. Kutz. Discovering governing equations from data by sparse identification of nonlinear dynamical systems. Proceedings of the National Academy of Sciences, 113(15):3932–3937, 2016.
B. Confavreux, P. Ramesh, P. J. Goncalves, J. H. Macke, and T. Vogels. Meta-learning families of plasticity rules in recurrent spiking networks using simulation-based inference. Advances in Neural Information Processing Systems, 2023.
M. Cranmer, A. Sanchez-Gonzalez, P. Battaglia, R. Xu, K. Cranmer, D. Spergel, and S. Ho. Discovering symbolic models from deep learning with inductive biases. arXiv, 2020.
F. Crick. The recent excitement about neural networks. Nature, 337(6203):129–132, 1989.
K. Gregor. Finding online neural update rules by learning to remember. arXiv, 2020.
K. Gu, S. Greydanus, L. Metz, N. Maheswaranathan, and J. Sohl-Dickstein. Meta-learning biologically plausible semi-supervised update rules. bioRxiv, 2019.
A. Hyvärinen and E. Oja. Independent component analysis by general nonlinear Hebbian-like learning rules. Signal Processing, 64(3):301–313, 1998.
P.-A. Kamienny, S. d'Ascoli, G. Lample, and F. Charton. End-to-end symbolic regression with transformers. arXiv, 2022.
P. Kidger and C. Garcia. Equinox: neural networks in JAX via callable PyTrees and filtered transformations. Differentiable Programming workshop at Neural Information Processing Systems, 2021.
T. P. Lillicrap, D. Cownden, D. B. Tweed, and C. J. Akerman. Random synaptic feedback weights support error backpropagation for deep learning. Nature Communications, 7(1):13276, 2016.
T. P. Lillicrap, A. Santoro, L. Marris, C. J. Akerman, and G. Hinton. Backpropagation and the brain. Nature Reviews Neuroscience, 21(6):335–346, 2020.
J. Lindsey and A. Litwin-Kumar. Learning to learn with feedback and local plasticity. Advances in Neural Information Processing Systems, 33, 2020.
S. Löwe, P. O'Connor, and B. Veeling. Putting an end to end-to-end: Gradient-isolated learning of representations. Advances in Neural Information Processing Systems, 2019.
N. Makke and S. Chawla. Interpretable scientific discovery with symbolic regression: a review. Artificial Intelligence Review, 57:1–38, 2022.
L. Metz, N. Maheswaranathan, B. Cheung, and J. Sohl-Dickstein. Meta-learning update rules for unsupervised representation learning. International Conference on Learning Representations, 2019.
L. Metz, J. Harrison, C. D. Freeman, A. Merchant, L. Beyer, J. Bradbury, N. Agrawal, B. Poole, I. Mordatch, A. Roberts, et al. Velo: Training versatile learned optimizers by scaling up. arXiv, 2022.
A. Momeni, B. Rahmani, B. Scellier, L. G. Wright, P. L. McMahon, C. C. Wanjura, Y. Li, A. Skalli, N. G. Berloff, T. Onodera, et al. Training of physical neural networks. Nature, 645(8079):53–61, 2025.
E. Oja. Simplified neuron model as a principal component analyzer. Journal of Mathematical Biology, 15(3):267–273, 1982.
E. Oja. Neural networks, principal components, and subspaces. International Journal of Neural Systems, 1(01):61–68, 1989.
C. Pehlevan, T. Hu, and D. B. Chklovskii. A Hebbian/anti-Hebbian neural network for linear subspace learning: A derivation from multidimensional scaling of streaming data. Neural Computation, 27(7):1461–1495, 2015.
R. Penrose et al. Applications of negative dimensional tensors. Combinatorial Mathematics and its Applications, 1(221-244):3, 1971.
B. K. Petersen and M. Landajuela. Deep symbolic regression: Recovering mathematical expressions from data via risk-seeking policy gradients. arXiv, 2019.
B. A. Richards, T. P. Lillicrap, P. Beaudoin, Y. Bengio, R. Bogacz, A. Christensen, C. Clopath, R. P. Costa, A. de Berker, S. Ganguli, et al. A deep learning framework for neuroscience. Nature Neuroscience, 22(11):1761–1770, 2019.
M. Sandler, M. Vladymyrov, A. Zhmoginov, N. Miller, T. Madams, A. Jackson, and B. A. Y. Arcas. Meta-learning bidirectional update rules. In International Conference on Machine Learning, PMLR, 2021.
T. D. Sanger. Optimal unsupervised learning in a single-layer linear feedforward neural network. Neural Networks, 2(6):459–473, 1989. ISSN 0893-6080. URL https://www.sciencedirect.com/science/article/pii/0893608089900440.
N. Shervani-Tabar and R. Rosenbaum. Meta-learning biologically plausible plasticity rules with random feedback pathways. Nature Communications, 14(1):1805, 2023.
P. Shojaee, K. Meidani, S. Gupta, A. B. Farimani, and C. K. Reddy. LLM-SR: Scientific equation discovery via programming with large language models. In International Conference on Learning Representations, 2025.
S. A. Siddiqui, D. Krueger, Y. LeCun, and S. Deny. Blockwise self-supervised learning at scale. Transactions in Machine Learning Research, 2024.
J. Sohl-Dickstein. The boundary of neural network trainability is fractal. arXiv, 2024.
P. Stumm and A. Walther. New algorithms for optimal online checkpointing. SIAM Journal on Scientific Computing, 32(2):836–854, 2010.
D. Tyulmankov, G. R. Yang, and L. Abbott. Meta-learning synaptic plasticity and memory addressing for continual familiarity detection. Neuron, 110(3):544–557, 2022.
S. Udrescu, A. Tan, J. Feng, O. Neto, T. Wu, and M. Tegmark. AI Feynman 2.0: Pareto-optimal symbolic regression exploiting graph modularity. arXiv, 2020.
Q. Wang, P. Moin, and G. Iaccarino. Minimal repetition dynamic checkpointing algorithm for unsteady adjoint calculation. SIAM Journal on Scientific Computing, 31(4):2549–2567, 2009.
Y. Xiong, M. Ren, and R. Urtasun. LoCo: Local contrastive representation learning. Advances in Neural Information Processing Systems, 2020.
J. Zbontar, L. Jing, I. Misra, Y. LeCun, and S. Deny. Barlow twins: Self-supervised learning via redundancy reduction. International Conference on Machine Learning, 2021.
W. Zheng, T. Chen, T.-K. Hu, and Z. Wang. Symbolic learning to optimize: Towards interpretability and scalability. arXiv preprint arXiv:2203.06578, 2022.
W. S. Zihan, A. Delrocq, W. Gerstner, and G. Bellec. Can local learning match self-supervised backpropagation? International Conference on Machine Learning, 2026.
A Method to list trace monomials
The following code snippet shows the way we enumerate trace monomials.
from collections import Counter from typing import Tuple, Generator, Sequence, List from sympy import Symbol import itertools as its
Type aliases
Shape = Tuple[Symbol, ...] T = Tuple[str, Shape] Signature = Tuple[Tuple[str, ...], Tuple[Tuple[int, ...], ...]]
def pairings(things: List[int]): "" >>> list(pairings([1, 2, 3, 4])) [[(1, 2), (3, 4)], [(1, 3), (2, 4)], [(1, 4), (2, 3)]] "" if len(things) == 2: yield [tuple(things)] else: for i in range(1, len(things)): yield from ( [(things[0], things[i]) + p for p in pairings(things[1:i] + things[i + 1 :]) )
def generate_traces(tlist: Sequence[T], n: int): assert n > 1 combos = its.combinations_with_replacement(tlist, n) for tensors in combos: splitpoints = (0,) + tuple(itsaccumulate([len(s) for n, s in tensors])) tnames = tuple(n for n, s in tensors) all_ixds = tuple(its.chain.from_iterable(t[1] for t in tensors)) counts = Counter(all_ixds) if all(v % 2 == 0 for k, v in counts.items(): positions = [ [p for p, sym in enumerate(all_ixds) if sym == s] for s in counts ] allpairings = its.product(*tuple(map(pairings, positions))) for p in allpairings: assignments = [-1 for t in all_idxs] p = its.chain.from_iterable(p) for v, (p1, p2) in enumerate(p): assignments[p1] = assignments[p2] = v assignments = [ assignments[splitpoints[idx] : splitpoints[idx + 1]] for idx in range(len(tnames)) ] assignments = tuple(tuple(a) for a in assignments) is_invalid = any( Counter(a).most_common(1)[0][1] > 1 for a in assignments ) if not is_invalid: yield (tnames, assignments)
Listing 1: Function to generate trace monomials.
B Trace monomial counts
Table 1: Monomial counts in a 3-layer MLP as a function of degree and order.
| Order | Degree 1 | Degree 2 | Degree 3 |
|---|---|---|---|
| 2 | [2, 2, 3] | [3, 4, 3] | [5, 4, 3] |
| 3 | [3, 3, 5] | [5, 7, 5] | [9, 7, 5] |
| 4 | [11, 11, 24] | [24, 40, 24] | [58, 40, 24] |
| 5 | [18, 18, 42] | [45, 78, 42] | [120, 78, 42] |
| 6 | [57, 57, 155] | [171, 328, 155] | [536, 328, 155] |
C Additional results

Figure 7: Comparison of the performance of the learned degree-2 rules for the classification task on (A) the same Sliced MNIST split that was used for training, (B) the held-out split of Sliced MNIST, and (C) Sliced Fashion-MNIST. Performance is best on the same and held-out splits, while it degrades slightly at the tail end of the training on the Fashion-MNIST split.

Figure 8: Comparison of the performance of the learned degree-2 rules for the reconstruction task on (A) the same Sliced MNIST split that was used for training, (B) the held-out split of Sliced MNIST, and (C) Sliced Fashion-MNIST. Performance is similar across tasks, with slightly higher instability on the Sliced Fashion-MNIST split.

Figure 9: Comparison of the performance of the learned degree 1 rules for the self-supervised learning task on (A) the same MNIST split that was used for training, (B) the held-out split of MNIST, and (C) Fashion-MNIST. We stopped training early on the Fashion-MNIST split due to stability issues.

Figure 10: Testing the degree-2 classification rules on a differently sized network.


Figure 11: First frozen layer for the PCA (left) and ICA (right) cases in the held-out split of Sliced MNIST. In order to compose the first layer, we first run PCA/ICA with a number of components that is half the layer's output dimension; we then stack them with a copy multiplied by -1. We do so to address the presence of the ReLU nonlinearity.