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.

During the Cuban Missile Crisis of 1962, President John F. Kennedy found himself at the apex of human decision-making, amidst a cauldron of conflicting advice, data, and consequences. U-2 spy planes had returned with irrefutable evidence of Soviet nuclear missiles in Cuba, just 90 miles away from American soil. Kennedy’s military brain trust argued for immediate airstrikes to neutralize the threat. Diplomats and advisors, another cognitive subset, urged for negotiation and peace talks. The data (reconnaissance photos, military readiness scores, diplomatic cables) were examined and re-examined, each telling a different story, each pulling the President in a different direction.

Here, Kennedy faced a decision-making environment not unlike that which value investors often find themselves in. He was in a complex, rapidly changing situation that had layers of interconnected consequences. Kennedy opted for a third way – a naval blockade of Cuba to prevent further military supplies from reaching the island, buying time for negotiation. This was neither an outright act of war nor an acquiescence to Soviet aggression. It was a nuanced response based on a mix of immediate data, future projections, and the crucial variables of sentiment and global geopolitics. His brain combined the expert opinions, placing in a hierarchy the abstract considerations of diplomatic impact to the concrete steps of military action. Reviewing difficult decision-making, Brown University neuroscientist Michael Frank studied exactly how expert decision-makers combine and fuse mental models.

Frank examined the so-called mixture of strietal experts (MoSE), a blend of neural mechanisms emulating a mixture of experts (MoE) in machine learning, to explain the human brain at peak performance. Unexpectedly, biologically inspired AI might reveal the brain’s capabilities and close the gap between the two. In particular, Frank details how this advanced ML method to combine models has convergent design with prefrontal cortex mechanisms.59 MoE has been cited as instrumental to OpenAI’s generative AI performance.60 Frank’s research describes the computational model for how our brains manage to process and apply abstract rules rapidly, especially in complex, hierarchical environments.

By parceling the prefrontal cortex, the part responsible for higher cognitive functions like decision-making and planning, Frank maps cortex hierarchy, where the anterior (forward) parts handle more abstract representations. According to the proposed model, different parts of the cortex work together with another brain region called the striatum and the pleasure neurotransmitter dopamine. The striatum helps in gating (controlling) the input and output of information to the cortex and also plays a key role in influencing our responses. Dopamine facilitates learning at all levels of this brain circuit by signaling reward prediction errors – how the actual reward contrasts with what was expected.

The model suggests that this system enables if-then hypothesis testing, and thus, it learns rapidly in environments with a hierarchical structure. He connects the biology to a Bayesian RL mechanism that estimates the most likely mental state of a participant based on their observed sequence of decisions and rewards. The study corroborates theory with functional MRI (fMRI) studies. By visualizing blood oxygenation in the brain, fMRI reveals which parts of the brain turn on. On a conceptual mapping task, fMRI recordings indicate that when people learn new rules, multiple levels of abstraction are processed simultaneously, and the anterior parts of the cortex are activated for more abstract rules. On a conceptual mapping task, fMRI recordings indicate when people learn new rules, when multiple levels of abstraction process simultaneously, and when the anterior cortex activates for more abstract rules.

By combining insights with the ML computational model, Frank explains neural mechanisms supporting abstract rule discovery and the hierarchical structure of cognitive control in the human brain. Continuing his series in the journal Cerebral Cortex, Frank suggests that learning at different levels of the hierarchy can be guided by a single reward prediction error signal.61 This signal is modulated by the attentional weight, or the degree to which a rule at a particular level contributed to a response. They propose that this signal is communicated to all parts of the cortical network, but its impact on neural activity depends on the strength of locks in a cascade. This supports a gated frontal cortex hypothesis of executive function.

In simple terms, Frank’s work suggests using a Bayesian MoE system allows humans to learn and adapt to complex situations effectively. The front-most regions of the cortex manage more abstract information, while other areas handle more concrete data. The division of labor allows us to create and test hypotheses quickly, helping us navigate and learn in environments with complex, layered structures like Kennedy’s dilemma. In our testing, MoE AI often charts the middle way, controlling risk to balance relevant factors.

Among ML scientists, the debate between biological inspiration is an ongoing debate, with some claiming no relation and others like Frank, using advances in both fields for cross-fertilization. The truth is likely more subtle – that there are undiscovered rules which, which in the analogy of powered flight compared with biological flight, will reveal both approaches’ true capability. As these two disciplines intertwine, we move closer to creating financial AI that is as agile and adaptive as the human mind.

Dopamine – Analogs in Neural Networks

We introduced the neurotransmitter dopamine as the brain’s pleasure signal. The mechanism of dopamine is profound, connecting to the tech that elevates LLMs to generative AI. Scientists have long thought of dopamine as a sort of learning stamp, reinforcing connections between situations, actions, and rewards in our brain. This recalls RL in AI, where a reward is given for an action.

Recent research from Google Deepmind describes a deeper explanation.62 This new perspective says dopamine is training the cortex to be its own standalone learning system. In other words, rather than merely reinforcing connections, dopamine might be helping the cortex learn how to learn. The cortex is shown to carry out tasks that look a lot like RL. But the relationship between these two systems, dopamine-based RL and the cortex’s own RL, has been unclear. While dopamine helps adjust the learning system of the prefrontal cortex through its traditional RL role, this process ends up creating a second, more efficient learning algorithm within the cortex itself. This new learning algorithm in the cortex is suited to the task environment, can balance exploration and exploitation, and progressively adjusts its action policy.

The brain’s dopamine system is teaching the cortex to be a better learner. The cortex doesn’t mimic the learning history of dopamine, rather creates a more sophisticated one suited to the task at hand. Furthermore, the meta-learning RL model emulates the role of the cortex in integrating actions and rewards as an evolving representation of value, thus presenting an alternative understanding of how the cortex functions. The model’s performance is consistent with observations of neuronal activity in the cortex.

The meta-RL framework resolves puzzling findings related to the roles of dopamine and cortex. It provides new insights into reward-based learning and generates testable predictions. For instance, it suggests that cortex’s role in model-based control results from dopamine-driven synaptic learning. Further, the theory predicts that disruption to periodic dopamine signaling during initial training could impair the emergence of model-based control. The researchers sought to elucidate the cause and effect for model-based control.

Researchers introduced a new benchmark task called Alchemy.63 Where traditional RL systems have a single task, meta-learning requires a whole range of tasks sharing some structure. Their system learns faster with each new task it encounters. As the game progresses, the system must learn and adapt to changes to perform well, making it an ideal test for meta-learning capabilities. In the ever dynamic market environment, durable performance requires meta-learning to improve processes. On the financial statements, value investors might infer meta-learning progress when they encounter gross or operating margin expansion. Meta-learning or learning to improve is a topic that has long fascinated investors including Munger’s favored Founding Father, Benjamin Franklin. Unsurprisingly, it is a hallmark of effective business management.


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.