Model Training

Model training is the process of fitting a model's parameters to example data, such as screened abstracts, so the model can make predictions on new cases.

Status
Published, version 1.0.0
Last reviewed
10 Nov 2026, by Dr Darrin Baines
Report a problem
Tell us if something is wrong or out of date

Concept Architecture

Model Training in Machine Learning and Evidence Work

Model training is the stage at which an algorithm adjusts the internal values of a model, its weights or coefficients, so that the model's outputs agree well with a set of example data, as judged by a loss function. Health economists do much the same when they fit a regression to cohort data, and a classifier that learns to recognise trial reports from screened abstracts is trained in the same sense. For HTA the practical questions are what data a model was trained on and whether the data used to judge it were kept apart. NICE ECD20 (2026), the NICE framework on AI methods for evidence, keeps training separate from tuning, because they bear differently on how a model is built and reported.

What training changes in a model

A model has two kinds of quantity. Its parameters, such as regression coefficients or the weights of a neural network, are learned during training, while its hyperparameters, such as a penalty strength or a learning rate, are set by the analyst beforehand. James and colleagues call the observed cases used for this purpose the training data, because they teach the method how to estimate the unknown relationship between inputs and outcome.

Most training in evidence work is supervised, meaning each training record carries a known label, such as include or exclude for an abstract, and the algorithm learns a rule linking the record's features to that label. Fitting a logistic regression by maximum likelihood estimation is training in exactly this sense. A risk equation fitted to registry data to supply transition probabilities to a health economic model has also been trained, although health economists usually call the step parameter estimation.

Loss functions and the search for good values

Training needs a measure of how badly the current model fits, called the loss, and a procedure that changes the parameters to reduce it. For a classifier that outputs a probability, a common loss is the negative log-likelihood divided by the number of records. Minimising this loss gives the same values as maximising the likelihood.

Lˉ(θ)=−1n∑i=1n[yiln⁡pi+(1−yi)ln⁡(1−pi)]\bar{L}(\theta) = -\frac{1}{n} \sum_{i=1}^{n} \left[ y_i \ln p_i + (1 - y_i) \ln (1 - p_i) \right]

Here Lˉ\bar{L} is the mean log loss, θ\theta is the vector of model parameters, nn is the number of training records, yiy_i is 1 if record ii belongs to the positive class and 0 otherwise, and pip_i is the probability the model currently gives record ii of being positive.

When no closed-form solution exists, the parameters are found step by step, for example by gradient descent, the usual method for neural networks,

θ(t+1)=θ(t)−η ∇Lˉ(θ(t))\theta^{(t+1)} = \theta^{(t)} - \eta \, \nabla \bar{L}\left(\theta^{(t)}\right)

where θ(t)\theta^{(t)} is the parameter vector after step tt, η\eta is the learning rate, itself a hyperparameter, and ∇Lˉ\nabla \bar{L} is the vector of partial derivatives of the loss with respect to each parameter.

Training, tuning and customisation under NICE ECD20

NICE ECD20 (2026) observes that training and tuning are often run together, above all for language models. In its terms, training builds a model by learning from data, which covers the pre-training of a foundation large language model as well as fitting a conventional machine learning model. Tuning starts from a model that already exists and adjusts it, through Hyperparameter Optimisation for conventional models or Fine-Tuning for language models, while LLM Customisation, such as prompt engineering, changes how a language model is used without altering the model itself.

A review team using a language model therefore almost never trains one. Bommasani and colleagues define a Foundation Model as one trained on broad data, generally by self-supervision at scale, that can be adapted to many downstream tasks. Brown and colleagues trained every GPT-3 model for a total of 300 billion tokens and then applied GPT-3 to each task with no gradient updates or fine-tuning, supplying examples only in the prompt. ECD20 is aimed at users, not developers, and notes that for many of its tasks fine-tuning does not appear to improve performance much.

Where training data shape evidence synthesis

ECD20 reports that machine learning classifiers and language models have both been evaluated against human reviewers for title and abstract screening in a systematic review. A traditional supervised classifier needs labelled training data, often specific to the review, whereas a language model can be applied without it.

The Cochrane RCT Classifier, described by Thomas and colleagues, shows a full training pipeline. Support vector machines were trained on 280,620 Embase records labelled by Cochrane Crowd, 20,454 of them reports of randomised controlled trials. A score threshold was then set on 49,025 separately labelled Clinical Hedges records, aiming for 99% recall, and the calibrated classifier retrieved 43,783 of 44,007 trials included in Cochrane Reviews whose records had enough text for machine classification, or 99.5%.

ECD20 warns that a screening model may do worse on evidence that was scarce in its training or validation data, such as non-English abstracts or rare diseases, and asks that such records go to human reviewers when poorer performance is found. In health economic evaluation, ECD20 allows AI only as support with a human closely in the loop.

Keeping training data apart from evaluation data

A model almost always fits its own training data better than new data. James and colleagues explain that most learning methods seek to minimise the training error, so training error nearly always sits below test error, and that small training error with large test error signals overfitting.

ECD20 requires independent datasets for model selection, training, optimisation, customisation, validation and deployment, drawn either by separate data collection or by resampling such as a holdout set or cross-validation. It also names data contamination bias, where a model is tested on data used to train it, and notes that the training data of a language model are rarely known. Brown and colleagues found that some benchmark test material had entered GPT-3's training data despite filtering, and that the cost of training made a rerun impractical.

The TRIPOD+AI reporting guideline, published by Collins and colleagues, asks authors to state whether data were partitioned and to give the number of participants and outcome events used for development, hyperparameter tuning and evaluation.

Worked example training a one-word screening classifier

All numbers in this example are illustrative. A review team trains a logistic classifier on 8 abstracts it has already screened. The feature xx is 1 if the abstract mentions random allocation and 0 otherwise. Of the 4 abstracts with x=1x = 1, 3 were included, and of the 4 with x=0x = 0, 1 was included. Each abstract gets an inclusion probability p=1/(1+e−(β0+β1x))p = 1 / (1 + e^{-(\beta_0 + \beta_1 x)}), where β0\beta_0 is the intercept and β1\beta_1 is the coefficient on the feature.

1. Starting point. With β0=0\beta_0 = 0 and β1=0\beta_1 = 0 every abstract has p=0.5p = 0.5 and contributes ln⁡2=0.6931\ln 2 = 0.6931 to the loss, so the mean log loss is 0.6931.

2. One gradient step. The gradient for β0\beta_0 is the mean of (pi−yi)(p_i - y_i), which is (8×0.5−4)/8=0(8 \times 0.5 - 4) / 8 = 0, and the gradient for β1\beta_1 is the mean of (pi−yi)xi(p_i - y_i) x_i, which is (4×0.5−3)/8=−0.125(4 \times 0.5 - 3) / 8 = -0.125. With a learning rate of 2, β1=0−2×(−0.125)=0.25\beta_1 = 0 - 2 \times (-0.125) = 0.25 and β0\beta_0 stays at 0. Abstracts with x=1x = 1 now have p=0.5622p = 0.5622, contributing 0.5759 for each of the 3 included and 0.8259 for the excluded one. The total is 3 × 0.5759 + 0.8259 + 4 × 0.6931 = 5.3263, so the mean log loss falls to 5.3263 / 8 = 0.6658.

3. Trained values. Repeated steps converge on values that make the fitted probabilities equal the observed inclusion rates, 0.75 for x=1x = 1 and 0.25 for x=0x = 0, which are β0=ln⁡(0.25/0.75)=−1.0986\beta_0 = \ln(0.25 / 0.75) = -1.0986 and β1=ln⁡3−ln⁡(1/3)=2.1972\beta_1 = \ln 3 - \ln(1/3) = 2.1972. Six abstracts now get probability 0.75 for their true label, each contributing 0.2877, and two get 0.25, each contributing 1.3863, so the mean training loss is (6 × 0.2877 + 2 × 1.3863) / 8 = 4.4988 / 8 = 0.562.

4. Held-out abstracts. The team then scores 6 abstracts not used in training. Two have x=1x = 1, of which 1 was included, and four have x=0x = 0, of which 1 was included. The losses are 0.2877 and 1.3863 for the first pair, 1.3863 for the included abstract with x=0x = 0 and 3 × 0.2877 = 0.8630 for the three excluded ones, giving 3.9233 / 6 = 0.6539, above the training loss of 0.562.

5. Interpretation. Keeping abstracts with pp of at least 0.5 keeps only the 2 held-out abstracts with x=1x = 1 and finds 1 of the 2 relevant records, a recall, or sensitivity, of 0.5 and a false negative rate of 0.5. A threshold of 0.2 keeps every record and misses nothing but saves no screening time. ECD20 makes the false negative rate the primary screening measure, and the Cochrane classifier handled the trade-off by setting its threshold on separate calibration data.

Reproducibility and reporting of a trained model

ECD20 expects a deterministic method such as a trained random forest to give identical outputs from the same inputs and settings, including random number seeds, and a generative language model to give sufficiently consistent conclusions on repeated runs. For a language model trained by a provider, usually the user can report only the version, the settings used and any published model card or vendor documentation, since the training data are rarely known, and ECD20 also asks organisations to run their own evaluations in the intended context of use.

Common misreadings of model training

Fine-Tuning continues training a pre-trained language model on additional data, whereas examples given in a prompt, as in Few-Shot Prompting, change none of the model's weights. The word calibration has three nearby meanings. In TRIPOD+AI it means agreement between a model's predicted values and observed outcomes, a measure of performance. Thomas and colleagues calibrated the Cochrane classifier on separate data by fitting a logistic regression to its scores, known as Platt scaling, so the scores read as probabilities, and then set its threshold, while calibration of a health economic model adjusts unknown parameters until model outputs match observed targets, which is closer to training itself. A lower training loss does not show that a model is better, since held-out loss is the better guide to performance in use, and model validation for the intended context is still needed.

Sources

  • Bommasani R, Hudson DA, Adeli E, Altman R, Arora S, von Arx S, et al. On the opportunities and risks of foundation models. arXiv:2108.07258. 2021. https://arxiv.org/abs/2108.07258
  • Brown TB, Mann B, Ryder N, Subbiah M, Kaplan J, Dhariwal P, et al. Language models are few-shot learners. Advances in Neural Information Processing Systems 33 (NeurIPS 2020). 2020. https://arxiv.org/abs/2005.14165
  • Collins GS, Moons KGM, Dhiman P, Riley RD, Beam AL, Van Calster B, et al. TRIPOD+AI statement: updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ. 2024;385:e078378. https://doi.org/10.1136/bmj-2023-078378
  • James G, Witten D, Hastie T, Tibshirani R, Taylor J. An Introduction to Statistical Learning with Applications in Python. Cham: Springer; 2023. Chapters 2, 4 and 10. https://www.statlearning.com
  • National Institute for Health and Care Excellence. AI methods for evidence framework (ECD20). NICE; published 9 November 2026. Introduction, principles, evidence synthesis and health economic evaluation chapters, and Appendix A glossary. https://www.nice.org.uk/corporate/ecd20
  • Thomas J, McDonald S, Noel-Storr A, Shemilt I, Elliott J, Mavergames C, Marshall IJ. Machine learning reduced workload with minimal risk of missing studies: development and evaluation of a randomized controlled trial classifier for Cochrane Reviews. Journal of Clinical Epidemiology. 2021;133:140-151. https://doi.org/10.1016/j.jclinepi.2020.11.003

Library

Publications

3
  • Journal article

    MSR17 Can Machine Learning Support Survival Model Selection to Inform Economic Evaluations? Exploring K-Fold Cross Validation Based Model Selection in Seven Datasets — Bermejo I, Grimm S, Vol. 27, No. 12, p. S441 ed., 2024 (Value in Health)

    Tests k-fold cross validation, a machine learning habit, for choosing survival models in economic evaluation, in a conference poster abstract.

  • Journal article

    Machine Learning Methods to Estimate Individualized Treatment Effects for Use in Health Technology Assessment — Zhang Y, Kreif N, GC VS, et al, Vol. 44, No. 7, pp. 756-769 ed., 2024 (Medical Decision Making)

    Compares machine learning methods for individual treatment effects and asks which are fit for HTA use.

  • Journal article

    Potential Application of Machine Learning in Health Outcomes Research and Some Statistical Cautions — Crown WH, Vol. 18, No. 2, pp. 137-140 ed., 2015 (Value in Health)

    Early Value in Health piece on where machine learning could help outcomes research and the statistical traps to avoid.

Frequently Asked Questions (6)

  • What is Model Training?

    Model training is the process of fitting a model's parameters to example data, such as screened abstracts, so the model can make predictions on new cases.

    Source: NICE ECD20 (2026)

  • How does NICE ECD20 distinguish model training from model tuning and LLM customisation?

    NICE ECD20 (2026) observes that training and tuning are often run together, above all for language models, and keeps them apart because each bears differently on how a model is built and reported. Training, in its sense, builds a model by learning from data, whether the model is a foundation language model or a conventional machine learning model. Tuning starts from a model that already exists and adjusts it, by hyperparameter optimisation for a conventional model or, for a language model, by fine-tuning on further data. LLM customisation, such as prompt engineering or a prompt template, changes how a language model is used but leaves the model itself unchanged.

    Source: NICE ECD20 (2026)

  • How was model training used to build the Cochrane RCT Classifier for systematic review screening?

    Thomas and colleagues trained support vector machines on 280,620 Embase title and abstract records labelled by Cochrane Crowd, of which 20,454 reported randomised controlled trials. A classification threshold was then set on a separate set of 49,025 records labelled by the Clinical Hedges team, with the aim of 99% recall. In validation, the calibrated classifier correctly retrieved 43,783 of 44,007 trials included in Cochrane Reviews whose records held enough text for machine classification, or 99.5%, and missed 224. The study shows training on one labelled dataset and threshold setting on another dataset kept apart from it.

    Source: Thomas et al. 2021

  • Why must the data used for model training be kept separate from the data used to evaluate an AI tool in HTA evidence work?

    NICE ECD20 (2026) requires independent datasets for model selection, training, optimisation, customisation, validation and deployment, drawn either from separate data collection or by resampling within one population, such as a holdout set or cross-validation. The framework names data contamination bias, which arises when a model is tested on data that were also used to train it, so that measured performance looks better than it would on new records. The risk is harder to rule out for language models because the data used to train them are rarely known. ECD20 also asks organisations to run their own evaluations in the intended context of use.

    Source: NICE ECD20 (2026)

  • Why is a low loss on the model training data not enough to show that a model will perform well?

    James and colleagues explain that most learning methods seek, directly or indirectly, to minimise error on the training data, so training error is almost always smaller than error on new data. A method that gives a small training error but a large test error is said to be overfitting. Error measured on records held out from training is therefore the better guide to how a model will perform in use, and a fall in training loss alone does not show that one model is better than another. Validation in the intended context is still needed before a trained model supports evidence work.

    Source: James et al. 2023

  • Is giving a large language model examples in a prompt a form of model training?

    Brown and colleagues trained every GPT-3 model for a total of 300 billion tokens and then applied each model to each task with no gradient updates or fine-tuning, so any demonstrations were supplied purely as text in the prompt. The model's weights were fixed once training ended. A review team that adds screening examples to a prompt therefore changes none of the model's weights and is using a trained model, not training one.

    Source: Brown et al. 2020

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 10 Nov 2026

Content version: 1.0.0

Canonical Identity

Term code
HS-HP-DH-096

Stable URI · Machine-readable · Resolvable · CC BY 4.0

This article is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

Author: Dr Darrin Baines · Publisher: Intelligent Parameters Ltd · Identifier: https://healtheconomics.wiki/concept/model-training