Share
Embed
Annual Pro sale · Save $30
Have presentations of your own?
Share with private links, password protection, and more control over your work.
Transcript
66 slides
-
ߨࢣհ • ٠ా ངฏʢ͖ͨ͘ Α͏͍ʣ • ത࢜ʢཧֶʣ • ݱࡏίϯαϧςΟϯάϑΝʔϜʹͯσʔλੳۀʹैࣄ •
ಘҙ ɾػցֶशͷཧతଆ໘ ɾਪનΞϧΰϦζϜ ɾը૾ੳʢDeep Learningʣ • ࿈བྷઌ Կ͔͋Γ·ͨ͠Β͓ؾܰʹ͝࿈བྷ͍ͩ͘͞ Email : [email protected] Facebook : https://www.facebook.com/yohei.kikuta.3 Linkedin : https://jp.linkedin.com/in/yohei-kikuta-983b29117 -
σΟʔϓϥʔχϯάͷ ImageNet Large Scale Visual Recognition Challenges (ILSVRC) ग़ॴɿhttp://image-net.org/
Classification error [%] σΟʔϓϥʔχϯάొ !! ਓؒͷࣝผੑೳ -
σΟʔϓϥʔχϯάͷ Google AlphaGo ग़ॴɿhttp://9801.me/?p=1738 ɹɹɹwww.nature.com/nature/journal/v529/n7587/abs/nature16961.html?lang=en ARTICLE RESEARCH learning of
convolutional networks, won 11% of games against Pachi23 and 12% against a slightly weaker program, Fuego24. Reinforcement learning of value networks The final stage of the training pipeline focuses on position evaluation, (s, a) of the search tree stores an action value Q(s, a), visit count N(s, a), and prior probability P(s, a). The tree is traversed by simulation (that is, descending the tree in complete games without backup), starting from the root state. At each time step t of each simulation, an action at is selected from state st Figure 3 | Monte Carlo tree search in AlphaGo. a, Each simulation traverses the tree by selecting the edge with maximum action value Q, plus a bonus u(P) that depends on a stored prior probability P for that edge. b, The leaf node may be expanded; the new node is processed once by the policy network pσ and the output probabilities are stored as prior probabilities P for each action. c, At the end of a simulation, the leaf node is evaluated in two ways: using the value network vθ ; and by running a rollout to the end of the game with the fast rollout policy pπ , then computing the winner with function r. d, Action values Q are updated to track the mean value of all evaluations r(·) and vθ (·) in the subtree below that action. Selection a b c d Expansion Evaluation Backup p S p V Q + u(P) Q + u(P) Q + u(P) Q + u(P) P P P P Q Q Q Q Q r r r r P max max P Q T Q T Q T Q T Q T Q T -
σΟʔϓϥʔχϯάͷ Image creation ग़ॴɿhttp://gigazine.net/news/20150707-deep-dreaming-fear/ ɹɹɹhttps://arxiv.org/pdf/1508.06576v2.pdf Figure 2: Images that
combine the content of a photograph with the style of several well-known artworks. The images were created by finding an image that simultaneously matches the content representation of the photograph and the style representation of the artwork (see Methods). The original photograph depicting the Neckarfront in T¨ ubingen, Germany, is shown in A (Photo: -
σΟʔϓϥʔχϯάͷ׆༂ σΟʔϓϥʔχϯά͋ΒΏΔʹਐग़ͯͦ͠ͷҖྗΛൃش͍ͯ͠Δ • ը૾ೝࣝɺಈըੳ • ࣗಈӡస • Իೝࣝٴͼ༁ •
ࣗવݴޠॲཧ • ਪનγεςϜ • ը૾ੜɺԻָੜ • ήʔϜૢ࡞ɺϩϘοτ੍ޚ • … ͦͦσΟʔϓϥʔχϯάͷ࣮ମԿͳͷ͔ʁ -
σΟʔϓϥʔχϯάͷఆٛ σΟʔϓϥʔχϯά ਂ͍ (Neural Network) (ػց) ֶश ԿΛͲͷΑ͏ʹֶश͢Δͷ͔ʁ
※ͦͦػցֶशͱԿ͔ʹؔͯ͠ ୈҰճษڧձͷࢿྉΛࢀর https://speakerdeck.com/diracdiego/pythondedong-kasitexue- buji-jie-xue-xi-ru-men-di-hui-ji-jie-xue-xi-falseli-jie Α͘ԼਤͷΑ͏ͳֆ͕ඳ͔ΕΔ͕ ͜ΕԿΛද͍ͯ͠Δͷ͔ʁ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ -
Neural Network (NN) ͱԿ͔ • ͷਆܦܥΛͨ͠Ϟσϧ ݸʑͷχϡʔϩϯ୯७ͳֶతϞσϧͰදݱՄೳ ͜ͷχϡʔϩϯΛେྔʹͭͳ͗߹Θͤͨͷ͕ NN
ͱͳΔ ग़ॴɿhttps://openclipart.org/detail/245373/neuron ೖྗ1 ೖྗ2 ग़ྗ ᮢ -
Neural Network (NN) ͱԿ͔ • େྔͷϞσϧ͕ଘࡏ ༷ʑͳಈػͰൃలܥ͕ߟҊ ਆܦܥͱ͔͚Εͨͷଟ͍ ʢartificial
NN ͱݺΜͩΓ͢Δʣ • ຊษڧձͰͦͷҰ෦Λհ ଟ͘ͷ NN ͷجૅͱͳΔͷΛհ ग़ॴɿhttp://www.asimovinstitute.org/neural-network-zoo/ -
୯७ύʔηϓτϩϯ • ߏ ೖྗͷઢܗ݁߹ͱ׆ੑԽؔͷมͷΈͷγϯϓϧͳͷ • ॴ γϯϓϧ͕ͩ ”ֶश” ͕Մೳ
ʢॏΈΛߋ৽ͯ͠σʔλΛ͢Δઢܗฏ໘Λߏஙʣ • ॴ ઢܗෆՄೳͳʢXORʣղ͚ͳ͍ ೖྗ1 ೖྗn ग़ྗ ᮢ ೖྗi ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ॏΈ1 ॏΈi ॏΈn ೖྗ ᮢ ×× × × × × × × × × ׆ੑԽؔ εςοϓؔ γάϞΠυؔ -
ଟύʔηϓτϩϯ • ߏ ଟͷ୯७ύʔηϓτϩϯΛ֊తʹੵΈॏͶͨͷ • ॴ ेͳͷϊʔυ͕͋ΕҙͷؔΛۙࣅՄೳ ΛੵΈॏͶΔ͜ͱͰೖग़ྗͷෳࡶͳؔΛදݱՄೳ •
ॴ ύϥϝλ͕ଟ͘ɺֶश্͕ख͍͔͘ͳ͍͜ͱ͕ଟ͍ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ೖྗ ӅΕ ΛॏͶͯෳʹ͢Δ͜ͱ͕Ͱ͖Δ ग़ྗ ॏΈ ॏΈ -
ֶशʹ͓͚Δࠔ • ӅΕΛ૿͢ͱֶश͕·ͱʹਐ·ͳ͍ ֶशޡࠩٯ๏ʢৄࡉ࣍અʣͰߦ͏ ͜Ε NN ͷ༧ଌͱ͑ͷ৯͍ҧ͍Λੋਖ਼͢ΔΑ͏ʹॏΈΛߋ৽ ͕ਂ͘ͳΔͱߋ৽ͷӨڹ͕౸ୡͤͣʹֶश͕͏·͍͔͘ͳ͍ ɾ
ɾ ɾ ɾ ɾ ɾ ೖྗ ग़ྗ ɾ ɾ ɾ ɾ ɾ ɾ ༧ଌ ༧ଌͱ͑ͷͣΕमਖ਼͢ΔΑ͏ֶश ೖྗʹ͍ۙͱ͜Ζमਖ਼ͷ৴߸͕ಧ͖ʹ͍͘ ༧ଌͱ͑Λൺֱ -
ࠔͷղܾ ༷ۙʑͳঢ়گͷมԽख๏ͷ։ൃͰલทͷղܾʢৄࡉ࣍અʣ • σʔλྔܭࢉࢿݯͷ૿Ճɺ࠷దԽख๏ͷൃୡ ѻ͑Δσʔλͷྔܭࢉػॲཧੑೳ͕େ෯ʹ૿େ ֶशΛޮతʹਐΊΔ࠷దԽख๏ൃୡ • ࣄલֶशͷಋೖ ॏΈͷॳظͱͯ͠༗༻ͳͷΛ֫ಘ
• ֶश͕ೖྗۙ͘·Ͱ͏·͍͘͘Α͏ʹ׆ੑԽؔΛσβΠϯ Rectified Liner Unit (ReLU) ͷ։ൃ • աֶशͷճආख๏ਖ਼نԽख๏ͷߟҊ dropout όονਖ਼نԽͳͲͰ NN ͷੑೳ্͕ • … -
ͦͯ͠σΟʔϓϥʔχϯά • σΟʔϓϥʔχϯάͷຊ࣭తʹ৽͍͠ͱ͜ΖͲ͔͜ʁ ࣮ਅ৽͍͜͠ͱ͋·Γͳ͍ʢReLU͚ͩͱ͍͏ਓ͍Δʣ લทͷΑ͏ͳൃల͕Έ߹Θͬͨ݁͞Ռ্ख͍͘͘Α͏ʹͳͬͨ • ػ͕ख़ͯ͠ ILSVRC 2012
Ͱ࣮݁ σΟʔϓϥʔχϯάΛΘͳ͍ख๏ΑΓ 10% Ҏ্ਫ਼͕ߴ͔ͬͨ ˞࣮Ԡ༻ͰઌʹՌΛग़͍ͯ͠ΔͷԻೝࣝͩͬͨΓ͢Δ • ϥΠϒϥϦͷॆ࣮ͰҰؾʹ͕ͬͨ Caffe Tensorflow ͳͲͷొͰ୭Ͱѻ͑ΔΑ͏ʹͳͬͨ ಛʹඇߏԽσʔλʢը૾ԻςΩετʣʹର༷ͯ͠ʑͳԠ༻ GitHub ͷ·ͱΊใɿ https://github.com/ChristosChristofidis/awesome-deep-learning -
σΟʔϓϥʔχϯάͷఆٛ σΟʔϓϥʔχϯά ਂ͍ (Neural Network) (ػց) ֶश NN ͷॏΈͷֶश͍͠
ֶशΛదʹ࣮ߦ͢ΔͨΊ༷ʑͳख๏͕ߟҊ • େྔͷσʔλΛ༻ • ࠷దԽख๏ͷൃୡ • ࣄલֶश • ReLU ͳͲͷ৽͍͠׆ੑԽؔͷߟҊ • dropout όονਖ਼ଇԽʹΑΔੑೳ্ ӅΕ͕2Ҏ্ͷ NN NN ύʔηϓτϩϯΛੵΈ্͛ͨͷ ֶशͰॏΈΛߋ৽ͯ͠༧ଌਫ਼Λ্ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ -
σΟʔϓϥʔχϯάͷੑ࣭ σΟʔϓϥʔχϯάͷಛච͖͢ੑ࣭Λྻڍ • େྔͷύϥϝλΛେྔͷσʔλ͔Βֶश ֶशσʔλΑΓύϥϝλͷํ͕ଟ͔ͬͨΓ͢Δ • ࢄදݱͱଟߏʹΑΔߴ͍දݱྗͷ֫ಘ ؍ଌͨ͠σʔλͷຊ࣭తͳಛΛଊ͑Δ͜ͱ͕Մೳ •
ಛྔͷࣗಈநग़ ػցֶशʹ͓͚Δੳϑϩʔʹ͓͚ΔύϥμΠϜγϑτ • ಛఆͷλεΫͰߴ͍ੑೳ ಛʹඇߏԽσʔλΛѻ͏ը૾ੳɺԻೝࣝɺࣗવݴޠॲཧͳͲ -
σΟʔϓϥʔχϯάͷੑ࣭ • େྔͷύϥϝλΛେྔͷσʔλ͔Βֶश ࠷దԽରͱͳΔύϥϝλʢଞͷػցֶशख๏ͱൺΔͱʣଟ͍ ɹ→ 100ສݸҎ্ͷύϥϝλͱͳΔ͜ͱ… ɹɹ cf.) ਓؒͷେൽ࣭ͷਆܦࡉ๔100ԯݸҎ্
r net with this 3-layer bottleneck block, resulting in yer ResNet (Table 1). We use option B for increasing ions. This model has 3.8 billion FLOPs. -layer and 152-layer ResNets: We construct 101- nd 152-layer ResNets by using more 3-layer blocks 1). Remarkably, although the depth is significantly ed, the 152-layer ResNet (11.3 billion FLOPs) still wer complexity than VGG-16/19 nets (15.3/19.6 bil- OPs). 50/101/152-layer ResNets are more accurate than layer ones by considerable margins (Table 3 and 4). not observe the degradation problem and thus en- nificant accuracy gains from considerably increased The benefits of depth are witnessed for all evaluation (Table 3 and 4). arisons with State-of-the-art Methods. In Table 4 mpare with the previous best single-model results. seline 34-layer ResNets have achieved very compet- curacy. Our 152-layer ResNet has a single-model alidation error of 4.49%. This single-model result orms all previous ensemble results (Table 5). We e six models of different depth to form an ensemble method error (%) Maxout [10] 9.38 NIN [25] 8.81 DSN [24] 8.22 # layers # params FitNet [35] 19 2.5M 8.39 Highway [42, 43] 19 2.3M 7.54 (7.72±0.16) Highway [42, 43] 32 1.25M 8.80 ResNet 20 0.27M 8.75 ResNet 32 0.46M 7.51 ResNet 44 0.66M 7.17 ResNet 56 0.85M 6.97 ResNet 110 1.7M 6.43 (6.61±0.16) ResNet 1202 19.4M 7.93 Table 6. Classification error on the CIFAR-10 test set. All meth- ods are with data augmentation. For ResNet-110, we run it 5 times and show “best (mean±std)” as in [43]. so our residual models have exactly the same depth, width, and number of parameters as the plain counterparts. We use a weight decay of 0.0001 and momentum of 0.9, ग़ॴɿhttps://www.robots.ox.ac.uk/~vgg/rg/papers/deepres.pdf 110Ͱ170ສύϥϝλʂ -
σΟʔϓϥʔχϯάͷੑ࣭ • େྔͷύϥϝλΛେྔͷσʔλ͔Βֶश ࠷దԽରͱͳΔύϥϝλʢଞͷػցֶशख๏ͱൺΔͱʣଟ͍ ɹ→ 100ສݸҎ্ͷύϥϝλͱͳΔ͜ͱ… ͜ΕΛֶश͢ΔͨΊʹେྔͷը૾σʔλΛ༻͢Δ ɹ→ ImageNet
(http://www.image-net.org/) Ͱެ։͍ͯ͠Δը૾ 1400ສຕ ɹ→ ͜ͷେྔσʔλͷֶशͷͨΊʹ GPU ͕ඞਢ ग़ॴɿhttp://static.googleusercontent.com/media/research.google.com/ja//archive/unsupervised_icml2012.pdf Building high-level features using large-scale unsupervised the cortex. They also demonstrate that convolutional DBNs (Lee et al., 2009), trained on aligned images of faces, can learn a face detector. This result is inter- esting, but unfortunately requires a certain degree of supervision during dataset construction: their training images (i.e., Caltech 101 images) are aligned, homoge- neous and belong to one selected category. Figure 1. The architecture and parameters in one layer of our network. The overall network replicates this structure three times. For simplicity, the images are in 1D. logical and computation Lyu & Simoncelli, 2008; As mentioned above, cen of local connectivity bet ments, the first sublayer pixels and the second su lapping neighborhoods o The neurons in the first su input channels (or maps second sublayer connect (or map).3 While the firs responses, the pooling lay the sum of the squares o is known as L2 pooling. Our style of stacking ules, switching betwe ance layers, is remini HMAX (Fukushima & M 1998; Riesenhuber & Po been argued to be an a brain (DiCarlo et al., 201 Although we use local not convolutional: the across different location a stark difference betw vious work (LeCun et a Building high-level features using large-scale unsupervised learning and minimum activation values, then picked 20 equally spaced thresholds in between. The reported accuracy is the best classification accuracy among 20 thresholds. 4.3. Recognition Surprisingly, the best neuron in the network performs very well in recognizing faces, despite the fact that no supervisory signals were given during training. The best neuron in the network achieves 81.7% accuracy in detecting faces. There are 13,026 faces in the test set, so guessing all negative only achieves 64.8%. The best neuron in a one-layered network only achieves 71% ac- curacy while best linear filter, selected among 100,000 filters sampled randomly from the training set, only achieves 74%. To understand their contribution, we removed the lo- cal contrast normalization sublayers and trained the network again. Results show that the accuracy of best neuron drops to 78.5%. This agrees with pre- vious study showing the importance of local contrast normalization (Jarrett et al., 2009). We visualize histograms of activation values for face images and random images in Figure 2. It can be seen, even with exclusively unlabeled data, the neuron learns to differentiate between faces and random distractors. Specifically, when we give a face as an input image, the neuron tends to output value larger than the threshold, 0. In contrast, if we give a random image as an input image, the neuron tends to output value less than 0. Figure 2. Histograms of faces (red) vs. no faces (blue). The test set is subsampled such that the ratio between faces and no faces is one. tested neuron, by solving: x∗ = arg min x f(x; W, H), subject to ||x||2 = 1. Here, f(x; W, H) is the output of the tested neuron given learned parameters W, H and input x. In our experiments, this constraint optimization problem is solved by projected gradient descent with line search. These visualization methods have complementary strengths and weaknesses. For instance, visualizing the most responsive stimuli may suffer from fitting to noise. On the other hand, the numerical optimization approach can be susceptible to local minima. Results, shown in Figure 3, confirm that the tested neuron in- deed learns the concept of faces. Figure 3. Top: Top 48 stimuli of the best neuron from the test set. Bottom: The optimal stimulus according to nu- merical constraint optimization. 4.5. Invariance properties GoogleͷೣͷจͰ 1000ສຕͷ Youtube ը૾Λ༻ -
σΟʔϓϥʔχϯάͷੑ࣭ • ࢄදݱͱଟߏʹΑΔߴ͍දݱྗͷ֫ಘ ࢄදݱͰσʔλΛදݱ ɹ→ ϞσϧͷදݱྗʢσʔλۭؒΛׂ͢Δೳྗʣ͕ࢦతʹ্ঢ ɹɹ Ex.) 3࣍ݩͷόΠφϦมͰͷදݱྗ
Symbolic rep. Distributed rep. 3ύλʔϯΛදݱ 2 ύλʔϯΛදݱ i j k i, j, k = {0,1} (1,1,1) (1,1,0) (0,0,1) (1,0,1) (0,1,1) (1,0,0) (0,1,0) 3 -
σΟʔϓϥʔχϯάͷੑ࣭ • ࢄදݱͱଟߏʹΑΔߴ͍දݱྗͷ֫ಘ ࢄදݱͰσʔλΛදݱ ɹ→ ϞσϧͷදݱྗʢσʔλۭؒΛׂ͢Δೳྗʣ͕ࢦతʹ্ঢ ଟߏͰσʔλΛදݱ ɹ→ ஈ֊తʹදݱΛֶशͦ͠ͷΈ߹ΘͤͰෳࡶͳදݱ͕Մೳ
ग़ॴɿhttps://devblogs.nvidia.com/parallelforall/accelerate-machine-learning-cudnn-deep-neural-network-library/ -
σΟʔϓϥʔχϯάͷੑ࣭ • ಛྔͷࣗಈநग़ લทͷදݱֶशʹΑΓσʔλͷಛྔΛࣗಈతʹநग़Մೳ ɹ→ ͜Ε·Ͱಛྔ࡞͕ॏཁͩͬͨ ɹɹ ಛʹඇߏԽσʔλʹରͯ͠ݦஶ ɹ→
σΟʔϓϥʔχϯάͰ͜ͷεςοϓ͕͍Βͳ͍ʢগͳ͍ʣ ɹɹ ͔͠ैདྷख๏ΑΓਫ਼͕ߴ͍ -
σΟʔϓϥʔχϯάͷੑ࣭ • ಛఆͷλεΫͰߴ͍ੑೳ ಛྔ࡞͕͍͠ඇߏԽσʔλʹରͯ͠ಛʹҖྗΛൃش λεΫΛݶఆ͢ΕਓؒΛ্ճΔੑೳΛ࣋ͭͷଟ͘ग़ݱ ɹ→ ը૾ੳ ɹ→ Իೝࣝ
ɹ→ ࣗવݴޠॲཧ ɹ→ ήʔϜૢ࡞ϩϘοτ੍ޚ ɹ→ … -
ཧతجૅ ͜ͷઅͰલઅʹొٕͨ͠ज़త༰Λৄ͘͠આ໌͢Δ શ෦આ໌͖͠Εͳ͍ͷͰԼهτϐοΫΛऔΓ্͛Δ • ୯७ύʔηϓτϩϯͷֶश • ଟύʔηϓτϩϯͷֶशํ๏ͱޡࠩٯ๏ • ࣄલֶश
• ׆ੑԽؔ Rectified Linear Unit (ReLU) • dropout (ਖ਼ଇԽ) • දݱֶशͱͯ͠ͷଆ໘ • … -
୯७ύʔηϓτϩϯͷֶश ༧ଌͱ͕͑ҟͳΔͷ͔Βࣝผฏ໘Λߋ৽͍ͯ͘͠ Ex.) ೖྗม͕ೋ࣍ݩͰೋผͷ߹ ֶशͷՄࢹԽͳͲʹ http://playground.tensorflow.org/ ͕༗༻ ύʔηϓτϩϯͷֶशઢܗՄೳͳΒ༗ݶճͰऩଋ https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-867-machine-learning-fall-2006/lecture-notes/lec2.pdf
͔͠͠ઢܗෆՄೳղ͘͜ͱ͕Ͱ͖ͳ͍ × × × × × × × × ߋ৽ -
ޡࠩٯ๏ ଟύʔηϓτϩϯͷֶशํ๏ͰσΟʔϓϥʔχϯάֶशͷجૅ ୯७ύʔηϓτϩϯͱಉ͡Α͏ʹ༧ଌͱ͑ͷҧ͍Λͱʹֶश͢Δ͕ɺ ͕ଟ͍ͷͰग़ྗ͔Βॱʑʹ͍ͤͯ͘͞ ɾ ɾ ɾ ɾ ɾ
ɾ ɾ ɾ ɾ ɾ ɾ ɾ ೖྗ ग़ྗ ༧ଌͱ͑ͷͣΕΛੋਖ਼͢ΔͨΊͷॏΈߋ৽ͷ৴߸ΛඥΛҾͬுͬͯ͑ΔΠϝʔδ ઢ͕ଠ͍΄ͲॏΈͷߋ৽ྔ͕େ͖͍͜ͱΛදݱ͍ͯ͠Δ → Ͳ͏ͯ͠ೖྗʹ͍ۙ෦৴߸͕ऑ͘ͳͬͯ͠·͏ʢޯফࣦʣ -
ޡࠩٯ๏ ଟύʔηϓτϩϯͷֶशํ๏ͰσΟʔϓϥʔχϯάֶशͷجૅ ୯७ύʔηϓτϩϯͱಉ͡Α͏ʹ༧ଌͱ͑ͷҧ͍Λͱʹֶश͢Δ͕ɺ ͕ଟ͍ͷͰग़ྗ͔Βॱʑʹ͍ͤͯ͘͞ ɾ ɾ ɾ ɾ ɾ
ɾ ɾ ɾ ɾ ɾ ɾ ɾ ೖྗ ग़ྗ ୯७ύʔηϓτϩϯͱҟͳΓઢܗෆՄೳղ͘͜ͱ͕Մೳ ͜Ε http://playground.tensorflow.org/ Ͱ֬ೝՄೳ -
ޡࠩٯ๏ ଟύʔηϓτϩϯͷֶशํ๏ͰσΟʔϓϥʔχϯάֶशͷجૅ ୯७ύʔηϓτϩϯͱಉ͡Α͏ʹ༧ଌͱ͑ͷҧ͍Λͱʹֶश͢Δ͕ɺ ͕ଟ͍ͷͰग़ྗ͔Βॱʑʹ͍ͤͯ͘͞ ɾ ɾ ɾ ɾ ɾ
ɾ ɾ ɾ ɾ ɾ ɾ ɾ ೖྗ ग़ྗ ޡࠩٯ๏େҬత࠷దղʹͨͲΓண͚ͣہॴత࠷దղʹḷΓͭ͘ͷͰ͋Δ ※େҬత࠷దղΛٻΊΔͷ NP ࠔ -
ଟύʔηϓτϩϯͷදݱྗ ेͳͷӅΕ͕Ұ͋Εҙͷਫ਼ͰҙͷؔΛۙࣅͰ͖Δ ʢສೳੑఆཧɿhttp://deeplearning.cs.cmu.edu/pdfs/Cybenko.pdfʣ ෦తͳεςοϓؔͷΑ͏ͳͷΛେྔʹΈ߹ΘͤΔΠϝʔδ ࢹ֮తͳղઆαΠτͪ͜Βɿhttp://neuralnetworksanddeeplearning.com/chap4.html ɾ ɾ ɾ ग़ྗ
ೖྗ Ex.) ೖྗͱग़ྗ ͕Ұ࣍ݩͷ߹ ͨͩ͠લड़ͷΑ͏ʹӅΕͷΛ૿ͨ͠ํ͕গͳ͍ύϥϝλͰࡁΉ ʢͦͯ͠ஈ֊తͳಛྔநग़Մೳʣ -
ࣄલֶश తͱ͢Δผճؼʹର͢Δޡࠩٯ๏Λߦ͏લͷֶश େ͖͚ͯ͘Լهͷೋͭͷύλʔϯ͕͋Δ • ڭࢣແ͠ࣄલֶश ॳظͷσΟʔϓϥʔχϯάޭΛݗҾ ҰຖͷֶशͰॏΈͷॳظΛ֫ಘ͍ͯ͘͠ ͨͩ͠ݱࡏࣗવݴޠॲཧҎ֎Ͱ͋·ΓΘΕ͍ͯͳ͍ •
ڭࢣ༗Γࣄલֶश ը૾ੳʹ͓͚Δ pre-trained Ϟσϧ͕ݦஶͳྫ େྔͷσʔλ͔Βීวతͳදݱֶ͕शͰ͖͍ͯΕԿʹͰ͑Δ -
ڭࢣແ͠ࣄલֶश ҰຖͷֶशͰॏΈΛ֫ಘ (ϊΠζΛՃ͑ͨೖྗͰܭࢉͨ݁͠Ռ) = (ݩͷೖग़ྗ)ͱͳΔΑ͏ֶश ɾ ɾ ɾ ɾ
ɾ ɾ ೖྗ x ɾ ɾ ɾ ग़ྗ x’’ ϊΠζೖྗ x’ ӅΕ h’ x’’ → x -
ڭࢣແ͠ࣄલֶश ҰຖͷֶशͰॏΈΛ֫ಘ (ϊΠζΛՃ͑ͨೖྗͰܭࢉͨ݁͠Ռ) = (ݩͷೖग़ྗ)ͱͳΔΑ͏ֶश ɾ ɾ ɾ ɾ
ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ೖྗ x ϊΠζೖྗ x’ ӅΕ h’ ӅΕ h’ ग़ྗ h’’ h’’ → h 2 -
ڭࢣແ͠ࣄલֶश ҰຖͷֶशͰॏΈΛ֫ಘ (ϊΠζΛՃ͑ͨೖྗͰܭࢉͨ݁͠Ռ) = (ݩͷೖग़ྗ)ͱͳΔΑ͏ֶश ɾ ɾ ɾ ɾ
ɾ ɾ ɾ ɾ ɾ ग़ྗ y ೖྗ x ӅΕ h ӅΕ h2 ڭࢣແ͠ࣄલֶशͰ֫ಘͨ͠ॏΈޡࠩٯ๏ʹ͓͚Δྑ͍ॳظ ۩ମྫ http://jmlr.org/papers/volume11/erhan10a/erhan10a.pdf ͳͲ ͔͠͠ݱࡏͰࣄલֶश͕ඞཁͳ͍ϞσϧʢCNNʣͳͲߟҊ͞Εɺ ڭࢣແ͠ࣄલֶशΛ͏ͷࣗવݴޠॲཧ͘Β͍ -
ڭࢣ༗Γࣄલֶश తͱ͢ΔσʔληοτͱผͷσʔλͰֶश͓ͯ͘͜͠ͱ సҠֶशʢσΟʔϓϥʔχϯάͱಠཱͷ֓೦ʣͱ͍͏ݺͼํ͕Ұൠత ը૾Ͱͷྫ͕ݦஶ ɹ→ େྔσʔλ͔ΒΤοδͦͷ߹ͤύλʔϯΛֶशͰ͖͍ͯΕ ɹ ɹతͷσʔληοτʹରͯ͠༗ޮͩͱߟ͑ΒΕΔ ࣮ࡍʹ
ImageNet ͷσʔλΛ༻͍ͨ pre-trained Ϟσϧ͕Α͘ΘΕΔ Caffe model zoo (http://caffe.berkeleyvision.org/model_zoo.html) ͳͲ͕༗໊ pre-trained Ϟσϧ1000ΫϥεྨثͰͦͷޙతͷྨثʹ fine-tuning σʔλ͔ΒಛతͳදݱΛֶशͰ͖Εࣄલֶश༗༻ -
׆ੑԽؔ ReLU Α͘ΘΕ͍ͯͨγάϞΠυؔͷํͰޯ͕ग़ʹ͍͘ ɹ→ ֶश͕ਐ·ͳ͘ͳͬͯ͠·͏ ޯ͕ग़͍͢Α͏ʹؔΛઃܭʢγϯϓϧ͕ͩڧྗʣ ͜ͷลΓͷྖҬ͖͕ খֶ͘͞श͕ਐΈʹ͍͘ ͖͕ҰఆͳͷͰ
ֶश͕ਐΈ͍͢ ReLU ෳͷઢܗؔͷ Έ߹Θͤ Maxout -
dropout ӅΕͷϊʔυΛϥϯμϜʹऔΓআ͘͜ͱͰਖ਼ଇԽͷޮՌ͕ಘΒΕΔ γϯϓϧ͕ͩڧྗͳҖྗΛൃش͢Δख๏ https://www.cs.toronto.edu/~hinton/absps/JMLRdropout.pdf ʢաֶशΛ͙ʣ ɾ ɾ ɾ ɾ
ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ Dropout, on the other hand, prevents overfitting, even in this case. It does not even need early stopping. Goodfellow et al. (2013) showed that results can be further improved to 0.94% by replacing ReLU units with maxout units. All dropout nets use p = 0.5 for hidden units and p = 0.8 for input units. More experimental details can be found in Appendix B.1. Dropout nets pretrained with stacks of RBMs and Deep Boltzmann Machines also give improvements as shown in Table 2. DBM—pretrained dropout nets achieve a test error of 0.79% which is the best performance ever reported for the permutation invariant setting. We note that it possible to obtain better results by using 2-D spatial information and augmenting the training set with distorted versions of images from the standard training set. We demonstrate the e↵ectiveness of dropout in that setting on more interesting data sets. With dropout Without dropout @ R @ @ R In order to test the robustness of dropout, classification experiments were done with networks of many di↵erent ar- chitectures keeping all hyperparameters, in- cluding p, fixed. Figure 4 shows the test error rates obtained for these di↵erent ar- chitectures as training progresses. The same architectures trained with and with- out dropout have drastically di↵erent test errors as seen as by the two separate clus- ters of trajectories. Dropout gives a huge improvement across all architectures, with- out using hyperparameters that were tuned specifically for each architecture. -
දݱֶशͱͯ͠ͷଆ໘ σΟʔϓϥʔχϯά͕ࣗಈ֫ಘ͢Δදݱʹؔͯ͠໌֬ͳཧతମܥ͕ ଘࡏ͢ΔΘ͚Ͱͳ͍͕ɺඇৗʹڵຯਂ͍͕ଟ͍ ग़ॴɿhttp://nlp.stanford.edu/pubs/SocherGanjooManningNg_NIPS2013.pdf ଟ༷ମ্ͷϚοϐϯά Ϛοϐϯάॴ͕៉ྷʹ͔Ε͍ͯΔΠϝʔδ Manifold of known
classes auto horse dog truck New test image from unknown class cat Training images Figure 1: Overview of our cross-modal zero-shot model. We first map each new testing image into a lower dimensional semantic word vector space. Then, we determine whether it is on the manifold of seen images. If the image is ‘novel’, meaning not on the manifold, we classify it with the help of -
ͦͷଞͷτϐοΫ հ͖͠Ε͍ͯͳ͍τϐοΫͱͯଟ͍ • తؔੑೳࢦඪͷઃܭ • σʔληοτʹର͢ΔॲཧʢaugmentationͳͲʣ • ֶशʹ͓͚ΔϋΠύʔύϥϝλͷऔΓѻ͍ •
σΟʔϓϥʔχϯάͷֶशʹ͓͚Δ࠷దԽख๏ʢadamͳͲʣ • όονਖ਼نԽͳͲͷֶश࣌ͷ • ੜϞσϧͷʢGenerative Adversarial NetworkͳͲʣ • GPUΛ༻͍ͨॲཧͷඞཁੑͱੑೳ • σΟʔϓϥʔχϯά͕ѻ͑ΔϥΠϒϥϦ • … ڵຯ͕͋Δํͥͻࣗ͝ͰௐͯΈ͍ͯͩ͘͞ʂ -
۩ମతͳ NN ͷϞσϧ NN ͷجૅͱͳΔ෦લઅ·Ͱʹݟͨ௨Γ͕ͩɺ ߴ͍ੑೳΛൃش͢ΔͨΊʹతʹԠͨ͡ಛผͳߏͷϞσϧ͕ඞཁ ͜͜ͰಛʹΑ͘ΘΕΔೋͭͷϞσϧΛհ •
Convolutional Neural Network (CNNɿΈࠐΈ NN) ը૾ੳͰΑ͘༻͍ΒΕΔϞσϧ ը૾தͷΦϒδΣΫτʹର͢ΔزԿֶతมʹରͯ͠ڧ͍ Ex.) ը૾ͷࠨ্ʹ͍ࣸͬͯͯӈԼʹ͍ࣸͬͯͯࣝผՄೳ • Recurrent Neural Network (RNNɿ࠶ؼܕ NN) ࣗવݴޠॲཧͳͲͰΑ͘༻͍ΒΕΔϞσϧ ॱ൪ʢ࣌ؒॱংʣ͕ॏཁʹͳΔσʔλʹରͯ͠ڧ͍ Ex.) “ࢲ” → “͕” ”” ͕དྷ͍͢͜ͱΛ༧ଌՄೳ -
CNN ͷϞνϕʔγϣϯ ը૾ͷྫΛߟ͑Δ ը૾தͷΦϒδΣΫτͲ͜ʹ͍ࣸͬͯͯಉ͡ͷͱೝ͍ࣝͨ͠ ग़ॴɿhttp://yann.lecun.com/exdb/mnist/ ҐஔҟͳΔ͕ ಉ͡ࣈͷ ”4” ਓؒͷͰݟΕ໌Β͔ʹಉ͕ͩ͡ɺσʔλͱͯ݁͠ߏҟͳΔ
ʢϐΫηϧΛ࣋ͭॴ͕ҟͳΔͨΊʣ ͜Ε·Ͱʹݟͨ NN ͰಉҰͱผ͢Δͷ؆୯Ͱͳ͍ ɹ→ ฏߦҠಈճసͷΑ͏ͳزԿֶมʹڧ͍ϞσϧΛ࡞Γ͍ͨ -
CNN ͷߏ CNN ͷه೦ൾతϞσϧ ग़ॴɿhttp://yann.lecun.com/exdb/publis/pdf/lecun-01a.pdf INPUT 32x32 Convolutions Subsampling
Convolutions C1: feature maps 6@28x28 Subsampling S2: f. maps 6@14x14 S4: f. maps 16@5x5 C5: layer 120 C3: f. maps 16@10x10 F6: layer 84 Full connection Full connection Gaussian connections OUTPUT 10 Full connection (Fully Connected) ͜Ε·Ͱʹݟ͖ͯͨී௨ͷॏΈ ৽͘͠ొͨ͠ͷԼهೋͭ • ConvolutionsɿΈࠐΈ • Subsampling (ݱͰ Pooling)ɿϓʔϦϯά -
ΈࠐΈ ฏߦҠಈͳͲΛͤͯ͞ೝࣝΛͤ͞ΔͨΊʹɺ ӅΕϊʔυ͕ہॴతʹԠ͢ΔΑ͏ͳߏ͕ඞཁʢہॴड༰ʣ ࠨ্ͷӅΕϊʔυݩը૾ͷࠨ্ͷۣܗͷΈʹԠ ӈԼͷӅΕϊʔυݩը૾ͷӈԼͷۣܗͷΈʹԠ ॏΈΛֶश͢Δ͜ͱͰը૾ͷہॴతಛΛநग़ ɹ→ ͜ͷॏΈಛநग़ͷϑΟϧλͱͯ͠ߟ͑ΒΕΔ ͞Βʹ͜ͷॏΈӅΕϊʔυؒͰڞ༗͢Δ
ɹ→ ฏߦҠಈͳͲʹରͯ͠ߴ͍ੑೳΛൃش ͜ͷॏΈޡࠩٯ๏Ͱֶश͢Δ͜ͱ͕Մೳ ࣮ࡍͷྫͰRGBͷ֤৭ʹෳݸͷϑΟϧλΛ४උֶͯ͠श͢Δ ʢϑΟϧλͷαΠζͳͲ͕ύϥϝλͱͳΔʣ -
ϓʔϦϯά ΈࠐΈͰऔಘͨ͠ಛը૾Λѹॖ͢Δ ͜ͷૢ࡞ͰزԿֶมʹڧ͘ͳΔ͜ͱʹՃ͑σʔλྔݮΒͤΔ ܾΊΒΕͨྖҬͰͷ࠷େΛऔΔ max pooling ͕࠷Α͘ΘΕΔ ʢͦͷଞʹฏۉΛऔΔ average
pooling ͳͲ͋Δʣ ग़ॴɿhttps://cs231n.github.io/convolutional-networks/ -
RNN ͷϞνϕʔγϣϯ ʢ࣌ؒతʣॱং͕ॏཁʹͳΔσʔλଟ͍ • จষ • Իָ • גՁ
• … ͜ΕΒΛѻ͏ʹ໌ࣔతʹ࣌ؒॱংΛೖΕͨߏΛಋೖ͢Δඞཁ༗ ͜Ε·Ͱʹݟͨ NN Ͱ͍͠ ɹ→ ࣌ؒॱংΛ໌ࣔతʹؚΜͩϞσϧ͕Λ࡞Γ͍ͨ ɹɹ ʢߋʹจষͷΑ͏ʹ͕͞ՄมͰ͋ͬͯѻ͑ΔϞσϧʣ -
RNN ͷߏ ࣌ࠁ t-1 ͷӅΕͷ͕࣌ࠁ t ͷೖྗʹΘΕΔߏΛಋೖ͢Δ ɾ ɾ
ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ ɾ xt yt ht ࣌ؒํʹల։͢Δ͜ͱͰ௨ৗͷଟ NN ͱͯ͠ղऍͰ͖Δ ɾɾɾɾɾɾ ɾɾɾɾɾɾ ɾɾɾ ɾɾɾɾɾɾ ɾɾɾɾɾɾ ɾɾɾ ɾɾɾɾɾɾ ɾɾɾɾɾɾ ɾɾɾ ɾɾɾ time x1 y1 h1 t = 1 t = 2 t = T x2 y2 h2 xT yT hT Ex.) ࢲ ɻ ɾ ɾ ɾ -
࣌ؒํͷޡࠩٯ๏ ల։ͨ͠ܗΛݟΕޡࠩٯ๏Λద༻Ͱ͖Δ͜ͱ͕͔Δ ɾɾɾɾɾɾ ɾɾɾɾɾɾ ɾɾɾ ɾɾɾɾɾɾ ɾɾɾɾɾɾ ɾɾɾ ɾɾɾɾɾɾ
ɾɾɾɾɾɾ ɾɾɾ ɾɾɾ x1 y1 h1 x2 y2 h2 xT yT hT ͜ΕͰݪཧతʹֶशՄೳ ඞཁͳใؒͷ࣌ؒతΪϟοϓ͕খ͍͞߹͜ΕͰ͏·͍͘͘ Ex.) ۭ͕੨͘Ε͍ͯΔ “ۭ”, “͕”, ”੨͘” ͱ͍͏ۙ͘ͷใ͔Β “Ε” ͱ͍͏୯ޠ͕དྷΔ͜ͱ༧ଌ͍͢͠ -
࣌ؒํͷޡࠩٯ๏ ల։ͨ͠ܗΛݟΕޡࠩٯ๏Λద༻Ͱ͖Δ͜ͱ͕͔Δ ɾɾɾɾɾɾ ɾɾɾɾɾɾ ɾɾɾ ɾɾɾɾɾɾ ɾɾɾɾɾɾ ɾɾɾ ɾɾɾɾɾɾ
ɾɾɾɾɾɾ ɾɾɾ ɾɾɾ x1 y1 h1 x2 y2 h2 xT yT hT ඞཁͳใؒͷ࣌ؒతΪϟοϓ͕େ͖͘ͳΔͱɺ ޡ͕ࠩ͢Δܦ࿏͕͘ͳΓޯͷ͕ੜͯ͡͠·͏ • ޯফࣦ • ޯരൃ ɹ→ ͜ΕΒͷΛղܾ͠ेͳ “هԱ” ͕Ͱ͖ΔͷΛ࡞Γ͍ͨ -
Long Short Term Memory (LSTM) ήʔτͱ͍͏֓೦Λಋೖ͠ඞཁͳใΛબతʹબผ xt-1 yt-1 LSTM
xt yt xt+1 yt+1 ct-1 yt-1 xt yt ct yt tanh sigm tanh ੵ ੵ ੵ sigm sigm ٫ ήʔτ ೖྗ ήʔτ ग़ྗ ήʔτ ෦ͷϝϞϦͷঢ়ଶͷ{ΕΔ, ॻ͑Δ, ग़ྗ} Λ੍ޚ͢Δ͜ͱͰޡࠩ৴߸Λదʹͤ͞Δ LSTM LSTM -
RNN ͜͜Ͱհͨ͠ͷ࠷جຊతͳͷͰଟ͘ͷϞσϧ͕ఏҊ ʢ https://github.com/kjw0612/awesome-rnn ͳͲʣ ࣗવݴޠͷྖҬͰಛʹޭΛऩΊ͍ͯΔ ԻָͷੜͳͲ࣮ݱʢ https://maraoz.com/2016/02/02/abc-rnn/ ͳͲʣ
CNN ͱͷ߹ͤͳͲΜʹݚڀ͞Ε͍ͯΔ ग़ॴɿhttps://arxiv.org/pdf/1411.4555.pdf ɹɹ https://arxiv.org/pdf/1604.04573.pdf al Image Caption Generator Samy Bengio Google [email protected] Dumitru Erhan Google [email protected] A group of people shopping at an outdoor market. ! There are many vegetables at the fruit stand. Vision! Deep CNN Language ! Generating! RNN Figure 1. NIC, our model, is based end-to-end on a neural net- work consisting of a vision CNN followed by a language gener- ating RNN. It generates complete sentences in natural language from an input image, as shown on the example above. CNN-RNN: A Unified Framework for Multi-label Image Classification Jiang Wang1 Yi Yang1 Junhua Mao2 Zhiheng Huang3∗ Chang Huang4∗ Wei Xu1 Baidu Research 2University of California at Los Angles 3Facebook Speech 4 Horizon Robotics Abstract While deep convolutional neural networks (CNNs) have own a great success in single-label image classification, s important to note that real world images generally con- n multiple labels, which could correspond to different jects, scenes, actions and attributes in an image. Tradi- nal approaches to multi-label image classification learn dependent classifiers for each category and employ rank- g or thresholding on the classification results. These tech- ques, although working well, fail to explicitly exploit the Airplane Great Pyrenees Archery Sky, Grass, Runway Dog, Person, Room Person, Hat, Nike Figure 1. We show three images randomly selected from ImageNet 2012 classification dataset. The second row shows their corre- sponding label annotations. For each image, there is only one la- bel (i.e. Airplane, Great Pyrenees, Archery) annotated in the Im- -
·ͱΊ • σΟʔϓϥʔχϯάͱԿ͔ େྔσʔλֶश࣌ͷ༷ʑͳͰదʹֶशͰ͖ΔΑ͏ʹͳͬͨ ෳӅΕͷ Neural Netwok ࣗಈతͳಛநग़ಛఆλεΫʹର͢Δѹతͳੑೳ͕ಛత •
σΟʔϓϥʔχϯάͷཧతجૅ ޡࠩٯ๏ʹجֶͮ͘शͱ ReLU dropout ͳͲͷٕज़తൃల • σΟʔϓϥʔχϯάͷ۩ମతϞσϧ ը૾σʔλʹରͯ͠ੑೳΛൃش͢Δ Convolutional Neural Network ॱং͖σʔλʹରͯ͠ੑೳΛൃش͢Δ Recurrent Neural Network