Number Sequence Prediction Problems for Evaluating Computational Powers of Neural Networks.

Hyoungwook Nam, Segwang Kim, Kyomin Jung

Abstract

Inspired by number series tests to measure human intelligence, we suggest number sequence prediction tasks to assess neural network models’ computational powers for solving algorithmic problems. We define the complexity and difficulty of a number sequence prediction task with the structure of the smallest automaton that can generate the sequence. We suggest two types of number sequence prediction problems: the number-level and the digit-level problems. The number-level problems format sequences as 2-dimensional grids of digits and the digit-level problems provide a single digit input per a time step. The complexity of a number-level sequence prediction can be defined with the depth of an equivalent combinatorial logic, and the complexity of a digit-level sequence prediction can be defined with an equivalent state automaton for the generation rule. Experiments with number-level sequences suggest that CNN models are capable of learning the compound operations of sequence generation rules, but the depths of the compound operations are limited. For the digit-level problems, simple GRU and LSTM models can solve some problems with the complexity of finite state automata. Memory augmented models such as Stack-RNN, Attention, and Neural Turing Machines can solve the reverse-order task which has the complexity of simple pushdown automaton. However, all of above cannot solve general Fibonacci, Arithmetic or Geometric sequence generation problems that represent the complexity of queue automata or Turing machines. The results show that our number sequence prediction problems effectively evaluate machine learning models’ computational capabilities.

Introduction

Can a neural network truly "reason," or is it just a very sophisticated pattern matcher? While we know that, theoretically, neural networks can simulate any Turing machine, the reality in the lab is often different. A paper from AAAI-19 by Nam et al., titled "Number Sequence Prediction Problems for Evaluating Computational Powers of Neural Networks," proposes a clever way to measure this: by giving neural networks the same kind of number series tests used to measure human intelligence.

In the world of computer science, the Chomsky Hierarchy ranks the "power" of different types of computational logic, from simple Finite State Automata (FSMs) to the all-powerful Turing Machine. While deep learning has conquered vision and language, it is often unclear where a specific model sits on this hierarchy in practice. The authors argue that we lack a standardized "IQ test" to evaluate a model's ability to infer and execute discrete algorithmic rules.

Methodology

The authors propose two distinct types of problems to categorize the computational power of different neural architectures, defined by how the data is presented and processed.

Number-level Problems

These tasks present sequences as 2-dimensional grids of digits. This format is designed to test combinatorial logic. The researchers used Convolutional Neural Networks (CNNs)—specifically a WaveNet-inspired architecture with residual blocks and dilated convolutions—to see if they could learn the "depth" of the logic required to solve recurrence relations.

Number-level sequence prediction task where numbers are represented as 2D digit grids.

Digit-level Problems

These provide a single digit at each time step, forcing the model to act as a sequential state automaton. This tests the model's internal memory and state management. They tested a variety of recurrent architectures, including standard RNNs (LSTM and GRU) and memory-augmented models like Stack-RNN, Neural Turing Machines (NTM), and Attention-based models.

Digit-level sequence prediction task where digits are provided sequentially.

Task Complexity and Datasets

The "difficulty" of a task was mathematically defined by the structure of the smallest automaton or logic circuit required to generate the sequence. The authors generated synthetic datasets based on linear homogeneous recurrence relations (e.g., $A_n = c_1 A_{n-1} + c_2 A_{n-2}$), including arithmetic progressions, geometric progressions, and the Fibonacci sequence.

Results and Discussion

The researchers successfully mapped model performance to automata theory, revealing several key insights into the current limitations of deep learning:

  • The Logic Ceiling of CNNs: CNNs are surprisingly good at learning compound operations, but their ability to solve them is strictly limited by the depth of the network. If the "logic depth" of the recurrence relation exceeds the "network depth," the model fails.
  • Memory vs. Control Logic: Memory-augmented models like Stack-RNN and NTMs excelled at the reverse-order task (0.0% error), which requires a Pushdown Automaton. In contrast, standard LSTMs hovered around 28% error. This proves that specialized memory structures are necessary for specific classes of logic.
  • The Turing Wall: For Arithmetic, Geometric, and Fibonacci sequences—which represent "Queue Automata" or Turing Machine complexity—every single model failed, with error rates typically between 60% and 80%. This suggests that while models may have storage, they haven't yet learned the control logic to use that storage like a true Turing machine.
  • Carry-over Complexity: Models struggled most with "long-term carry" rules (e.g., adding 1 to 999,999) because the carry digit sequentially depends on every previous digit, creating a high logical depth.

Conclusion

This paper provides a sobering reality check: current state-of-the-art models are still quite far from being general-purpose algorithmic reasoners. The results highlight that standard training methods are currently unable to teach models the complex control flows required for Turing-level tasks. Future work may need to move beyond standard supervised learning toward reinforcement learning or dynamic routing to help models "discover" more complex algorithms.

Summary updated

BibTeX
@inproceedings{nam2019number,
  author = {Hyoungwook Nam and Segwang Kim and Kyomin Jung},
  title = {{Number Sequence Prediction Problems for Evaluating Computational Powers of Neural Networks.}},
  booktitle = {AAAI},
  year = {2019},
  url = {https://openreview.net/forum?id=Sjj-DzMguTr},
}
Figure