8.1 Choosing the Model Type: ARIMA, Trees, DNNs & LLMs

Key Takeaways

  • Gradient-boosted trees are usually the strongest first choice for structured tabular data, while DNNs lead on images, audio, and raw text.
  • ARIMA_PLUS in BigQuery ML trains one statistical model per time series and trains faster than neural forecasting, which makes it a good baseline.
  • Neural forecasting methods such as TiDE and Temporal Fusion Transformer fit many related series with covariates, at higher training cost.
  • LLMs such as Gemini fit open-ended language, reasoning, and multimodal tasks, but a small supervised model is often cheaper and faster for narrow, high-volume predictions.
  • Model choice balances four exam constraints: cost, complexity, latency, and scalability.
Last updated: September 2026

The exam guide lists choosing the model type (for example, ARIMA, DNN, and LLM) while considering cost, complexity, latency, and scalability. Most wrong answers pick a technique that could work but is too expensive, too slow, or too complex for the stated constraint.

Start with the Problem, Not the Model

  1. Is ML needed at all? If a stable rule solves it ("flag orders over the card limit"), rules are cheaper and easier to explain.
  2. What is the output? A class, a number, a sequence over time, a ranked list, a group, an anomaly flag, or generated content.
  3. What is the input? Structured tables, time series, images, audio, text, or a mix.
  4. What are the constraints? Latency, request volume, budget, labeled data, interpretability, and update frequency.

Model Families and When They Fit

FamilyStrengthsWeaknessesTypical use
Linear / logistic regressionFast, cheap, interpretable, good baselineMisses non-linear interactions unless you engineer featuresCredit scoring with explanation requirements, quick baselines
Gradient-boosted trees / random forests (XGBoost)Top accuracy on tabular data, handle mixed types and missing valuesLarger models, less transparent than linearChurn, fraud, propensity, pricing on structured data
Deep neural networks (DNN)Learn complex patterns from large data, including images, audio, text, and embeddingsNeed more data, compute, tuning, and effort to explainImage classification, speech, wide-and-deep recommendations
CNNs / vision transformersSpatial patterns in imagesGPU/TPU training costDefect detection, medical imaging
Sequence models / transformersOrder and context in sequencesCompute-heavyText classification, custom sequence tasks
Statistical time series (ARIMA_PLUS)Fast, decomposable (trend, seasonality, holidays), one model per seriesLimited cross-series learningStore or SKU forecasts, anomaly detection on metrics
Neural forecasting (TiDE, TFT, Seq2Seq+)Learn across many related series, use covariatesSlower, costlier trainingLarge retail demand planning with promotions
Time-series foundation model (TimesFM via AI.FORECAST)No training, instant baselineLow customization and explainabilityQuick forecasts across many metrics
Matrix factorization / two-tower retrievalLearn user-item preferencesCold start for new users and itemsRecommendations
k-means clusteringUnsupervised segmentsChoosing k, and business meaning isn't guaranteedCustomer segmentation
Autoencoders / PCACompression, anomaly detection by reconstruction errorNeed tuning to separate normal from rareSensor anomaly detection
Embeddings + vector searchSemantic similarity across text, images, and productsEmbedding model choice, index maintenanceSemantic search, RAG retrieval, deduplication
LLMs (Gemini, partner, open)Open-ended generation, reasoning, extraction, multimodal understanding, zero-shot tasksPer-token cost, latency, output variability, need for evaluation and safety controlsSummarization, conversational agents, document Q&A, complex extraction

Weighing the Four Constraints

ConstraintPushes towardPushes away from
Low costLinear models, trees, BigQuery ML, small models, batch scoringLarge LLM calls per record, big GPU training
Low complexity / small teamBigQuery ML, AutoML, pre-trained APIs, Gemini promptingCustom distributed deep learning
Low latency (ms)Small trees or linear models, distilled or quantized networks, precomputed featuresLarge LLM generation on the request path
High scalabilityModels that parallelize and serve on autoscaling endpoints, batch inferenceStateful, single-machine models

ARIMA vs. DNN vs. LLM: Worked Comparisons

Forecasting weekly sales for 2,000 stores

  • ARIMA_PLUS in BigQuery ML: one statement fits one model per store, trains quickly, and explains trend, seasonality, and holidays. It's the best first choice when explanations matter and covariates are limited.
  • Neural forecasting (TiDE or TFT through AutoML): consider it when promotions, prices, and weather drive demand across related stores and the extra accuracy justifies the training cost.
  • LLM: not a forecasting tool for this job. It adds cost and variability without the statistical structure.

Classifying 50 million support tickets a month into 12 categories

  • Gemini with prompting gets high quality quickly with no training data, but per-token cost at 50 million requests is significant.
  • Tuned smaller model (Flash-Lite, or distillation into a smaller model) cuts cost and latency once labeled examples exist.
  • A supervised text classifier is cheapest per prediction at huge scale, but it needs labeled data and maintenance.
  • A common pattern: start with Gemini to launch fast and generate labels, then tune or distill to a cheaper model as volume grows.

Detecting defects on an assembly line at 30 frames per second

  • A CNN or AutoML Edge image model running at the edge meets the latency need.
  • A cloud LLM call per frame is too slow and too expensive.

Data Volume and Label Availability

Labeled data availableReasonable options
NonePre-trained APIs, Gemini zero-shot or few-shot, unsupervised methods (clustering, anomaly detection), TimesFM
Hundreds of examplesGemini supervised tuning, transfer learning from pre-trained vision or text models
Thousands to millions of rowsTrees, DNNs, AutoML, custom training

Latency Budget Thinking

When a scenario gives a latency target, add up the request path: feature retrieval (Feature Store lookup), preprocessing, model inference, and postprocessing. A 50 ms budget with a 20 ms feature lookup leaves about 30 ms for inference, which rules out a large generative model call but fits a tree ensemble on a CPU endpoint.

Exam Traps

  • Picking a DNN for a small tabular dataset where boosted trees are faster and usually more accurate.
  • Using an LLM for numeric forecasting or high-volume, fixed-label classification when cheaper models meet the bar.
  • Ignoring interpretability requirements (Section 8.3) when a regulated decision is involved.
  • Forgetting cold start in recommendations. New items need content-based features or embeddings.
Test Your Knowledge

A manufacturer needs forecasts for 800 production lines, with explanations of trend, weekly seasonality, and holiday effects for plant managers. Data lives in BigQuery and the team prefers SQL. Which model type is the best first choice?

A
B
C
D
Test Your Knowledge

A payments company must score each card authorization within 40 ms at 20,000 requests per second using 60 structured features. Which model type best fits these constraints?

A
B
C
D
Test Your Knowledge

A company launches a ticket classifier with Gemini prompting because it has no labeled data. Six months later, volume is 40 million tickets a month and costs are too high, but it now has 500,000 human-verified labels. What is the most sensible evolution?

A
B
C
D