Skip to content
Query Feedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  1. Home /
  2. AI Glossaries /
  3. Machine Learning /
  4. What is a Hyperparameter?
Machine Learning

What is a Hyperparameter?

Updated October 2, 2026 Read 3 min

A hyperparameter is a configuration value set before training that controls how a model learns or how complex it can become, such as the learning rate, batch size or number of layers.

Contents 11
  1. 01Key takeaways
  2. 02Hyperparameters explained in simple terms
  3. 03Parameters vs hyperparameters
  4. 04Common hyperparameters by model type
  5. 05Which hyperparameters matter most
  6. 06A worked example
  7. 07Finding good values
  8. 08Limitations
  9. 09Common Use Cases
  10. 10Frequently Asked Questions
  11. 11Related Terms

A hyperparameter is a configuration value chosen before training that controls how a model learns or how complex it is allowed to become. It is not learned from data, unlike weights and biases. The learning rate, batch size, number of layers, tree depth and regularisation strength are all hyperparameters.

Key takeaways

  • Parameters are learned from data; hyperparameters are set by you.
  • They control model capacity, the optimisation process and regularisation.
  • Good defaults exist for most models and are a reasonable starting point.
  • A few hyperparameters usually dominate results; most matter little.
  • They are chosen using a validation set, never the test set.

Hyperparameters explained in simple terms

Baking bread, the recipe’s learned part is how the dough responds; the baker’s settings are oven temperature, baking time and tin size. Those settings are not derived from the dough: the baker chooses them in advance, and they determine whether the result is raw, perfect or burnt. Hyperparameters are the oven settings of machine learning.

Parameters vs hyperparameters

AspectParametersHyperparameters
SourceLearned during trainingSet before training
ExamplesWeights, biasesLearning rate, depth, batch size
CountThousands to billionsTypically fewer than 20
Changed byGradient descentHuman choice or search
Selected usingTraining dataValidation data

Common hyperparameters by model type

Model familyKey hyperparameters
Neural networksLearning rate, batch size, epochs, optimiser, layers, hidden size, dropout, weight decay, warmup
Gradient boostingLearning rate, number of trees, max depth, min samples per leaf, subsample, column sample, L1/L2 penalties
Random forestNumber of trees, max depth, max features, min samples split
Linear modelsRegularisation type (L1 or L2), penalty strength
SVMKernel, C, gamma
k-meansNumber of clusters, initialisation, runs
LoRA fine-tuningRank, alpha, target modules, learning rate, epochs
RAG systemsChunk size, overlap, top-k, reranker depth

Note the last row: pipeline settings are hyperparameters too, even when no model is being trained.

Which hyperparameters matter most

Effort is rarely evenly distributed. For most problems, a small number dominate:

  1. Learning rate for anything trained with gradient descent, by a wide margin.
  2. Regularisation strength, including weight decay, dropout and tree constraints.
  3. Model capacity: depth, width, number of trees.
  4. Batch size, which interacts with the learning rate.
  5. Training length, usually handled by early stopping.

Everything else is usually worth leaving at sensible defaults until these are settled.

A worked example

Fine-tuning a model with LoRA, a team records:

RunLearning rateRankEpochsValidation loss
12e-5830.84
22e-4830.61
32e-43230.63
42e-4860.69
51e-3831.42

The learning rate changed results dramatically; rank barely mattered; more epochs hurt through overfitting; a too-high rate destabilised training. This pattern, one dominant setting and several minor ones, is typical.

Finding good values

  • Start from published defaults for your model and task.
  • Change one thing at a time at first, to build intuition.
  • Then use a systematic search; see hyperparameter tuning.
  • Always select on validation data, and confirm once on the test set.
  • Record every run’s settings and results, or results become irreproducible.

Limitations

  • Optimal values are dataset-specific and do not transfer reliably.
  • They interact, so tuning one at a time can miss good combinations.
  • Searching costs compute, sometimes more than training the final model.
  • Heavy tuning on a validation set can overfit to it.

Common Use Cases

01

Model training setup

Choose learning rate, batch size and capacity before training.

02

Fine-tuning LLMs

Set LoRA rank, learning rate and epochs.

03

Gradient boosting

Tune depth, trees and penalties for tabular data.

04

RAG configuration

Treat chunk size, top-k and reranker depth as tunable settings.

05

Reproducibility

Record settings so experiments can be repeated.

06

Compute budgeting

Focus tuning effort on the few settings that matter.

Frequently Asked Questions

A configuration value set before training that controls how a model learns, such as the learning rate or tree depth.

Parameters are learned from data during training. Hyperparameters are chosen by you beforehand.

For gradient-based training, the learning rate, by a wide margin.

Start from published defaults, then search systematically using a validation set.

They can be searched automatically through tuning methods, but they are still not learned by the training process itself.

Related Terms

  • Hyperparameter Tuning
  • Learning Rate
  • Batch Size
  • Regularization
  • Cross-Validation
  • Early Stopping

Related AI Terms

What is Cross-Validation in Machine Learning?Cross-validation is a technique that repeatedly splits data into training and validation parts, rotating which part is held…What is Early Stopping in Machine Learning?Early stopping is a regularisation technique that halts training when validation performance stops improving, preventing the model from…What is L2 Regularization?L2 regularization adds a penalty equal to the sum of the squared weights, shrinking all weights smoothly towards…What is L1 Regularization?L1 regularization, known as lasso in linear models, adds a penalty equal to the sum of the absolute…What is Stochastic Gradient Descent (SGD)?Stochastic gradient descent (SGD) updates a model's weights using one example or a small batch at a time…What is the Bias-Variance Tradeoff?The bias-variance tradeoff describes how a model's error splits into bias from overly simple assumptions and variance from…

Contents

  1. 01Key takeaways
  2. 02Hyperparameters explained in simple terms
  3. 03Parameters vs hyperparameters
  4. 04Common hyperparameters by model type
  5. 05Which hyperparameters matter most
  6. 06A worked example
  7. 07Finding good values
  8. 08Limitations
  9. 09Common Use Cases
  10. 10Frequently Asked Questions
  11. 11Related Terms

AI Topic

  • Machine Learning

Related Terms

  • What is Cross-Validation in Machine Learning?
  • What is Early Stopping in Machine Learning?
  • What is L2 Regularization?
  • What is L1 Regularization?
  • What is Stochastic Gradient Descent (SGD)?
  • What is the Bias-Variance Tradeoff?

Quick Navigation

  • Common Use Cases
  • Frequently Asked Questions
  • Related Terms
  • Back to top

Details

Updated
October 2, 2026
Read
3 min
  • Forum
  • Submit a tool
  • Submit Guest Post
  • List Your Startup
  • Privacy Policy
  • Editorial Policy
  • Account
  • Contact
  • AI Productivity
  • AI Video
  • AI Coding
  • AI Chatbots
  • Sales
  • AI Business
  • View All Tools

Subscribe our Newsletter

Get weekly exclusive content - No spam.

Copyright © 2026 -  Query Feedz

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}