ElemedexA pocket encyclopedia of AI architectures

Glossary (TM) › Machine learning fundamentals

TM003

Architecture

Also: network topology, model design

In Spanish: Arquitectura

The structural design of a model (which layers it has, how they connect, what operations they perform), independently of the values of its weights.

The architecture is the blueprint; the trained weights, the inhabited building. It describes which kinds of layers there are, how many, in what order and with what connections: for instance, "a stack of 12 blocks of self-attention and feedforward (MLP) block networks with residual connections." Chollet (2021) gives it a precise sense: choosing an architecture restricts the hypothesis space to a specific series of operations, and training searches that space for good values of the weights (2021, sec. 3.6.2). That is why the architecture encodes the designer's assumptions about the problem (see inductive bias).

There are three levels that everyday language mixes up and that Elemedex keeps apart in each species' kind:

The same architecture can yield very different models depending on data and scale: the authors of GPT-3 state that they used the same model and architecture as GPT-2, except for an attention pattern (Brown et al., 2020, sec. 2.1). And for some models only the behavior is known: the GPT-4 technical report discloses neither its architecture nor its size (OpenAI, 2023).

The philosopher will meet the word in two earlier traditions. In computing, the "von Neumann architecture" names the organization of a computer. In cognitive science, the cognitive architecture is the fixed structure of the mind on which processes run; the argument of Fodor & Pylyshyn (1988) is precisely that connectionism cannot offer a theory of cognitive architecture without implementing a symbol system. With transformers, the question is still alive (see systematicity).

Sources

  • Alammar, J., & Grootendorst, M. (2024). Hands-on large language models: Language understanding and generation. O’Reilly Media. §
  • Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., Agarwal, S., Herbert-Voss, A., Krueger, G., Henighan, T., Child, R., Ramesh, A., Ziegler, D. M., Wu, J., Winter, C., . . . Amodei, D. (2020). Language models are few-shot learners. In Advances in Neural Information Processing Systems (Vol. 33, pp. 1877–1901). Curran Associates. https://proceedings.neurips.cc/paper_files/paper/2020/hash/1457c0d6bfcb4967418bfb8ac142f64a-Abstract.html §
  • Chollet, F. (2021). Deep learning with Python (2nd ed.). Manning Publications. §
  • 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 §
  • OpenAI. (2023). GPT-4 technical report (arXiv:2303.08774). arXiv. https://doi.org/10.48550/arXiv.2303.08774 §