Slide 1

Slide 1 text

NeurIPS 2019 論文読み会 Fast AutoAugment Inoue Yuichi (@inoichan)

Slide 2

Slide 2 text

- データセットを見て、人がどのAugmentationをするか考えていた...! 引用: albumentations-team/albumentations Augmentation...

Slide 3

Slide 3 text

AutoAugment (2017, Ekin D. Cubuk et al.) - 強化学習を使ってデータセットに最適なAugmentationを探索 - コントローラRNNでAugmentationの組み合わせをサンプリング Augmentationしたデータでモデルを学習 検証データの精度を報酬として与えてコントローラRNNを更新

Slide 4

Slide 4 text

- SOTAを更新した! - 他のデータセットでも有効なAugmentation policy (transfer) AutoAugment (2017, Ekin D. Cubuk et al.)

Slide 5

Slide 5 text

AutoAugment (2017, Ekin D. Cubuk et al.) しかし、学習に膨大な計算リソースが必要!!!

Slide 6

Slide 6 text

Fast AutoAugmentの工夫点 ❖ ベイズ最適化で探索 ➢ どの処理をするか ➢ どのくらいの確率でするか ➢ どのくらいの強度で処理をするか ❖ Augmentationしてないデータでモデルを学習し、 推論時に精度が良くなるAugmentation policyを探す。

Slide 7

Slide 7 text

Fast AutoAugmentの処理

Slide 8

Slide 8 text

1個分のAugmentation処理 Fast AutoAugmentの処理

Slide 9

Slide 9 text

p : Augmentation処理をする確率 λ : 各Augmentation処理の強度 (magnitude) Fast AutoAugmentの処理

Slide 10

Slide 10 text

各画像にNτ種類のAugmentation処理をする Fast AutoAugmentの処理

Slide 11

Slide 11 text

Fast AutoAugmentの処理(イメージ図)

Slide 12

Slide 12 text

Fast AutoAugmentのアルゴリズム

Slide 13

Slide 13 text

Fast AutoAugmentのアルゴリズム 訓練データをK分割する(Stratified) 各Foldでさらに DM : モデル訓練 DA : Augmentationしてモデル評価 に分ける。

Slide 14

Slide 14 text

Fast AutoAugmentのアルゴリズム DMでモデルをスクラッチから学習

Slide 15

Slide 15 text

Fast AutoAugmentのアルゴリズム DAをAugmentationして推論する。 Lossが小さくなるように以下を探索 - Augmentationの取り方 - 各Augmentationの確率p - 各Augmentationの強度λ T回探索を繰り返す。

Slide 16

Slide 16 text

Fast AutoAugmentのアルゴリズム 上位N個のAugmentation policyを選び、 最終的なAugmentationのリストに加える。

Slide 17

Slide 17 text

Fast AutoAugmentのアルゴリズム(イメージ図) 最終的にはこれでモデルを訓練する!

Slide 18

Slide 18 text

計算コストの削減に成功 AutoAugmentよりはるかに早く計算できてる!(GPU hours)

Slide 19

Slide 19 text

従来手法に匹敵する精度

Slide 20

Slide 20 text

Thanks!!! Link: Fast AutoAugment arXive: https://arxiv.org/abs/1905.00397 Github: https://github.com/kakaobrain/fast-autoaugment AutoAugment arXive: https://arxiv.org/abs/1805.09501                                        (図はこれらの論文から引用してます。)