<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Ridge on 노준탁 — AI 노트</title>
    <link>https://ai.klavierhye.cc/ko/tags/ridge/</link>
    <description>Recent content in Ridge on 노준탁 — AI 노트</description>
    <generator>Hugo -- 0.147.7</generator>
    <language>ko</language>
    <lastBuildDate>Mon, 02 Mar 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://ai.klavierhye.cc/ko/tags/ridge/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>L1 vs L2 Regularization: 왜 L1은 Sparse Solution을 만드는가?</title>
      <link>https://ai.klavierhye.cc/ko/posts/l1-l2-regularization/</link>
      <pubDate>Mon, 02 Mar 2026 00:00:00 +0000</pubDate>
      <guid>https://ai.klavierhye.cc/ko/posts/l1-l2-regularization/</guid>
      <description>&lt;p&gt;&amp;ldquo;L1은 weight를 sparse하게 만들고, L2는 weight를 작게 만든다&amp;rdquo;&lt;/p&gt;
&lt;h2 id=&#34;regularization이란-무엇인가&#34;&gt;Regularization이란 무엇인가&lt;/h2&gt;
&lt;p&gt;용량(capacity)이 충분한 모델은 noise를 포함한 데이터를 외워버려서 &lt;strong&gt;training&lt;/strong&gt; loss를 0까지 떨어뜨릴 수 있다. (overfitting) Linear model에서 이건 계수가 크고 서로 상쇄되는 값으로 &lt;strong&gt;폭발&lt;/strong&gt;하는 형태로 나타난다.&lt;/p&gt;
&lt;p&gt;이는 OLS 해 \(\hat{\mathbf{w}} = (X^\top X)^{-1}X^\top y\)의 증폭 효과 때문이다. \(X^\top X\)에 작은 eigenvalue(= 데이터에서 분산이 거의 없는 방향, 예컨대 거의 동일한 두 feature)가 있으면 그 역행렬엔 큰 eigenvalue가 생기고, \(y\)의 작은 노이즈가 그 방향으로 투영되며 &lt;strong&gt;큰 계수로 증폭&lt;/strong&gt;된다. 구체적으로 \(x_1 \approx x_2\)라면, \(y\)를 설명하는 데는 \(w_1=1,\,w_2=0\)이면 충분하지만 마지막 노이즈까지 fit하기 위해 weight에 \(w_1=1000,\,w_2=-999\) 같은 값이 나타난다. \(x_1 - x_2\)는 거의 0인 방향이라, 큰 계수를 곱해야 노이즈만큼의 미세한 출력이 나오기 때문이다. 큰 \(|\mathbf{w}|\)는 함수가 노이즈에 맞추려 뒤틀린 증거다.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
