Hyperparameter
A configuration variable set before training or inference that controls the learning process or model behavior rather than being derived from the training data.
Listen to this definition
Uses a voice available on your device
Audio options
On this page 5 sections
Related concepts 5 concepts
What it is
Hyperparameters act as the high-level configuration for an ML model, similar to how you tune thread pools or buffer sizes in a backend system. Unlike internal parameters that the model updates automatically during training, these are hardcoded by the engineer or researcher. They control fundamental mechanics like the learning rate or the temperature in a language model. Tuning these requires running multiple training or inference passes, which can consume hundreds of hours of compute time depending on the scale of the model.
Why it matters
Ignoring these settings is equivalent to running a production service with default configuration values that were not tuned for your specific hardware or workload. Poorly chosen hyperparameters lead to models that fail to converge, perform worse than baseline, or produce unstable output. If you are fine-tuning a model or deploying an LLM, adjusting parameters like temperature or context window boundaries directly dictates the latency, quality, and cost of your AI features.
In practice
In practical application, you adjust these via library APIs, such as passing a temperature argument to an OpenAI completion call or configuring the batch size and learning rate in a Hugging Face training script. You observe the effect by tracking metrics like loss curves during training or latency and output quality during inference. If your results are erratic or the model is hallucinating, it is often a signal that the hyperparameter configuration requires refinement.
The tradeoff
The main tradeoff is between the compute cost of searching for the optimal settings and the performance gains achieved by finding them. It is common to waste significant resources on hyperparameter optimization before establishing a reliable baseline performance.
Where it appears
Research summaries that use Hyperparameter, each linked to its source paper.
-
Optimizing Softmax Layer Memory in Large Language Models
SoftWater: Class-Aware Rate Allocation for Softmax Quantization
The paper introduces SoftWater, a class-aware rate allocation algorithm for quantisation that reduces memory usage in the softmax output layer of Large Language Models.
-
Efficient Hyperparameter Optimization for Large Models
Let's Scale Step by Step: Compute-Efficient Hyperparameter Transfer for Large-Scale Mixture-of-Experts
The paper introduces a method to extrapolate optimal learning rates for Mixture of Experts models using small-scale proxy runs to avoid expensive full-scale sweeps.
-
Benchmarking LLM Agents for Hyperparameter Optimization
AgentHPOBench: A Benchmark For Evaluating LLM Agents as Sequential Hyperparameter Optimizers
The authors introduce AgentHPOBench to evaluate how effectively LLM agents perform sequential hyperparameter optimization across thirty machine learning tasks.