Abstract
In recent years artificial neural networks achieved performance close to or better than humans in several domains: tasks that were previously human prerogatives, such as language processing, have witnessed remarkable improvements in state of the art models. One advantage of this technological boost is to facilitate comparison between different neural networks and human performance, in order to deepen our understanding of human cognition. Here, we investigate which neural network architecture (feedforward vs. recurrent) matches human behavior in artificial grammar learning, a crucial aspect of language acquisition. Prior experimental studies proved that artificial grammars can be learnt by human subjects after little exposure and often without explicit knowledge of the underlying rules. We tested four grammars with different complexity levels both in humans and in feedforward and recurrent networks. Our results show that both architectures can "learn" (via error back-propagation) the grammars after the same number of training sequences as humans do, but recurrent networks perform closer to humans than feedforward ones, irrespective of the grammar complexity level. Moreover, similar to visual processing, in which feedforward and recurrent architectures have been related to unconscious and conscious processes, the difference in performance between architectures over ten regular grammars shows that simpler and more explicit grammars are better learnt by recurrent architectures, supporting the hypothesis that explicit learning is best modeled by recurrent networks, whereas feedforward networks supposedly capture the dynamics involved in implicit learning.
Introduction
Artificial Grammar Learning (AGL) is a cornerstone of cognitive science, used to investigate how humans acquire the structural rules of language. While modern deep learning models can outperform humans on linguistic tasks, they typically require massive datasets. In contrast, humans can discern the underlying structure of a new grammar after minimal exposure. This study addresses a critical gap: identifying whether human-like language acquisition is better modeled by "one-pass" feedforward mechanisms or recurrent loops that allow for temporal dependencies and sequential memory.
Methods
The researchers conducted a "fair" competition between human participants and two neural network architectures:
- Feedforward (FF): Processes the entire string simultaneously via one-hot encoding.
- Recurrent (RR): Processes strings sequentially, updating an internal state with each new input.
To ensure comparability, networks were limited to 500 training trials, matching the exposure of the 56 human participants. The study employed an exhaustive search across 120 network configurations to identify models that most closely mirrored human behavioral patterns.
Experimental Design and Datasets
The study utilized four grammars spanning three levels of the Chomsky Hierarchy, representing increasing formal complexity: Type III (Regular), Type II (Context-Free), and Type I (Context-Sensitive).
Participants were tested in an implicit phase (learning through classification) and an explicit phase (following rule disclosure). Additionally, 8 further regular grammars were tested to analyze how structural complexity affects the performance gap between architectures.
Results
Recurrent networks (RR) consistently outperformed feedforward networks (FF) in matching human behavior across all grammar types. Notably, RR networks achieved accuracy levels statistically indistinguishable from humans in the more complex Context-Free and Context-Sensitive tasks.
Beyond final accuracy, the RR models' learning curves closely tracked the human trajectory over the 500 trials. Conversely, FF networks underperformed in nearly every category. The data also revealed a sensitivity to sequence length; while both humans and networks struggle as strings lengthen, RR models accurately mirrored the specific decay in human performance.
Discussion and Conclusion
The findings suggest that recursion is a cognitive requirement for human-like language processing. The researchers propose that recurrent architectures may model explicit learning (conscious rule-following), while feedforward architectures capture implicit learning (unconscious intuition). This is supported by the observation that the RR advantage is most pronounced in simpler grammars that humans learn explicitly, but narrows as complexity increases and learners must rely on implicit pattern recognition.
Ultimately, this research demonstrates that neural networks can learn abstract rules in low-data regimes if the architecture is biologically plausible, providing a computational framework for understanding the dynamics of human language acquisition.
Reference: Alamia, A., Gauducheau, V., Paisios, D. & VanRullen, R. (2020). Comparing feedforward and recurrent neural network architectures with human behavior in artificial grammar learning. Scientific Reports, 10:22172. https://doi.org/10.1038/s41598-020-79127-y
Summary updated