Generative AI
Usage Patterns and Emerging Tools
This is part of a weekly series covering generative AI as applied to investing, drawn from source material from the full-length book, Truth Engine: Applying AI to Investing.
In the film “AI”, Steven Spielberg directs the touching account of an embodied AI (played by Haley Joel Osment) with the capacity for love. In a case of life imitating art, the emphasis of alignment to produce emergent phenomenon in RL has made fiction closer to fact. Let’s revisit Wittgenstein’s examination of language.
The philosophy of Wittgenstein drives home the mechanisms of how OpenAI has succeeded with RL. Wittgenstein is the famous proponent of the language-game framework, in short the context of words and actions that surround the real use of language. This turn of the century philosopher and contemporary with the great Alan Turing is notably insightful. The life of Wittgenstein echoes the parable of the Green Knight.
As a precocious genius, Wittgenstein was raised with the cultural elite of Vienna as afforded by a captain of industry patriarch. He continued seeking the best teachers, landing on Bertrand Russell’s doorstep to launch his philosophy career. Like the personage who first inspired koans, Wittgenstein gave up family fortune to think deeply by retreating to the desolate Norwegian landscape. Only after his retreat during which he inconceivably spent years as a primary school teacher, did he subject himself to the trials and tribulations that led him to discard the triumph of his graduate thesis, “Tractatus Logico-Philosophicus”, in favor of his post-humous volume “Philosophical Investigations”.
His goal in Investigations is stated as:
What is your aim in philosophy?
To show the fly the way out of the fly bottle.– §309. Philosophical Investigations
“Philosophical Investigations” reads as a collection of first principles koans than a traditional logical elucidation. As first described by Hofstadter’s “Gödel, Escher, Bach”, koans act as a paradigm-shattering inducement to break through the (Gödel) Incompleteness of axiomatic thought, such as the language dimensions that form the explanation of a business thesis. Wittgenstein’s work prescribes a path forward for the development of one pillar of general intelligence (in concert with the External World problem and Other Minds paradigm).
Tasks characteristic of language games are Question and Answering in Context and other multi-round interactions centered on learning.75,76 Prior to the training recipe of ChatGPT, LLMs fell short in the interactive learning tasks of language use. The training recipe of ChatGPT takes the base capability of fluency created through causal language modeling and emphasizes instruction following, known in short-hand as fidelity (to the user’s instructions).55”
Causal Language Modeling
Contrary to its wunderkind behavior, AI is built up like a layer cake. First, a base level of diction is created. Far from being trivial, progress through diction dominated all the way into the advent of generative AI (ChatGPT). The linguist JR Firth’s pronouncement, “you shall know a word by the company it keeps”, becomes nearly a cliché. This fluency capability is trained through causal language modeling and takes up the majority of computation. Causal language modeling is a straightforward process where a LLM is shown some sequence of text and then trained to give a prediction of the next word. Several recent descriptions have stopped here as the explanation of generative AI. It’s important to bust the myth that generative AI is merely next word prediction – this merely sets the stage. However, the real marvel lies in scaling these models for internet-wide applications. DeepMind researchers point out that language models learn from community discussions online. It doesn’t make sense to compare the intelligence from an LLM to a single person, and instead the correct comparison is the capture of a community or culture. In studies of the input datasets, DeepMind researchers identified the dataset had to have a Zipfian distribution.49 Essentially, the dataset had to have a sufficient number of rare topics. Increasing the label multiplicity, the number of labels per class, increased the ability of LLMs to adapt to user requests without retraining, a process known as in-context learning. We had discussed earlier that the Chinese internet, being a closed and censored culture, lacks the discourse that is a precondition for scaling LLMs. Strangely, many Chinese researchers in private discussions understood this intuitively ahead of the quantitative research from DeepMind. Censorship has a chilling effect on innovation.
This is part of a weekly series covering generative AI as applied to investing, drawn from source material from the full-length book, Truth Engine: Applying AI to Investing.