nerdexam
Google

PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #194

You are training an ML model on a large dataset. You are using a TPU to accelerate the training process. You notice that the training process is taking longer than expected. You discover that the…

The correct answer is D. Increase the batch size. If a TPU is underutilized during ML training, increasing the batch size can improve its efficiency by providing more data for parallel processing, thereby fully leveraging the TPU's computational power.

Submitted by joshua94· Apr 18, 2026ML model development

Question

You are training an ML model on a large dataset. You are using a TPU to accelerate the training process. You notice that the training process is taking longer than expected. You discover that the TPU is not reaching its full capacity. What should you do?

Options

  • AIncrease the learning rate
  • BIncrease the number of epochs
  • CDecrease the learning rate
  • DIncrease the batch size

How the community answered

(42 responses)
  • A
    5% (2)
  • B
    7% (3)
  • C
    12% (5)
  • D
    76% (32)

Why each option

If a TPU is underutilized during ML training, increasing the batch size can improve its efficiency by providing more data for parallel processing, thereby fully leveraging the TPU's computational power.

AIncrease the learning rate

Changing the learning rate primarily affects model convergence and training stability, not hardware utilization.

BIncrease the number of epochs

Increasing the number of epochs will make the training run longer but will not address the underlying issue of the TPU not being fully utilized per step.

CDecrease the learning rate

Changing the learning rate primarily affects model convergence and training stability, not hardware utilization.

DIncrease the batch sizeCorrect

TPUs are designed for highly parallel computations and perform best with large batch sizes. Increasing the batch size allows the TPU to process more examples concurrently, better utilizing its hardware and improving throughput when not reaching full capacity.

Concept tested: TPU utilization and batch size optimization

Source: https://cloud.google.com/tpu/docs/troubleshooting#training-is-slow

Topics

#TPU optimization#Batch size#ML training performance#Hardware utilization

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-MACHINE-LEARNING-ENGINEER Practice