TensorFlow in 2015: Turning a computation graph into a reproducible experiment
Revisit TensorFlow’s 2015 computation-graph model and turn it into an auditable machine-learning experiment by recording data, randomness, hardware and comparable outputs.
Archive retrospective · Topic year 2015
In this article
What opened in 2015 was more than a model
Google released TensorFlow as open source under the Apache 2.0 license on November 9, 2015. Writing in WIRED that day, Cade Metz described it as a substantial part of the machine-learning infrastructure used across Google, while noting that the company was not publishing its datasets or every proprietary production component. The later technical paper by Martín Abadi and dozens of collaborators explained that one computation could run across heterogeneous targets, from phones to distributed systems with hundreds of machines and thousands of devices. That portability was the historical milestone. It should not be confused with the eager-execution defaults associated with modern TensorFlow 2, which did not describe the original 2015 workflow.
Treat the graph as an experiment contract
Consider a small binary-classification experiment. Define the input tensor shape, the meaning of the label, the loss function and the optimizer step before training. A different initializer, a changed preprocessing order or confusion between training and evaluation modes can alter the result even when the model name remains unchanged. Write the input schema, target metric and acceptance threshold in a compact experiment contract. A graph visualization helps, but it is not sufficient. Bind node names and transformation rules to the same versioned record. When a run fails, reviewers can then inspect the computation path rather than relying only on the final accuracy number.
experiment:
input_shape: [null, 32]
label: churned
loss: binary_crossentropy
metric: validation_auc
threshold: 0.82
Version data and randomness together
A source-control commit is not enough for reproducibility. Record checksums for the training, validation and test datasets, the split rule, the feature-generation version and the missing-value policy. Store the seeds used by Python, NumPy and TensorFlow in the experiment manifest. A shared seed does not guarantee bit-for-bit equality on every device because parallel operations and some GPU kernels can be nondeterministic. Define success as the same trend and metrics within a declared tolerance. Also test that sample identifiers do not overlap across the data splits. Save the leakage check beside the model artifact so that a later reviewer can distinguish a model change from a data-selection mistake.
Include the runtime in the evidence package
The heterogeneous execution described by Abadi and colleagues makes environment evidence essential. Capture the operating system, Python and TensorFlow versions, CPU or GPU model, driver and CUDA library in a machine-readable manifest. Retain the dependency lockfile and container-image digest. Print the manifest at the start of the training log. If the same graph is run on CPU and GPU, compare duration, loss and evaluation metrics in separate columns. When a difference appears, inspect the dataset checksum first and then the library and hardware layers. This order produces a more testable diagnosis than changing the graph until the number happens to match.
Run four controlled repetitions before release
Choose one run as the reference and verify that its weights, manifest, dataset checksums and evaluation output share one identifier. Repeat in the same environment with the same seed, repeat again with a different seed, and run a fourth time on a second supported device. Compare validation AUC, loss curves, runtime and errors for every run. Declare the acceptance band before the experiment starts and do not revise it after seeing a failure. Finally, ask a reviewer who cannot access the training data to reproduce the evaluation step from the saved manifest. This compact procedure connects the 2015 computation-graph idea to a modern, auditable model lifecycle.
Source event:
Cade Metz, WIRED — TensorFlow açık kaynak duyurusu, 9 Kasım 2015 ↗Martín Abadi ve diğerleri — TensorFlow teknik makalesi ↗
Reader discussion
Which data would you verify before applying this development in your field?
No comments yet. Be the first to contribute.
Write a comment