Google Cloud

Vertex AI Pipelines / MLOps 完全ガイド|Kubeflow・CT・Model Monitoring

2026-05-24
NicheeLab編集部

Vertex AI Pipelines は GCP の MLOps 基盤で、Kubeflow Pipelines (KFP) v2 と TFX をマネージド実行します。 Continuous Training (CT)、Model Registry、Model Monitoring、Feature Store と組み合わせて完全な MLOps を構築できます。

MLOps 成熟度レベル

レベル特徴必要なツール
0手動 (Notebook で学習・デプロイ)Vertex AI Workbench
1パイプライン自動化、CT (Continuous Training)+ Pipelines、Model Registry、Feature Store
2CI/CD/CT 全自動 (Github Push → 再学習 → デプロイ)+ Cloud Build、Cloud Deploy、Model Monitoring

KFP v2 パイプライン例

from kfp import dsl, compiler
from kfp.dsl import component, pipeline, Input, Output, Model, Dataset

@component(base_image="python:3.11", packages_to_install=["pandas", "scikit-learn"])
def load_data(output_data: Output[Dataset]):
    import pandas as pd
    df = pd.read_csv("gs://my-bucket/train.csv")
    df.to_csv(output_data.path, index=False)

@component(packages_to_install=["scikit-learn", "joblib"])
def train(data: Input[Dataset], model: Output[Model]):
    import pandas as pd, joblib
    from sklearn.linear_model import LogisticRegression
    df = pd.read_csv(data.path)
    clf = LogisticRegression().fit(df.drop("y", axis=1), df["y"])
    joblib.dump(clf, model.path)

@pipeline(name="train-pipeline")
def my_pipeline():
    data_op = load_data()
    train_op = train(data=data_op.outputs["output_data"])

compiler.Compiler().compile(my_pipeline, "pipeline.json")

# 実行
from google.cloud import aiplatform
aiplatform.PipelineJob(
    display_name="my-run",
    template_path="pipeline.json",
    pipeline_root="gs://my-bucket/pipelines",
).run()

Continuous Training (CT) パターン

  1. Cloud Scheduler が毎週 Pub/Sub にメッセージ送信
  2. Cloud Functions が Vertex AI Pipelines を起動
  3. Feature Store から最新特徴量取得
  4. 学習・評価実行
  5. 評価指標が閾値超過なら Model Registry に登録
  6. Model Monitoring が継続的にドリフト検知
  7. ドリフト検知時にも Pipelines 再起動

Model Registry

  • モデルのバージョン管理 + Alias (champion / challenger)
  • モデルカード (メタデータ + 使用条件)
  • Endpoint デプロイ (1 クリックで本番化)
  • BigQuery / Cloud Storage / Feature Store のリネージ追跡

Model Monitoring

  • Feature Skew: 学習データ vs 本番データの分布乖離
  • Feature Drift: 本番データの時系列ドリフト
  • Prediction Drift: 予測値の分布変化
  • Data Quality: NULL / 異常値検出
  • Pub/Sub 通知 + 再学習 CT パイプライン連携

料金例

項目料金
Pipeline 実行$0.03/run
Worker (n1-standard-4)$0.19/h
GPU (T4)+$0.35/h
Endpoint (オンライン予測)$0.10/h (n1-standard-2)〜
Model Monitoring$0.34/M analyzed instances

他 MLOps プラットフォーム比較

項目Vertex AI PipelinesSageMaker PipelinesAzure ML PipelinesMLflow + Databricks
SDKKFP v2 / TFXSageMaker Python SDKAzure ML SDKMLflow
OSS 互換◎ (KFP OSS)◎ (MLflow OSS)
Model Registry
Monitoring

ベストプラクティス

  • Component を再利用可能に設計 (汎用化)
  • Feature Store で特徴量を一元管理
  • Model Registry の Alias で本番切り替え
  • Cloud Build トリガーで Pipeline 自動更新
  • Experiments で実験を追跡
  • Vertex AI TensorBoard で可視化
  • Pipeline Root を GCS に固定 + ライフサイクル

Vertex AI Pipelines と Kubeflow Pipelines の関係は?

Vertex AI Pipelines は Kubeflow Pipelines (KFP) v2 のマネージドサービス。KFP SDK で書いたパイプラインをそのまま Vertex 上で実行可能。

TFX との違いは?

TFX は TensorFlow 中心の ML パイプライン、KFP は汎用 (PyTorch / scikit-learn 等)。Vertex AI Pipelines は両方サポート、KFP がより主流。

料金体系は?

Pipeline 実行 $0.03/run + Worker (Vertex AI Training インスタンス時間)。安価で MLOps 始めやすい。

MLOps の成熟度レベルは?

Google 提唱の 0/1/2 レベル: Level 0 = 手動、Level 1 = 自動化、Level 2 = CI/CD/CT (Continuous Training)。Pipelines は Level 1〜2 の中核。

Continuous Training (CT) はどう実装する?

Cloud Scheduler / Pub/Sub トリガー → Vertex AI Pipelines 起動 → 学習 → 評価 → Model Registry 登録 → Endpoint デプロイ。Feature Store と組み合わせ。

Model Monitoring はある?

Vertex AI Model Monitoring で予測分布ドリフト、特徴量ドリフト、データ品質を自動検出。閾値超過で Pub/Sub 通知 → 再学習トリガー。

AWS SageMaker Pipelines との比較は?

SageMaker Pipelines は SageMaker 統合、Vertex AI Pipelines は KFP オープン互換 + GCP 統合。OSS 移植性は Vertex が優位。

Cloud Composer との使い分けは?

Pipelines = ML 専用、Composer = 汎用ワークフロー。ML 中心なら Pipelines、データ ETL + ML 混在なら Composer。両方併用も。

関連記事・MLOps / Vertex AI

Vertex AI Feature Store 完全ガイド|新版 (BigQuery ベース)・MLOps (GCP)

Google Cloud Vertex AI Feature Store の全機能解説。2024 新版 (BigQuery ベース)、Online / Offline Store、Feature View、Point-in-time Lookup、Embedding 保存、料金、SageMaker Feature Store 比較を網羅。

Vertex AI 入門|Google Cloud 統合 ML プラットフォームの全機能 (GAIL/PMLE/PCD 必須知識)

Google Cloud Vertex AI の入門解説。Vertex AI Studio / Agent Builder / Model Garden / Search / Pipelines / Training の全機能、Gemini モデルファミリー (Pro/Flash/Ultra)、Azure OpenAI との比較、料金体系、Responsible AI 機能を日本語で整理。

Vertex AI Agent Builder 完全ガイド|Conversational Agents・Vertex AI Search・Tool Use (GCP)

Google Cloud Vertex AI Agent Builder の全機能解説。Conversational Agents (Dialogflow CX 後継)、Vertex AI Search、Tool Use、Grounding、Playbook、料金、ChatGPT GPTs / Copilot Studio 比較を網羅。

Vertex AI Model Garden 完全ガイド|Claude・Llama・Gemini・Imagen 統合 (GCP)

Google Cloud Vertex AI Model Garden の全機能解説。Gemini / Imagen / Chirp、Anthropic Claude、Llama / Mistral / Gemma 等 100+ モデル、Fine-tuning、料金、AWS Bedrock 比較を網羅。

※ Google Cloud、Vertex AI は Google LLC の商標です。最新情報は Vertex AI Pipelines 公式 をご確認ください。

この記事で学んだ内容を問題で確認しましょう

16,000問以上の問題で実力チェック

GCP 試験対策ページを見る
この記事の著者

NicheeLab編集部

データエンジニアリング・クラウド資格の専門家。Databricks・Snowflake等の認定資格を保有し、実務経験に基づいた問題作成・解説を行っています。NicheeLab運営。


関連記事
Google Cloud

Google Cloud (GCP) 認定資格ロードマップ 2026 完全版|全 15 試験を体系化

Google Cloud 認定資格 全 15 試験 (Foundational 2 + Associate 3 + Pr...

Google Cloud

Cloud Digital Leader (CDL) 完全ガイド|出題範囲・学習リソース・合格戦略

Google Cloud Cloud Digital Leader (CDL) の完全ガイド。6 ドメイン 92 bul...

Google Cloud

Generative AI Leader (GAIL) 完全ガイド|Google Cloud 生成 AI 認定

Google Cloud Generative AI Leader (GAIL、2025-05-14 リリース) の完全...

Google Cloud

Vertex AI 入門|Google Cloud 統合 ML プラットフォームの全機能

Google Cloud Vertex AI の入門解説。Vertex AI Studio / Agent Builde...

Google Cloud

GCP Associate Cloud Engineer (ACE) 完全ガイド|試験範囲・受験料・学習ロードマップ

Google Cloud Associate Cloud Engineer (ACE) の試験範囲・受験料 125 US...

Google Cloudの記事一覧 (102件)
© 2026 NicheeLab All rights reserved.