18. ● 第1.0版のシステム構成
○ 1deploymentに多クラス分類が1個
○ モノリシックな非同期推論システム
○ 運用は楽
出品検知
違反A 10%
違反B 30%
違反C 20%
・・・ xx%
Deployment uwsgi+flask
categorical
preprocess
text
preprocess
numerical
preprocess
multiclass
classifier
Queue
CS
dataset
Docker
Image
with model
Data retrieval Preprocess Training Evaluation学習
推論
multiclass
classifier
18
19. ● 第1.0版の課題
○ もっと高精度に検知したい出品がある
出品検知
違反A 10%
違反B 30%
違反C 20%
・・・ xx%
Deployment uwsgi+flask
categorical
preprocess
text
preprocess
numerical
preprocess
multiclass
classifier
Queue
CS
dataset
Docker
Image
with model
Data retrieval Preprocess Training Evaluation学習
推論
multiclass
classifier
要改善
19
20. ● 第1.1版のシステム構成
○ 特定の検知を2値分類にして強化
○ 多クラス分類+2値分類
○ まだモノリシックだけど、運用は楽
出品検知
違反A 10%
違反B 30%
違反C 20%
・・・ xx%
Deployment uwsgi+flask
categorical
preprocess
text
preprocess
numerical
preprocess
Queue
CS
dataset
Docker
Image
with model
Data retrieval Preprocess Training Evaluation学習
multiclass
classifier
binary
classifier
multiclass
classifier
binary
classifier
推論
20
21. ● 第1.1版の課題
○ もっと高精度に検知するために画像、テキストによる出品検知が必要 最優先
○ 個別モデルの再学習、更新ができない
○ モデル追加・更新には全モデルの再学習が必要になる
出品検知
違反A 10%
違反B 30%
違反C 20%
・・・ xx%
Deployment uwsgi+flask
categorical
preprocess
text
preprocess
numerical
preprocess
Queue
CS
dataset
Docker
Image
with model
Data retrieval Preprocess Training Evaluation学習
推論
multiclass
classifier
binary
classifier
multiclass
classifier
binary
classifier
要改善
21
22. ● 第1.2版:ディープラーニングと Istioの投入
○ TF serving推論Docker imageを個々のディープラーニングモデル用にビルド
○ 前処理とsklearnモデルは1個のDocker imagesに集約し、リソース効率化
○ ディープラーニングのみ独立した Docker imageとする
○ IstioによるA/Bテストのサポート
出品検知
dataset
Docker
Image
with model
and preprocess
for DL
学習
multiclass
classifier
binary
classifier
Docker
Image
with model
deeplearning
classifier
22
Data retrieval
Training Evaluation
Training Evaluation
Preprocess
Preprocess
Docker
Image
with model
deeplearning
classifier
Training EvaluationPreprocess
33. 出品検知
● 推論デプロイメントの分割
● そのために学習プロセスの依存関係を分割
dataset学習
Group deployment
proxy推論 Queue
Istio
virtualservice
destinationrule
Deployment uwsgi+flask
categorical
preprocess
text
preprocess
numerical
preprocess
multiclass
classifier
binary
classifier
image
preprocess
Deploy
uwsgi+flask
Deploy
uwsgi+flask
Deploy tfserving
deeplearning
classifier
推論器を分
割
依存関係を
分割
Docker
Image
with model
and preprocess
for DL
multiclass
classifier
binary
classifier
33
Data retrieval
Training Evaluation
Training Evaluation
Preprocess
Preprocess
Docker
Image
with model
deeplearning
classifier
Docker
Image
with model
deeplearning
classifier
34. ● 第2.0版のシステム構成
○ 全モデルを個別学習、個別デプロイメントにするマイクロサービス・アーキテクチャ
出品検知
違反A 10%
違反B 30%
違反C 20%
・・・ xx%
CS
推論 proxy
ML model
deployment
Istio
virtualservice
ML model
deployment
Istio
virtualservice
Queue
dataset学習
Data retrieval Preprocess Training Evaluation Preprocess
Image
Model
Image
Data retrieval Preprocess Training Evaluation Preprocess
Image
Model
Image
Data retrieval Preprocess Training Evaluation Preprocess
Image
Model
Image
ML model
deployment
Istio
virtualservice
Preprocess
deployment
ML model
deployment
Istio
virtualservice
Preprocess
deployment
34
35. ● 第2.0版のシステム構成
○ 全モデルを個別学習、個別デプロイメントにするマイクロサービス・アーキテクチャ
○ 個別モデルのオンライン A/Bテストと無停止アップデート
出品検知
違反A 10%
違反B 30%
違反C 20%
・・・ xx%
CS
推論 proxy
ML model
deployment
Istio
virtualservice
Queue
dataset学習
Data retrieval Preprocess Training Evaluation Preprocess
Image
Model
Image
ML model
deployment
Istio
virtualservice
Preprocess
deployment
ML model
deployment
Preprocess
deployment
90%
10% 35
1リリース10分に短縮