<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by zestyoreo on Medium]]></title>
        <description><![CDATA[Stories by zestyoreo on Medium]]></description>
        <link>https://medium.com/@zestyoreo9?source=rss-84cf48795c43------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*bVU3qg-jchqKrK2d</url>
            <title>Stories by zestyoreo on Medium</title>
            <link>https://medium.com/@zestyoreo9?source=rss-84cf48795c43------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 06:59:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zestyoreo9/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Kernel Principal Component Analysis]]></title>
            <link>https://zestyoreo9.medium.com/kernel-principal-component-analysis-a22d92584059?source=rss-84cf48795c43------2</link>
            <guid isPermaLink="false">https://medium.com/p/a22d92584059</guid>
            <category><![CDATA[non-linear]]></category>
            <category><![CDATA[principal-component]]></category>
            <category><![CDATA[kernel-trick]]></category>
            <category><![CDATA[dimensionality-reduction]]></category>
            <category><![CDATA[kernel-pca]]></category>
            <dc:creator><![CDATA[zestyoreo]]></dc:creator>
            <pubDate>Thu, 24 Nov 2022 22:41:23 GMT</pubDate>
            <atom:updated>2022-11-25T12:05:29.788Z</atom:updated>
            <content:encoded><![CDATA[<h4>Nonlinear Dimensionality Reduction using Kernel PCA</h4><h3>PCA</h3><p>PCA (Principal Component Analysis) is a very important tool in data analysis and machine learning. PCA finds a set of basis vectors (directions) along which <strong>variation of data is maximum</strong> and such that all the vectors are orthogonal and ranked according to the variance of data along them (the vectors are called principal components).</p><p>The direction with highest variance means it is most important in capturing the difference in data points. PCA is also helpful in <strong>dimensionality reduction</strong>. This is done by discarding the projects of points along directions where variance is minimal (same as retaining projection of datapoints only along the principal components/ vectors along which variance is maximum).</p><h4>Code</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d23155b7f512c3d9f2f4cf359b478681/href">https://medium.com/media/d23155b7f512c3d9f2f4cf359b478681/href</a></iframe><h4>PCA Example Outputs</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*yiB6cTCbTpfnEFgFk9zG9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*iHVOtFmQ-Opeb2zZ2XAiWA.png" /><figcaption><strong>PCA</strong> dimensionality reduction of the <strong>a) sklearn’s digits datset</strong> and<strong> b) make_moons dataset</strong></figcaption></figure><p>But PCA is a linear method. It can only capture variation along the linear dimension. In the above examples observe the make moons dataset’s output, i is very similar to the datset itself (see below figure). The prinipal components don’t capture the non-linearity of the data and thus PCA isn’t very effective as a dimensionality reduction technique here. Sometimes we want to capture variation in data along a <strong>nonlinear</strong> dimension. This is where <strong>Kernel PCA </strong>comes in handy.</p><h3>Kernel PCA</h3><h4>Intuition</h4><p>The intuition behind Kernel PCA is that many datasets which are not linearly separable, can be made linearly separable by projecting them into a higher dimensional space. The added dimensions are just simple arithmetic operations performed on the original data dimensions.</p><p>So we project our dataset into a higher dimensional feature space, and because they become linearly separable, then we can apply PCA on this new dataset.Preforming this linear dimensionality reduction in that higher dimensional space will be equivalent to a non-linear dimensionality reduction in the original space.</p><h4>Kernel Methods</h4><p>But doing PCA in high dimensional space will need a lot of computations, so in order to solve this problem we use kernel methods. This is done by kernel function which gives us a way of computing dot product, between two vectors — in high dimensional space- in our original space.</p><h4>Experiment</h4><p>Let’s understand KPCA with the help of 2 datasets and experiment with various kernels on them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*V483S-1TgY9v3cYl2er2Pw.png" /><figcaption><strong>a) </strong>the make_circles on the left and<strong> b)</strong> the make_moons datset on the right</figcaption></figure><p>We make use of 3 different kernels to obtain the projections:</p><p>• ‘rbf’ : RBF kernel, <strong>K(x, y) = e^(−γ||x−y||^2)</strong></p><p>• ’poly’: Polynomial kernel, <strong>K(x, y) = (1 + x.T y)^d</strong></p><p>• ’radial’: Custom kernel with <strong>K(x,y)=r(x)r(y) +θ(x)θ(y)</strong>, where (r(x),θ(x)) is the projection of x in the radial basis</p><h4>Code</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/77adf46f23de33d458b045ab0a633334/href">https://medium.com/media/77adf46f23de33d458b045ab0a633334/href</a></iframe><h4>KPCA Results Obtained</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*-0631a4k__bc1nNM0iuxPA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*4zRIb7VJNEBnJYLHOP-kng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*vLp3YUmmVfjPZnZnALIJIg.png" /><figcaption><strong>make_circles dataset</strong> transformed used radial, rbf and polynomial kernel respectively</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*jiMbf6P0hk0eMPTNH1bCdA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*RK78nKHvohljEvFqXskKUA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*wA3ZNcaDFRXkOHmkWc8UMQ.png" /><figcaption><strong>make_moons dataset</strong> transformed used radial, rbf and polynomial kernel respectively</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a22d92584059" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multi-Task Learning in Pytorch]]></title>
            <link>https://zestyoreo9.medium.com/multi-task-learning-in-pytorch-cbe5c945e3ea?source=rss-84cf48795c43------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbe5c945e3ea</guid>
            <category><![CDATA[multi-task-learning]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[pytorch]]></category>
            <dc:creator><![CDATA[zestyoreo]]></dc:creator>
            <pubDate>Mon, 21 Nov 2022 23:51:54 GMT</pubDate>
            <atom:updated>2022-11-21T23:51:54.928Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*ARFBfh6VNq0wnj_WSwSuXA.jpeg" /></figure><p>Biologically, we can see multi-task learning as being inspired by human learning. For learning new tasks, we often apply the knowledge we have acquired by learning related tasks. For instance, a baby first learns to recognize faces and can then apply this knowledge to recognize other objects</p><p>.We take a simple dataset with N=469 datapoints of 28-dimensional feature vectors (x) and 2 targets y1 and y2 where y1 is a binary label target (classification problem) and y2 is a real number (regression task).</p><p>We are build a multi-task learning (MTL) model that aims to solve both the tasks by exploiting the similarity between them. A shared backbone is designed and two heads branch from it to give predictions for the various tasks given.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*ymMioySQGm-TGk1gD2zlPw.png" /><figcaption>MTL generic arch</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t8zhxAiUd2dstG0ct2-eDQ.png" /><figcaption>Our MTL model architecture</figcaption></figure><h3>Dataset</h3><p>Dataset D = {(xi, y1i , y2i )}^N of N = 469 samples where each training feature x ∈ R^d with d = 28 features. Notice that unlike the problems explored in lab so far, this problem involves two target variables y1 ∈ {0, 1} and y2 ∈ R.</p><p><a href="https://github.com/zestyoreo/files/blob/main/MTL%20dataset.zip">https://github.com/zestyoreo/files/blob/main/MTL%20dataset.zip</a></p><p><strong>Importing and Splitting the Data</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9471c74443701c61abedd6f410d9fec3/href">https://medium.com/media/9471c74443701c61abedd6f410d9fec3/href</a></iframe><p><strong>Pytorch Dataset and Dataloader</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3ea79e68f56132ccebdf5ac04b914ef4/href">https://medium.com/media/3ea79e68f56132ccebdf5ac04b914ef4/href</a></iframe><h3>Model</h3><p>Now we define the model using pytorch’s nn.Module class. (architecture shown in image above)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/84638ac01d63c06ecb9685d8672303af/href">https://medium.com/media/84638ac01d63c06ecb9685d8672303af/href</a></iframe><h3>Loss and Optimizer</h3><p>We need 2 loss functions. BCE (binary cross entropy loss) for binary classification for y1 and MSE (mean square error loss) for regression for y2. The total loss was a weighted sum of these two losses.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/30c4d316d7f543ad765b8ee5380ac953/href">https://medium.com/media/30c4d316d7f543ad765b8ee5380ac953/href</a></iframe><h3>Training Loop</h3><p>Now the most important part…</p><p>The samples are taking batch-by-batch and the model is trained for the given number of epochs.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/88e29bb5acdb1e7702c9804aea089419/href">https://medium.com/media/88e29bb5acdb1e7702c9804aea089419/href</a></iframe><h3>Predict</h3><p>Function to give label predictions for inputs.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc1730020673e37dc09caafa2fed8a4c/href">https://medium.com/media/bc1730020673e37dc09caafa2fed8a4c/href</a></iframe><h3>Entire code</h3><p>All files with dataset here: <a href="https://github.com/zestyoreo/files/blob/main/MTL-full.zip">https://github.com/zestyoreo/files/blob/main/MTL-full.zip</a></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1506ea4acdc5f1a6890bc0d943ad0bc1/href">https://medium.com/media/1506ea4acdc5f1a6890bc0d943ad0bc1/href</a></iframe><p><strong>Further on MTL</strong></p><p><a href="https://ruder.io/multi-task/">An Overview of Multi-Task Learning for Deep Learning</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbe5c945e3ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kernel Trick in SVM (Intuition)]]></title>
            <link>https://zestyoreo9.medium.com/kernel-trick-in-svm-intuition-e36835ab7eb5?source=rss-84cf48795c43------2</link>
            <guid isPermaLink="false">https://medium.com/p/e36835ab7eb5</guid>
            <category><![CDATA[kernel]]></category>
            <category><![CDATA[kernel-trick]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[zestyoreo]]></dc:creator>
            <pubDate>Mon, 21 Nov 2022 02:01:10 GMT</pubDate>
            <atom:updated>2022-11-21T02:01:51.888Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>The 1</strong>ˢᵗ <strong>Problem</strong></h3><p>SVM can only produce linear boundaries between classes by default, which not enough for most machine learning applications.</p><p>Consider the following 3 cases for instance:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yv0XJtSu7Z1Jy3s4IMQAoA.png" /><figcaption>Dataset 1,2,3 from left to right</figcaption></figure><p>Dataset 1 can be classified with high accuracy with a linear decision boundary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*jqjU-be6dKy1KG6aoFh06A.jpeg" /><figcaption>SVM’s linear decision boundary on Dataset 1</figcaption></figure><p>But Dataset 2 and 3 can’t acheive high accuracy with linear SVM classifiers / decision boundaries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i1CP3bPPDZBESLy0eKp0sA.png" /><figcaption>The 2 moons dataset with a linear decision boundary</figcaption></figure><p>Looking at Dataset 2, basic intuition tells us that a weighted sum of squares of the x and y components/features of the data points can be used as the deciding factor for classification (<a href="https://www.cuemath.com/geometry/ellipse/">elliptical</a> decision boundaries). And using higher powers of the components of data points in Dataset 3 can help create non-linear decision boundaries in SVMs and classify data better.</p><h3><strong>The Straightforward Method</strong></h3><p>If the each datapoint is x = [x₁, x₂, … xₙ].T (n-dimensional vectors), we have to convert them to <em>higher dimensional spaces</em> with higher powers of the features or other nonlinear transformations for instance, [x₁, x₁², x₂, x₂², x₁x₂, … xₙ, xₙ², x₁xₙ].T is one higher dimensional space of x where all the second powers of x’s features were considered.</p><p>The SVM classifier when trained on this higher dimensional space will give the required non-linear decision boundaries.</p><p>Example with Dataset 2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*GJH-LNvrKB680BjqHNo6Aw.jpeg" /><figcaption>Decision Boundary</figcaption></figure><p>Using the quadratic features (2nd power of the features in the feature vectors), we are able to get this decision boundary. Code to get above is given below. (Code Snippet 1)</p><h3>The 2ⁿᵈ Problem</h3><p>In order to get nonlinear boundaries, you have to pre-apply a nonlinear transformation to the data.</p><p>But 2 problems arise here:</p><ol><li>We don’t know which higher dimensional transformation would be appropriate for the data to become classifiable. Dataset 2 was small and the transformation could be easily predicted but that will not be the case with most data we handle.</li><li>Performing calculations and storing the tranformations for each datapoint would become impossible when the higher dimensional space becomes huge and/or the dataset becomes very big.</li></ol><h3><strong>The Magic Solution: Kernels</strong></h3><p>The kernel trick allows you to bypass the need for specifying this nonlinear transformation explicitly. Instead, you specify a “kernel” function that directly <strong>describes how each points relate to each other</strong>.</p><p>So instead of computing the transformation for each datapoint, kernels help specify relation between datapoints once the transformation is applied on the datapoint. Mathematically, this is the inner product or function in the inner product space of the nonlinear tranformations applied on 2 different data points, which is defined as the kernel function.</p><p>The kernel function accepts inputs in the original lower dimensional space and returns the dot product of the transformed vectors in ahigher dimensional space.</p><p><strong>More Math in Part 2… Coming Soon</strong></p><p><strong>Code for above visualizations:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4305bad9baae7b45438d14740faf5736/href">https://medium.com/media/4305bad9baae7b45438d14740faf5736/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e36835ab7eb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Naive Implementation of Convolution.]]></title>
            <link>https://zestyoreo9.medium.com/naive-implementation-of-convolution-2b890b596bc4?source=rss-84cf48795c43------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b890b596bc4</guid>
            <category><![CDATA[convolution]]></category>
            <category><![CDATA[numpy]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[implementation]]></category>
            <category><![CDATA[algorithms-from-scratch]]></category>
            <dc:creator><![CDATA[zestyoreo]]></dc:creator>
            <pubDate>Mon, 03 Oct 2022 15:47:19 GMT</pubDate>
            <atom:updated>2022-10-03T15:47:19.946Z</atom:updated>
            <content:encoded><![CDATA[<p>Using Python and Numpy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pm5YCZW2Vtpre-3nu3aBOw.png" /></figure><p>Convolution for images is a backbone in convolution neural networks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*ly_is_Igvg44fXx6P1GV8A.png" /><figcaption>RGB multichannel input with corresponding kernel filters.</figcaption></figure><p>So the image dimensions can be written as follows: Height (in pixels) * Width (in pixels) * Depth (no. of color channels). When Depth &gt; 1, then its called a multi input channel.</p><h3><strong>Kernel Convolution</strong></h3><p>This is the process where we simply pass a kernel/filter (matrix of numbers) over the image pixel matrix and transform it based on the kernel values. We discuss the following notations here.</p><p><strong>Padding</strong></p><p>As we move our filter over our image, it impacts the pixels located on the boundaries much less as compared to the image center. Hence this can be treated as a lossy compression. We thus use <em>padding</em>, usually consisting of zeroes. If we try this with our grey-scale image from before, then it would look like so as in Fig. a</p><p><strong>Stride</strong></p><p>It controls how much we move our filter in each step. In this example we take a stride of value = 2, resulting in a final feature map of dimensions 2x2. Fig. b, Fig c</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VmKRKV9UDLiUnZFk0qkECA.png" /></figure><p>By considering the below notations,</p><ul><li>n: image size</li><li>f: filter size</li><li>n𝒸 — number of color channels in the image</li><li>p: padding size</li><li>s: stride size</li><li>n𝒻 : number of filters</li></ul><p>We can compute the new dimensions can be calculated by using the following formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*eCfCkFHp9jrcK4QseH5GBw.png" /></figure><p>If we then have multiple color channels, i.e. a depth greater than 1, then we can use the following formula to calculate the dimensions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*q2vvGJ4gEUvsoJpS5qMv6A.png" /></figure><h3><strong>Implementation</strong></h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/290528d4b8e1a620cfa251a638e261c7/href">https://medium.com/media/290528d4b8e1a620cfa251a638e261c7/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ada60cade067bb6d474dc8d8a9174c26/href">https://medium.com/media/ada60cade067bb6d474dc8d8a9174c26/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b890b596bc4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comparing Angular Margin Loss Functions]]></title>
            <link>https://zestyoreo9.medium.com/comparing-angular-margin-loss-functions-31f62c6f4032?source=rss-84cf48795c43------2</link>
            <guid isPermaLink="false">https://medium.com/p/31f62c6f4032</guid>
            <category><![CDATA[arcface]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[loss-function]]></category>
            <category><![CDATA[face-recognition]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[zestyoreo]]></dc:creator>
            <pubDate>Fri, 15 Apr 2022 21:49:12 GMT</pubDate>
            <atom:updated>2022-04-15T21:49:12.280Z</atom:updated>
            <content:encoded><![CDATA[<h4>Comparing Softmax, <a href="https://arxiv.org/abs/1704.08063">SphereFace</a>, <a href="https://arxiv.org/abs/1801.07698">ArcFace</a>, <a href="https://arxiv.org/abs/1801.09414">CosFace</a> Losses</h4><h3>Setting the Scene</h3><h4>Softmax Loss</h4><p>The most widely used loss for multi-class classification is the softmax activation function is as follows :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/369/0*SGcdViXzgyLQ2o6q.png" /></figure><p>where x denotes the feature vector of the i^th sample, belonging to the yi-th class. W and b are the weight and bias respectively. The batch size and the class number are N and n, respectively.</p><p>In the above softmax loss if we make b = 0 and then, we transform the logit as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/0*Gsx2591qNhllpEud.png" /></figure><p>where θ is the angle between the weight W and feature x. The weight is normalized to 1 using L2 norm.</p><p>The feature (x)is also L2 normalized and re-scaled to s. The normalization step helps make the predictions depend only on the angle θ between the feature and the weight. The learned embedding is distributed on hypersphere with radius s as :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/0*5r8StThi5wtrGqLy.png" /></figure><h3>The Main Act</h3><h4>Numerical Similarity</h4><p>In<a href="https://arxiv.org/abs/1704.08063"> SphereFace</a>, <a href="https://arxiv.org/abs/1801.07698">ArcFace</a>, and <a href="https://arxiv.org/abs/1801.09414">Cosface</a>, three different kinds of margin penalty are proposed,</p><ul><li>multiplicative angular margin m1</li><li>additive angular margin m2</li><li>additive cosine margin m3, respectively.</li></ul><p>From the view of numerical analysis, different margin penalties, no matter add on the angle or cosine space, all enforce the intra-class compactness and inter-class diversity by penalizing the target logit. The combined margin penalty:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*1MjJ5nM7nrv5MhoAlPUL-g.png" /></figure><p>By combining all of the margin penalties, we implement SphereFace, ArcFace, and CosFace in a united framework with m1, m2, and m3 as the hyper-parameters. The combined loss function becomes:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*rPs-AJu5l9xPjIYLbLh3uQ.png" /></figure><p>By combining all of the above-motioned margins (cos(m1θ + m2) − m3), we can easily get some other target logit curves that also have high performance.</p><h4>The How?</h4><p>How do these loss functions enforce intra-class compactness and inter-class discrepancy? What is the math explanation/intuition behind it in simple terms?</p><p>There are many explanations of these papers out there but no one talks about the HOW in detail. I would like to take some time explaining that:</p><ul><li>cosine function decreases as the argument or theta increases.</li><li>the exponential function is monotonically increasing.</li></ul><p>Thus when the argument/angle inside the cosine function decreases, the cosine of the angle decreases, the exponent of the cosine decreases (cause ‘s’ is positive) and the overall Loss increases since the Loss has a negative sign. In all three papers/methods, we increase the angle inside the cosine function or decrease the overall value of the term in the power thus increasing the overall loss.</p><p>Thus, in order to decrease the loss function, the angle between the xᵢ and corresponding weight must be reduced. This implies that the angle between the weight and xᵢ decreases as training progresses thus helping the model give discriminative feature vectors/embeddings.</p><h4>Geometric Difference</h4><p>Despite the numerical similarity between the loss methods, additive angular margin (ArcFace) has a better geometric attribute as the angular margin has the exact correspondence to the geodesic distance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X_yOJLpJXRO0IO6LS4JupA.png" /></figure><p>We compare the decision boundaries under the binary classification case. The proposed ArcFace has a constant linear angular margin throughout the whole interval. (set m1=1 and m3=0 in above expression then the angle inside is a linear function with varying y-intercepts).</p><p>By contrast, SphereFace and CosFace only have a nonlinear angular margin (when m2=0 and m1!=1 or m3!=0 then the angle is a linear function passing through the origin in the SphereFace case or a non-linear boundary in the CosFace case).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*fp7-a2c3IPr6WoBojyWRBg.png" /></figure><p>The minor difference in margin designs can have “butter- fly effect” on the model training.</p><h3>The Climax</h3><h4>Evaluation and Test Performance Comparison</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*uQ85orB6sFET52-jtWdfEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*NU85zn1AYFRbtV2r0c5GRg.png" /></figure><h4>ArcFace Project Article Series</h4><h4>Arcface paper Explanation</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31f62c6f4032" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ArcFace Project (Part 2/5)]]></title>
            <link>https://zestyoreo9.medium.com/arcface-project-part-2-5-bbceccb5400b?source=rss-84cf48795c43------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbceccb5400b</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[face-recognition]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[arcface]]></category>
            <dc:creator><![CDATA[zestyoreo]]></dc:creator>
            <pubDate>Fri, 15 Apr 2022 21:47:20 GMT</pubDate>
            <atom:updated>2022-04-15T21:47:20.236Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part 2: Arcface Paper Explanation</h4><p>I recommend you try going through the paper before seeing the explanation.</p><p><a href="https://arxiv.org/abs/1801.07698">ArcFace: Additive Angular Margin Loss for Deep Face Recognition</a></p><h4>The Challenge</h4><p><em>One of the main challenges in feature learning using Deep Convolutional Neural Networks (DCNNs) for large-scale face recognition (particularly Open set face recognition) is the design of appropriate loss functions that enhance discriminative power.</em></p><h4>Types of Losses</h4><p>When the features/embeddings of the faces/images are normalized, all identities are distributed on a hypersphere. To enhance intra- class compactness and inter-class discrepancy, we consider four kinds of <a href="https://dsp.stackexchange.com/questions/54826/what-is-different-between-euclidean-distance-and-the-geodesic-distance/54827">Geodesic Distance</a> (GDis) constraints.</p><ul><li>Margin-Loss: insert a geodesic distance margin between the sample and centers (refers to the center of the class/person images on the hypersphere’s surface).</li><li>Intra-Loss: decrease the geodesic distance between the sample and the corresponding center.</li><li>Inter-Loss: increase the geodesic distance between different centers.</li><li>Triplet-Loss: insert a geodesic distance margin between triplet samples.</li></ul><p>The authors of the ArcFace paper propose an Additive Angular Margin Loss (ArcFace), which is exactly corresponded to the geodesic distance (Arc) margin penalty in Margin-Loss, to enhance the discriminative power of the face recognition model. Extensive experimental results show that the strategy of Margin-Loss is most effective.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SmSw51BElgjNpfSG" /></figure><p>Let&#39;s discuss the above losses in detail. In the above image, the images from 2 classes/people are given. W1 and W2 are the centers of corresponding classes. X₁₁ and X₁₂ are examples in Class-1 and X₂₁ is an example in Class-2. After reading the explanation of every loss, please see the image above to get a crystal clear understanding.</p><ul><li>Margin-Loss is modeled such that the distance between a sample in Class-A is farther away from the center of Class-B by a margin ‘m’ than it is to the center of Class-A.</li><li>Intra-Loss tries to impose intra-class compactness by trying to reduce the distance from samples in Class-A to the center of Class-A.</li><li>Inter-Loss tries to impose inter-class “diffuseness” by trying to increase the distance from samples in Class-A to the center of other classes.</li><li>Triplet-Loss has 3 components in a triplet. They are the Anchor, Positive and Negative. The Anchor is the main image in context. The Positive is an image/embedding belonging to the same class as the Anchor (A photo of the same guy). The Negative is an image of a different person belonging to a different class. It is similar to Margin-Loss and tries to increase intra-class compactness and inter-class “diffuseness” by defining the distance between Anchor and Positive to be lesser than the distance between Anchor and Negative by a margin.</li></ul><p>Distance refers to any distance metric which is used. In ArcFace the Cosine distance is used.</p><h4>Softmax and ArcFace</h4><p>The most widely used loss for multi-class classification is the softmax activation function is as follows :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/369/0*SGcdViXzgyLQ2o6q.png" /></figure><p>where x denotes the feature vector of the i^th sample, belonging to the yi-th class. W and b are the weight and bias respectively. The batch size and the class number are N and n, respectively. Softmax loss does not explicitly optimize the feature embedding to enforce higher similarity for intra- class samples and diversity for inter-class samples, which results in a performance gap for deep face recognition under large intra-class appearance variations (e.g. pose variations, age gaps, and large-scale test scenarios (<em>e.g</em>. million or trillion pairs)).</p><p>In the above softmax loss if we make b = 0 and then, we transform the logit as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/0*Gsx2591qNhllpEud.png" /></figure><p>where θ is the angle between the weight W and feature x. The weight is normalized to 1 using L2 norm.</p><p>The feature (x)is also L2 normalized and re-scaled to s. The normalization step helps make the predictions depend only on the angle θ between the feature and the weight. The learned embedding is distributed on hypersphere with radius s as :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/0*5r8StThi5wtrGqLy.png" /></figure><p>An additive angular margin penalty ‘m’ is added between W and x to enhance the intra-class compactness and inter-class discrepancy.</p><p>Since the proposed additive angular margin penalty is equal to the geodesic distance margin penalty in the normalized hypersphere, it is named as ArcFace. The ArcFace loss function is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/0*-X68PMXLiu10QeuI.png" /></figure><p>(Note carefully that the additive angular margin is added only to the θj where j is the class the sample/image/face belongs to)</p><h4>The How?</h4><p>How does this loss function and all this additive angular margin enforce intra-class compactness and inter-class discrepancy? What is the math explanation/intuition behind it in simple terms?</p><p>There are many explanations of the arcface paper out there but no one talks about the HOW in detail. I would like to take some time explaining that:</p><ul><li>cosine function decreases as the argument or theta increases.</li><li>the exponential function is monotonically increasing.</li></ul><p>Thus when we add an additive angular margin to the angle btw feature vector x and the weight of the class it (x) belongs to, the cosine of the angle decreases, exponent of the cosine decreases (cause ‘s’ is positive) and the overall Loss increases since the Loss has a negative sign. Thus, in-order to decrease the loss function, the angle between the xᵢ and corresponding weight must be reduced. This implies that the angle between the weight and xᵢ decreases as training progresses thus helping the model give discriminative feature vectors/embeddings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rhP2y49yFuiSXaFstEAHtw.png" /><figcaption>Here you can see the angle between feature and weight (target center) decrese as training progresses</figcaption></figure><h4>Comparison btw Softmax and ArcFace</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*AswG6jPZWBEJKwQyCQ6NJw.png" /></figure><p>We select face images from 8 different identities contain- ing enough samples (around 1,500 images/class) to train 2- D feature embedding networks with the softmax and ArcFace loss, respectively. The figure above shows the softmax loss provides roughly separable feature embedding but produces noticeable ambiguity in decision boundaries, while the proposed ArcFace loss can obviously enforce a more evident gap between the nearest classes.</p><h4>Training</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tKi0h5rvY83mCElw" /></figure><ol><li>Based on the feature xi and weight W normalization, we get the cos θj (logit) for each class as WjT xi.</li><li>We calculate the arccosθyi and get the angle between the feature xi and the ground truth weight Wyi .</li><li>In fact, Wj provides a kind of center for each class (as we discussed previously in margin-loss).</li><li>Then, we add an angular margin penalty m on the target (ground truth) angle θyi .</li><li>After that, we calculate cos(θyi + m) and multiply all logits by the feature scale s.</li><li>The logits then go through the softmax function and contribute to the cross-entropy loss.</li></ol><ul><li>Note: The feature vector x is obtained from a backbone DCNN (Deep Convolutional Neural Network) like ResNet-50 or XceptioNet or EfficientNet etc;</li></ul><h4>Pseudo Code</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KOXMO69R7GZIspZt.png" /></figure><h4>Test Performance</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*27hg3s3fQC4VC335Yclxrw.png" /></figure><h4>Angle Distribution on various Datasets</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kuJl2be0gFBcIt7VVrBP-A.png" /></figure><h4>Next Article in Series</h4><h4>ArcFace Project Content Page</h4><h4>Further Reading</h4><p>Comparing SphereFace, ArcFace and CosFace</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbceccb5400b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ArcFace Project (Part 1/5)]]></title>
            <link>https://zestyoreo9.medium.com/arcface-project-part-1-5-ae7e8cb524cb?source=rss-84cf48795c43------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae7e8cb524cb</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[arcface]]></category>
            <category><![CDATA[face-recognition]]></category>
            <dc:creator><![CDATA[zestyoreo]]></dc:creator>
            <pubDate>Fri, 15 Apr 2022 21:44:45 GMT</pubDate>
            <atom:updated>2022-04-15T21:44:45.118Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part 1: Search for Paper &amp; Reviews</h4><h4>Objective</h4><p>We wanted to create and deploy a face recognition model using deep learning. The primary objectives were to</p><ul><li>Learn how to search, read and comprehend ML and CV papers from various conferences (mainly ICML &amp; CVPR)</li><li>Choose and study State-of-the-Art (SOTA) face recognition techniques and model architectures and loss functions.</li><li>Implement the selected paper in the Tensorflow framework to gain first-hand knowledge about the challenges encountered when building and analyzing models.</li></ul><h4>The Search</h4><p>We needed to find models which could give us discriminative embedding for the faces. So, we started off with techniques we were familiar such as the</p><ul><li>Contrastive Loss</li><li>Triplet Loss</li><li>Inter Loss</li><li>Intra Loss</li><li>Quadruplet Loss</li></ul><p>(Please watch my video in the next part where I compare and describe the Arc loss and above loss functions) <a href="https://www.youtube.com/watch?v=2t8dOv0RzpA&amp;list=PLm7FpWpMeAdNtNdXoA5Mtu2GFpg53PPpg&amp;index=2&amp;ab_channel=InderbirDhillon">Link</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F2t8dOv0RzpA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D2t8dOv0RzpA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F2t8dOv0RzpA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/abcc95f268b52f09010fb66fdc1873e2/href">https://medium.com/media/abcc95f268b52f09010fb66fdc1873e2/href</a></iframe><p>The Triplet Loss function was introduced in the <a href="https://arxiv.org/pdf/1503.03832.pdf">FaceNet paper</a> in 2015. We started to search for related papers in <a href="https://www.connectedpapers.com/">connectedpapers.com</a> which is a wonderful tool to search ML literature. Survey papers are also extremely useful while searching for models. For this problem, we found that <a href="https://arxiv.org/pdf/1804.06655.pdf">this paper</a> was very useful.</p><p>We found several papers and datasets related to the face recognition problem and started reading them to get a better understanding and to see whether it is implementable in a reasonable timeframe by beginners like us. For instance, one paper used GANs (<a href="https://arxiv.org/pdf/1910.04860.pdf">Generative One-Shot Face Recognition</a>) for data augmentation and improving performance /accuracy but that is not a beginner-friendly project because a lot more effort would have to be given to learn GANs before even starting the face recognition part.</p><p>Some of the papers we surveyed/studied were</p><ul><li><a href="https://arxiv.org/pdf/1910.04860.pdf">Generative One-Shot Face Recognition</a></li><li><a href="https://arxiv.org/pdf/1810.11160v1.pdf">Data-specific Adaptive Threshold for Face Recognition and Authentication</a></li><li><a href="https://www.cs.cmu.edu/~rsalakhu/papers/oneshot1.pdf">Siamese Neural Networks for One-shot Image Recognition</a></li><li><a href="https://arxiv.org/pdf/1503.03832v3.pdf">FaceNet: A Unified Embedding for Face Recognition and Clustering</a></li><li><a href="https://arxiv.org/pdf/2006.13026v2.pdf">Deep Polynomial Neural Networks</a></li><li><a href="https://arxiv.org/pdf/1710.08092.pdf">VGGFace2: A dataset for recognising faces across pose and age</a> (Dataset)</li><li><a href="https://arxiv.org/pdf/1704.08063.pdf">SphereFace: Deep Hypersphere Embedding for Face Recognition</a></li><li><a href="https://arxiv.org/abs/1704.06369">NormFace: L2 Hypersphere Embedding for Face Verification</a></li><li><a href="https://arxiv.org/abs/1801.09414">CosFace: Large Margin Cosine Loss for Deep Face Recognition</a></li></ul><p>and finally….</p><ul><li><a href="https://arxiv.org/pdf/1801.07698.pdf">ArcFace: Additive Angular Margin Loss for Deep Face Recognition</a></li></ul><p>After close consideration, seeing the SOTA performance of Arcface, which was better than FaceNet, Spherface &amp; CosFace, and the simplicity of the intuition behind the design of the loss function, we settled upon working and implementing the ArcFace model.</p><p>-&gt;Link to Part 2</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae7e8cb524cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Arcface Project]]></title>
            <link>https://zestyoreo9.medium.com/arcface-project-333942a3f42a?source=rss-84cf48795c43------2</link>
            <guid isPermaLink="false">https://medium.com/p/333942a3f42a</guid>
            <category><![CDATA[face-recognition]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[arcface]]></category>
            <category><![CDATA[face-recognition-system]]></category>
            <dc:creator><![CDATA[zestyoreo]]></dc:creator>
            <pubDate>Fri, 15 Apr 2022 21:42:45 GMT</pubDate>
            <atom:updated>2022-04-15T21:42:45.929Z</atom:updated>
            <content:encoded><![CDATA[<h4>Contents</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-eEETazuofO3bnYk3FtO7w.jpeg" /></figure><p>Part 1: Search for Paper &amp; Reviews</p><p>Part 2: Arcface Paper explanation</p><p>Part 3: Dataset Collection and Training</p><p>Part 4: Visualization and Error Analysis</p><p>Part 5:Deployment with Flask</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J51Bicjy8-pqF6ZI7cgs6Q.png" /><figcaption>ArcFace vs Softmax</figcaption></figure><h4>Presentation Link</h4><p><a href="https://iitbacin-my.sharepoint.com/:p:/g/personal/200050103_iitb_ac_in/EbD_mES0PHtAkZ0ljE6R_GEBHUDhEVAxVmAryNsBSrC21Q?e=mYMgmz">Sign in to your account</a></p><h4>Links to Videos</h4><p>The video presentation we made was very long. So we divided it into parts. To view short demos of the model and the work we have done please watch <a href="https://www.youtube.com/watch?v=XCc4fGwsxBI&amp;ab_channel=BalasubramanianPoovanan">Arcface: GNR638 Project Shorter Version</a>. The <a href="https://youtu.be/5nEVttJXHg8">Arcface: GNR638 Project Long Version</a> is a combination of the shorter version and the <a href="https://youtu.be/ANnSRkJ8UM8">Arcface Explanation</a>. In <a href="https://youtu.be/1Qhpn5M8jmg">Arcface: Visualizations and Inference</a> we describe the models we have trained and try to find the thresholds and best hyperparameters based on the experiments we have performed on data. The video titled <a href="https://youtu.be/-QoZPBteerA">ArcFace: Face Verification Deployment using Flask</a> is already a part of the short and long version videos.</p><ul><li><a href="https://youtu.be/5nEVttJXHg8">Arcface: GNR638 Project Long Version</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F5nEVttJXHg8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5nEVttJXHg8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F5nEVttJXHg8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd92dc370d64919065017eecd2983f29/href">https://medium.com/media/dd92dc370d64919065017eecd2983f29/href</a></iframe><ul><li><a href="https://youtu.be/XCc4fGwsxBI">GNR638 Project Shorter Version</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FXCc4fGwsxBI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DXCc4fGwsxBI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FXCc4fGwsxBI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b290d00d2bed97f94b3c97275494c9fe/href">https://medium.com/media/b290d00d2bed97f94b3c97275494c9fe/href</a></iframe><ul><li><a href="https://youtu.be/ANnSRkJ8UM8">Arcface Explanation</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FANnSRkJ8UM8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DANnSRkJ8UM8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FANnSRkJ8UM8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f16bfc5ceab6ee64098aac7b1efd9d92/href">https://medium.com/media/f16bfc5ceab6ee64098aac7b1efd9d92/href</a></iframe><ul><li><a href="https://youtu.be/1Qhpn5M8jmg">Arcface: Visualizations and Inference</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1Qhpn5M8jmg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1Qhpn5M8jmg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1Qhpn5M8jmg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/df4d522fe7d4e345e0071031ef91ae89/href">https://medium.com/media/df4d522fe7d4e345e0071031ef91ae89/href</a></iframe><ul><li><a href="https://youtu.be/-QoZPBteerA">ArcFace: Face Verification Deployment using Flask</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F-QoZPBteerA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-QoZPBteerA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F-QoZPBteerA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7e7011962d8462d734c4af7ec24b49ba/href">https://medium.com/media/7e7011962d8462d734c4af7ec24b49ba/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=333942a3f42a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>