2019年 NeurIPSに投稿された「Fast AutoAugment」の紹介スライドです。 NeurIPS 2019 読み会 in 京都のLTで使った資料になります。 間違ってるところ等ございましたらご指摘いただけますと幸いです。 ご質問などあればTwitterからお願いします。 SlideShare: https://www.slideshare.net/ssusera81123/fast-auto-augment
NeurIPS 2019 論文読み会Fast AutoAugmentInoue Yuichi(@inoichan)
View Slide
- データセットを見て、人がどのAugmentationをするか考えていた...!引用: albumentations-team/albumentationsAugmentation...
AutoAugment (2017, Ekin D. Cubuk et al.)- 強化学習を使ってデータセットに最適なAugmentationを探索- コントローラRNNでAugmentationの組み合わせをサンプリングAugmentationしたデータでモデルを学習検証データの精度を報酬として与えてコントローラRNNを更新
- SOTAを更新した!- 他のデータセットでも有効なAugmentation policy (transfer)AutoAugment (2017, Ekin D. Cubuk et al.)
AutoAugment (2017, Ekin D. Cubuk et al.)しかし、学習に膨大な計算リソースが必要!!!
Fast AutoAugmentの工夫点❖ ベイズ最適化で探索➢ どの処理をするか➢ どのくらいの確率でするか➢ どのくらいの強度で処理をするか❖ Augmentationしてないデータでモデルを学習し、推論時に精度が良くなるAugmentation policyを探す。
Fast AutoAugmentの処理
1個分のAugmentation処理Fast AutoAugmentの処理
p : Augmentation処理をする確率λ : 各Augmentation処理の強度(magnitude)Fast AutoAugmentの処理
各画像にNτ種類のAugmentation処理をするFast AutoAugmentの処理
Fast AutoAugmentの処理(イメージ図)
Fast AutoAugmentのアルゴリズム
Fast AutoAugmentのアルゴリズム訓練データをK分割する(Stratified)各FoldでさらにDM : モデル訓練DA : Augmentationしてモデル評価に分ける。
Fast AutoAugmentのアルゴリズムDMでモデルをスクラッチから学習
Fast AutoAugmentのアルゴリズムDAをAugmentationして推論する。Lossが小さくなるように以下を探索- Augmentationの取り方- 各Augmentationの確率p- 各Augmentationの強度λT回探索を繰り返す。
Fast AutoAugmentのアルゴリズム上位N個のAugmentation policyを選び、最終的なAugmentationのリストに加える。
Fast AutoAugmentのアルゴリズム(イメージ図)最終的にはこれでモデルを訓練する!
計算コストの削減に成功AutoAugmentよりはるかに早く計算できてる!(GPU hours)
従来手法に匹敵する精度
Thanks!!!Link:Fast AutoAugmentarXive: https://arxiv.org/abs/1905.00397Github: https://github.com/kakaobrain/fast-autoaugmentAutoAugmentarXive: https://arxiv.org/abs/1805.09501 (図はこれらの論文から引用してます。)