{"id":110292,"date":"2023-11-09T09:17:29","date_gmt":"2023-11-09T17:17:29","guid":{"rendered":"https:\/\/www.backblaze.com\/blog\/?p=110292"},"modified":"2025-12-14T15:50:00","modified_gmt":"2025-12-14T23:50:00","slug":"ai-101-training-vs-inference","status":"publish","type":"post","link":"https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/","title":{"rendered":"AI 101: Training vs. Inference"},"content":{"rendered":"\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"583\" class=\"wp-image-110293\" style=\"width: 581px; height: auto;\" src=\"\/wp-content\/uploads\/2023\/11\/bb-bh-Training-vs-Inference_Final-1024x583.png\" alt=\"A decorative image depicting a neural network identifying a cat. \" srcset=\"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/bb-bh-Training-vs-Inference_Final-1024x583.png 1024w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/bb-bh-Training-vs-Inference_Final-300x171.png 300w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/bb-bh-Training-vs-Inference_Final-768x437.png 768w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/bb-bh-Training-vs-Inference_Final-1536x875.png 1536w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/bb-bh-Training-vs-Inference_Final-2048x1166.png 2048w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/bb-bh-Training-vs-Inference_Final-1568x893.png 1568w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n\r\n\r\n\r\n<div class=\"wp-block-spacer\" style=\"height: 15px;\" aria-hidden=\"true\">\u00a0<\/div>\r\n\r\n\r\n\r\n<p class=\"has-drop-cap\">What do Sherlock Holmes and ChatGPT have in common? Inference, my dear Watson!<\/p>\r\n\r\n\r\n\r\n<p>&#8220;We approached the case, you remember, with an absolutely blank mind, which is always an advantage. We had formed no theories. We were simply there to observe and to draw <em>inferences<\/em> from our observations.&#8221;<br \/>\u2014Sir Arthur Conan Doyle, <a href=\"https:\/\/www.gutenberg.org\/cache\/epub\/2344\/pg2344-images.html\" target=\"_blank\" rel=\"noreferrer noopener\">The Adventures of the Cardboard Box<\/a><\/p>\r\n\r\n\r\n\r\n<p>As we all continue to refine our thinking around artificial intelligence (AI), it\u2019s useful to define terminology that describes the various stages of building and using AI algorithms\u2014namely, the AI training stage and the AI inference stage. As we see in the quote above, these are not new concepts: they\u2019re based on ideas and methodologies that have been around since before Sherlock Holmes\u2019 time.\u00a0<\/p>\r\n\r\n\r\n\r\n<p>If you\u2019re using AI, building AI, or just curious about AI, it\u2019s important to understand the difference between these two stages so you understand how data moves through an AI workflow. That\u2019s what I\u2019ll explain today.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">The TL:DR<\/h2>\r\n\r\n\r\n\r\n<p>The difference between these two terms can be summed up fairly simply: first you <strong>train<\/strong> an AI algorithm, then your algorithm uses that training to make <strong>inferences<\/strong> from data. To create a whimsical analogy, when an algorithm is training, you can think of it like Watson\u2014still learning how to observe and draw conclusions through inference. Once it\u2019s trained, it\u2019s an inferring machine, a.k.a. Sherlock Holmes.\u00a0<\/p>\r\n\r\n\r\n\r\n<p>Whimsy aside, let\u2019s dig a little deeper into the tech behind AI training and AI inference, the differences between them, and why the distinction is important.\u00a0<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Obligatory Neural Network Recap<\/h2>\r\n\r\n\r\n\r\n<p>Neural networks have emerged as the brainpower behind AI, and a basic understanding of how they work is foundational when it comes to understanding AI.\u00a0\u00a0<\/p>\r\n\r\n\r\n\r\n<p>Complex decisions, in theory, can be broken down into a series of yeses and nos, which means that they can be encoded in binary. Neural networks have the ability to combine enough of those smaller decisions, weigh how they affect each other, and then use that information to solve complex problems. And, because more complex decisions require more points of information to come to a final decision, they require more processing power. Neural networks are one of the most widely used approaches to AI and machine learning (ML).\u00a0<\/p>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"548\" class=\"wp-image-110295\" src=\"\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Neural-Network-1024x548.png\" alt=\"A diagram showing the inputs, hidden layers, and outputs of a neural network. \" srcset=\"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Neural-Network-1024x548.png 1024w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Neural-Network-300x161.png 300w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Neural-Network-768x411.png 768w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Neural-Network-1536x823.png 1536w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Neural-Network.png 1546w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n<div class=\"wp-block-spacer\" style=\"height: 10px;\" aria-hidden=\"true\">\u00a0<\/div>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">What Is AI Training?: Understanding Hyperparameters and Parameters<\/h2>\r\n\r\n\r\n\r\n<p>In simple terms, training an AI algorithm is the process through which you take a base algorithm and then teach it how to make the correct decision. This process requires large amounts of data, and can include various degrees of human oversight. <a href=\"https:\/\/postindustria.com\/how-much-data-is-required-for-machine-learning\/\" target=\"_blank\" rel=\"noreferrer noopener\">How much data you need<\/a> has a relationship to the number of parameters you set for your algorithm as well as the complexity of a problem.\u00a0<\/p>\r\n\r\n\r\n\r\n<p>We made this handy dandy diagram to show you how data moves through the training process:<\/p>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"495\" class=\"wp-image-110296\" src=\"\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Training-Diagram-1024x495.png\" alt=\"A diagram showing how data moves through an AI training algorithm. \" srcset=\"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Training-Diagram-1024x495.png 1024w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Training-Diagram-300x145.png 300w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Training-Diagram-768x371.png 768w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Training-Diagram-1536x742.png 1536w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Training-Diagram.png 1560w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/>\r\n<figcaption class=\"wp-element-caption\">As you can see in this diagram, the end result is model data, which then gets saved in your data store for later use.<\/figcaption>\r\n<\/figure>\r\n<\/div>\r\n\r\n\r\n<div class=\"wp-block-spacer\" style=\"height: 10px;\" aria-hidden=\"true\">\u00a0<\/div>\r\n\r\n\r\n\r\n<p>And hey\u2014we\u2019re leaving out a lot of nuance in that conversation because dataset size, parameter choice, etc. is a graduate-level topic on its own, and usually is considered proprietary information by the companies who are training an AI algorithm. It suffices to say that dataset size and number of parameters are both significant <em>and <\/em>have a relationship to each other, though it\u2019s not a direct cause\/effect relationship. And, both the number of parameters and the size of the dataset affect things like processing resources\u2014but that conversation is outside of scope for this article (not to mention a hot topic in research).\u00a0<\/p>\r\n\r\n\r\n\r\n<p>As with everything, your use case determines your execution. Some types of tasks actually see excellent results with smaller datasets and more parameters, whereas others require more data and fewer parameters. Bringing it back to the real world, here\u2019s a very cool graph showing how many parameters different AI systems have. Note that they very helpfully identified what type of task each system is designed to solve:<\/p>\r\n\r\n\r\n\r\n<p><iframe style=\"width: 100%; height: 600px; border: 0px none;\" src=\"https:\/\/ourworldindata.org\/grapher\/artificial-intelligence-parameter-count\"><\/iframe><\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-spacer\" style=\"height: 10px;\" aria-hidden=\"true\">\u00a0<\/div>\r\n\r\n\r\n\r\n<p>So, let\u2019s talk about what parameters are with an example. Back in <a href=\"\/blog\/ai-101-how-cognitive-science-and-computer-processors-create-artificial-intelligence\/\" target=\"_blank\" rel=\"noreferrer noopener\">our very first AI 101 post<\/a>, we talked about ways to frame an algorithm in simple terms:\u00a0<\/p>\r\n\r\n\r\n\r\n<p class=\"has-background\" style=\"background-color: #f5f4ff;\">Machine learning does not specify how much knowledge the bot you\u2019re training starts with\u2014any task can have more or fewer instructions. You could ask your friend to order dinner, or you could ask your friend to order you pasta from your favorite Italian place to be delivered at 7:30 p.m.\u00a0<br \/><br \/>Both of those tasks you just asked your friend to complete are algorithms. The first algorithm requires your friend to make more decisions to execute the task at hand to your satisfaction, and they\u2019ll do that by relying on their past experience of ordering dinner with you\u2014remembering your preferences about restaurants, dishes, cost, and so on.\u00a0<\/p>\r\n\r\n\r\n\r\n<p>The factors that help your friend make a decision about dinner are called hyperparameters and parameters. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Hyperparameter_(machine_learning)\" target=\"_blank\" rel=\"noreferrer noopener\">Hyperparameters<\/a> are those that frame the algorithm\u2014they are set\u00a0 outside the training process, but can influence the training of the algorithms. In the example above, a hyperparameter would be how you structure your dinner feedback. Do you thumbs up or down each dish? Do you write a short review? You get the idea.\u00a0<\/p>\r\n\r\n\r\n\r\n<p>Parameters are factors that the algorithm derives through training. In the example above, that\u2019s what time you prefer to eat dinner, which restaurants you enjoy after eating, and so on.\u00a0<\/p>\r\n\r\n\r\n\r\n<p>When you\u2019ve trained a neural network, there will be heavier weights between various nodes. That\u2019s a shorthand of saying that an algorithm will prefer a path it knows is significant, and if you want to really get nerdy with it, <a href=\"https:\/\/ml4a.github.io\/ml4a\/how_neural_networks_are_trained\/\">this<\/a> <a href=\"https:\/\/ml4a.github.io\/ml4a\/how_neural_networks_are_trained\/\">article<\/a> is well-researched, has a ton of math explainers for various training methods, and includes some fantastic visuals. For our purposes, here\u2019s one way people visualize a \u201ctrained\u201d algorithm:\u00a0<\/p>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"330\" class=\"wp-image-110297\" src=\"\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Trained-Neural-Network.png\" alt=\"An image showing a neural network that has prioritized certain pathways after training. \" srcset=\"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Trained-Neural-Network.png 640w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Trained-Neural-Network-300x155.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/>\r\n<figcaption class=\"wp-element-caption\"><a href=\"https:\/\/ml4a.github.io\/ml4a\/how_neural_networks_are_trained\/\">Source.<\/a><\/figcaption>\r\n<\/figure>\r\n<\/div>\r\n\r\n\r\n<p>The \u201cdropout method\u201d is essentially adding weight to the relationships an AI algorithm has found to be significant for the dataset it\u2019s working on. It can then de-prioritize (or sometimes even eliminate) the other relationships.\u00a0<\/p>\r\n\r\n\r\n\r\n<p>Once you have a trained algorithm, then you can use it with a reasonable degree of certainty that it will give you good results, and that leads us to inference.\u00a0<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">What Is AI Inference?<\/h2>\r\n\r\n\r\n\r\n<p>Once you\u2019ve trained your algorithm, you can send it out in the world to do its job (and make yours easier). When you present a trained AI algorithm with a problem and it gives you an answer, that\u2019s called inference. It\u2019s using the way it was trained to draw conclusions or make predictions, depending on how it was built, and once an algorithm is in the \u201cinference stage\u201d, it\u2019s no longer learning (usually).\u00a0<\/p>\r\n\r\n\r\n\r\n<p>Here\u2019s our diagram for how data might move through an inference process:\u00a0<\/p>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"506\" class=\"wp-image-110294\" src=\"\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Inference-Diagram-1024x506.png\" alt=\"A diagram showing how data moves through an inference workflow. \" srcset=\"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Inference-Diagram-1024x506.png 1024w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Inference-Diagram-300x148.png 300w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Inference-Diagram-768x379.png 768w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/AI-101_Training-vs.-Inference_Inference-Diagram.png 1534w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/>\r\n<figcaption class=\"wp-element-caption\">As you can see, if we want to add more training data to the algorithm, we\u2019d do so as a separate input\/output flow. The goal of this process is to output data.<\/figcaption>\r\n<\/figure>\r\n<\/div>\r\n\r\n\r\n<div class=\"wp-block-spacer\" style=\"height: 10px;\" aria-hidden=\"true\">\u00a0<\/div>\r\n\r\n\r\n\r\n<p>As we\u2019ve seen in the real world, this does not mean that the AI model will give you a perfect answer every time\u2014depending on, for example, the AI\u2019s access to new or current information, the complexity of training, etc., the algorithm might give you a better or worse (more or less accurate) answer. But, it will be able to look at a new piece of information or dataset, and return a response.\u00a0<\/p>\r\n\r\n\r\n\r\n<p>When I asked our friend ChatGPT about this, it broke down inference and defined it in relation to the logical underpinnings of different types of algorithms. (As a mere human, how could I resist using inference while writing about inference?) Sure, ChatGPT may be merely mimicking human-like dialogue based on its ingestion of the whole internet, then giving me the most likely answer based on its specialized neural network that predicts the likelihood of the next word in response to my conversational query and without access to data after January 2022, but here\u2019s what our AI friend had to say for itself:\u00a0<\/p>\r\n\r\n\r\n\r\n<ul class=\"has-background wp-block-list\" style=\"background-color: #f5f4ff;\">\r\n<li><strong>Machine Learning Inference:<\/strong> In machine learning, after a model has been trained on a dataset, it is deployed to make predictions or classifications on new, unseen data. During inference, the model takes the input data, processes it, and produces an output or a prediction based on the patterns and relationships it learned during training. For example, a trained machine learning model might be used to classify images, predict stock prices, or identify spam emails.<\/li>\r\n\r\n\r\n\r\n<li><strong>Deep Learning Inference:<\/strong> Deep learning, a subfield of machine learning, involves neural networks with multiple layers. In deep learning, inference means feeding an input through a trained deep neural network and obtaining an output. This is commonly used in applications like image recognition, natural language processing, and speech recognition. Inference in deep learning can be computationally intensive, and specialized hardware, such as <a href=\"\/blog\/ai-101-gpu-vs-tpu-vs-npu\/\">GPUs and TPUs<\/a>, are often used to accelerate the process.<\/li>\r\n\r\n\r\n\r\n<li><strong>Rule-Based Systems Inference:<\/strong> In rule-based AI systems, inference is the process of applying logical rules to make decisions or draw conclusions. These systems use a set of predefined rules and facts to reason and infer new information. For example, in an expert system for medical diagnosis, inference involves applying a set of rules to patient symptoms and medical knowledge to arrive at a diagnosis.<\/li>\r\n\r\n\r\n\r\n<li><strong>Probabilistic Inference:<\/strong> In probabilistic AI, inference is used to estimate probabilities and uncertainty. Bayesian networks and Markov decision processes are examples of probabilistic models that perform inference to compute probabilities of events or make decisions based on probabilities.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p>You\u2019ll notice that each of these are saying basically the same thing: the AI algorithm applies its decision-making paradigm to a problem.\u00a0<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Why Stop Learning During the Inference Stage?<\/h3>\r\n\r\n\r\n\r\n<p>In general, it\u2019s important to keep these two stages\u2014training and inference\u2014of an AI algorithm separate for a few reasons:\u00a0<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>Efficiency: <\/strong>Training is typically a computationally intensive process, whereas inference is usually faster and less resource-intensive. Separating them allows for efficient use of computational resources.<\/li>\r\n\r\n\r\n\r\n<li><strong>Generalization:<\/strong> The model&#8217;s ability to generalize from training data to unseen data is a key feature. It should not learn from every new piece of data it encounters during inference to maintain this generalization ability.<\/li>\r\n\r\n\r\n\r\n<li><strong>Reproducibility: <\/strong>When using trained models in production or applications, it&#8217;s important to have consistency and reproducibility in the results. If models were allowed to learn during inference, it would introduce variability and unpredictability in their behavior.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p>There are some specialized AI algorithms that <em>want <\/em>to continue learning during the inference stage\u2014your Netflix algorithm is a good example, as are self-driving cars, or dynamic pricing models used to set airfare pricing. On the other hand, the majority of problems we\u2019re trying to solve with AI algorithms deliver better decisions by separating these two phases\u2014think of things like image recognition, language translation, or medical diagnosis, for example.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Training vs. Inference (But, Really: Training Then Inference)<\/h2>\r\n\r\n\r\n\r\n<p>To recap: the AI training stage is when you feed data into your learning algorithm to produce a model, and the AI inference stage is when your\u00a0 algorithm uses that training to make inferences from data. Here\u2019s a chart for quick reference:\u00a0<\/p>\r\n\r\n\r\n\n<table id=\"tablepress-56\" class=\"tablepress tablepress-id-56\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\"><strong>Table<\/strong><\/th><th class=\"column-2\"><strong>Inference<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">Feed training data into a learning algorithm<\/td><td class=\"column-2\">Apply the model to the inference data<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">Produces a model comprising code and data<\/td><td class=\"column-2\">Produces output data <\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">One time-ish (Requirement to retain training data in case of re-training.)<\/td><td class=\"column-2\">Often continuous<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-56 from cache -->\n\r\n\r\n\r\n<p>The difference may seem inconsequential at first glance, but defining these two stages helps to show implications for AI adoption particularly with businesses. That is, given that it\u2019s much less resource intensive (and therefore, <a href=\"\/blog\/ai-101-do-the-dollars-make-sense\/\" target=\"_blank\" rel=\"noreferrer noopener\">less expensive<\/a>), it\u2019s likely to be much easier for businesses to integrate already-trained AI algorithms with their existing systems.\u00a0<\/p>\r\n\r\n\r\n\r\n<p>And, as always, we\u2019re big believers in demystifying terminology for discussion purposes. Let us know what you think in the comments, and feel free to let us know what you\u2019re interested in learning about next.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>When you&#8217;re building an artificial intelligence (AI) or machine learning (ML) algorithm, training and inference are two distinct phases. Read more to understand the differences between the two. <\/p>\n","protected":false},"author":182,"featured_media":110293,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[7,434],"tags":[489,468],"class_list":["post-110292","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-storage","category-featured-1","tag-ai-ml","tag-b2cloud","entry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>AI 101: A Guide to the Differences Between Training and Inference<\/title>\n<meta name=\"description\" content=\"Uncover the parallels between Sherlock Holmes and AI! Explore the crucial stages of AI training and inference, and how they impact data workflows.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AI 101: A Guide to the Differences Between Training and Inference\" \/>\n<meta property=\"og:description\" content=\"Uncover the parallels between Sherlock Holmes and AI! Explore the crucial stages of AI training and inference, and how they impact data workflows.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/\" \/>\n<meta property=\"og:site_name\" content=\"Backblaze Blog | Cloud Storage &amp; Cloud Backup\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/backblaze\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-09T17:17:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-14T23:50:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/bb-bh-Training-vs-Inference_Final.png\" \/>\n\t<meta property=\"og:image:width\" content=\"4500\" \/>\n\t<meta property=\"og:image:height\" content=\"2563\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Stephanie Doyle\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@backblaze\" \/>\n<meta name=\"twitter:site\" content=\"@backblaze\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stephanie Doyle\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AI 101: A Guide to the Differences Between Training and Inference","description":"Uncover the parallels between Sherlock Holmes and AI! Explore the crucial stages of AI training and inference, and how they impact data workflows.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/","og_locale":"en_US","og_type":"article","og_title":"AI 101: A Guide to the Differences Between Training and Inference","og_description":"Uncover the parallels between Sherlock Holmes and AI! Explore the crucial stages of AI training and inference, and how they impact data workflows.","og_url":"https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/","og_site_name":"Backblaze Blog | Cloud Storage &amp; Cloud Backup","article_publisher":"https:\/\/www.facebook.com\/backblaze","article_published_time":"2023-11-09T17:17:29+00:00","article_modified_time":"2025-12-14T23:50:00+00:00","og_image":[{"width":4500,"height":2563,"url":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/bb-bh-Training-vs-Inference_Final.png","type":"image\/png"}],"author":"Stephanie Doyle","twitter_card":"summary_large_image","twitter_creator":"@backblaze","twitter_site":"@backblaze","twitter_misc":{"Written by":"Stephanie Doyle","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/#article","isPartOf":{"@id":"https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/"},"author":{"name":"Stephanie Doyle","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#\/schema\/person\/688f3962fd24d8155ef726bc94d75058"},"headline":"AI 101: Training vs. Inference","datePublished":"2023-11-09T17:17:29+00:00","dateModified":"2025-12-14T23:50:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/"},"wordCount":1975,"commentCount":0,"publisher":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/#primaryimage"},"thumbnailUrl":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/bb-bh-Training-vs-Inference_Final.png","keywords":["AI\/ML","B2Cloud"],"articleSection":["Cloud Storage","Featured"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/","url":"https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/","name":"AI 101: A Guide to the Differences Between Training and Inference","isPartOf":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/#primaryimage"},"image":{"@id":"https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/#primaryimage"},"thumbnailUrl":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/bb-bh-Training-vs-Inference_Final.png","datePublished":"2023-11-09T17:17:29+00:00","dateModified":"2025-12-14T23:50:00+00:00","description":"Uncover the parallels between Sherlock Holmes and AI! Explore the crucial stages of AI training and inference, and how they impact data workflows.","breadcrumb":{"@id":"https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/#primaryimage","url":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/bb-bh-Training-vs-Inference_Final.png","contentUrl":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/bb-bh-Training-vs-Inference_Final.png","width":4500,"height":2563,"caption":"A decorative image depicting a neural network identifying a cat."},{"@type":"BreadcrumbList","@id":"https:\/\/www.backblaze.com\/blog\/ai-101-training-vs-inference\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/"},{"@type":"ListItem","position":2,"name":"AI 101: Training vs. Inference"}]},{"@type":"WebSite","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#website","url":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/","name":"Backblaze Cloud Solutions Blog","description":"Cloud Storage &amp; Cloud Backup","publisher":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#organization","name":"Backblaze","url":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.backblaze.com\/blog\/wp-content\/uploads\/2017\/12\/backblaze_icon_transparent.png?fit=512%2C512&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.backblaze.com\/blog\/wp-content\/uploads\/2017\/12\/backblaze_icon_transparent.png?fit=512%2C512&ssl=1","width":512,"height":512,"caption":"Backblaze"},"image":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/backblaze","https:\/\/x.com\/backblaze","https:\/\/www.youtube.com\/user\/Backblaze","https:\/\/en.wikipedia.org\/wiki\/Backblaze"]},{"@type":"Person","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#\/schema\/person\/688f3962fd24d8155ef726bc94d75058","name":"Stephanie Doyle","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2022\/12\/headshot-4-1-e1670452405672-150x150.jpg","url":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2022\/12\/headshot-4-1-e1670452405672-150x150.jpg","contentUrl":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2022\/12\/headshot-4-1-e1670452405672-150x150.jpg","caption":"Stephanie Doyle"},"description":"Stephanie is the Technical Narrative Content Manager at Backblaze. She specializes in taking complex topics and writing relatable, engaging, and user-friendly content. You can most often find her reading in public places, and can connect with her on LinkedIn.","url":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/author\/stephanie\/"}]}},"jetpack_featured_media_url":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/11\/bb-bh-Training-vs-Inference_Final.png","_links":{"self":[{"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/posts\/110292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/users\/182"}],"replies":[{"embeddable":true,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/comments?post=110292"}],"version-history":[{"count":0,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/posts\/110292\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/media\/110293"}],"wp:attachment":[{"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/media?parent=110292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/categories?post=110292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/tags?post=110292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}