Manuel B. Garcia

Manuel B. Garcia serves as the Senior Director for Educational Technology and Digital Learning at FEU Institute of Technology, Manila, Philippines. Read More

Contact Info

1607, FEU Tech Building,
P. Paredes St, Sampaloc,
Manila, Philippines
mbgarcia@feutech.edu.ph

Follow Me

Should Researchers Record Temperature and Other AI Model Settings?

Researchers should record temperature and other relevant AI settings when those settings may affect research outputs. Learn which parameters matter, what they control, and how to document configurations that are not accessible.

608
Recording AI Model Settings Guide 608 of 1196
01 · The Question

Do Temperature and Other AI Settings Belong in a Research Methods Section?

You use a generative AI model to classify interview excerpts, extract information from research articles, or generate structured analytical outputs. You document the model name and preserve the prompt. But you also notice that the system has settings such as temperature, top-p, maximum output tokens, and possibly a random seed.

Should these settings be recorded in your research methodology? Are they as important as reporting the statistical software version or the parameters of an analytical algorithm?

The question becomes more complicated when a commercial AI interface does not reveal its configuration. Researchers may have no way to determine which settings were used, even though those settings could influence the resulting data.

Understanding what these parameters control helps researchers decide which details are methodologically necessary and how to report limitations when they cannot inspect the complete AI system.

02 · The Short Answer

Yes, Record Settings That Could Affect the Research Results

In Brief

Researchers should record temperature and other relevant AI model settings when generative AI contributes to research data, classification, extraction, measurement, or analysis. These parameters can influence how outputs are generated and are therefore part of the computational conditions needed to evaluate reproducibility.

Not every model exposes the same settings, and some parameters have different meanings across providers. Researchers should document the values actually used, identify settings that were unavailable or provider-controlled, and avoid claiming that a particular configuration guarantees identical or accurate results.

03 · What You Need to Know

Which AI Model Settings Matter for Research Reproducibility?

What Is Temperature in a Generative AI Model?

Temperature is a decoding parameter commonly used to adjust the probability distribution from which a language model selects its next token. A token may represent a word, part of a word, punctuation, or another unit of text.

In common temperature-based sampling implementations, lower temperatures concentrate probability on higher-scoring tokens, while higher temperatures make lower-probability alternatives relatively more likely.

This can influence how much variation appears across repeated generations. It does not directly measure creativity, intelligence, factual accuracy, or scientific reliability.

For example, an AI model asked to summarize a research finding might produce relatively similar formulations under a lower-temperature configuration and more varied formulations under a higher-temperature configuration. The actual effect depends on the model, task, and decoding implementation.

How Does Temperature Change Token Probabilities?

A common implementation applies temperature to model logits, which are numerical scores assigned to candidate tokens before probabilities are calculated.

How Temperature Is Applied
P(i) = exp(zᵢ / T) / Σⱼ exp(zⱼ / T)

P(i) is the probability assigned to token i after temperature scaling.

zᵢ is the model's logit for token i.

T is the positive temperature parameter.

Σⱼ sums the exponentiated scaled logits across the candidate vocabulary.

Illustrative calculation: Suppose two candidate tokens have logits of 2 and 1.

At T = 1, their probabilities are approximately 73.1% and 26.9%.

At T = 0.5, their probabilities become approximately 88.1% and 11.9%.

At T = 2, their probabilities become approximately 62.2% and 37.8%.

Lowering temperature increases the relative probability of the higher-scoring token. These probabilities describe token selection in a simplified two-token example, not the probability that either token is factually correct.

The formula applies to positive temperature values. A temperature of zero is generally handled as a special decoding case rather than by directly substituting zero into the equation.

Some systems use greedy decoding at temperature zero, while others provide separate controls for disabling sampling. Researchers should consult the documentation for their specific model.

What Is Top-p Sampling?

Top-p sampling, also called nucleus sampling, limits the candidate tokens considered during generation.

Rather than sampling from the entire vocabulary, the algorithm selects a group of higher-probability tokens whose cumulative probability reaches a specified threshold. Sampling then occurs within that candidate group.

For example, a top-p value of 0.9 commonly means that the candidate set is selected to cover at least approximately 90% of the probability mass, subject to the implementation's selection rules.

Top-p and temperature both influence token selection, but they do so differently. Their combined effects can be difficult to interpret, and some providers recommend adjusting one rather than both simultaneously.

If top-p is configurable and relevant to the analysis, its actual value should be recorded.

What Other AI Settings Should Researchers Document?

The settings worth preserving depend on the system and the research task. The following are common examples, not a universal list of parameters available in every model.

Setting What It Controls Why It May Matter
Temperature Relative probabilities used in token sampling May affect output variation
Top-p Cumulative probability threshold for candidate-token selection May affect which alternatives can be generated
Top-k Maximum number of candidate tokens considered during certain sampling procedures Restricts the token-selection space
Random seed Initialization of supported pseudorandom operations May improve repeatability under controlled conditions
Maximum output tokens Upper limit on generated output length May cause truncation or incomplete structured outputs
Frequency or presence penalties Adjustments affecting repeated or previously occurring tokens in some implementations May influence wording and content selection
Stop sequences Conditions that terminate generation May change the completeness of outputs
Response format Required output structure, such as JSON or a schema May affect extraction and validation procedures
Reasoning or computation controls Provider-specific allocation or behavior of supported reasoning processes May influence outputs, resource use, or completion behavior

Researchers should use the exact parameter names supplied by the provider. Similar-sounding controls may behave differently across models, and not every system supports every parameter.

Other configuration details, such as tool availability, retrieval settings, document-processing procedures, and structured-output constraints, may also matter when they influence the analytical task.

Does Temperature Zero Guarantee Reproducible AI Outputs?

No universal guarantee exists.

Temperature zero may eliminate or substantially reduce sampling-related variability in some implementations. However, output reproduction can still depend on model versions, computational operations, hardware, provider-controlled processing, and complete input context.

PyTorch's official reproducibility documentation explains that identical random seeds do not necessarily guarantee identical results across releases, platforms, or execution environments.

Researchers should therefore distinguish between configuring a model for greater consistency and demonstrating that repeated executions actually produce consistent results.

For a more focused discussion, repeating an identical prompt does not itself guarantee an identical result.

What If the AI Interface Does Not Show Its Settings?

Many consumer-facing AI interfaces do not expose every generation parameter. Some provide no user-accessible temperature or seed controls, while others use provider-managed configurations that may change.

In these circumstances, researchers should not assume a default value unless it is documented for the specific model and interface.

A defensible methodological statement might explain that the analysis was conducted through a particular interface on specified dates and that temperature, random seed, and other inference settings were not exposed to the researcher.

This is more accurate than reporting an invented configuration or treating undocumented settings as though they were fixed.

Watch Out

Do not report temperature = 0 merely because you asked the AI to be consistent, factual, or deterministic. Natural-language instructions do not establish the actual decoding configuration used by a hosted model.

Are Model Settings More Important Than the Prompt?

They serve different methodological functions.

The prompt defines the task, criteria, and requested output. The model settings influence how the system processes or generates its response. Neither can substitute for the other.

For example, a temperature value cannot explain whether a coding prompt defined a category correctly. Conversely, a detailed prompt does not reveal which sampling procedure was used.

Researchers should therefore preserve analytical prompts as methodological artifacts alongside relevant configuration information.

The model identifier is equally important. A configuration that produces stable outputs in one model may behave differently after the underlying model is updated.

Should Researchers Test Different Temperature Settings?

When temperature is configurable and output variability could affect the findings, comparing settings may be useful during method development.

For example, a researcher might evaluate whether different temperatures affect classification agreement, extraction accuracy, or the stability of substantive conclusions.

However, choosing a configuration solely because it produces the preferred research result would introduce a methodological bias.

Settings should be selected using predefined criteria appropriate to the task. Researchers should evaluate performance against independent evidence when possible, preserve the configuration used for the final analysis, and document any changes.

The resulting procedure may then be examined through stability testing for AI-assisted coding or classification.

04 · A Practical Example

Documenting Temperature in an AI-Assisted Classification Study

Hypothetical Example

Classifying Student Feedback About Online Learning

A researcher uses a language model through an API to classify 300 anonymized student comments into positive, negative, or mixed experiences.

The API supports temperature and top-p settings. During method development, the researcher evaluates several configurations on a separate set of 60 comments with independently established reference labels.

Step 1: Define the evaluation criteria

The researcher specifies that configurations will be assessed using classification accuracy against the reference labels and consistency across repeated executions. The criteria are established before comparing results.

Step 2: Compare available configurations

The researcher evaluates temperature values of 0.2 and 0.8 while holding the model, prompt, input data, and other available settings constant. The actual top-p value and output constraints are also recorded.

Step 3: Select and document the final configuration

Suppose temperature 0.2 provides better agreement with the independently established reference labels and more consistent repeated classifications in this hypothetical test. The researcher selects that configuration using the predefined criteria.

Step 4: Preserve the analytical record

The final methods record includes the model identifier, API version where available, execution dates, prompt, temperature, top-p, output schema, original classifications, and subsequent human corrections.

The hypothetical result does not establish that temperature 0.2 is universally preferable for classification. Another model or task may behave differently, and a lower temperature does not inherently guarantee higher accuracy.

The methodological advantage is that the configuration was selected transparently and can be evaluated by another researcher rather than remaining an undocumented source of variation.

05 · What Researchers Often Get Wrong

Misconceptions About AI Temperature and Generation Settings

Misconception

Temperature Measures How Creative or Intelligent an AI Model Is

Temperature modifies token-selection probabilities in common decoding implementations. It does not measure intelligence or provide a direct scale of factual accuracy, creativity, or research quality.

Misconception

Temperature Zero Guarantees the Same Answer Every Time

Low-temperature or greedy decoding may improve consistency, but exact repetition depends on the complete execution environment and implementation. Researchers should test repeatability rather than assume it.

Misconception

Lower Temperature Always Produces More Accurate Research Data

A lower temperature can make outputs less variable without correcting factual errors or invalid classification rules. Accuracy requires independent evaluation against suitable evidence.

Misconception

All AI Models Interpret the Same Parameter Values Identically

Providers may use different parameter ranges, defaults, decoding implementations, and restrictions. A temperature value from one system cannot automatically be treated as equivalent to the same value in another.

Misconception

Researchers Can Infer Hidden Settings From the Style of an AI Response

Concise, consistent, or factual-sounding responses do not reveal the underlying decoding configuration. Researchers should report verified settings and acknowledge inaccessible parameters.

Misconception

Recording the Settings Is Enough to Make the Research Reproducible

Configuration values are only part of the methodological record. Reproducibility may also require model identification, complete inputs, archived outputs, software dependencies, and independent validation.

06 · What This Means for You

How Much AI Configuration Detail Should You Report?

The amount of configuration information needed should reflect the role of AI in producing the research evidence.

For routine writing assistance, detailed inference parameters may have little bearing on the scientific conclusions. For AI-assisted data extraction, coding, or measurement, the same parameters may be essential for reconstructing the analytical procedure.

A practical decision framework

If AI is used only for language editing
Prioritize verification of the final manuscript and applicable AI-use disclosure requirements. Detailed decoding settings may not be methodologically necessary.
If AI generates research variables or classifications
Record the available settings, model version, prompts, inputs, outputs, and validation procedure.
If you can configure the model through an API
Preserve the exact parameter values submitted in the request, including any explicitly configured defaults and output constraints.
If the interface hides the settings
Record the visible model designation, interface, execution dates, and unavailable controls. Do not estimate hidden values.
If settings change during the study
Document the change and evaluate whether outputs generated under different configurations remain comparable.

For consequential analyses, it is useful to maintain a machine-readable configuration record alongside the prompts and analytical scripts. This may reduce transcription errors and make later comparisons easier.

Researchers should also preserve consequential AI outputs, since configuration records cannot independently establish what a model actually returned.

Where reproducibility is especially important, the configuration should be evaluated as part of a broader AI-assisted research reproducibility strategy.

07 · A Quick Checklist

AI Model Settings Documentation Checklist

Before finalizing an AI-assisted analytical procedure, check:
Identify which model settings are available and relevant to the research task.
Record the actual temperature, top-p, top-k, seed, and other applicable decoding values.
Document output limits, response schemas, and relevant tool or reasoning configurations.
Preserve the model identifier, access method, execution dates, and exact analytical prompts.
Distinguish explicitly configured values from documented defaults and unavailable settings.
Test whether consequential outputs remain sufficiently stable under the selected configuration.
Preserve original AI outputs and records of human corrections or exclusions.
Report configuration changes and limitations that could affect interpretation or reproduction of the findings.
08 · Frequently Asked Questions

Frequently Asked Questions About Recording AI Model Settings

Should temperature be reported in an AI-assisted research paper?

Yes, when it is available and relevant to an AI-assisted analytical procedure. Temperature may affect output variability, so reporting its value helps others understand the generation conditions.

What temperature is best for scientific research?

There is no universally optimal temperature. Lower values may reduce output variation in some systems, but the appropriate configuration depends on the model, task, and evaluation criteria. Accuracy and stability should be tested rather than assumed.

Does temperature zero guarantee reproducible results?

No. Some systems use temperature zero for greedy or effectively deterministic decoding, but model changes, computational nondeterminism, and provider-controlled behavior can still prevent exact reproduction.

Should researchers record top-p and random seed as well?

Yes, when those parameters are available and relevant. They may influence token selection and repeatability. Their precise behavior should be interpreted according to the provider's documentation.

What if ChatGPT does not show the temperature setting?

Record the model designation, interface, execution dates, and available methodological details. State that temperature was not exposed rather than assigning an assumed value.

Are the default settings sufficient for reproducible research?

Not necessarily. Defaults may vary by provider, model, or version. Researchers should document verified defaults when available and evaluate whether the resulting outputs meet the study's stability requirements.

Do I need to report settings if AI was used only to edit grammar?

Detailed decoding settings are generally less consequential for grammar editing than for AI-generated measurements. Researchers should nevertheless follow applicable disclosure policies and verify the accuracy of the final text.

09 · The Bottom Line

AI Configuration Settings Are Part of the Methodological Record

The Bottom Line

Researchers should record temperature and other relevant AI model settings when those settings can influence the data, measurements, or analytical outputs supporting their findings.

Report verified values, preserve the associated prompts and outputs, and acknowledge parameters that cannot be inspected or controlled. Configuration documentation improves transparency, but reproducibility and validity must still be demonstrated through appropriate testing and independent verification.

10 · Sources and Further Reading

Authoritative Sources on AI Generation Parameters

11 · Cite this Guide

How to Cite This Guide

This guide is intended to be read, shared, and used in research, teaching, and academic work. If you draw on its ideas, explanations, or other content, please acknowledge the source by citing the guide. Doing so gives appropriate credit and helps your readers locate the original resource.

Has the Field Guide helped your research?

If a guide helped clarify a question, inform a research decision, or move your work forward, I would love to hear about your experience. Your story may also help other researchers discover the Field Guide.

Share Your Experience
Takes only a few minutes