A Take on AI: Data is King, but Training is Queen

Eric Famanas

~5 min read

A Take on AI: Data is King, but Training is Queen

It's been a while since we brought back the carpentry perspective to coding and technology, so I'll take this opportunity to explain the theme of this blog post using an analogy (and one I personally relate to).

Imagine you are a starting out as a keen, enthusiastic wood worker with some money to buy some kit. You go out, buy top-quality tools, a wide array of wood, and some books with tutorials on how to make various things. You do your due diligence and study but when finally... nothing. Frustration grips you as you can't seem to make a straight cut, accidentally split precious wood, uneven our rough finishes, etc.



Instructions unclear. Task failed successfully.

Instructions unclear. Task failed successfully.

If we liken data as an essential resource to artificial intelligence, and the study materials like books and videos as a type of documentation used as part of AI's retrieval augmented generation (RAG) process, then where is the shortfall in this situation? What is the missing link? We should look no further than ChatGPT, or rather, what GPT stands for: Generative Pre-Trained Transformer; and that is the key: training.

Data Vs Training: King vs Queen?

Thinking about this takes me back to my bootcamp days: running, pushups, eating on command, more pushups, folding clothes, more pushups... well, you get the idea. The point is, we did these things, repeatedly, until it became second nature, that we could do these things without even thinking about it. But surely, with machines, it's simple right? You train them once, programatically, and they will encode those instructions within their database, the process flow forever enshrined into binary.



Ah, the joys of basic training, and then more basic training, and... more training.

Ah, the joys of basic training, and then more basic training, and... more training.

As we know, things are not that simple, hence why architecture designs such as GPT are so important, where guardrails are put in place to ensure reliability in the responses. But sometimes, training too much can also lead to unintended consequences such as overfitting. When we train our models using the labeled data, the models tend to overfit the training data, resulting in models that are not accurate enough for the actual data. This happens because the models learn patterns that are not relevant to the data, leading to a loss of interpretability and accuracy. In human terms, being "overly fit", so swoll that you can't fit in your clothes, might be a good thing, but for AI, it can lead to unreliable responses or low-quality output.

To address these challenges, designers and engineers develop strategies for properly training models. One strategy is called regularisation. Regularisation involves adding additional terms to the loss function to penalise models that are too easily fit. For example, we could add a penalty term to the loss function that measures the difference between the predicted label and the true label. This penalty term encourages models that are too easily fit to reduce their weights to zero. Expanding this concept further, there is an additional approach called regularisation with weight decay. This strategy adds a regularisation term to the loss function that measures the difference between the predicted label and the true label. The regularisation term encourages weights of the model to decay over time.

The World Through the (Context) Window

While it's not really a training issue, there is another aspect to AI which I like to refer to as a context window. I probably heard that from somewhere before, because the terminology is commonplace. Anyway, imagine the context window as being related to an AI's perception, or its ability to make sense of the immediate context based on the training it had previously received. We don't just train AI's to respond to single prompts; they also need to have an understanding of the context surrounding the prompts in order for their responses to be useful. Context windows are incredibly important when using AI; they help the AI understand what the task is, and they also allow the AI to learn how to respond correctly. Without context windows, the AI would be too general and wouldn’t be able to predict what people are going to say. This would result in incorrect predictions and frustrating users.



You need to see the big picture to get a sense of where you are going

You need to see the big picture to get a sense of where you are going

AI is not designed to have context. It is trained to process data, make predictions and make decisions based on the information available. When we, as humans, write our software or plan projects, we are using a global context window to inform our decision making process by utilising holistic knowledge of a task or situation. By using the context window, AI can understand what posts you have seen, what information is available to it, and make more informed decisions. At least, this would be the idea. In reality, the context window is quite small when compared to the global memory a human has. None the less, training an AI to use this information is equally as important as training an AI on how to use infer responses from data.

Training AI is more than just training AI

While we know know that both data and training crucial, but what about the importance of training individuals who will be working with these tools? Without proper training, these tools may not work as well as they could, leading to poor decisions made by users. Similarly, making sure that individuals who will be working with AI are properly equipped with the necessary knowledge and skills is crucial in order to ensure that AI can be used effectively. In conclusion, data and AI are both quickly becoming essential components of our world today, and we need to be mindful of their importance in order to make informed decisions based on facts. Additionally, we need to ensure that individuals working with these tools are properly trained in order to make informed decisions based on facts. After all, we should learn to master the tools laid before us, not be afraid of them.

Systems Orchestrator

CTO · Technology leadership