Layered Adaptation — The Specificity of Fine-Tuning Models

Adaptation transforms generalized models into AI models specific to a use case. Learn in broad terms how this is accomplished.

Layered Adaptation — The Specificity of Fine-Tuning Models

a·dapt [əˈdapt]
Verb
1. To make (something) suitable for a new use or purpose; modify:

Life, humanity, the world as we know it, is ever-evolving. Technological advances continue to shift the frontier of possibilities while discarding the capabilities of the past. Innovation sparks new paradigms while also introducing new problems. In short, continuance requires adaptations, as such, we adapt. As for Artificial Intelligence, that too requires adaptations.

Adaptations within the realm of Artificial Intelligence has existed for decades. Drawing from the many examples of adaptation artifacts defined in a prior piece, Adaptation Artifacts for Tuning Models | by Sam Bobo | Medium, such as Domain Language Models, Lexicons, and Speech Grammars, adaptations exist to further refine a generalized model towards specific industries and use cases, making them more accurate.

To better understand where adaptation fits into the overall AI landscape, we must revisit the 3 layers of ground truth and revise slightly:

The Foundation Layer

The broadest possible training of an AI system, whereby the data input is to provide the model with generalized knowledge about language modeling as well as “facts” existing as ground truth. This layer is typically owned and operated by research organizations, the likes of OpenAI, Anthropic, Meta, Microsoft, Google, Amazon, and the like. This layer is the commodity layer as generalized knowledge is readily available from the open web, however, in today’s AI era, still require significant amounts of data and compute to build which is why these organizations continue to operate at a loss.

Moving to a slightly mathematical representation here, when an AI model is built, it generates, what is essentially a line-of-best-fit (from statistics class) but instead of a two-dimensional space, billionth dimensional space (often defined as the latent space). This “billionth” number (or vector) is represented as parameters and often included within the name of the model. This number is significant as it represents the number of different configurations that can be tuned, but at this time, they are set numbers (weights). When the model is called, say, to predict the next few words you will type in an email, the model will traverse the billions of parameters (nodes), performing a mathematical computation at each, and then producing an output which you will see on your screen as words.

The Industry/Use Case Layer

This layer fine-tunes foundation models and adapts them to more industry-specific and/or use-case specific tasks. Industries might include healthcare, financial services, retail, travel, telecommunications, and the like (we can be as specific as we want) as well as perform specific tasks in accordance with a particular use case. This layer is typically owned by the organization implementing Artificial Intelligence into a product or solution. For our illustrative purposes here, we will assume this layer is owned by a platform company whom provides AI services to end customers.

Here is where data becomes the competitive advantage, either proprietary data or data consumed from highly specialized data providers wherein the company licenses use of that data for training AI systems.

For example, suppose a law firm is creating a model to assist the everyday people in navigating tax law. They might first train the model on generalized legislature across the continental United States on any publicly available information to “understand” the complex jargon of legal language and build “knowledge” (again, its probability and statistics here, not actual knowledge!). During this process, to maintain our line-of-best-fit illustration is that during the industry/use case layer, new data points are being added to the model and shifting the line (in billionth space), thus altering the model but not the parameters itself. This changes the weights for the overall model so it behaves differently than before the training and therefore, produce more accurate results as specific parameters relating to the legal world are now weighted higher than they were previously.

The Adaptation Layer

This layer applies adaptations on top of the model itself to modify the behavior typically after the model has run. Adaptations range from rules/constraints (grammars, lexicons, etc) or even modifying the weights even more (Low Rank Adaptation (LoRA) or Domain Language Models) that further tune the output towards a particular use case, set of customers, and more. This layer is owned by the final customer, whether it be another entity downstream from a platform company or the aforementioned customer in the legal example above.

What is particularly magical about the adaptation layer is that adaptations can be performed without impacting the larger model. Therefore, if you are a platform organization with two customers, customer A can create adaptations for their AI model without impacting what customer B does. In effect, the set of parameters, already tuned from the industry layer, get one final layer on top, almost like a filter, that can be added or removed at any point.


Now I sincerely hope that the mathematical analogy and examples I’ve created above resonate with you, the reader, as I am trying to distil a highly complex process into a digestible representation. If I’ve missed, I apologize. What I hope to convey from this articulation above is that there is a value chain with specific AI production that builds upon the work of the previous organization that leads itself to The Council of Experts Leader-Agent Model — A Proposed Framework for General Intelligence. As I continue to work with AI with enterprise, my mental model of how this ecosystem continues to evolve. Its my objective, that through this blog, I help to articulate that model in the best manner possible to teach and inform as a broad readerbase.