๐ŸŽค [์‚ผ์‹œ์„ธ์งˆ๋ฌธ] AI - 3

esc247ยท2023๋…„ 6์›” 26์ผ
0

AI

๋ชฉ๋ก ๋ณด๊ธฐ
15/22
post-custom-banner

Q. RNN์˜ ํ•œ๊ณ„๋Š”?

A.

  • ์žฅ๊ธฐ ์˜์กด์„ฑ(Long-term dependency) ๋ฌธ์ œ

    • ๋‹จ๊ธฐ์ ์ธ ์‹œํ€€์Šค ๋ฐ์ดํ„ฐ ์ฒ˜๋ฆฌ์— ๊ฐ•์ ์ด ์žˆ์ง€๋งŒ, ๊ธด ์‹œํ€€์Šค๋ฅผ ์ฒ˜๋ฆฌํ•˜๋Š” ๋ฐ ์–ด๋ ค์›€
    • LSTM(Long Short-Term Memory) ๋ฐ GRU(Gated Recurrent Unit)์™€ ๊ฐ™์€ ๋ณ€ํ˜•๋œ RNN ๊ตฌ์กฐ๋ฅผ ๋„์ž…ํ•˜์—ฌ ์™„ํ™” ๊ฐ€๋Šฅ
  • ๋ณ‘๋ ฌ ์ฒ˜๋ฆฌ์˜ ์–ด๋ ค์›€

    • ๋ฒกํ„ฐ๊ฐ€ ์ˆœ์ฐจ์ ์œผ๋กœ ์ž…๋ ฅ๋˜์–ด ์—ฐ์†์ ์œผ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ์ฒ˜๋ฆฌํ•ด์•ผ ํ•˜๋ฏ€๋กœ, GPU์™€ ๊ฐ™์€ ๋ณ‘๋ ฌ ์ฒ˜๋ฆฌ๋ฅผ ์ œ๊ณตํ•˜๋Š” ํ•˜๋“œ์›จ์–ด์˜ ์†๋„ ํ–ฅ์ƒ์„ ์ œ๋Œ€๋กœ ํ™œ์šฉํ•˜๊ธฐ ์–ด๋ ต๋‹ค
    • Transformer์˜ Self-Attention์œผ๋กœ ๊ทน๋ณต
  • ๊ธฐ์šธ๊ธฐ ํญ๋ฐœ / ์†Œ์‹ค

Q. LSTM์€ RNN์˜ ์žฅ๊ธฐ ์˜์กด์„ฑ ๋ฌธ์ œ๋ฅผ ์–ด๋–ป๊ฒŒ ํ•ด๊ฒฐํ–ˆ์–ด?

A.

  • Cell State ๋„์ž…
    • Cell State๋Š” LSTM ๋‰ด๋Ÿฐ์„ ๋”ฐ๋ผ ์ง์„  ๋ชจ์–‘์œผ๋กœ ํ๋ฅด๋ฉฐ, ๊ฐ LSTM ๋‹จ์œ„ ๋‚ด์—์„œ Gate๋ฅผ ์‚ฌ์šฉํ•ด ๊ด€๋ฆฌํ•œ๋‹ค
    • Input, Forget, Output Gate ์‚ฌ์šฉ
  • ์žฅ๊ธฐ์ ์œผ๋กœ ์ค‘์š”ํ•œ ์ •๋ณด ์œ ์ง€, ๋ถˆํ•„์š”ํ•œ ์ •๋ณด ์‚ญ์ œ

Q. GRU์€ RNN์˜ ์žฅ๊ธฐ ์˜์กด์„ฑ ๋ฌธ์ œ๋ฅผ ์–ด๋–ป๊ฒŒ ํ•ด๊ฒฐํ–ˆ์–ด?

A.

  • LSTM๊ณผ ์œ ์‚ฌ, ๋‹จ gate๊ฐ€ Update, Reset ๋‘ ๊ฐ€์ง€
    • Reset Gate: ์ด์ „ ํžˆ๋“  ์ƒํƒœ๊ฐ€ ์–ผ๋งˆ๋‚˜ ํ˜„์žฌ ํžˆ๋“  ์ƒํƒœ์— ์˜ํ–ฅ์„ ๋ฏธ์น ์ง€ ๊ฒฐ์ •
    • Update Gate: ์ด์ „ ํžˆ๋“  ์ƒํƒœ์™€ ์ƒˆ๋กœ์šด ์ •๋ณด๋ฅผ ๊ฒฐํ•ฉํ•˜์—ฌ ํ˜„์žฌ ์ƒํƒœ๋ฅผ ์—…๋ฐ์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ๊ฒฐ์ •
    • LSTM๋ณด๋‹ค ๋งค๊ฐœ๋ณ€์ˆ˜ ์ ๋‹ค
  • ๋ชจ๋ธ์ด ๊ณผ๊ฑฐ ์ •๋ณด์˜ ์ค‘์š”๋„๋ฅผ ํ•™์Šตํ•˜๊ณ , ์ค‘์š”ํ•œ ์ •๋ณด๋ฅผ ๋” ๊ธด ์‹œ๊ฐ„ ๋™์•ˆ ๋ณด์กดํ•œ๋‹ค
profile
๋ง‰์ƒ ํ•˜๋ฉด ๋ชจ๋ฅด๋‹ˆ๊นŒ ์ผ๋‹จ ํ•˜์ž.
post-custom-banner

0๊ฐœ์˜ ๋Œ“๊ธ€