Removing Massive Components from AI's Brain? 'Drop the FFN' and the Secrets of Tiny Language Models

A minimalist and intuitive illustration symbolically showing an ultra-small AI model and the Transformer architecture
AI Summary

Explore the latest research aiming to remove or replace the FFN component—which independently transforms words in the Transformer architecture—and ultra-small AI experiments inspired by children's language acquisition that create grammatically flawless stories with under 50 million parameters.

Imagine opening your smartphone in the morning and asking AI to write a short bedtime story for your child: “Make up a story about a friendly baby rabbit living in the forest.” Within just a few seconds, AI completes a warm story composed of detailed paragraphs without a single grammatical error. We often think such natural sentence generation is possible only with hundreds of billions of parameters and massive supercomputers.

However, scientists ask: “Does it really need to be that big? Or can we boldly trim unnecessary components from AI’s brain and still be just as smart?” Recently, in the artificial intelligence research community, original experiments have been underway to completely remove or alternatively replace the Feed Forward Network (FFN), one of the core components of the Transformer architecture [Source 1, Source 8]. Let’s embark on a journey into the so-called ‘Drop the FFN’ project and the exploration of TinyStories [Source 1, Source 11].


Why Is This Important?

Today’s Large Language Models (LLMs) are growing larger day by day. Equipped with hundreds of billions or even trillions of tunable numerical values (parameters), AI consumes enormous electric power and massive costs. Running massive AI in power-constrained and performance-limited environments like smartphones or small wearable devices remains a major challenge.

To put it into perspective, running a large language model on a smartphone is akin to driving a large freight truck down a narrow alleyway. The engine is huge and powerful, but excessive resources are wasted on the light everyday tasks or casual conversations we encounter daily.

What if we could trim or simplify unnecessarily complex components from the core framework of an AI model? We could freely run Small Language Models (SLMs) that write fluent and creative text like a human child on smartphones, home IoT devices, and even very inexpensive chipsets [Source 11]. This could be a decisive key to popularizing privacy-guaranteed On-device AI. In other words, it opens a sustainable future where AI technology spreads beyond a few massive data centers into every device in our hands.


Understanding Simply: AI Brain Component Replacement Project

The Transformer architecture, the standard framework of modern artificial intelligence, consists largely of two core non-embedding components [Source 8]. They are Attention and the Feed Forward Network (FFN) [Source 8].

To use an easy analogy, the Transformer structure is like a massive library operating system:

  • Attention is the ‘gaze and network’ that grasps the context of how words in a sentence relate to each other when a student sitting at a study desk reads a book. It actively finds and connects the words it needs to focus on [Source 1, Source 8].
  • On the other hand, FFN (Feed Forward Network) acts as a ‘personal workbench’ where knowledge is processed and digested through independent, non-linear transformations for each individual word [Source 8].

In simple terms: While Attention is the eye examining relationships like “this word and that word are connected!”, FFN is like a mill that deeply refines and digests the meaning of each word individually [Source 8].

However, the ‘Drop the FFN’ research team asked a bold question: “Just as attention allows tokens (units of word fragments perceived by AI) to use their activation values to decide what to read, can channels also use the exact same scoring method to decide what channels to read and take over the role of FFN?” In other words, it is an attempt to boldly remove complex and heavy FFN components or replace them with other lightweight structures [Source 1, Source 9].

Furthermore, the TinyStories project compares the process of AI learning language to a human child’s language acquisition. According to research, the linguistic exposure a human child receives by age 13 is less than 100 million words [Source 11, Source 14]. This proved how small AI can become when utilizing a very simple and well-curated fairytale dataset, without having to train on the vast and complex entire internet [Source 11, Source 14]. Children’s storybooks have simple and repetitive grammatical structures, yet fully embody the causality and narrative structure of stories. Following this principle enables AI to command excellent sentences without a massive encyclopedia [Source 11].


Current Status: Writing Fairy Tales with Under 10 Million Parameters

Currently, the open-source community and researchers are validating this idea through various small language model experiments.

  • Astonishing Fluency of Ultra-small Models: The TinyStories framework, led by researchers such as Microsoft’s Ronen Eldan, demonstrated that models with fewer than 50 million parameters—even under 10 million total parameters and just a single Transformer block—can generate colorful stories consisting of various paragraphs with nearly flawless grammar [Source 11, Source 12, Source 14].
  • Experiments at Various Scales: Developers and researchers are testing various ultra-small architectures ranging from extremely small experimental models with 656K (656,000) parameters to 20M, 22.7M, and 110M Llama-derived models [Source 3, Source 5, Source 16, Source 17].
  • Component Replacement Attempts: For instance, models like GriffithLLM-TinyStories test performance by replacing only the FFN portion with logic gates (LUTs) while keeping Transformer attention, embeddings, and LayerNorm intact [Source 2]. Additionally, the Drop the FFN project is conducting experiments replacing static FFNs with activation-based channel mixing via PyTorch modules [Source 9].

These studies go beyond mere theory, leading to active code implementation and model sharing in the open-source camp, accumulating practical data and benchmark results. They empirically demonstrate that even with a small model size, backed by curated data and efficient structural design, excellent sentence generation capabilities can be achieved [Source 11].


What Lies Ahead?

Future artificial intelligence development is likely to shift from the brute-force scale-up era of chanting “bigger, more” to a precision design era pursuing “smaller, smarter.”

Before long, we will encounter AI conversing smoothly and naturally without internet connection in all small everyday devices—not only smartphones but also smart home appliances, wearable glasses, and toy robots. As the technology to simplify or remove FFN matures, AI will achieve remarkably reduced power consumption while commanding language skills as pure and creative as a human’s childhood reading experiences.

At this juncture where technological progress transitions from gigantism to efficiency and fundamental exploration, ultra-small AI models hold the potential to completely redefine how we coexist with artificial intelligence.


AI Perspective

Perspective from the MindTickleBytes AI journalist: In an AI world intoxicated by the magic of ‘more parameters’, TinyStories and FFN lightweight research deliver a refreshing shock. Just as a child understands the world and creates stories with few words, AI proves that it can become lightweight and powerful through structural innovation focused on the essentials. This will serve as a stepping stone for inclusive technological progress, enabling people to enjoy the benefits of AI even in resource-constrained environments.


References

  1. Drop the FFN – A Column Attention Transformer for TinyStories
  2. Monruho/GriffithLLM-TinyStories· Hugging Face
  3. GitHub - PavDrg/TinyStories-Transformer-Small-Language-Model-20M-parameters
  4. sbartlett97/sot-phase1-tinystories-dense_half_ffn-seed123 · Pirate Face
  5. [110M Llama on TinyStories llamac – Weights & Biases](https://wandb.ai/capecape/llamac/reports/110M-Llama-on-TinyStories–Vmlldzo1MDUxOTE1)
  6. TinyStories by Ronen Eldan - YouTube
  7. One Wide Feedforward is All You Need
  8. GitHub - jiaminres/drop-the-ffn: A PyTorch Transformer that …
  9. Study Notes: Stanford CS336 Language Modeling from Scratch …
  10. [2305.07759] TinyStories: How Small Can Language Models Be and Still Speak Coherent English?
  11. TinyStories: How Small Can Language Models Be and Still Speak Coherent English? - Microsoft Research
  12. Language Modeling, Part 6: Transformers - Connor Davis
  13. TinyStories Small Language Model Framework (ACL Anthology PDF)
  14. Aashw1n/tinystories-22M · Pirate Face
  15. duckyblender/tinystories-656k:latest/model
AD
Test Your Understanding
Q1. What is the core non-embedding component in the Transformer architecture that captures interdependence between words?
  • Feed Forward Network (FFN)
  • Attention
  • BPE Tokenizer
Attention captures the relationships and interdependencies between words in a sentence regardless of their position.
Q2. Which of the following correctly describes a research finding demonstrated by the TinyStories framework?
  • Small language models with under 50 million parameters can generate fluent, grammatically correct short stories.
  • AI models must have over 1 trillion parameters to generate sentences.
  • Transformer models cannot function at all without the FFN component.
The TinyStories research proved that even with fewer than 50 million—or even under 10 million—parameters and a simple structure, models can generate stories with near-perfect grammar and multiple paragraphs.
Q3. What is the core idea tested in the 'Drop the FFN' project?
  • Verifying whether channels can use self-attention scoring ideas to decide which channels to read and take over the role of FFN
  • Maximizing performance by increasing model size 10x or more
  • Perfectly converting text data into speech data
The 'Drop the FFN' project tests whether attention's scoring method can be applied at the channel level to replace FFN tasks.
Removing Massive Components...
0:00