Index Investing News
Tuesday, April 21, 2026
No Result
View All Result
  • Login
  • Home
  • World
  • Investing
  • Financial
  • Economy
  • Markets
  • Stocks
  • Crypto
  • Property
  • Sport
  • Entertainment
  • Opinion
  • Home
  • World
  • Investing
  • Financial
  • Economy
  • Markets
  • Stocks
  • Crypto
  • Property
  • Sport
  • Entertainment
  • Opinion
No Result
View All Result
Index Investing News
No Result
View All Result

ChatGPT and Large Language Models: Syntax and Semantics

by Index Investing News
September 25, 2023
in Investing
Reading Time: 7 mins read
A A
0
Home Investing
Share on FacebookShare on Twitter


A New Frontier for Finance?

The banking and finance sectors have been among the early adopters of artificial intelligence (AI) and machine learning (ML) technology. These innovations have given us the ability to develop alternative, challenger models and improve existing models and analytics quickly and efficiently across a diverse range of functional areas, from credit and market risk management, know your customer (KYC), anti-money laundering (AML), and fraud detection to portfolio management, portfolio construction, and beyond.

ML has automated much of the model-development process while compressing and streamlining the model development cycle. Moreover, ML-driven models have performed as well as, if not better than, their traditional counterparts.

Today, ChatGPT and large language models (LLMs) more generally represent the next evolution in AI/ML technology. And that comes with a number of implications.

The finance sector’s interest in LLMs is no surprise given their vast power and broad applicability. ChatGPT can seemingly “comprehend” human language and provide coherent responses to queries on just about any topic. 

Its use cases are practically limitless. A risk analyst or bank loan officer can have it assess a borrower’s risk score and make a recommendation on a loan application. A senior risk manager or executive can use it to summarize a bank’s current capital and liquidity positions to address investor or regulatory concerns. A research and quant developer can direct it to develop a Python code that estimates the parameters of a model using a certain optimization function. A compliance or legal officer may have it review a law, regulation, or contract to determine whether it is applicable. 

But there are real limitations and hazards associated with LLMs. Early enthusiasm and rapid adoption notwithstanding, experts have sounded various alarms. Apple, Amazon, Accenture, JPMorgan Chase, and Deutsche Bank, among other companies, have banned ChatGPT in the workplace, and some local school districts have forbidden its use in the classroom, citing the attendant risks and potential for abuse. But before we can figure out how to address such concerns, we first need to understand how these technologies work in the first place.

ChatGPT and LLMs: How Do They Work?

To be sure, the precise technical details of the ChatGPT neural network and training thereof are beyond the scope of this article and, indeed, my own comprehension. Nevertheless, certain things are clear: LLMs do not understand words or sentences in the way that we humans do. For us humans, words fit together in two distinct ways.

Syntax

On one level, we examine a series of words for its syntax, attempting to understand it based on the rules of construction applicable to a particular language. After all, language is more than jumbles of words. There are definite, unambiguous grammatical rules about how words fit together to convey their meaning.

LLMs can guess the syntactic structure of a language by the regularities and patterns they recognize from all the text in their training data. It is akin to a native English speaker who may never have studied formal English in school but who knows what kinds of words are likely to follow in a series given the context and their own past experiences, even if their grasp of grammar may be far from perfect. LLMs are similar. Since they lack an algorithmic understanding of the syntactic rules, they may miss some formally correct grammatical cases, but they will have no problems communicating.

Graphic for Handbook of AI and Big data Applications in Investments

Semantics

“An evil fish orbits electronic games joyfully.”

Syntax provides one layer of constraint on language, but semantics provides an even more complex, deeper constraint. Not only do words have to fit together according to the rules of syntax, but they also have to make sense. And to make sense, they must communicate meaning. The sentence above is grammatically and syntactically sound, but if we process the words as they are defined, it is gibberish.

Semantics assumes a model of the world where logic, natural laws, and human perceptions and empirical observations play a significant role. Humans have an almost innate knowledge of this model — so innate that we just call it “common sense” — and apply it unconsciously in our everyday speech. Could ChatGPT-3, with its 175 billion parameters and 60 billion to 80 billion neurons, as compared with the human brain’s roughly 100 billion neurons and 100 trillion synaptic connections, have implicitly discovered the “Model of Language” or somehow deciphered the law of semantics by which humans create meaningful sentences? Not quite.

ChatGPT is a giant statistical engine trained on human text. There is no formal generalized semantic logic or computational framework driving it. Therefore, ChatGPT cannot always make sense. It is simply producing what “sounds right” based on what it “sounds like” according to its training data. It is pulling out coherent threads of texts from the statistical conventional wisdom accumulated in its neural net.

Data Science Certificate Tile

Key to ChatGPT: Embedding and Attention

ChatGPT is a neural network; it processes numbers not words. It transforms words or fragments of words, about 50,000 in total, into numerical values called “tokens” and embeds them into their meaning space, essentially clusters of words, to show relationships among the words. What follows is a simple visualization of embedding in three dimensions.


Three-Dimensional ChatGPT Meaning Space

Visualization of Three-Dimensional ChatGPT Meaning Space

Of course, words have many different contextual meanings and associations. In ChatGPT-3, what we see in the three dimensions above is a vector in the 12,228 dimensions required to capture all the complex nuances of words and their relationships with one another.

Besides the embedded vectors, the attention heads are also critical features in ChatGPT. If the embedding vector gives meaning to the word, the attention heads allow ChatGPT to string together words and continue the text in a reasonable way. The attention heads each examine the blocks of sequences of embedded vectors written so far. For each block of the embedded vectors, it reweighs or “transforms” them into a new vector that is then passed through the fully connected neural net layer. It does this continuously through the entire sequences of texts as new texts are added.

The attention head transformation is a way of looking back at the sequences of words thus far. It is repackaging the past string of texts so that ChatGPT can anticipate what new text might be added. It is a way for the ChatGPT to know, for instance, that a verb and adjective that have appeared or will appear after a sequence modifies the noun from a few words back. 


The best thing about ChatGPT is its ability to _________

Most Probable
Next Word
Probability
learn4.5%
predict3.5%
make3.2%
understand3.1%
do2.9%
Source: “What Is ChatGPT Doing . . . and Why Does It Work?” Stephen Wolfram, Stephen Wolfram Writings

Once the original collection of embedded vectors has gone through the attention blocks, ChatGPT picks up the last of the collection of transformations and decodes it to produce a list of probabilities of what token should come next. Once a token is chosen in the sequence of texts, the entire process repeats.

So, ChatGPT has discovered some semblance of structure in human language, albeit in a statistical way. Is it algorithmically replicating systematic human language? Not at all. Still, the results are astounding and remarkably human-like, and make one wonder if it is possible to algorithmically replicate the systematic structure of human language.

In the next installment of this series, we will explore the potential limitations and risks of ChatGPT and other LLMs and how they may be mitigated.

If you liked this post, don’t forget to subscribe to Enterprising Investor.


All posts are the opinion of the author. As such, they should not be construed as investment advice, nor do the opinions expressed necessarily reflect the views of CFA Institute or the author’s employer.

Image credit: ©Getty Images /Yuichiro Chino


Professional Learning for CFA Institute Members

CFA Institute members are empowered to self-determine and self-report professional learning (PL) credits earned, including content on Enterprising Investor. Members can record credits easily using their online PL tracker.



Source link

Tags: ChatGPTlanguageLargemodelsSemanticsSyntax
ShareTweetShareShare
Previous Post

Tentative deal reached to end the Hollywood writers strike

Next Post

Offering dirt on Hunter Biden’s FBI ‘mole’

Related Posts

Liquidity as a Product Feature

Liquidity as a Product Feature

by Index Investing News
April 17, 2026
0

Is this the end of deep, liquid markets? Not quite—but the model has changed. Liquidity is no longer an abstract...

How Capital Flows Are Reshaping Markets

How Capital Flows Are Reshaping Markets

by Index Investing News
April 13, 2026
0

Three implications follow. First, positioning must anticipate flows. Policy direction, retirement design, benchmark inclusion, and platform distribution are increasingly leading...

10 Bargain Dividend Stocks For Value And Income

10 Bargain Dividend Stocks For Value And Income

by Index Investing News
April 9, 2026
0

Published on April 7th, 2026 by Bob Ciura The S&P 500 has been historically overvalued (in hindsight) non-stop since 2010...

When Payrolls Matter Most | EI Blog

When Payrolls Matter Most | EI Blog

by Index Investing News
April 5, 2026
0

The headline monthly payroll estimates are produced by the BLS through the Establishment Survey, part of the Current Employment Statistics...

Conversations with Frank Fabozzi, CFA, Featuring Mark Anson

Conversations with Frank Fabozzi, CFA, Featuring Mark Anson

by Index Investing News
April 1, 2026
0

In this upcoming episode of Conversations with Frank Fabozzi, CFA, Mark Anson, CFA, they discuss how institutional investors are positioning...

Next Post
Offering dirt on Hunter Biden’s FBI ‘mole’

Offering dirt on Hunter Biden's FBI ‘mole’

TRX Could Rally To alt=

TRX Could Rally To $0.095 and Outperform Bitcoin

RECOMMENDED

Tottenham fan appears to kick Aaron Ramsdale after Arsenal win north London derby

Tottenham fan appears to kick Aaron Ramsdale after Arsenal win north London derby

January 15, 2023
Player ratings as Blades strike late to avoid upset

Player ratings as Blades strike late to avoid upset

February 8, 2023
US international funding panel break up on Nippon-U.S. Metal deal, FT stories By Reuters

US international funding panel break up on Nippon-U.S. Metal deal, FT stories By Reuters

December 15, 2024
Dow futures sink 1,300 factors after Trump defends tariffs as ‘drugs’ to repair commerce deficit

Dow futures sink 1,300 factors after Trump defends tariffs as ‘drugs’ to repair commerce deficit

April 7, 2025
Mint Explainer: How top contenders stack up in the UK PM race

Mint Explainer: How top contenders stack up in the UK PM race

October 21, 2022
Spurs: Gold drops Winks update

Spurs: Gold drops Winks update

October 22, 2022
Pony.ai wins allow for totally driverless taxi in Shenzhen enterprise district

Pony.ai wins allow for totally driverless taxi in Shenzhen enterprise district

March 28, 2025
The IPOX® Week, February 14th, 2022 – Low Value Inventory & Choices Buying and selling | Superior On-line Inventory Buying and selling

The IPOX® Week, February 14th, 2022 – Low Value Inventory & Choices Buying and selling | Superior On-line Inventory Buying and selling

April 3, 2022
Index Investing News

Get the latest news and follow the coverage of Investing, World News, Stocks, Market Analysis, Business & Financial News, and more from the top trusted sources.

  • 1717575246.7
  • Browse the latest news about investing and more
  • Contact us
  • Cookie Privacy Policy
  • Disclaimer
  • DMCA
  • Privacy Policy
  • Terms and Conditions
  • xtw18387b488

Copyright © 2022 - Index Investing News.
Index Investing News is not responsible for the content of external sites.

No Result
View All Result
  • Home
  • World
  • Investing
  • Financial
  • Economy
  • Markets
  • Stocks
  • Crypto
  • Property
  • Sport
  • Entertainment
  • Opinion

Copyright © 2022 - Index Investing News.
Index Investing News is not responsible for the content of external sites.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In