How Benjamin Franklin Invented Machine Learning in 1720

How a teenage printer’s writing exercise reverse engineered the timeless principles of learning.

The core algorithm that powers today’s most advanced artificial intelligence wasn’t born in Silicon Valley or has anything to do with computers. It was engineered in the dusty, ink stained backroom of a Boston print shop, nearly 300 years ago, by a teenager who was tired of being told he wasn’t a good writer.

Long before he was a world famous statesman and inventor, Benjamin Franklin was an ambitious, self taught apprentice with a chip on his shoulder. Working for his older brother, he devoured books and secretly submitted anonymous essays to his brother’s newspaper, desperate to succeed in this world of words. But he had a problem. While his ideas were sharp, his prose was clumsy.

His own father, Josiah, delivered a blunt critique: Ben’s writing lacked “elegance of expression, method and perspicuity.”1 For an aspiring intellectual, this was a devastating diagnosis. It confirmed his fear that he simply didn’t have the innate ‘gift’ for writing.

Instead of giving up, Franklin did something extraordinary. He rejected the idea of ‘innate talent’ and treated his flawed writing not as a personal failure, but as an engineering problem. He asked himself: Is there a system, an algorithm, that can build the skill of writing from the ground up? In effect, he decided to debug his own brain.23

What Franklin developed wasn’t just a writing exercise, it was something far more profound. His process reveals something fundamental about how intelligence, artificial or human, actually improves. When we examine his method through a modern lens, we discover he had unknowingly architected the same learning principles that power today’s AI.

Franklin’s method can be seen as a kind of human powered, conceptual gradient descent, where conscious insight replaces calculus to minimize the ’error’ between his writing and his goal. By deconstructing his 300 year old protocol, we can uncover a powerful blueprint for how anyone can master a complex skill.

Franklin’s breakthrough wasn’t just in learning to write better, it was in systematizing the process of improvement itself. He created a feedback loop that could be applied to any skill, making excellence reproducible rather than accidental.

The Learning Algorithm

Benjamin Franklin's systematic approach to learning

Franklin’s methodical approach to mastering writing

Franklin chose articles from The Spectator, a respected British periodical, as his “training data” and ran them through a repeatable loop that tightened his prose with every pass.

1

Feature Extraction

Compress the source to its signal

First, he converted exemplary essays into compact notes. He took several articles and made “short hints of the sentiment in each sentence”2, forcing himself to distill structure, tone, and argument the way an AI model pulls features from raw data.
2

Reconstruction

Generate from compressed understanding

After a deliberate pause of a few days—an instinctual guard against rote memorization—he rebuilt the article sentence by sentence from those hints. This was his forward pass, a prediction generated from the representation he had just engineered.
3

Error Calculation

Compare against the ground truth

He then executed the most critical step: “I compared my Spectator with the original, discovered some of my faults, and corrected them”2. The side by side review supplied a loss signal that surfaced concrete gaps in diction, cadence, and logic.
4

Parameter Update

Adjust the mental model

Franklin leaned into every discrepancy. By rewriting awkward phrases, borrowing structure, and noting superior turns of phrase, he updated the parameters of his own style so the next prediction would land closer to the target.

Deliberate Practice, 1720 Style

Psychologist Anders Ericsson later coined the term “deliberate practice”3 for exactly this pattern: a structured activity with explicit goals, rapid feedback, and relentless correction. Franklin was running that playbook two centuries early.

The Modern Parallel: Deconstructing the Training Loop

Franklin’s protocol is a striking parallel for a modern machine learning training loop:

Benjamin Franklin’s MethodModern Machine Learning Equivalent
Selects high quality articles from The SpectatorData Collection: A curated, high quality dataset is assembled for training
Reconstructs articles from “short hints”Forward Pass: The model makes a prediction based on an input
Compares his version to the original to find “faults”Loss Function: The model’s prediction is compared to the correct output to calculate an error
Meticulously corrects his prose based on the errors foundBackpropagation & Gradient Descent: The error is propagated backward to adjust the model’s internal weights, minimizing future errors

Regularization Before Calculus

Franklin’s built in delay functioned as regularization, preventing overfitting by forcing him to generalize rather than memorize the Spectator’s prose. He even practiced early data augmentation, shuffling notes or flipping prose into poetry and back to strengthen the underlying representation.

The Learner’s Playbook: Applying the Franklin Protocol

Applied Learning Framework

Modern applications across domains

Anyone can use the Franklin Protocol to master a skill today, from coding to cooking to playing a musical instrument. The key is to stop passively consuming information and start building your own active learning loop.

The beauty of Franklin’s method lies in its universality. Whether you’re debugging code, perfecting a recipe, or learning a musical piece, the same principles apply: compress the knowledge, reconstruct from memory, compare against excellence, and iterate based on the gaps you discover.

Even when our primary ventures fail, we have to remember that there’s always money in the banana stand. The fundamental practices that seem mundane often contain the greatest value.

1. Find Your “Spectator”

Every skill has a “ground truth”, a gold standard you can learn from. Franklin had The Spectator. For you, it might be an exemplar that proves what’s possible.

  • Developer: The source code of a well written, open source project or a language’s standard library
  • Musician: A virtuosic recording of a difficult piece
  • Chef: A classic, time tested recipe from a master like Julia Child

The goal is to find an authoritative model you can meaningfully compare your own work against.

2. Implement Your Learning Loop

I used a very similar protocol when I was learning the Go programming language, treating the effort like a Code Kata. After learning the basics, I designed focused challenges such as reimplementing functions from the strings package.

FP

Forward Pass

Attempt the skill from your current understanding

I’d write my own version of strings.Split or strings.Join from scratch, based on my current knowledge
LF

Loss Function

Compare against a trusted ground truth

Then, I would open Go’s standard library, written by the Go creators, and compare my code, line-by-line, against the official, production-grade implementation
ES

Error Signal

Capture precise deltas to correct

The difference was my feedback. My clumsy error handling, inefficient loops, and non-idiomatic variable names became glaringly obvious when placed next to the work of masters.

3. Internalize the Patterns (The Master’s Step)

This final step is what separates simple practice from true mastery. After refactoring based on insights, ask the master’s question: “What pattern did I miss that an expert sees instantly?” This meta analysis, thinking about your thinking, accelerates the internalization of expert mental models.

For me learning Go, the most crucial step was not just seeing the difference, but going back and refactoring my own code based on those insights. Each cycle transformed the exercise from a simple task into a kata, a mindful practice where the goal wasn’t just to get a working solution, but to internalize the patterns of an expert. I even gave a presentation about my mistakes and how I learned from them.

Leverage LLMs for your learning

Today modern AI models can facilitate this step much more efficiently, as these models are excellent at identifying and evaluating the differences between two blocks of text and explaining why one is superior.

True Learning

Mastery Means Building a Generative Model

Franklin’s method worked because he intuitively understood that mastery is not about memorization, but about building an internal generative model of a domain. He didn’t memorize The Spectator, he learned to generate prose with the same qualities by internalizing its patterns.

This principle extends far beyond Franklin’s era. It is the very essence of modern AI. Large language models don’t “know” anything; they are sophisticated pattern recognition engines. They have learned the statistical patterns of language so well that they can generate coherent, novel text because they have captured the distribution of language itself45.

People who master any field follow the principle. They don’t win by consuming the most tutorials, but have built the most effective systems for recognizing patterns, crafting systems that surface errors quickly, and converting them into new capabilities.

Perhaps Franklin’s greatest insight wasn’t the method itself, but his rejection of the fixed mindset. In an era when talent was considered innate, he proved that expertise could be engineered systematically. This is learning how to learn, the ultimate meta skill.

Three hundred years ago, a teenage printer reverse engineered the algorithm of learning with nothing more than paper and ink. While Franklin’s method and machine learning operate in different domains, they share the same core architecture of systematic improvement through error correction.

Today, we have access to endless “Spectators” in every field imaginable. Franklin gave us the blueprint. It’s time we started building ourselves with it.

The Franklin Challenge

If you’re inspired by this method, don’t just admire it, try it.

Run the loop

Try Franklin's protocol this week

Pick a micro skill, find your Spectator, and walk one deliberate loop. Capture what changes and share it with a teammate to cement the lesson.
  1. Pick a Micro Skill: Choose one small, specific skill you want to improve this week (e.g., writing a SQL query, refactoring a function, kneading bread, drawing a face)
  2. Find Your Spectator: Track down a single, high quality example of that skill executed perfectly
  3. Run One Loop: Spend 30 minutes replicating it from memory. Then compare your work to the original and record three precise differences

That’s it. By running a single, conscious loop, you’ll have already started practicing like Franklin and learning like a neural network.


  1. Benjamin Franklin, The Autobiography of Benjamin Franklin (1791). Franklin’s own account of his father’s critique of his writing style. ↩︎

  2. Benjamin Franklin, The Autobiography of Benjamin Franklin (1791). Franklin describes his method: “I compared my Spectator with the original, discovered some of my faults, and corrected them.” ↩︎

  3. Anders Ericsson, Peak: Secrets from the New Science of Expertise (2016). The seminal work on deliberate practice and how experts are made. ↩︎

  4. PNAS, “Learning in deep neural networks and brains with similarity” - Scientific paper on pattern recognition in neural networks and biological brains. ↩︎

  5. OpenAI, “Learning complex goals with iterated amplification” - Research on how AI systems learn and improve through iterative processes. ↩︎