On the Expressivity of Recurrent Neural Cascades

Nadezda Alexandrovna Knorozova, Alessandro Ronca

Abstract

Recurrent Neural Cascades (RNCs) offer a computationally efficient alternative to fully connected recurrent neural networks (RNNs) due to their acyclic structure and suitability for constructive learning. However, the theoretical limits of their expressivity have remained poorly understood. This paper, presented at AAAI-24, bridges deep learning and algebraic automata theory to provide a rigorous foundation for RNCs. We demonstrate that while standard RNCs with positive weights are restricted to star-free regular languages, the introduction of negative weights or higher-order neurons allows these acyclic architectures to achieve the full expressivity of standard cyclic RNNs.

Introduction

Recurrent Neural Cascades (RNCs) are a specific class of recurrent architecture where neurons are arranged in a sequence. In this configuration, each neuron receives input from all preceding neurons, but no feedback loops (cycles) exist. This acyclic nature simplifies the training process, often allowing for "constructive learning"—where neurons are added one by one—and typically results in better generalization compared to fully connected RNNs.

Despite these practical advantages, a fundamental question has persisted: Does the lack of cycles inherently limit what these networks can compute? While it is well-established that fully connected RNNs can recognize any regular language, the computational boundaries of RNCs remained an open problem until now.

Theoretical Framework: Algebraic Automata Theory

To analyze the expressivity of RNCs, the researchers utilized Algebraic Automata Theory, specifically the Krohn-Rhodes Theorem. This theorem posits that any complex finite automaton can be decomposed into a cascade of two basic components:

  1. Flip-flops: Simple units that store a single bit of information.
  2. Finite Simple Groups: Components that handle periodic behavior or counting (e.g., parity checks).

By mapping the continuous, real-valued states of neural networks to the discrete states of automata through homomorphisms, the authors were able to formalize how "sub-symbolic" neural signals relate to symbolic logic. This allowed for the definition of "flip-flop neurons" and "group neurons" as the neural counterparts to the Krohn-Rhodes components.

The "Star-Free" Limit and the Power of Positivity

A central finding of the research is the limitation imposed by weight constraints. The authors proved that RNCs utilizing standard activation functions (such as sign or tanh) and positive weights are strictly limited to recognizing star-free regular languages.

Star-free languages are a subset of regular languages that can be described by first-order logic but cannot perform "counting" operations. For example, a positive-weight RNC cannot determine if a string contains an even number of '1's. This finding, formalized in Theorem 5, establishes that positive-weight RNCs are exactly equivalent to the class of star-free regular functions.

Breaking the Barrier: Negative Weights and Second-Order Neurons

The research highlights two primary ways to overcome the star-free limitation without introducing cycles:

1. The Role of Negative Weights

Simply allowing for negative weights significantly expands the network's capabilities. Negative weights enable the network to create alternating or periodic behavior, which is a prerequisite for complex logic. Theorem 7 proves that a single tanh or sign neuron with a negative weight can implement a non-star-free regular function, demonstrating that the sign of the weights is a fundamental toggle for expressivity.

2. Second-Order Neurons

The most significant insight is that acyclicity is not a hard ceiling for expressivity. To recognize all regular languages, a network simply needs neurons capable of implementing "groups." The paper demonstrates that second-order neurons—which utilize multiplication or products of inputs rather than just weighted sums—can homomorphically represent the $C_2$ group (the cyclic group of order two).

As shown in Propositions 5 and 6, these higher-order neurons allow an acyclic cascade to perform parity checks and other counting operations. This effectively means that by using slightly more complex neuron definitions, an acyclic RNC can match the computational power of a fully connected, cyclic RNN.

Conclusion and Future Directions

This work provides the first comprehensive theoretical map of RNC expressivity. It clarifies that the perceived limitations of acyclic networks are not due to the lack of feedback loops, but rather the functional capabilities of the individual neurons and the constraints on their weights.

While this study focused on sign and tanh activations, future research is required to analyze other popular activation functions like ReLU or GeLU within this algebraic framework. Additionally, while the theoretical groundwork for group-capable neurons is now established, their practical performance in real-world training scenarios—compared to established gated units like LSTMs or GRUs—remains an area for empirical investigation.

Summary updated

BibTeX
@inproceedings{knorozova2024expressivity,
  author = {Nadezda Alexandrovna Knorozova and Alessandro Ronca},
  title = {{On the Expressivity of Recurrent Neural Cascades}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i9.28929},
}
Figure