Track II DL Fundamentals

딥러닝 기초DL Fundamentals

역전파와 autograd에서 출발해 정규화·CNN·RNN을 거쳐 attention까지.From backprop and autograd through normalisation, CNNs and RNNs to attention.

7개 레슨7 lessons약 4.3시간~4.3 h 진행Progress 0 / 7
  1. 퍼셉트론에서 MLP로From perceptron to MLP

    선형 모델이 XOR에서 막히는 이유와 은닉층·비선형성이 그 벽을 넘는 방식. ReLU 네트워크가 조각별 선형 함수라는 사실에서 보편 근사 정리와 깊이의 이점까지 직접 그려 보며 설명할 수 있게 된다.Why linear models get stuck on XOR, and how a hidden layer plus a nonlinearity gets past that wall. Starting from the fact that a ReLU network is a piecewise linear function, you will be able to draw and explain the universal approximation theorem and the benefit of depth.

    perceptron · MLP · ReLU · universal approximation · depth
    35 분min
  2. 역전파와 autogradBackpropagation and autograd

    계산 그래프 위에서 연쇄 법칙을 출력 쪽부터 적용하는 역전파를 손으로, 스칼라 autograd(micrograd)로, 벡터화된 NumPy로 세 번 구현한다. 왜 역방향이 싼지(VJP), fan-out에서 왜 더하는지, 구현을 어떻게 검사하는지 설명할 수 있게 된다.Implement backpropagation — applying the chain rule on a computation graph starting from the output — three times: by hand, as a scalar autograd (micrograd), and in vectorised NumPy. You will be able to explain why the reverse direction is cheap (VJP), why gradients add up at a fan-out, and how to check an implementation.

    backpropagation · autograd · chain rule · VJP · gradient check
    40 분min
  3. 깊은 망 학습하기Training deep networks

    깊이 30짜리 MLP에서 신호와 기울기가 왜 지수적으로 사라지거나 터지는지 분산 계산으로 보이고, Xavier/He 초기화·BatchNorm/LayerNorm/RMSNorm·residual·pre-norm이 각각 그 곱셈 사슬의 어느 고리를 고치는지 설명할 수 있게 된다.Show with a variance calculation why signals and gradients vanish or explode exponentially in a 30-layer MLP, and explain which link of that multiplicative chain each fix repairs — Xavier/He initialisation, BatchNorm/LayerNorm/RMSNorm, residual connections and pre-norm.

    initialization · normalization · LayerNorm · RMSNorm · residual · pre-norm · dropout
    40 분min
  4. 합성곱 신경망Convolutional neural networks

    합성곱을 "가중치를 공유하는 국소 연결"로 이해하고, 출력 크기 공식·수용 영역·채널·pooling을 계산할 수 있게 된다. 합성곱을 im2col로 행렬곱 하나로 바꾸는 구현까지 NumPy로 직접 확인한다.Understand convolution as "local connectivity with shared weights", and be able to compute output sizes, receptive fields, channels and pooling. You will also check in NumPy an implementation that turns convolution into a single matrix product with im2col.

    CNN · convolution · receptive field · im2col · pooling · equivariance
    30 분min
  5. 순환 신경망과 LSTMRecurrent networks and LSTM

    RNN을 시간 방향으로 펼친 깊은 망으로 보고, BPTT의 기울기가 야코비안의 곱이라서 고유값에 따라 지수적으로 소실·폭발한다는 것을 보인다. LSTM/GRU의 게이트가 덧셈 경로로 그 곱을 우회하는 방식과, 결국 attention이 RNN을 대체한 이유까지 설명할 수 있게 된다.View an RNN as a deep network unrolled in time, and show that the BPTT gradient is a product of Jacobians and so vanishes or explodes exponentially depending on the eigenvalues. You will be able to explain how the gates of LSTM/GRU bypass that product with an additive path, and why attention eventually replaced RNNs.

    RNN · BPTT · vanishing gradient · LSTM · GRU · gradient clipping
    35 분min
  6. Attention: query·key·valueAttention: query, key, value

    Attention을 미분 가능한 사전 조회로 이해하고, scaled dot-product attention의 각 요소 — QKV 투영, √d로 나누는 이유(내적의 분산), softmax 포화, causal mask, multi-head — 를 유도하고 NumPy로 구현한다. O(n²) 비용이 어디서 오는지 설명할 수 있게 된다.Understand attention as a differentiable dictionary lookup, and derive and implement in NumPy each part of scaled dot-product attention — the QKV projections, why we divide by √d (the variance of a dot product), softmax saturation, the causal mask, multi-head. You will be able to explain where the O(n²) cost comes from.

    attention · self-attention · scaled dot-product · softmax · causal mask · multi-head
    35 분min
  7. Transformer 블록 해부Anatomy of a Transformer block

    지금까지의 부품(MLP, 정규화, residual, attention)을 조립해 현대 LLM의 pre-norm 디코더 블록을 완성한다. 텐서 모양을 끝까지 추적하고, 블록당 매개변수 ≈ 12d², 토큰당 FLOPs ≈ 2N + attention을 직접 세며, residual stream 관점과 인코더/디코더의 차이를 설명할 수 있게 된다.Assemble the parts so far (MLP, normalisation, residual connections, attention) into the pre-norm decoder block of modern LLMs. You will trace tensor shapes all the way through, count parameters per block ≈ 12d² and FLOPs per token ≈ 2N + attention yourself, and explain the residual-stream view and the difference between encoders and decoders.

    transformer · multi-head attention · SwiGLU · residual stream · pre-norm · parameter count · FLOPs
    40 분min