tokenization and positional encoding ...
How tariffs slow an economy (the simple mechanics) Higher import prices → weaker demand. Tariffs raise the cost of imported inputs and final goods. Companies either pay more for raw materials and intermediate goods (squeezing margins) or pass costs to consumers (reducing purchasing power). That combRead more
How tariffs slow an economy (the simple mechanics)
- Higher import prices → weaker demand. Tariffs raise the cost of imported inputs and final goods. Companies either pay more for raw materials and intermediate goods (squeezing margins) or pass costs to consumers (reducing purchasing power). That combination cools consumption and industrial activity.
- Supply-chain disruption & re-shoring costs. Firms respond by reconfiguring supply chains (finding new suppliers, on-shoring, or stockpiling). Those adjustments are expensive and slow to pay off — in the near term they reduce investment and efficiency.
- Investment chill from uncertainty. The prospect of escalating or unpredictable tariffs raises policy uncertainty. Businesses delay or scale back capital projects until trade policy stabilizes.
- Retaliation and cascading barriers. Tariffs often trigger retaliatory measures. When many countries raise barriers, global trade volumes fall, which hits export-dependent economies and global value chains.
These channels are exactly why multilateral agencies and market analysts say tariffs and trade restrictions can lower growth even when headline GDP still looks “resilient.”
What the major institutions say (quick reality check)
- The IMF’s recent updates show modest global growth in 2025–26 but flag tariff-driven uncertainty as a downside risk. Their 2025 WEO update projects global growth near 3.0% for 2025 and 3.1% for 2026 while explicitly warning that higher tariffs and policy uncertainty are important risks.
- The OECD and several analysts argue the full force of recent tariff shocks hasn’t been felt yet — and they project growth weakening in 2026 as front-loading of imports ahead of tariffs wears off and higher effective tariff rates bite. The OECD’s interim outlook expects a slowdown in 2026 tied to these effects.
- The WTO and World Bank also report trade-volume weakness and flag trade barriers as a material drag on trade growth — which feeds into lower global GDP.
- These institutions are not predicting a single global recession just from tariffs, but they do expect measurable downward pressure on trade and investment, which slows recovery momentum.
How big could the hit be? (it depends — but here are the drivers)
Magnitude depends on policy breadth and persistence. Small, narrow tariffs on a few goods will only nudge growth; widespread, high tariffs across major economies (or sustained tit-for-tat escalation) can shave sizable tenths of a percentage point off global growth. Analysts point out that front-loading (firms buying ahead of tariff implementation) can temporarily buoy trade, but once that fades the negative effects appear.
Timing matters. If tariffs are announced and then held in place for years, businesses will invest in duplicative capacity and the re-allocation costs accumulate. That’s the scenario most likely to slow growth into 2026.
Bloomberg
Who loses most
- Export-dependent emerging markets (small open economies and commodity exporters) suffer when demand falls in advanced markets or when their inputs become more expensive.
- Complex-value-chain industries (autos, electronics, semiconductors) where components cross borders many times are particularly vulnerable to tariffs and retaliations.
- Low-income countries feel second-round effects: slower global growth → weaker commodity prices → less fiscal space and elevated debt stress. The World Bank notes growth downgrades when trade restrictions rise.
World Bank
Knock-on effects for inflation and policy
Tariffs can be inflationary (higher import prices), which puts central banks in a bind: tighten to fight inflation and risk choking off growth, or tolerate higher inflation and risk de-anchored expectations. Either choice complicates recovery and could reduce real incomes and investment. Several policymakers have voiced concern that the mix of tariffs plus high policy uncertainty creates a stagflation-like risk in vulnerable economies.
Offsets and reasons the slowdown may be limited
- Front-loading and substitution. Businesses sometimes build inventories or substitute suppliers — that mutes immediate trade declines. IMF and other agencies note that some front-loading actually supported 2024–2025 trade figures, but this effect runs out.
- Fiscal and monetary support. Governments can cushion the blow with targeted fiscal spending, subsidies, or trade facilitation. But those measures have limits (fiscal space, political will) and can’t fully replace cross-border trade flows.
- Near-term resilience in consumption. Private sectors in some major economies have remained resilient, which helps growth hold up even as trade cools. But resilience erodes if tariffs persist and investment dries up.
Reuters
Practical indicators to watch in 2025–26 (what will tell us the story)
- Trade volumes (WTO merchandise trade stats): a sustained drop signals broad tariff damage.
- Business investment and capex plans: continued delays or cancellations point to a deeper investment chill.
- Manufacturing PMI and global supply-chain bottlenecks: weakening PMIs across manufacturing hubs show cascading effects.
- Inflation vs. growth trade-offs and central bank minutes: whether monetary policy tightens in response to tariff-driven inflation.
- Announcements of trade retaliation or new tariff rounds: escalation increases downside risk; diplomatic rollbacks reduce it.
Bottom line — a human takeaway
Tariffs won’t necessarily cause an immediate, synchronized global recession in 2026, but they are a clear and credible downside risk to the fragile recovery. They act like a slow-moving tax on trade: higher costs, muddled investment decisions, and weaker demand — combined effects that shave growth and worsen inequalities between export-dependent and more closed economies. Policymakers can limit the damage with diplomacy, targeted support for affected industries and countries, and clear timelines — but if protectionism persists or escalates, the global recovery will be noticeably weaker in 2026 than it might otherwise have been.
If you want, I can:
• Turn this into a one-page slide for a briefing (executive summary + 3 charts of trade volume, investment plans, and projected growth scenarios); or
• Pull the most recent WTO/OECD/IMF bullets (with dates and one-sentence takeaways) to cite in a short memo.
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