Showing posts with label vector space. Show all posts
Showing posts with label vector space. Show all posts

Friday, December 26, 2025

Why Did GOFAI become Gone AI?


GOFAI vs. the Crushing Realities of Scale

When I was an AI researcher in the 1980s, the dominant paradigm was knowledge representation. AI, we assumed, was essentially the art of representing knowledge in a formal language - predicate calculus, or some applied version of it - and then using that representation via inference rules, plus  heuristics to stop the whole thing from exploding combinatorially.

There was a huge and optimistic research programme around this: fuzzy logic, probabilistic and Bayesian variants, and a menagerie of ad hoc representational structures - frames, scripts, semantic nets - all trying to bottle “commonsense” in forms that could be manipulated in increasingly powerful ways. 

In the mainstream, nobody cared about neural nets. That community existed, of course, but it was marginal stuff in a distinctive physics-based mathematical paradigm we didn't really understand, and which we thought useless.

In hindsight, this now looks extraordinarily short-sighted. The whole approach has been shoved into the cupboard labelled Good Old-Fashioned AI - GOFAI - as if it were a Neanderthal cousin: earnest, ingenious perhaps, but doomed. I assure you it did not feel that way at the time; it felt like the right approach.

Why? Because the way we consciously think about thought is through language. When you ask someone why they did something, they give you reasons. Those reasons come out as propositions. And if you take propositions seriously, the best formal machinery we have for them is logic. So we formalised. We inferred. We drafted and polished the rules. We argued about representation. We believed we were closing in on the core of intelligence: meaning made explicit, knowledge made inspectable, inference made principled and then effectual.

If this was such a plausible programme, why did it fail so completely?

Some people will tell you that GOFAI was about “meaning” and neural nets are about “statistics”. But that opposition is uninformed and usually tendentious. When you ask a large language model a question, you ask something with meaning and you get back something with meaning. If it were all just statistical noise, it would be useless - and it obviously isn’t. So the question is not whether artificial neural net systems have semantic understanding, but how they acquire it and where it lives.

To see the difference, it helps to focus on what we were really trying to do in the 1980s. We were trying to declare meaning in advance. We tried to build a world model by writing down the world: concepts, relations, constraints, defaults, exceptions, and the rules for moving between them. We aimed for explicitness because explicitness feels like the true essence of knowledge. If the machine “knows” something, we should be able to point at it. If it reasons, we should be able to justify it. If it is wrong, we should be able to debug it.

Those are admirable ambitions. They are also, it turns out, ruinously expensive.

The world is not just insanely large; it is also densely structured. Human life is soaked in tacit knowledge: the thousands of micro-regularities that never make it into explicit articulation because they don’t need to. Such commonplace utterances as:

  • “If someone says X in that tone, they probably mean Y.”
  • “If this tool is in that drawer, it implies the last person who used it was doing such-and-such.”
  • “If the kettle is boiling and the milk is out, the next event is likely tea.”

We do not store these things as neat propositions. We carry them as an accumulated, largely unspoken competence - our multi-decade store of condensed experiences.

GOFAI tried to drag that whole submerged continent into the daylight, label it, and file it. And every time you write a proposition you commit yourself: the predicates have sharp boundaries; the ontology has cliff edges; the exceptions multiply. Brittleness is not an engineering accident in that world - it is structural. Logic, by its nature, deals in closed systems: a statement is true or false; a condition holds or it doesn’t; an entailment follows or it doesn’t.

Human cognition, by contrast, lives on slopes. We cope with partial fit, family resemblance, analogy, and improvisation. When our models are wrong, we often degrade gracefully rather than crash. In a certain sense we live by operational not denotational semantics: praxis or dasein, if you like.

The deeper problem, though, was not merely brittleness. It was bandwidth.

Even if you grant that explicit representations are, in principle, adequate - even if you believe you can model “meaning” propositionally - you still have to get enough of it into the machine to matter. That is where the knowledge representation research programme hit the wall. The amount of world-structure a useful system needs is not “a lot”; it is effectively astronomical.

Doug Lenat’s Cyc project is the heroic proof of concept and the cautionary tale in one. It was an attempt to win by scale within the symbolic paradigm: build a vast commonsense knowledge base by hand, assertion by assertion, rule by rule, over decades. It turns out the scale of what a lifetime of expert labour can encode is orders of magnitude below what is required for the kind of fluent, flexible competence we casually expect from “intelligence”.

It is not that Cyc was trivial; it is that the world is not.

So what did the neural approach do differently? It did not “abandon meaning”. It abandoned the fantasy that meaning must be pre-declared by a human engineer.

Large language models are trained on corpora so vast that they function, in practice, as a proxy for civilisation’s accumulated linguistic trace. That trace is not random. It is massively redundant, massively structured, and shot through with regularities about the world - causal regularities, social regularities, narrative regularities, and the implicit ontologies that language users share through use without ever explicitly listing them.

Training is then a brutal compression process. The system is forced, by optimisation pressure, to extract the stable patterns that make text predictable. In doing so it precipitates a semantic geometry: a high-dimensional space (thousands of dimensions!) in which meanings are not discrete atoms with hard edges, but regions and directions - similarity structure, entailment gradients, pragmatic association, contextual modulation. It is representation, certainly, but not the sort that sits obediently on a page as “facts”. It is meaning condensed into weights.

This is why the modern paradigm scales and the older one didn’t. Not because logic is false and vectors are true, but because the neural method exploits a source of structure GOFAI could never match: the pre-existing structure in the world’s textual data dump, harvested at industrial scale.

Symbolic AI tried to build an ontology from the top down, by explicit design. LLMs inherit an ontology from the bottom up, by statistical consolidation. The difference is not merely technical; it is ecological. Neural methods outsource much of the labour of world-modelling to the culture that produced the data. They do not ask a small priesthood of knowledge engineers to type out reality, line by line. They take what humanity has already written - the messy, contradictory, redundant bulk of it - and compress its median regularities into an internal structure that can generalise.

There is, of course, a price.

GOFAI’s great virtue was epistemic. Even when it failed, it failed in the open: you could inspect the rules, challenge the ontology, argue about the premises. Modern systems give you competence first and legibility only as an afterthought. They are astonishingly capable, but they do not come with built-in notions of truth or justification. They optimise. Sometimes that aligns with truth; sometimes it aligns with plausible rubbish. You gain power and lose a certain kind of accountability.

Still, the historical lesson seems clear enough. The decisive factor was not that symbolic representations are “wrong”, but that explicit hand-built representations cannot reach the density required for general intelligence-like behaviour. GOFAI was working with teaspoons; the world required oceans.

In the 1980s we tried to formalise intelligence as propositions plus inference. The 2020s arrived with a different discovery: intelligence scales with the compression of structured experience. Meaning can be precipitated, not merely declared. And once you accept that, the dominance of neural methods stops looking like a betrayal of reason and starts looking like a humiliating empirical fact about where the informational mass of the world really sits.

In the knowledge lies the power, the old knowledge engineers used to say; in the world's data lies the knowledge is the new mantra of the foundation model engineers.


Sunday, November 05, 2017

Towards the esoterically-programmed chatbot

Gary Larson has this famous cartoon:



It might as well be labelled, 'What chatbots hear'.

I type something profound to the chatbot, and this is what the program gets:
"I     *!@      +^%    £")#     owl      +=&£."
Plainly no amount of inference is going to reconstruct that. However, a gossipy chatbot has only to keep the conversation going .. .



An Eliza-type program uses patterns such as:
"I tokens* owl tokens*"  => "How interested are you in owls?"
where the response is bland enough to match most owl-related utterances.

If the chatbot can recognise a little more, perhaps put some syntactic structure to it, then we could do a semantically-informed best match to the noisy user input using a metric over the space of semantic structures (I'm thinking something like situation semantics, or more likely an extensible, data-populated semantic net).

It might be tempting to map everything into a vector space but that's way too much gratuitous (and irrelevant) structure: like doing logic programming using arithmetic over Gödel numbering. To save us from that was why God invented compilers.

---

I'd like to play with some of these ideas, restart my stalled chatbot programme. But I'm lazy, I don't want to do low-level coding, I want a really high-level language which lets me get straight into the problem space. And this brings me - via consideration of Lisp and Haskell - back to Prolog.

As I wrote a couple of years ago,
"First, Prolog. Its supporters always touted it as a higher-level language than Lisp - though I always found Lisp more congenial, I like to set up data structures and manipulate them explicitly. With Prolog you define relationships between things and the miraculous powers of unification and depth-first search with backtracking pull magical rabbits out of hats. The Eliza program in Prolog can be read in its entirety on one screen, ditto for the blocks world planning system.

This procedural power is the result of enormously complex recursive structures built at execution time by the Prolog system. It frequently defies one's powers of abstraction, short-term memory and inference to visualise what's actually going on. I know you're meant to read and understand the programs declaratively, but in reality you don't get too far without a consideration of what actually happens at run-time.

Still, the power to write ridiculously-powerful programs in just a few lines of code is addictive. It reminds me of the first time I fired the General-Purpose Machine Gun (GPMG). I was good with the Lee-Enfield rifle and prided myself on my accuracy; the GPMG just bounced around and hosed the target. So much power and so little control!"
---

Oh, and here's Eliza in Prolog (as modified to represent our deceased pet, Shadow) from the Sterling and Shapiro book, 'The Art of Prolog', (chapter 14):
shadow :-
write('Hello, I am Shadow. Miaow!'),
nl,write('Please type your thoughts and press return.'),
nl,write('To finish type bye'),nl,
read_word_list(Input),shadow(Input),!.

shadow([bye]) :- reply(['Goodbye, miaow!']).

shadow(Input) :-
pattern(Stimulus,Response),
match(Stimulus,Dictionary,Input),
match(Response,Dictionary,Output),
reply(Output),
read_word_list(Input1),
!,shadow(Input1).

match([Word|Pattern],Dictionary,[Word|Target]) :-
atom(Word),
match(Pattern,Dictionary,Target).

match([N|Pattern],Dictionary,Target) :-
integer(N),
append(LeftTarget,RightTarget,Target),
lookup(N,Dictionary,LeftTarget),
match(Pattern,Dictionary,RightTarget).

match([],_,[]).


reply([Head|Tail]) :- write(Head), write(' '),reply(Tail).

reply([]) :- nl.

lookup(Key,[(Key,Value)|_],Value).

lookup(Key,[(Key1,_)|Dict],Value) :- Key \= Key1,lookup(Key,Dict,Value).

There are some lower-level functions (and the relevant patterns) defined elsewhere, but this is the gist of it. Pretty clear, wouldn't you say?


Amazon link

I used to think it was just me, but I read somewhere of the despair of computer science students at Edinburgh university at the sheer intellectual difficulty of writing (and even understanding) non-trivial programs in Prolog. It would seem there's a high IQ-cutoff just to use the language at all.

This reminds me of Marain, the language of the Culture, where those dialects used by the Minds were simply beyond the intellectual capacities of humans. And while we're on that case, let me remind you of a real-world counterpart: Malbolge.
"... invented by Ben Olmstead in 1998 and named after the eighth circle of hell in Dante's Inferno. "Malbolge was specifically designed to be almost impossible to use, via a counter-intuitive 'crazy operation', base-three arithmetic, and self-altering code." *

In fact the author of Malbolge was unable himself to write a program in it.

In the end it required an AI system to write the first program, using a form of 'best-first' search in the space of all possible programs.

Here is the "Hello World!" program in Malbolge.
(=<`#9]~6ZY32Vx/4Rs+0No-&Jk)"Fh}|Bcy?`=*z]Kw%oG4UUS0/@-ejc(:'8dc
---

* Malbolge design trivia.
After each instruction is executed, the guilty instruction gets encrypted so that it won't do the same thing next time, unless a jump just happened. Right after a jump, Malbolge will encrypt the innocent instruction just prior to the one it jumped to instead."
Of course, with artificial neural networks and deep learning, we're already away with the fairies as far as esoteric programming is concerned.

As for me, I've re-installed SWI-Prolog. Time to get up to speed with programming in logic again - so hard to think with, yet so much more compact than Lisp.