Track I ML Fundamentals

머신러닝 기초ML Fundamentals

손실·확률·최적화. 이후 모든 트랙이 기대는 언어를 만든다.Loss, probability, optimisation — the language every later track relies on.

9개 레슨9 lessons약 5.9시간~5.9 h 진행Progress 0 / 9
  1. 학습이란 무엇인가What is learning?

    데이터·모델·손실·최적화라는 네 재료로 "학습"을 정의하고, 우리가 줄이는 훈련 손실과 정말 원하는 기대 위험이 왜 다른지 다항식 과적합으로 직접 확인한다.Define "learning" from four ingredients — data, model, loss and optimisation — and see first-hand, through polynomial overfitting, why the training loss we minimise differs from the expected risk we actually want.

    ERM · risk · generalization · overfitting · least squares · train/test split
    30 분min
  2. 경사하강법Gradient descent

    손실의 기울기를 따라 내려가는 가장 단순한 최적화. 학습률이 왜 그렇게 예민한지, 곡률과 조건수로 설명한다.The simplest optimiser — walk down the gradient of the loss. Why the learning rate is so touchy, explained through curvature and the condition number.

    optimization · gradient · learning rate · momentum
    30 분min
  3. 확률로 보는 손실Losses through probability

    MSE와 cross-entropy가 임의로 고른 손실이 아니라 최대우도에서 나온다는 것을 유도하고, entropy·cross-entropy·KL의 관계와 KL의 비대칭(mode-covering vs mode-seeking)이 LLM 사전학습과 RLHF에서 각각 무엇을 뜻하는지 설명할 수 있게 된다.Derive that MSE and cross-entropy are not arbitrary choices but come from maximum likelihood, and explain the relation between entropy, cross-entropy and KL, and what the asymmetry of KL (mode-covering vs mode-seeking) means for LLM pre-training and for RLHF.

    MLE · negative log-likelihood · cross-entropy · entropy · KL divergence · forward KL · reverse KL
    35 분min
  4. 선형 모델Linear models

    선형회귀·로지스틱 회귀·softmax 회귀를 하나의 틀(특징 위의 선형 logit + 확률 모델)로 보고, cross-entropy의 기울기가 왜 항상 "예측 − 정답"인지 유도한다. 온도와 logit 크기가 확신도만 바꾸는 이유, 그리고 LLM의 LM head가 곧 softmax 회귀라는 점을 설명할 수 있게 된다.View linear, logistic and softmax regression in one frame (a linear logit on features plus a probability model) and derive why the cross-entropy gradient is always "prediction − target". You will be able to explain why temperature and logit scale change only confidence, and why an LLM's LM head is softmax regression.

    linear regression · logistic regression · softmax · cross-entropy gradient · decision boundary · temperature · feature map
    35 분min
  5. 일반화Generalization

    test 오차를 편향²·분산·잡음으로 정확히 분해하고, L2 정규화(=가우시안 사전분포의 MAP)·early stopping·교차검증이 그 균형을 어떻게 옮기는지 유도한다. 매개변수가 데이터보다 많아질 때 test 오차가 다시 내려가는 double descent를 직접 계산해 본다.Decompose the test error exactly into bias², variance and noise, and derive how L2 regularisation (= MAP with a Gaussian prior), early stopping and cross-validation shift that balance. Then compute double descent yourself, where the test error falls again once there are more parameters than data points.

    bias-variance · ridge · weight decay · MAP · early stopping · cross-validation · double descent · overparameterization
    40 분min
  6. 옵티마이저와 학습률 스케줄Optimizers and learning-rate schedules

    SGD에서 Momentum·Nesterov·AdaGrad·RMSProp·Adam·AdamW까지 각 단계가 무엇을 고치려고 나왔는지 유도하고(Adam의 편향 보정, AdamW의 분리된 weight decay 포함), warmup·cosine·WSD 스케줄과 gradient clipping이 LLM 학습에서 왜 기본값이 되었는지 설명할 수 있게 된다.Derive what each step from SGD through Momentum, Nesterov, AdaGrad, RMSProp, Adam and AdamW was introduced to fix (including Adam's bias correction and AdamW's decoupled weight decay), and explain why warmup, cosine and WSD schedules and gradient clipping became the defaults of LLM training.

    SGD · momentum · Nesterov · AdaGrad · RMSProp · Adam · AdamW · weight decay · warmup · cosine · WSD · gradient clipping
    40 분min
  7. Muon과 직교화 옵티마이저Muon and orthogonalised optimisers

    가중치 행렬의 업데이트를 스펙트럼 노름 아래의 최급강하로 유도해 UVᵀ를 얻고, 이를 행렬곱만으로 근사하는 Newton–Schulz 반복(계수 설계, Polar Express, DeepSeek-V4의 8+2)을 특이값 하나에 대한 스칼라 함수로 분석한다. AdamW와 RMS를 맞추는 0.2·√max(m,n), weight decay의 역할, AdamW로 남기는 매개변수, 분산 구현 비용, 그리고 Muon에서 attention logit이 폭주하는 이유와 QK-Clip의 head별 재스케일 규칙을 유도하고 직접 돌려 본다.Derive the update of a weight matrix as steepest descent under the spectral norm, which gives UVᵀ; analyse the Newton–Schulz iteration that approximates it with matmuls only (coefficient design, Polar Express, DeepSeek-V4's 8+2) as a scalar function of one singular value; derive the 0.2·√max(m,n) RMS matching to AdamW, the role of weight decay, which parameters stay on AdamW and what distribution costs; then derive why attention logits explode under Muon and QK-Clip's per-head rescaling rule, and run all of it.

    Muon · optimizer · orthogonalization · Newton–Schulz · polar decomposition · spectral norm · steepest descent · Polar Express · MuonClip · QK-Clip · weight decay · distributed optimizer · Dion
    55 분min
  8. Frontier lab들의 Muon 변형Muon variants at frontier labs

    Muon 한 step을 여섯 칸(분할 단위, 전처리, 직교화기, 정규화, 스케일·decay, 사후 제약)으로 쪼개고, Kimi K2·K3, GLM-5, DeepSeek-V4·V4.1, Qwen3.8, MiMo-V2.6, MAI-Base-2가 각 칸을 어떻게 채웠는지 1차 출처로 따라간다. head별 직교화가 왜 MLA에서 결정적인지 leverage로 유도하고, NorMuon·AdaMuon·Muown·Sinkhorn·Dion·MuonBP를 구현하고, 분산 방식별 통신·계산 비용과 하이퍼파라미터 이전, AdamW에 남기는 매개변수, Muon으로 사전학습한 모델의 SFT·RL, 실패 양상을 증거와 함께 정리한다.Split one Muon step into six slots (partition, pre-transform, orthogonaliser, normaliser, scale and decay, post-step constraint) and follow, from primary sources, how Kimi K2 and K3, GLM-5, DeepSeek-V4 and V4.1, Qwen3.8, MiMo-V2.6 and MAI-Base-2 filled each slot. Derive with leverage scores why per-head orthogonalisation matters for MLA, implement NorMuon, AdaMuon, Muown, Sinkhorn balancing, Dion and MuonBP, and work through the communication and compute of each distributed scheme, hyperparameter transfer, what stays on AdamW, SFT and RL on Muon-trained bases, and the failure modes with their evidence.

    Muon · MuonClip · QK-Clip · Per-Head Muon · Muon Split · Polar Express · NorMuon · AdaMuon · Muown · Dion · MuonBP · Sinkhorn · Canzona · distributed optimizer · hyperparameter transfer · optimizer mismatch
    55 분min
  9. 비지도 학습Unsupervised learning

    레이블 없이 데이터의 구조를 찾는 두 가지 고전, k-means와 PCA를 "제한된 코드로 재구성 오차를 최소화하기"라는 하나의 관점으로 유도한다. Lloyd 알고리즘의 단조 감소, k-means++, 분산 최대화 ↔ 고유분해 ↔ SVD의 동치, 그리고 soft k-means로서의 GMM/EM을 설명할 수 있게 된다.Derive the two classics for finding structure in data without labels, k-means and PCA, from a single viewpoint: "minimise reconstruction error with a restricted code". Explain the monotone decrease of Lloyd's algorithm, k-means++, the equivalence of variance maximisation ↔ eigendecomposition ↔ SVD, and GMM/EM as soft k-means.

    k-means · Lloyd · k-means++ · PCA · eigendecomposition · SVD · reconstruction error · GMM · EM
    35 분min