Skip to content
Book a conversation

Batch processing

Processing multiple grouped items under execution and tracking conditions defined by the application or service.

Luiz GardelinUpdated Read in Markdown
All terms

A conversation about your organization.

Before recommending any tool, we talk with your teams and map how the work really happens.

Arrange a conversation
On this pageIntroduction

Also used as: batch inference, batch request processing.

Batch processing performs work on multiple grouped items according to a defined operation or sequence. In machine learning, Google describes batch inference as producing predictions for multiple examples divided into groups. The role of those groups needs to be identified because gathering items for inference does not mean using them to train a model. Source: Google.

A training batch participates in a learning procedure. An inference batch groups inputs to obtain results from an available model. Batch alone does not tell you which stage is taking place, when results become available or how a failure is handled. Those conditions belong to the application design and service mode. State them explicitly when another team will operate or assess the routine.

Execution depends on the service mode

In the service documented by Google Cloud, batch inferences are asynchronous requests for processing accumulated data when an immediate response is unnecessary. This is a specific implementation. It should not be assumed that every batch process is asynchronous or that another provider follows the same rules. Source: Google Cloud.

When planning a routine, define how each input will be linked to its result, which states need tracking and what to do with unfinished items. Check size restrictions, accepted formats and the chosen mode's rate limits. Keep enough records to distinguish a received request from an available result. Grouping requests does not by itself establish improved quality or a financial outcome. The process still needs criteria for accepting each result.

Hypothetical example

A team needs to classify document descriptions received overnight. Since no person is waiting for each response, it considers a batch inference mode. It associates each input with an identifier and tracks results item by item. If some work remains unfinished, it routes only the affected cases according to the defined rule instead of treating the whole batch as complete. Grouping organizes execution; results still need checking before the catalog used by people in the organization is updated.

Sources

  1. Machine Learning Glossary Google for Developers

    Technical definitions of data, datasets, evaluation, tokens and bias in machine learning.

  2. Overview of getting inferences on Agent Platform Google Cloud

    In the documented service, batch inferences are asynchronous and process accumulated data.

Written by

Luiz Gardelin

Founder and lead consultant at The Company Brain

Luiz Gardelin is the founder and lead consultant at The Company Brain, an AI organizational transformation consultancy based in Brazil. He also founded Webinhood and Tropk.ai.

See all content by this author

A conversation about your organization.

Before recommending any tool, we talk with your teams and map how the work really happens.

Arrange a conversation

Related terms

Continue reading

All resources