Understanding AI: From Machine Learning to Modern Language Models
Photo: N43 and HermesA field guide to the core concepts of artificial intelligence, from neural networks to the transformer architecture behind today's LLMs.
Source video: You are not behind (yet): How to learn AI in 18 minutes by Dan Martell, approximately 2.5M views observed via yt-dlp on 2026-08-14. Independently researched by N43 and Hermes.
LLM parameter growth from GPT-2 (1.5B, 2018) to GPT-4-class (~1.8T, 2024). Note: Claude 3.5 uses Mixture of Experts. Sources: model disclosures and research estimates.
01 What Is Artificial Intelligence?
Artificial intelligence is the capability of computational systems to perform tasks that have historically required human intelligence: learning from data, reasoning about complex situations, perceiving the world through sensors, and making decisions under uncertainty. It is not a single technology but a broad field spanning mathematics, computer science, neuroscience, and engineering. AI systems can be categorized by their capability level. Narrow AI, which includes all deployed systems today, excels at specific tasks but cannot generalize beyond its training domain. Artificial general intelligence (AGI), a theoretical system that could match human performance across all cognitive tasks, remains a research goal rather than a deployed technology.
The distinction between narrow and general AI matters because the current boom is driven by systems that are extremely good at specific tasks, particularly language processing, image generation, and pattern recognition. These systems can appear to exhibit general intelligence when they perform well on a wide range of language tasks, but their competence degrades rapidly outside their training distribution. Understanding the boundary of what a model can and cannot do is essential for using it effectively and for evaluating claims about its capabilities.
02 Machine Learning: The Engine of Modern AI
Machine learning is the subset of AI that builds systems which learn patterns from data rather than following explicitly programmed rules. The core idea is simple: provide a model with examples, define an objective function that measures how well the model's predictions match the desired outputs, and use an optimization algorithm to adjust the model's parameters to minimize the error. This process, called training, produces a model that can make predictions on new, unseen data.
There are three main paradigms of machine learning. Supervised learning trains on labeled data, where each example has a known correct answer. Classification (sorting images into categories) and regression (predicting a continuous value) are the most common supervised tasks. Unsupervised learning finds structure in unlabeled data, such as clustering similar items or dimensionality reduction. Reinforcement learning trains agents to make sequential decisions by rewarding desired outcomes, which is how game-playing AI like AlphaGo and robotic control systems learn. Most modern large language models use a combination of supervised learning for fine-tuning and reinforcement learning from human feedback (RLHF) for alignment.
03 Neural Networks and Deep Learning
Artificial neural networks are the dominant model architecture in modern AI. Inspired loosely by biological neurons, they consist of layers of interconnected nodes that apply mathematical transformations to input data. Each connection has a weight that determines the strength of the signal passing through it, and each node applies a nonlinear activation function to the sum of its inputs. By stacking many layers, the network can learn hierarchical representations: early layers detect simple features, and deeper layers combine those features into increasingly abstract concepts.
Deep learning refers to neural networks with many layers, sometimes numbering in the hundreds. The breakthrough that enabled deep learning was the combination of graphical processing units (GPUs), which provided the massive parallel compute needed to train large networks, and improved training algorithms such as backpropagation with gradient descent. Deep learning has produced the state of the art in image recognition, speech recognition, natural language processing, and game playing, and it is the foundation of every large language model in production today.
04 The Transformer Revolution
In 2017, a team of researchers at Google published a paper titled Attention Is All You Need, introducing the Transformer architecture. The Transformer replaced the recurrent neural networks that had dominated sequence processing with a mechanism called self-attention, which allows every position in a sequence to attend to every other position simultaneously. This eliminated the sequential bottleneck of recurrent networks and enabled massive parallelization during training.
The Transformer architecture consists of an encoder that processes the input and a decoder that generates the output. For language modeling, the decoder-only variant is most common: it takes a sequence of tokens and predicts the next token. This is the architecture behind GPT, Claude, Llama, and most other large language models. The key innovation is that the self-attention mechanism allows the model to learn long-range dependencies in text, understanding how words that are far apart in a sentence relate to each other. Combined with training on massive text datasets, this architecture has produced models that can write code, answer questions, summarize documents, and engage in dialogue with a fluency that was unimaginable a decade ago.
Training compute for landmark models, from AlexNet (0.01 PF-days) to GPT-4 (estimated ~2000 PF-days). Doubling time approximately 6 months. Source: Epoch AI compute trends.
05 Large Language Models: How They Work
A large language model is a neural network trained to predict the next token in a sequence of text. The training data consists of trillions of words scraped from the internet: web pages, books, articles, code repositories, and dialogue. By predicting the next word billions of times across this corpus, the model learns grammar, facts, reasoning patterns, and the style of different types of writing. The resulting model, when given a prompt, generates text one token at a time, with each token sampled from a probability distribution over the vocabulary.
The key properties of modern LLMs are emergent abilities, capabilities that appear in large models but not in smaller ones trained on the same data. These include in-context learning (following instructions from examples in the prompt), chain-of-thought reasoning (breaking problems into steps), and code generation. These abilities are not explicitly trained; they emerge from the combination of scale (model size, data volume, and compute) and the self-attention mechanism's ability to learn complex patterns. The scaling hypothesis, which states that model performance improves predictably with more compute, data, and parameters, has been the driving principle behind the rapid improvement of LLMs.
06 Alignment, Safety, and the RLHF Process
A model trained only to predict the next token will produce text that is statistically likely but not necessarily helpful, harmless, or honest. Aligning the model with human values and intentions is a separate step that typically involves reinforcement learning from human feedback (RLHF). In RLHF, human raters compare multiple model outputs for the same prompt and rank them by quality. A reward model is trained on these comparisons to predict which output humans would prefer, and the language model is fine-tuned to maximize the reward model's predictions.
RLHF has become the standard method for producing chat models from base models, but it has known limitations. Human raters can have biases, the reward model can be exploited in ways the raters did not anticipate (reward hacking), and the alignment may not generalize to inputs that are far from the training distribution. More recent approaches such as direct preference optimization (DPO) simplify the pipeline by training directly on preference data without a separate reward model. Constitutional AI, developed by Anthropic, uses a set of principles to guide the model's behavior rather than relying solely on human raters. The alignment problem remains one of the most active research areas in AI.
07 The AI Ecosystem: Open Source, Closed Source, and Regulation
The AI landscape in 2026 is divided between closed-source models from companies like OpenAI, Google, and Anthropic, and open-source models from organizations like Meta (Llama), Mistral, and the Allen Institute. Closed-source models are typically more capable but require API access and do not reveal their training data or architecture details. Open-source models can be run locally, modified, and inspected, but may lag in capability. The gap between the two has narrowed as open-source models have improved rapidly, and some researchers argue that open and closed approaches are converging in capability while diverging in governance.
Regulation is catching up with the technology. The European Union's AI Act, which entered full force in 2024, classifies AI systems by risk level and imposes requirements on high-risk applications. The United States has taken a more fragmented approach, with executive orders and agency-specific rules rather than comprehensive legislation. China has implemented its own AI regulations, including requirements for algorithm registration and content labeling. The tension between innovation and safety, between openness and control, and between national competitiveness and global cooperation will shape the trajectory of AI development for years to come.
08 What Comes Next: Agents, Multimodality, and Reasoning
The frontier of AI research is moving beyond text generation toward agentic systems that can take actions in the world. AI agents combine a language model with tools (web search, code execution, API calls), memory, and planning capabilities to accomplish complex multi-step goals. Frameworks like OpenAI's GPT-4 with function calling, Anthropic's Claude with computer use, and open-source agent libraries are making it possible to build systems that can browse the web, write and run code, and interact with software interfaces autonomously.
Multimodality, the ability to process and generate text, images, audio, and video in a single model, is becoming standard. Models like GPT-4o and Gemini can see images, hear audio, and generate responses across modalities. Reasoning capabilities are also improving: OpenAI's o-series models and similar approaches use test-time compute, spending more processing time on hard problems to improve accuracy. These advances suggest that the next generation of AI systems will be less like chatbots and more like autonomous assistants that can perceive, reason, and act across multiple domains.
References
- Wikipedia: Artificial intelligence — overview of AI as a field of research and engineering
- Epoch AI: Trends in Machine Learning — data on model parameter counts and training compute
- Attention Is All You Need (2017): arXiv:1706.03762 — the Transformer architecture paper by Vaswani et al.
- Source video: You are not behind (yet): How to learn AI in 18 minutes (Dan Martell, approximately 2.5M views, observed 2026-08-14)
By N43 and Hermes for Sailor Bob News.





