Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
IDEA 2月度 LT資料
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Pirotyyy
February 03, 2024
Technology
60
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
IDEA 2月度 LT資料
Pirotyyy
February 03, 2024
More Decks by Pirotyyy
See All by Pirotyyy
ゼロつく2_輪読.pdf
pirotyyy
0
86
ゼロつく2輪読会 資料 2.1 - 2.4
pirotyyy
0
83
Other Decks in Technology
See All in Technology
⾮構造化データを価値に変える AI エージェント基盤とその組織
ivry_presentationmaterials
0
190
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
1
580
継続的なAIコスト最適化
bgpat
1
340
専門領域のAIをどう評価するか
bengo4com
2
170
「事実」を「計測」して、「解釈」する 〜AWS Lambdaのメモリ最適解の見つけ方〜
maimyyym
0
170
Active Record Connection Adaptersにおける長年の課題に再び取り組む
yahonda
0
160
Code for Security プロジェクト紹介 2026年10月
yu23ki14
0
110
Benchmarking Disaggregated Serving on vLLM + Dynamo with a Real Coding-Agent Workload
nttcom
1
190
Browser Spec: Testing Hotwire with Ruby
takahashim
1
120
1つのリクエストを追って理解する - llm-dのP/D分離
akhino
1
160
会社説明資料
persolserverworks
0
9.8k
Post AI時代のリファクタリング実践記 / Refactoring in the post AI era
kaminashi
1
240
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
28
2.9k
BBQ
matthewcrist
90
10k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
890
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
380
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.4k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
540
Transcript
2024年 2月度 IDEA LT 微分積分いつ使うん? Presented by @pirotyyy
本LTではこの疑問における 「微分」の使い道について紹介します! 微分積分いつ使うん?
Deep Learning 微分積分いつ使うん? 疑問に対する答えは... 「画像分類問題」を例に考えてみる。
画像分類問題とは? 与えられた画像について、それが何かを識別する問題 例)与えらた画像が「犬」、「猫」、「虎」のうちどの画像か識別する ラベル:犬 犬っすね
例)与えらた画像が「犬」、「猫」、「虎」のうちどの画像か識別する 犬 フロー 入力 重みづけ 出力(確率) 20% 100% 猫 60%
0% 虎 20% 0% 出力 目標 誤差 80% 60% 20% ✖️ =
出力 = 入力 ✖️ 重み 入力と出力と重みの関係 犬 20% 100% 猫
60% 0% 虎 20% 0% 出力 目標 誤差 80% 60% 20% 「誤差」をできる限り小さくしたい!! 調整可能 (定数) どうしたら精度が上がるか?? 重みを調整することで、 誤差を小さくすることを考える
1. 重みと誤差の関係を表すグラフを考える 重み 誤 差 現在 小 大 どのように重みを調整すれば良いのか? 現在の点から、誤差を小さくするため
には、どちらの方向にグラフが傾いて いるかを知る必要がある。 つまり、現在の点におけるグラフの接 線の傾きがわかればいい! ん??接線の傾き。。?? 接線
「微分」だ!!!!!!
微分ってなんだっけ? グラフのある点における接線の傾き 例)グラフの例 増える方向 減る方向 x y yを大きくしたい xの値を大きくすればいい yを小さくしたい
xの値を小さくすればいい 接線の増減の仕方と、 元のグラフの増減の仕方は同じ
2. 現在の点における接線の傾きを用いて重みを修正する 重み 誤 差 小 大 現在 このケースでは、 「誤差を減らしたい」ので、
「重み」を小さくすればいい 誤差が減る方向 調整後 接線 例)グラフの例 増える方向 減る方向 x y yを大きくしたい xの値を大きくすればいい yを小さくしたい xの値を小さくすればいい どのように重みを調整すれば良いのか?
まとめ Deep Learning におけるモデルの精 度向上のためには、 「重みを調整して、誤差を減らす」 必要がある。 犬 20% 100%
猫 60% 0% 虎 20% 0% 出力 目標 誤差 80% 60% 20% 重み 誤 差 小 大 現在 誤差が減る方向 調整後 接線 誤差をできる限り 小さくしたい!! 重みと誤差のグラフに 置き換える ちなみに、今回紹介した重みの最適 化手法を「勾配降下法」という。 その過程において、「微分」は非常 に有用なツールとなっている。
EX: ちょっとだけ数学のお話 実際のディープラーニングで用いるのは偏微分(多変数関数が対象) 上の式に従って、行列を用いて並列に計算する。
書籍名: ゼロから作るDeep Learning 出版社: オライリー・ジャパン 著者名: 斎藤康毅(さいとう こうき) さん 参考資料