A solid dark gray background with a subtle matte texture.

Understanding What AI Does with a Prompt and What is a Better Response

AI may be a Large Language Model. Today, these are dominantly transformer decoder architectures. A prompt is parsed via a dictionary of tokens, each encountered token tagged with its location in the prompt, then computed to a first output. Computing embeds the tokenized bits of information (think words) as vectors into a huge (think thousands) dimensional space. Taken as a tensor, the vectors are multiplied by initial or machine-learned weight tensors, a.k.a. parameters, then rarified non-linearly into metrics called attention; it’s all you need! Attentions focus both content and context of the query and are next sigmoidally peaked as distributions, normalized to probabilities, then linearly reshaped into a potentially shorter or larger assembled tensor forming the transformer output. This output becomes, auto-regressively, the next decoder input. Blanking each “oldest,” not-yet-blanked token of the next input, the transform repeats, lowering the output perplexity as each successive result becomes next input, until all the tokens are blanked out, i.e. exhausted, and a final output of minimal perplexity is returned in reply to the prompt. That is all an LLM does. Literally, words in, words out. That simple, that complex. What would Wittgenstein make of this?

Teaching AI is Supervised Fine-Tuning.

Prompts are not going away. In Large Language Model fine-tuning, SFT helps craft more effective AI by providing tuning data in the form of Prompt-Baseline Response-Improved Response. These annotation data are exploited to power backpropagation updating of internal weights leading to more refined, more attuned, attention and feed-forward outputs within the LLM processing. A form of Reinforcement Learning (with) Human Feedback, SFT is “grad school” for rudimentary foundation models seeking improved performance, especially in quality of information and communicability in user dialog. Gain of concision and clarity is owed to the more, not the first or the few. It is consensus. Capability does not, however, confer ability. That’s a human thing.

A decade ago, SFT was data labeling, e.g. cat vs everything else image tagging, a la Fei-Fei Li crowdsourcing fame. Its evolved form today is data annotation, generating those associations. Annotators may be freelancers, working a gig likely to hang around in some form. The ranks of annotators teaching the most adept frontier models of AI will thin out. The survivors in Big AI annotation will likely be Subject Matter Experts in various aspects of the business. Fortunately, or not, “lightweight” models, including edge models, will find increasing use in smartphones, IoT devices, cars, robots, trains and boats and planes, and places we have yet to see; space? Of course. In quotidian realms, “tiny AI” will need continual grooming by ordinary users, particularly early adopters, to keep up with the evolving detail of their dissimilar applications. Tiny AI SFT may become a global cottage industry. Or else a few behemoths may corral it all. Only time will tell.

SFT is not Recursive Self Improvement.

Sadly, AI “doom trolling” has taken the idea of vanilla RSI for a wild ride. RSI is self-supervised machine learning. This is unsupervised by humans, rather by its own recursion to adjust its parameters, as guided by a cost-of-accuracy function. However powerful this schema, and it is, it may not necessarily lead to particular emergent capabilities. Emergence is, in general, the phenomenon of new behavior from an evolved, or even merely scaled-up, system. An optimistic industry vision is that “intelligence,” not to say “consciousness,” will one day emerge at high enough scaling up of a promising architecture. By adding dimensions and/or increasing the widths (of a dimension), i.e. by simply expanding machine complexity, it will just “happen.” Good luck with that. One possible antidote to the hysteria about an emerging Superintelligence as capable of “evil” as the good, is Cal Newport’s blog. Not saying Cal is right about everything. Just saying here’s a calm assessment amidst the chaos. You could do worse.

me (today)

Human, Engineer, Ever a Student

Fifty years of studying and helping design systems, small and large.

Many of the usual career experiences. MS EE.

Finally, visit the Bloggarium.

Just for fun. Beyond that, access to subdomains is by invitation.

notice: everything HERE and ON its subdomains is crafted by a human. NO AI copy, suggestion or edit is used.
And: WHILE MY RETIRED-LAWYER WIFE REMINDS ME DAILY THAT ALL LIFE IS sociologically POLITICAL with underlying economic considerations (also, E.G., see plato’s politics), NO RETAIL POLITICS OR REligION IS pandered to herein. your objectivity and independence in reasoning and judgement is respected as best I can.

Contact: admin@iteachai.site