Philosophy of Artificial Intelligence (11118BLG003), week 6 of 14

Symbolic and Connectionist AI: Systematicity and Compositionality

Prof. Dr. Utku Kose, Süleyman Demirel University

Overview

Two traditions have competed to explain intelligence: symbolic systems that manipulate structured representations and connectionist networks that learn distributed ones. This week examines their central dispute, whether networks can explain the systematicity of thought, and the empirical tests that now bear on it [1, 2, 3].

Estimated study time: 6 to 8 hours.

Learning outcomes

By the end of the week, students are expected to contrast symbolic and connectionist architectures. They should be able to reconstruct the systematicity argument of Fodor and Pylyshyn and Smolensky's reply. They should also be able to explain why compositional generalisation tests such as SCAN bear on the argument. Finally, they should be able to evaluate recent evidence and neurosymbolic proposals.

Study path

Step Activity Suggested time
1 Read the lecture below or the PDF version 90 minutes
2 Explore the interactive lab 45 minutes
3 Work through the Colab notebook and its exercises 2 to 3 hours
4 Take the self-assessment in the interactive lab (tab: Check yourself) 20 minutes
5 Answer the reflection prompts in the interactive lab, export the learning log and complete the weekly task 60 minutes

Week at a glance

flowchart LR
  SYM["Symbolic: structured symbols, rules"] --> SYS["Systematicity and productivity"]
  CON["Connectionist: distributed learning"] --> DIL["Fodor and Pylyshyn's dilemma"]
  SYS --> DIL
  DIL --> SMO["Smolensky: subsymbolic level"]
  DIL --> SCAN["SCAN: failure on held-out primitives"]
  SCAN --> MLC["Meta-learning: human-like generalisation"]
  MLC --> NS["Neurosymbolic integration"]

Lecture

Two traditions

Symbolic AI treats intelligence as the manipulation of structured symbols by rules, in the tradition of the physical symbol system hypothesis from Week 3. Connectionism treats it as the result of learning in networks of simple units whose knowledge is stored in the strengths of their connections. The volumes on parallel distributed processing by Rumelhart, McClelland and colleagues made connectionism a serious rival in the 1980s by showing that networks could learn, generalise and degrade gracefully [4]. Present deep learning systems, including language models, descend from this tradition.

Check your understandingHow does connectionism model cognition?

Explore while reading. The interactive lab of this week can be opened inside this page or next to the text, so that ideas can be tried out as they are introduced.

The systematicity argument

Fodor and Pylyshyn argued that human thought has two properties that a cognitive architecture must explain [1]. Thought is productive: People can think indefinitely many new thoughts. Thought is systematic: Anyone who can think that John loves Mary can also think that Mary loves John. Classical architectures explain both properties, because their representations have a combinatorial syntax and semantics: The same parts are recombined by the same rules. Connectionist networks, they argued, face a dilemma. Either they implement a classical architecture, in which case they offer no new theory of cognition, or they do not, in which case they fail to explain systematicity.

Smolensky replied that connectionist models work at a subsymbolic level, below the level of concepts, and that structured representations can be encoded in distributed patterns of activity [2]. On his proposal, symbolic descriptions are approximations of the underlying dynamics rather than the mechanism itself. The dispute therefore concerns explanation as well as performance: whether systematicity is guaranteed by the architecture or merely possible after suitable training.

Check your understandingWhat is systematicity?

Empirical tests

Lake and Baroni turned the argument into an experiment [3]. Their SCAN benchmark maps commands such as jump twice and walk left to action sequences. Sequence-to-sequence networks generalised well when test commands were drawn at random. They failed when a primitive such as jump had been seen only in isolation during training and had to be combined with modifiers at test time. People, by contrast, generalise from a single example. Marcus used such results in a broader critique that listed the limitations of deep learning, including limited transfer and the absence of hierarchical structure [5].

Later work complicated the picture. Lake and Baroni showed that a standard neural network trained with meta-learning for compositionality, across many tasks that each required systematic generalisation, reached human-like performance on new instruction-learning tasks [6]. Systematicity, on this evidence, is achievable by networks but depends on how they are trained. Figure 6.1 reproduces the original contrast on a small command language.

Exact-match accuracy of a symbolic interpreter and a multilayer perceptron on a random split and on a split in which the primitive jump appears only alone during training.

Figure 6.1. Exact-match accuracy of a symbolic interpreter and a multilayer perceptron on a random split and on a split in which the primitive jump appears only alone during training [3].

Check your understandingWhat did SCAN-style tests find for standard sequence models?

Hybrid prospects

d'Avila Garcez and Lamb described neurosymbolic AI as a third wave that integrates learning with reasoning over structured representations [7]. For philosophy of mind, the lesson of the debate is that systematicity has become an empirical and architecture-sensitive question. The interactive lab compares three systems on the same command language. They are a hand-written interpreter, a learner that memorises examples and a learner that acquires word meanings but composes them with fixed grammatical rules. The pattern of their successes and failures shows what compositional structure contributes.

Pause and reflect. If a network becomes systematic only after training on many systematic tasks, has it explained systematicity or inherited it from its training?

Check your understandingWhat did meta-learning for compositionality show in 2023?

Interactive lab

A small command language maps commands such as jump twice and walk left to actions. Compare a memorising learner and a learner with compositional structure against the interpreter on different training splits, and type your own commands [1, 3].

Open the interactive lab

Screenshot of the Week 6 interactive lab

Colab notebook

The Colab notebook generates all commands of the small language and trains a multilayer perceptron that predicts the action at every output position. It compares the exact-match accuracy of the network with a symbolic interpreter on a random split and on the held-out primitive split [1, 3].

Open in Colab

Screenshots of the executed Colab notebook:

Output 1 of the Week 6 Colab notebook

Self-assessment and reflection

The interactive lab contains a self-assessment of six questions (tab: Check yourself). Students answer each question, state how sure they are and receive instant feedback. A confident but wrong answer marks the first topic to revisit. The reflection prompts below also appear in the interactive lab (tab: Reflect and submit). Answers written there are saved in the browser and can be exported as a learning log.

  1. Which system in the interactive lab behaves most like a person learning a new verb? What does that suggest about the architecture of human cognition?
  2. Does the success of meta-learning answer Fodor and Pylyshyn's dilemma, or does it choose its first horn?
  3. Describe a compositional generalisation that matters in your field and how you would test a model for it.

Weekly task and submission

What to do. Evaluate the systematicity argument with evidence. First, state the dilemma of Fodor and Pylyshyn in two sentences. Second, compare the results of the Colab notebook with the SCAN results of Lake and Baroni. Use three splits: the random split, the split in which jump is seen only alone and your own length split. Third, state which horn of the dilemma present neural networks fall under, if any.

Where to look. Lecture: sections "The systematicity argument" and "Empirical tests". Interactive lab: the comparison of the interpreter with two learners on different training splits (tab: Explore). Colab notebook: Section 3 with Exercise 1, and Exercise 2, where you design the length split.

Example. Figure 6.1 of the lecture shows the contrast that the Colab notebook reproduces. The network is almost perfect on the random split but fails on the commands that combine jump with a modifier. A student could argue that such a network fails to explain systematicity, and then ask whether the meta-learning results of Lake and Baroni change the verdict.

What to submit. About 500 words with a table of the accuracies on the three splits, and the Colab notebook with Exercises 1 and 2 completed.

The weekly task supports self-learning and builds a personal portfolio. In an active semester, students who follow the course with the instructor can send their work for evaluation to utkukose@sdu.edu.tr or utkukose@gmail.com. The e-mail contains the items that the task lists under What to submit. It also includes the learning log exported from the interactive lab (tab: Reflect and submit).

Research and report assignment (optional)

Neurosymbolic systems and the systematicity challenge. How do recent approaches answer the systematicity argument?

What to do. Review how neurosymbolic approaches and meta-learning respond to the systematicity argument [1, 6, 7]. Assess which horn of the dilemma each approach chooses.

Where to start. Lecture sections "Empirical tests" and "Hybrid prospects", and the meta-learning study of Lake and Baroni [6].

Example focus. A system that learns word meanings but composes them with fixed grammatical rules builds classical structure into its design. The report could ask whether such a system takes the horn of implementing a classical architecture.

This research assignment is optional and supports self-learning. In an active semester, students who follow these weeks with the instructor can send the report for evaluation to utkukose@sdu.edu.tr or utkukose@gmail.com. The report has 1500 to 2500 words and follows the structure of an academic paper. It cites at least six scholarly or official sources in square brackets and ends with a reference list. The report template shows a suitable structure.

References

[1] Fodor, J. A., & Pylyshyn, Z. W. (1988). Connectionism and cognitive architecture: A critical analysis. Cognition, 28(1-2), 3-71. https://doi.org/10.1016/0010-0277(88)90031-5

[2] Smolensky, P. (1988). On the proper treatment of connectionism. Behavioral and Brain Sciences, 11(1), 1-23. https://doi.org/10.1017/S0140525X00052432

[3] Lake, B., & Baroni, M. (2018). Generalization without systematicity: On the compositional skills of sequence-to-sequence recurrent networks. In Proceedings of the 35th International Conference on Machine Learning, PMLR 80 (pp. 2873-2882). https://arxiv.org/abs/1711.00350

[4] Rumelhart, D. E., McClelland, J. L., & the PDP Research Group (1986). Parallel Distributed Processing: Explorations in the Microstructure of Cognition, Volume 1: Foundations. MIT Press.

[5] Marcus, G. (2018). Deep learning: A critical appraisal. arXiv preprint arXiv:1801.00631. https://arxiv.org/abs/1801.00631

[6] Lake, B. M., & Baroni, M. (2023). Human-like systematic generalization through a meta-learning neural network. Nature, 623(7985), 115-121. https://doi.org/10.1038/s41586-023-06668-3

[7] d'Avila Garcez, A., & Lamb, L. C. (2023). Neurosymbolic AI: The 3rd wave. Artificial Intelligence Review, 56(11), 12387-12406. https://doi.org/10.1007/s10462-023-10448-w