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.

There are surprising instances where GPT-4 doesn’t perform well. In OpenAI’s technical overview, the writing benchmark is at the 54th percentile of GRE test takers. Writing seems the very embodiment of generative function, generating words. Why the shortfall?

Our tools of Bayesian inference and RLHF mechanisms equip us to understand the limits of GPT-4 for writing. Good writing is a generation of text and a critique of writing at the same time. Anyone who has graded college papers knows the headache of students that haven’t taken the time to read their own writing. More critique is better in the oft-used phrase “good writing is re-writing” and Hemingway even going as far as “the only kind of writing is rewriting”. Generative AI out of the box doesn’t write well, having a voice that reverts to the mean.

Bayesian inference means that generative AI is bound to the context that birthed it. RLHF means generative AI is the repository of online conversational knowledge. Writing mimics the community from whence it’s drawn. Just as communities are varied, voice can vary leading to uneven tone, another demerit on the writing scorecard. Now as a flexible tool, numerous frameworks have emerged to shape the prior prompt. Sophisticated prompt engineering can wring performance, though it’s a meticulous task. On the other hand, the GPT-4 benchmark for AP macroeconomics was top marks at 84th percentile, meaning some tasks are well captured.83

Architecture imposes stricter ability limits. We discussed how the decoder-only architecture is optimized for generation. If a many to one judgement is required, then the generative architecture isn’t suitable. Alternatively, encoder-decoder architectures specializes in taking the many-fold branching of a natural sequence into a single point estimation. We use encoder-decoder architectures for securities ranking.

Model Explainability: The Nonbeliever’s Crutch?

Model explainability for large ML models brings a Catch-22. Doesn’t model explainability simplify the large-scale analysis to the point of omission? Put another way, what’s the point of asking the model to explain itself if the purpose is to achieve performance without sacrificing details. Startlingly, we find model explainability has a two-fold purpose – first, it gives the opportunity to impress, and second, like the kanban methods of the Toyota Way, it monitors proper function in the factory (engine) of assembly.

Figure:  (Top) Using ChatGPT 3.5 for securities rankings doesn’t perform up to an ensemble method (red line). (Bottom) Testing more recent and powerful models (16k context and GPT-4) don’t yield clear improvements either. Each experiment was repeated three times and the standard deviation used as the error bar.

Demis Hassabis, co-founder of Deepmind, recounts the 37th move of his world champion AlphaGo AI. The so-called God move stunned the world with its creativeness and piercing insight. A human grandmaster would’ve made such a move only 1 in 10,000 games.84 The move staggered the human World Champion, Lee Sedol, crushing his morale with its deliberateness. Similarly, we’ve found that using AI for financial analysis has equal moments of brilliance with one important caveat – generative AI is not enough.

As we mentioned, we use encoder-decoder architectures for securities rankings. However, for our kanban purposes (data visualization for engine monitoring), we augment with generative AI. We specifically tested generative AI on its own for securities rankings and it didn’t match up to a well-executed ensemble (figure). However, when generative AI is used for model explainability in concert with an ensemble model, the results are dramatic. Take the case of generative AI (ChatGPT) alone for securities ranking (A) and then (B) used with the ensemble model to explain the results:

(A) Grade: B. Confidence: 0.8. Market Axess Holdings Inc. has a strong business model with a leading electronic trading platform in fixed-income markets. The company has consistently paid dividends and has authorized multiple share repurchase programs. However, the lack of information on intrinsic value metrics such as free cash flow yield and profit margin makes it difficult to give a higher grade.

(B) Amicus Rating: A. Confidence: 0.6 SLM Corp’s Q2 2023 earnings call reveals a robust financial position. With a successful loan sale of $2 billion at a premium of 6.5% and a 7% reduction in outstanding shares since January 2023, SLM Corp demonstrates strong financial management. Coupled with a 6% increase in private education loan originations, this paints a picture of a company that is not only weathering the storm but thriving in it.

Generative AI alone is both overly confident and non-specific. The model ensemble in concert with generative AI has specific causal explainability that builds human confidence. Generative AI explainability is especially effective on poorly rated securities, likely due to the unique concerns picked out (again Tolstoy’s insight unhappy families different). Far from a nonbeliever’s crutch, model explainability unifies two modes of AI and elevates their use by humans.

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.