The Machine's Knobs — Parameters vs. Hyperparameters
The fine line between "learned by the machine" and "guessed by you".
When headlines announce that GPT-4 has "trillions of parameters," most people imagine a developer sitting at a console, manually adjusting trillions of knobs. The reality is the exact opposite: those parameters are values the machine figured out entirely on its own. The actual knobs the developer turns — the hyperparameters — number in the dozens at most.
Confusing these two categories is the most common beginner mistake in machine learning. In this article, you'll learn what the difference is, why it matters, and how to systematically find the right settings.
Parameters — The Machine's Internal Wiring
Parameter
The hi-fi analogy breaks at three points: an audio system has hundreds of components — Llama 3 has 70 billion parameters. Calibration takes seconds — LLM training takes months. A technician could theoretically open the system and adjust components manually — the parameter space of a neural network is so high-dimensional that any manual intervention is impossible.
Concrete Example: Spam Filter
Common Misconception
Hyperparameters — The Developer's Control Panel
Hyperparameter
This analogy also breaks: a radio has about 5 knobs with immediately audible effects — an ML model has dozens of hyperparameters with complex, often counter-intuitive interactions. On a radio you hear the result instantly — after changing a hyperparameter you wait hours or days for the training run.
The learning rate determines the step size of the optimization. Too high: the model overshoots the optimum and loses all sense of direction. Too low: training takes forever and gets stuck in a good-but-not-best valley (a so-called local minimum). Epochs determine how many times the model processes all training data. Batch size determines how many data points are processed per update step.
Experiment: Same Data, Different Settings
Common Misconception
Parameters vs. Hyperparameters — Inside vs. Outside
Learned by the model itself (weights, biases). Billions in large models. Automatically optimized via gradient descent. Cannot be set manually. Analogy: the internal circuitry of a hi-fi system.
Set by the developer before training (learning rate, epochs, batch size). Dozens, not billions. Must be found manually or by search. Analogy: the external knobs on a radio.
Finding the Right Settings
There is no formula that computes the perfect hyperparameters. ML engineers spend a large fraction of their working time systematically trying different combinations — hyperparameter tuning.
Grid Search defines a fixed grid of values and tests every combination. Guaranteed to find the best option within the grid — but expensive.
Random Search draws random combinations from the search space. Bergstra and Bengio showed in 2012 that Random Search is often more efficient than Grid Search, especially when only a few hyperparameters actually matter.
AutoML goes further: a secondary ML system searches for the best hyperparameters of the primary model. AI optimizing AI — meta-learning. Google prominently introduced AutoML in 2018.
A fitting analogy: a chef developing a new recipe. He doesn't know if the cake bakes better at 180°C or 200°C, or whether 30 or 45 minutes is the right baking time. Grid Search: systematically try all combinations. Random Search: test random temperature-time pairs. AutoML: hire an autonomous sous-chef.
Common Misconception
Interactive: Why Grid Search Explodes
Grid Search tests all combinations. With n values per hyperparameter, the number of experiments grows with the number of hyperparameters: 1 HP = n trials, 2 HPs = n², 3 HPs = n³. Move the slider and observe how quickly costs explode — and why Random Search or Bayesian Optimization (O(log n)) become attractive.
At n=100, the difference becomes visible: O(n²) requires 10.000 operations, while O(n) needs only 100. O(log n) needs just 6.6 — that's 15x less than O(n).
Ratio to O(n)
| Complexity | Operations | Factor vs. O(n) |
|---|---|---|
| O(log n) | 6.6 | 15x faster |
| O(n) | 100 | 1x (Reference) |
| O(n²) | 10.000 | 100x slower |
| O(n³) | 1.000.000 | 10000x slower |
Summary
Key Takeaways
Quiz: Parameters vs. Hyperparameters
Checkpoint
Learning Goals
- When someone says Llama 3 has 70 billion parameters — are those developer settings or values the model learned on its own?
- What happens when you set the learning rate extremely high, and why is the opposite (extremely low) also problematic?
- Why doesn't a developer simply test every possible hyperparameter combination via Grid Search to guarantee the best model?