tokenization and positional encoding ...
1. The early years: Bigger meant better When GPT-3, PaLM, Gemini 1, Llama 2 and similar models came, they were huge.The assumption was: “The more parameters a model has, the more intelligent it becomes.” And honestly, it worked at first: Bigger models understood language better They solved tasks morRead more
1. The early years: Bigger meant better
When GPT-3, PaLM, Gemini 1, Llama 2 and similar models came, they were huge.
The assumption was:
“The more parameters a model has, the more intelligent it becomes.”
And honestly, it worked at first:
-
Bigger models understood language better
-
They solved tasks more clearly
-
They could generalize across many domains
So companies kept scaling from billions → hundreds of billions → trillions of parameters.
But soon, cracks started to show.
2. The problem: Giant models are amazing… but expensive and slow
Large-scale models come with big headaches:
High computational cost
- You need data centers, GPUs, expensive clusters to run them.
Cost of inference
- Running one query can cost cents too expensive for mass use.
Slow response times
Bigger models → more compute → slower speed
This is painful for:
-
real-time apps
-
mobile apps
-
robotics
-
AR/VR
-
autonomous workflows
Privacy concerns
- Enterprises don’t want to send private data to a huge central model.
Environmental concerns
- Training a trillion-parameter model consumes massive energy.
- This pushed the industry to rethink the strategy.
3. The shift: Smaller, faster, domain-focused LLMs
Around 2023–2025, we saw a big change.
Developers realised:
“A smaller model, trained on the right data for a specific domain, can outperform a gigantic general-purpose model.”
This led to the rise of:
Small models (SMLLMs) 7B, 13B, 20B parameter range
- Examples: Gemma, Llama 3.2, Phi, Mistral.
Domain-specialized small models
- These outperform even GPT-4/GPT-5-level models within their domain:
-
Medical AI models
-
Legal research LLMs
-
Financial trading models
-
Dev-tools coding models
-
Customer service agents
-
Product-catalog Q&A models
Why?
Because these models don’t try to know everything they specialize.
Think of it like doctors:
A general physician knows a bit of everything,but a cardiologist knows the heart far better.
4. Why small LLMs are winning (in many cases)
1) They run on laptops, mobiles & edge devices
A 7B or 13B model can run locally without cloud.
This means:
-
super fast
-
low latency
-
privacy-safe
-
cheap operations
2) They are fine-tuned for specific tasks
A 20B medical model can outperform a 1T general model in:
-
diagnosis-related reasoning
-
treatment recommendations
-
medical report summarization
Because it is trained only on what matters.
3) They are cheaper to train and maintain
- Companies love this.
- Instead of spending $100M+, they can train a small model for $50k–$200k.
4) They are easier to deploy at scale
- Millions of users can run them simultaneously without breaking servers.
5) They allow “privacy by design”
Industries like:
-
Healthcare
-
Banking
-
Government
…prefer smaller models that run inside secure internal servers.
5. But are big models going away?
No — not at all.
Massive frontier models (GPT-6, Gemini Ultra, Claude Next, Llama 4) still matter because:
-
They push scientific boundaries
-
They do complex reasoning
-
They integrate multiple modalities
-
They act as universal foundation models
Think of them as:
- “The brains of the AI ecosystem.”
But they are not the only solution anymore.
6. The new model ecosystem: Big + Small working together
The future is hybrid:
Big Model (Brain)
- Deep reasoning, creativity, planning, multimodal understanding.
Small Models (Workers)
- Fast, specialized, local, privacy-safe, domain experts.
Large companies are already shifting to “Model Farms”:
-
1 big foundation LLM
-
20–200 small specialized LLMs
-
50–500 even smaller micro-models
Each does one job really well.
7. The 2025 2027 trend: Agentic AI with lightweight models
We’re entering a world where:
Agents = many small models performing tasks autonomously
Instead of one giant model:
-
one model reads your emails
-
one summarizes tasks
-
one checks market data
-
one writes code
-
one runs on your laptop
-
one handles security
All coordinated by a central reasoning model.
This distributed intelligence is more efficient than having one giant brain do everything.
Conclusion (Humanized summary)
Yes the industry is strongly moving toward smaller, faster, domain-specialized LLMs because they are:
-
cheaper
-
faster
-
accurate in specific domains
-
privacy-friendly
-
easier to deploy on devices
-
better for real businesses
But big trillion-parameter models will still exist to provide:
-
world knowledge
-
long reasoning
-
universal coordination
So the future isn’t about choosing big OR small.
It’s about combining big + tailored small models to create an intelligent ecosystem just like how the human body uses both a brain and specialized organs.
See less
The World of Tokens Humans read sentences as words and meanings. Consider it like breaking down a sentence into manageable bits, which the AI then knows how to turn into numbers. “AI is amazing” might turn into tokens: → [“AI”, “ is”, “ amazing”] Or sometimes even smaller: [“A”, “I”, “ is”, “ ama”,Read more
The World of Tokens
Each token gets a unique ID number, and these numbers are turned into embeddings, or mathematical representations of meaning.
But There’s a Problem Order Matters!
Let’s say we have two sentences:
They use the same words, but the order completely changes the meaning!
A regular bag of tokens doesn’t tell the AI which word came first or last.
That would be like giving somebody pieces of the puzzle and not indicating how to lay them out; they’d never see the picture.
So, how does the AI discern the word order?
An Easy Analogy: Music Notes
Imagine a song.
Each of them, separately, is just a sound.
Now, imagine if you played them out of order the music would make no sense!
Positional encoding is like the sheet music, which tells the AI where each note (token) belongs in the rhythm of the sentence.
Position Selection – How the Model Uses These Positions
Once tokens are labeled with their positions, the model combines both:
These two signals together permit the AI to:
Why This Is Crucial for Understanding and Creativity
Put together, they represent the basis for how LLMs understand and generate human-like language.
In stories,
This is why models like GPT or Gemini can write essays, summarize books, translate languages, and even generate code-because they “see” text as an organized pattern of meaning and order, not just random strings of words.
How Modern LLMs Improve on This
Earlier models had fixed positional encodings meaning they could handle only limited context (like 512 or 1024 tokens).
But newer models (like GPT-4, Claude 3, Gemini 2.0, etc.) use rotary or relative positional embeddings, which allow them to process tens of thousands of tokens entire books or multi-page documents while still understanding how each sentence relates to the others.
That’s why you can now paste a 100-page report or a long conversation, and the model still “remembers” what came before.
Bringing It All Together
but because it knows how meaning changes with position and context.
Final Thoughts
If you think of an LLM as a brain, then:
Together, they make language models capable of something almost magical understanding human thought patterns through math and structure.
See less