﻿# CatBoost GPU reproducibility: a fixed seed is different from replaying a fixed model

Separate repeated CatBoost GPU training, published floating-point nondeterminism and inference replay from an already saved model when interpreting reproducibility checks.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-catboost-gpu-training-seed-nondeterminism-artifact-replay/
Language: en

## Define the experiment being repeated

Re-running training and reloading one saved model are different reproducibility questions. The [CatBoost GPU guide](https://catboost.ai/docs/en/features/training-on-gpu) explicitly describes GPU training as nondeterministic because floating-point summation order can vary. A test should state whether it repeats optimization or replays a frozen artifact. Otherwise, a difference between independently trained models can be mislabeled as an inference-loading failure, or a stable replay can be overstated as proof of deterministic retraining.

## Preserve the random-state settings

The [training parameter reference](https://catboost.ai/docs/en/references/training-parameters/common) exposes random-seed controls among the broader configuration. Record them together with data order, objective, backend and library release. A fixed seed remains useful for controlling stochastic choices, but it is not an unconditional bitwise guarantee for the parallel training implementation. Do not remove seed control merely because another source of numerical variation exists; the two controls address different parts of the experiment.

## Keep backend differences separate from numerical variation

The [official FAQ](https://catboost.ai/docs/en/concepts/faq) also documents CPU/GPU defaults and support differences. A large quality change may reflect a changed configuration or data path rather than small summation-order effects. Inspect resolved settings before attributing every mismatch to nondeterminism. The [CPU/GPU comparison guide](/journal/fg2-catboost-cpu-gpu-resolved-categorical-defaults/) provides a matching-procedure check. Reproducibility analysis needs both configuration identity and an appropriate understanding of the implementation's numerical guarantees.

## Preserve the evaluated artifact

If the goal is to replay the deployed predictor, retain the actual saved model and its relevant preprocessing schema, rather than assuming a new fit will regenerate identical parameters. Compare predictions before and after supported restoration using the same inputs. The [artifact-manifest guide](/journal/tokenizer-artifact-release-manifest/) supports that release record. A content hash identifies the saved bytes, while a prediction fixture checks the behavior of the restored model and consumer together.

## Report variation at the correct level

For repeated training, use independent runs to describe the observed spread in the metrics relevant to the task. For artifact replay, test the saved predictor against its own reference outputs. Keep the scope explicit and avoid inventing a universal numerical tolerance or guaranteed spread. A useful report distinguishes seeded training, implementation-level parallel variation, backend configuration changes and fixed-artifact inference, so each reproducibility conclusion follows from the experiment that actually examined it.
