<?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 Shuvamsatapathi on Medium]]></title>
        <description><![CDATA[Stories by Shuvamsatapathi on Medium]]></description>
        <link>https://medium.com/@shuvamsatapathi?source=rss-ad8c32f2797d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DS_yLSzSCpDzJPqVOJwxeQ.jpeg</url>
            <title>Stories by Shuvamsatapathi on Medium</title>
            <link>https://medium.com/@shuvamsatapathi?source=rss-ad8c32f2797d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 12:32:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shuvamsatapathi/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[RFLA Explained: How Gaussian Receptive Fields Fix Tiny Object Detection]]></title>
            <link>https://medium.com/@shuvamsatapathi/rfla-explained-how-gaussian-receptive-fields-fix-tiny-object-detection-bc5f29a9ea74?source=rss-ad8c32f2797d------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc5f29a9ea74</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[rfla]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[fpn]]></category>
            <dc:creator><![CDATA[Shuvamsatapathi]]></dc:creator>
            <pubDate>Wed, 07 Oct 2026 04:40:57 GMT</pubDate>
            <atom:updated>2026-10-07T04:55:52.314Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*flzIlPMKXWjS5lKDJfyUcQ.png" /></figure><h3>From Anchor Boxes and Points to Gaussian Distributions, RFD, HLA and the GMM Connection</h3><p>If you have studied CNNs and basic object detection, you probably know the usual pipeline:</p><p><strong>Image → CNN → Feature Map → Label Assignment → Detection</strong></p><p>But there is one step that is much more important than it initially looks:</p><blockquote><strong><em>Which feature locations should actually be responsible for detecting a particular object?</em></strong></blockquote><p>This is the <strong>label assignment problem</strong>.</p><p>For normal-sized objects, traditional methods work reasonably well. But when objects become extremely small, these methods start breaking down.</p><p>The paper <strong>RFLA: Gaussian Receptive Field-based Label Assignment for Tiny Object Detection</strong> proposes a simple but interesting idea:</p><blockquote><em>Instead of thinking only about boxes or points, think about the </em><strong><em>receptive field of a CNN feature</em></strong><em>.</em></blockquote><p>Because the effective receptive field of CNNs behaves approximately like a <strong>Gaussian distribution</strong>, RFLA uses Gaussian distributions for label assignment.</p><h3>1. Why Are Tiny Objects So Difficult?</h3><p>Imagine an aerial image containing a person who is only 10 × 10 pixels.</p><p>That is already extremely small.</p><p>Now pass the image through a CNN. The image gets downsampled several times, and eventually that tiny object may occupy only a few pixels — or may not even contain a single useful feature location.</p><p>This creates a fundamental problem:</p><blockquote><em>The detector may have enough information to partially see the object, but the label-assignment method may fail to assign any feature as a positive sample.</em></blockquote><p>This is particularly important in datasets such as AI-TOD, where many objects are extremely small.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IGUrnGvnXyFwnjSZeWtTcw.png" /></figure><p>So before understanding RFLA, we need to understand how traditional detectors assign labels.</p><h3>2. Anchor-Based vs Anchor-Free Detection</h3><p>There are two major approaches.</p><h3>Anchor-Based Detection</h3><p>Anchor-based detectors use predefined boxes called <strong>anchors</strong>.</p><p>For example:</p><pre>Anchor<br>    ┌─────────────┐<br>    │             │<br>    │     GT      │<br>    │             │<br>    └─────────────┘</pre><p>The detector commonly measures the overlap between the anchor and the ground-truth box using <strong>Intersection over Union (IoU)</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/387/1*5-liBb9E-tLDfrnWn0NBJg.png" /></figure><p>If the IoU is high enough, the anchor becomes a positive sample.</p><p>But tiny objects create a problem.</p><p>Suppose the ground truth is extremely small and the anchor is slightly shifted:</p><pre>Anchor:<br>████████████████</pre><pre>GT:<br>             ██</pre><p>The overlap can become extremely small or even:</p><p>IoU = 0</p><p>So the detector may decide that this anchor has nothing to do with the object.</p><h3>Anchor-Free Detection</h3><p>Anchor-free detectors such as FCOS remove the predefined boxes.</p><p>Instead, they use <strong>feature points</strong>.</p><p>A point inside the ground-truth box can become a positive sample:</p><pre>•   •   •   •</pre><pre>•   •   •   •</pre><pre>•   •   •   •</pre><p>But now consider a tiny object between feature points:</p><pre>•          •</pre><pre>       ┌──┐<br>       │GT│<br>       └──┘</pre><pre>•          •</pre><p>There may be <strong>no feature point inside the object</strong>.</p><p>So again, the detector may receive almost no positive training signal.</p><p>This gives us the two traditional priors:</p><ul><li>Anchor-based → <strong>Box prior</strong></li><li>Anchor-free → <strong>Point prior</strong></li></ul><p>RFLA proposes a third:</p><ul><li>RFLA → <strong>Gaussian prior</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mmjHRSeLmpK5yLYT0DV83g.png" /></figure><h3>3. The Problem With These Priors</h3><p>RFLA looks at these priors from a probabilistic perspective.</p><p>The paper describes a location using a probability-density-like function:</p><p>p(v|x,y)</p><p>Here:</p><ul><li>(x,y) represents a location.</li><li>v represents the <strong>weight assigned to that location</strong>.</li></ul><p>For a traditional box prior, every location inside the box is treated approximately equally.</p><p>Conceptually:</p><pre>0  0  0  0  0<br>0  1  1  1  0<br>0  1  1  1  0<br>0  1  1  1  0<br>0  0  0  0  0</pre><p>Inside the box:</p><p>v (approx. constant)</p><p>Outside the box:</p><p>[ v=0 ]</p><p>So the prior behaves roughly like a <strong>uniform distribution</strong>.</p><p>But this creates a hard boundary:</p><pre>Inside → 1</pre><pre>Outside → 0</pre><p>There is no gradual transition.</p><p>For tiny objects, this is a problem because even a small displacement can completely change the relationship between a feature and the object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iFV8Qz67P-aopSoXxq2Ang.png" /></figure><h3>4. The Key Observation: CNN Receptive Fields Behave Like Gaussians</h3><p>This is where RFLA gets its main idea.</p><p>Every CNN feature has a <strong>receptive field</strong>.</p><p>A feature at one location in a feature map corresponds to a particular region of the original image.</p><p>For example:</p><pre>Input Image</pre><pre>┌─────────────────────────┐<br>│                         │<br>│      ┌───────────┐      │<br>│      │           │      │<br>│      │     ●     │      │<br>│      │           │      │<br>│      └───────────┘      │<br>│                         │<br>└─────────────────────────┘</pre><p>Theoretically, everything inside that receptive field can influence the feature.</p><p>But in reality, <strong>not every pixel contributes equally</strong>.</p><p>The center tends to contribute more strongly.</p><p>The further we move away from the center, the weaker the contribution becomes.</p><p>So the effective influence looks roughly like:</p><pre>low---------------------------<br>-----low low low--------------<br>-----low medium low-----------<br>---low medium HIGH medium low-<br>-----low medium low-----------<br>------low low low-------------<br>---------------------------low</pre><p>This shape resembles a <strong>Gaussian distribution</strong>.</p><p>This observation comes from previous work on the <strong>Effective Receptive Field (ERF)</strong>, and it is the key motivation behind RFLA.</p><p>The reasoning is beautiful:</p><blockquote><em>If the CNN’s effective receptive field behaves approximately like a Gaussian, why should our label-assignment prior be a hard box or a single point?</em></blockquote><p>Instead, we can make the prior behave like the CNN itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K28LmpP4dskmY2ewgmHJDw.png" /></figure><h3>5. From Theoretical Receptive Field to Gaussian ERF</h3><p>To construct this Gaussian, RFLA first considers the <strong>Theoretical Receptive Field (TRF)</strong>.</p><p>For layer (n):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*6aPCqr2jUMymcSvIVHdSmg.png" /></figure><p>where:</p><ul><li>(tr_n) = theoretical receptive field</li><li>(k_n) = kernel size</li><li>(s_i) = stride of previous layers</li></ul><p>The theoretical receptive field tells us:</p><blockquote><em>How large is the region of the original image that can theoretically influence this feature?\</em></blockquote><p>RFLA then uses the effective receptive field radius, denoted by:</p><p>er_n</p><p>which is approximated from the theoretical receptive field.</p><p>Now suppose a feature-map location corresponds to image coordinates:</p><p>(x_n,y_n)</p><p>These coordinates become the <strong>mean</strong> of the Gaussian:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/205/1*jdQ4rdjXh7AysdYaSxilaQ.png" /></figure><p>The covariance is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*CY8_42QN921abaoKZ7FlSQ.png" /></figure><p>So our feature point is no longer just:</p><pre>●</pre><p>It becomes:</p><pre>. . .<br>    . . . . .<br>  . . . ● . . .<br>    . . . . .<br>      . . .</pre><p>That is the <strong>Gaussian Effective Receptive Field</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R1ro49n4GaHhsZHyYakoYA.png" /></figure><h3>6. Turn the Ground-Truth Box Into a Gaussian</h3><p>Now we have a Gaussian representing the receptive field of a feature.</p><p>But we also need a Gaussian representing the <strong>ground-truth object</strong>.</p><p>Suppose the ground-truth box is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*LIVUtY5EFjVmGWyTMrwQmQ.png" /></figure><p>Its center becomes the Gaussian mean:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/191/1*sP9ayNlio73Z4XoJOP3eEA.png" /></figure><p>And its covariance is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/237/1*Ep9asI8huXobNxAAzBCPbA.png" /></figure><p>So now we have two distributions:</p><h3>Gaussian ERF</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/167/1*6VvV587B7NCLAF_Y8rdlBA.png" /></figure><h3>Gaussian Ground Truth</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/186/1*eTmdFE1Pnu-dy6AndIcmUA.png" /></figure><p>The problem has now changed from:</p><blockquote><em>“Is this point inside the box?”</em></blockquote><p>to:</p><blockquote><strong><em>“How similar is this feature’s receptive-field distribution to the distribution of the object?”</em></strong></blockquote><p>That is a much more flexible question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mn1QTbziev9o47MERR1IUA.png" /></figure><h3>7. RFD: Receptive Field Distance</h3><p>To answer that question, RFLA needs a way to measure the distance between the two Gaussian distributions.</p><p>This is called <strong>Receptive Field Distance (RFD)</strong>.</p><p>The paper investigates three possible distribution distances:</p><ol><li>Wasserstein Distance</li><li>Kullback–Leibler Divergence (KLD)</li><li>Jensen–Shannon Divergence (JSD)</li></ol><p>JSD is not used because it does not have a convenient closed-form solution for the Gaussian case and would add computational complexity.</p><p>So the important candidates are <strong>Wasserstein Distance</strong> and <strong>KLD</strong>.</p><h3>Wasserstein Distance</h3><p>The intuition behind Wasserstein distance is:</p><blockquote><em>How much effort would it take to transform one distribution into another?</em></blockquote><p>One major advantage is that the two distributions do <strong>not need to overlap</strong>.</p><p>This is extremely important for tiny objects.</p><p>With IoU:</p><p>IoU=0</p><p>means we lose useful information.</p><p>But Wasserstein distance can still tell us:</p><blockquote><em>“These two distributions are close.”</em></blockquote><p>So even without overlap, we can rank candidate feature points.</p><p>The drawback is that Wasserstein distance is not scale invariant.</p><h3>Kullback–Leibler Divergence</h3><p>The second candidate is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/1*eFKTgi3gG2t-YwdSzMv1Nw.png" /></figure><p>The general Gaussian form is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*0PAh-ftEfPKmRQEuIa1jiQ.png" /></figure><p>For RFLA, this can be simplified into terms involving:</p><ul><li>the distance between the feature point and GT center</li><li>the size of the receptive field</li><li>the width and height of the object</li></ul><p>One important advantage of KLD here is its scale-invariant behavior.</p><p>Its disadvantage is that it can become problematic when the distributions have negligible overlap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IK6nYZt0DRZ0URYQHR7rqQ.png" /></figure><h3>8. From Distance to RFD Score</h3><p>Wasserstein and KLD give us a <strong>distance</strong>.</p><p>But for label assignment, it is more convenient to have a score:</p><pre>1 → Excellent match<br>0 → Poor match</pre><p>RFLA therefore converts the distance into:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*mX5hEE7n7yu6Qe5PMFgiow.png" /></figure><p>where (RFDC) is the selected Receptive Field Distance Candidate.</p><p>Therefore:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/167/1*Op9N1JgOglpca53h_hC2Sw.png" /></figure><p>gives:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/140/1*x-z896jFksFw0QeLXeFw6g.png" /></figure><p>and a larger distance gives a smaller RFD.</p><p>So:</p><blockquote><strong><em>Higher RFD = better match between the feature’s receptive field and the ground-truth object.</em></strong></blockquote><p>This score is what RFLA eventually uses for label assignment.</p><h3>9. The RFD Score Matrix</h3><p>Now imagine we have five feature points and three ground-truth objects.</p><p>We calculate the RFD between every feature point and every GT.</p><p>The result might look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z2dFqU8bAIbtKSOgXeqCLQ.png" /><figcaption>RFD score matrix</figcaption></figure><p>This is the <strong>RFD score matrix</strong>.</p><p>Every value answers:</p><blockquote><strong><em>How well does this feature point’s Gaussian receptive field match this particular ground truth?</em></strong></blockquote><p>For GT1:</p><p>P_1=0.91</p><p>is a better candidate than:</p><p>P_5=0.08</p><p>For GT2:</p><p>P_4=0.94</p><p>is the strongest candidate.</p><p>This transforms label assignment into a <strong>ranking problem</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TvAqaAEWeIHqJMCO8KFhpg.png" /></figure><h3>10. HLA: Hierarchical Label Assignment</h3><p>Now we know which feature points are good candidates.</p><p>But how do we actually assign labels?</p><p>This is where <strong>Hierarchical Label Assignment (HLA)</strong> comes in.</p><h3>Stage 1 — Select the Top-k</h3><p>For each ground-truth object:</p><ol><li>Calculate RFD scores.</li><li>Rank the feature points.</li><li>Select the best k candidates.</li></ol><p>For example:</p><pre>GT1</pre><pre>P1 → 0.91  ← Positive<br>P2 → 0.83  ← Positive<br>P3 → 0.55<br>P4 → 0.31<br>P5 → 0.08</pre><p>If k=2 :</p><p>then P_1and P_2 become positive samples.</p><p>The important point is that RFLA does not care only about whether a point is literally inside the box.</p><p>It asks:</p><blockquote><strong><em>Which feature locations have the best receptive-field relationship with the object?</em></strong></blockquote><h3>11. HLA Stage 2: Saving Difficult Objects</h3><p>Stage 1 can still leave some difficult ground-truth objects with insufficient positive samples.</p><p>So RFLA introduces a second stage.</p><p>The effective receptive-field radius is reduced:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/187/1*u4cbzXVxqajQoolAdfj-pA.png" /></figure><p>This changes the Gaussian receptive field and allows the method to search for another suitable candidate.</p><p>The paper uses a decay factor around:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/1*8dtfouWc11PsFS9F8bdCMw.png" /></figure><p>in its experiments.</p><p>The second stage can then provide an additional positive sample for difficult cases.</p><p>The final assignment can be represented as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*boMT801pBOYZKQuzIrShYA.png" /></figure><p>where m represents the samples already assigned in the first stage.</p><p>The intuition is simple:</p><blockquote><strong><em>Stage 1 selects the strongest candidates. Stage 2 rescues objects that still need a useful positive sample.</em></strong></blockquote><p>That is why the method is called <strong>Hierarchical Label Assignment</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fnNgq3xbotccmJsvPuBTvg.png" /></figure><h3>12. What About Centerness?</h3><p>If you have studied FCOS, you have probably encountered <strong>centerness</strong>.</p><p>FCOS gives more importance to feature points closer to the center of the ground-truth box.</p><p>Conceptually:</p><pre>┌──────────────────────┐<br>│                      │<br>│         HIGH         │<br>│          ●           │<br>│                      │<br>└──────────────────────┘</pre><p>The closer the point is to the center, the better the prediction is expected to be.</p><p>But there is a fundamental problem:</p><blockquote><strong><em>What if the tiny object doesn’t contain any feature point?</em></strong></blockquote><p>Centerness cannot solve that.</p><p>RFLA therefore changes the assignment strategy.</p><p>Instead of requiring:</p><pre>Point inside GT<br>        ↓<br>Centerness</pre><p>RFLA can use:</p><pre>Feature point<br>      ↓<br>Gaussian receptive field<br>      ↓<br>Compare with Gaussian GT<br>      ↓<br>RFD<br>      ↓<br>HLA</pre><p>The paper also modifies the centerness formulation with a small constant to avoid problematic gradients when feature points fall outside the ground-truth region.</p><p>So RFLA isn’t simply “another centerness formula.”</p><p>It changes <strong>how candidate feature locations are selected in the first place</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l9VYDKzVkT1uWHoMhEJYiw.png" /></figure><h3>13. Where Does GMM Come Into the Picture?</h3><p>This is where the Gaussian Mixture Model connection comes in.</p><p>And there is an important distinction:</p><blockquote><strong><em>RFLA itself is not a GMM method.</em></strong></blockquote><p>The GMM connection comes from <strong>PAA — Probabilistic Anchor Assignment</strong>, which is discussed as related work.</p><p>PAA uses a <strong>Gaussian Mixture Model</strong> to model the distribution of anchor scores.</p><p>Suppose the detector produces scores like:</p><pre>0.02<br>0.04<br>0.05<br>0.07<br>0.08</pre><pre>0.72<br>0.78<br>0.81<br>0.86<br>0.91</pre><p>These may naturally form two groups:</p><pre>Negative                 Positive</pre><pre>    /\                       /\<br>   /  \                     /  \<br>__/    \___________________/    \__</pre><p>A GMM can model this as a mixture of Gaussian distributions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*Dpaas2XftED6WIz8j2m52g.png" /></figure><p>One Gaussian represents one group, and the other represents the second group.</p><p>So:</p><h3>PAA</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*5xwf39WN9J41tkSdNkeR6g.png" /></figure><p>while:</p><h3>RFLA</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*PVJyvkRqQvSV5Z6TkQbjDw.png" /></figure><p>They both use Gaussian mathematics, but <strong>for different purposes</strong>.</p><p>This is the GMM connection worth remembering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GwycWOXuCPBhBvXRz5Rv0w.png" /></figure><h3>14. The Entire RFLA Idea in One Pipeline</h3><p>At this point, the whole paper can be reduced to one pipeline:</p><pre>INPUT IMAGE<br>                          ↓<br>                       CNN/FPN<br>                          ↓<br>                    FEATURE MAP<br>                          ↓<br>                   FEATURE POINTS<br>                          ↓<br>                 Calculate TRF<br>                          ↓<br>                 Estimate ERF radius<br>                          ↓<br>                  Gaussian ERF<br>                          │<br>                          │<br>             ┌────────────┴────────────┐<br>             │                         │<br>             ↓                         ↓<br>       Gaussian ERF              Gaussian GT<br>             │                         │<br>             └────────────┬────────────┘<br>                          ↓<br>               Wasserstein / KLD<br>                          ↓<br>                        RFDC<br>                          ↓<br>                 RFD = 1/(1+RFDC)<br>                          ↓<br>                    RFD MATRIX<br>                          ↓<br>                    HLA Stage 1<br>                       Top-k<br>                          ↓<br>                    HLA Stage 2<br>                   Rescue samples<br>                          ↓<br>                   FINAL LABELS<br>                          ↓<br>                    Train Detector</pre><p>And the entire motivation can be summarized in one comparison:</p><pre>Traditional Detection</pre><pre>BOX / POINT<br>     ↓<br>Hard geometric assignment<br>     ↓<br>Tiny objects may get<br>few or zero positives<br></pre><pre>RFLA</pre><pre>GAUSSIAN RECEPTIVE FIELD<br>          ↓<br>Continuous similarity<br>          ↓<br>          RFD<br>          ↓<br>     RFD Matrix<br>          ↓<br>         HLA<br>          ↓<br>Better positive samples<br>for tiny objects</pre><p>The beauty of RFLA is that it tries to make the <strong>label-assignment mechanism match the way the CNN actually processes information</strong>.</p><p>A CNN’s effective receptive field is approximately Gaussian.</p><p>So instead of saying:</p><blockquote><em>“Inside this box = positive, outside = negative”</em></blockquote><p>RFLA effectively says:</p><blockquote><em>“This feature’s receptive field matches this object strongly, so it is a good candidate.”</em></blockquote><p>And that is a much better formulation when dealing with objects that are only a few pixels wide.</p><h3>Final Takeaway</h3><p>If you remember only five things from RFLA, remember these:</p><p><strong>1. Tiny objects create a label-assignment problem.</strong></p><p>Anchor-based methods can suffer from:</p><p>[ IoU=0 ]</p><p>while anchor-free methods may have no feature point inside the object.</p><p><strong>2. CNN effective receptive fields behave approximately like Gaussian distributions.</strong></p><p>The center contributes more information than the edges.</p><p><strong>3. RFLA represents both the receptive field and ground-truth object using Gaussian distributions.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/157/1*soIo8jwyRjsCstioQCcAgw.png" /></figure><p>and</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/177/1*g421BL6xpkYfWp-5nBQiOQ.png" /></figure><p><strong>4. RFD measures how well they match.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*bsjTK8RVpNFmf_eiabypYA.png" /></figure><p>Higher RFD means a better match.</p><p><strong>5. HLA uses those scores to choose positive samples.</strong></p><pre>RFD<br> ↓<br>RFD Matrix<br> ↓<br>Top-k<br> ↓<br>Second-stage rescue<br> ↓<br>Positive Samples</pre><p>And finally, the GMM connection:</p><blockquote><strong><em>PAA uses GMM to model the distribution of candidate anchor scores. RFLA uses Gaussian distributions to model receptive fields and ground-truth objects.</em></strong></blockquote><p>So the simplest way to remember RFLA is:</p><blockquote><strong><em>Anchor-based detection thinks in boxes.</em></strong><em><br></em><strong><em>Anchor-free detection thinks in points.</em></strong><em><br></em><strong><em>RFLA thinks in receptive fields.</em></strong></blockquote><p>That is the idea.</p><p><strong>Paper:</strong> <em>RFLA: Gaussian Receptive Field based Label Assignment for Tiny Object Detection</em>, ECCV 2022.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc5f29a9ea74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FPN Explained Like You’re 5 Years Old: How Neural Networks Detect Objects at Different Scales]]></title>
            <link>https://medium.com/@shuvamsatapathi/fpn-explained-like-youre-5-years-old-how-neural-networks-detect-objects-at-different-scales-cddd7a500e12?source=rss-ad8c32f2797d------2</link>
            <guid isPermaLink="false">https://medium.com/p/cddd7a500e12</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[fpn]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[feature-pyramid-network]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Shuvamsatapathi]]></dc:creator>
            <pubDate>Sun, 06 Sep 2026 06:06:06 GMT</pubDate>
            <atom:updated>2026-09-06T06:16:46.552Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7lwGQmqMvZHgqXxoe2U7sQ.png" /></figure><p><em>And why it can be useful for tiny-object detection.</em></p><p>Imagine looking at a photograph containing a bus, a person, and a tiny bird.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5wCpMnbIQ-ZBeNRAuir74A.png" /></figure><p>Your brain can recognize all three without much trouble.</p><p>For a computer vision model, however, these objects are very different in size.</p><p>The bus might occupy thousands of pixels.</p><p>The person might occupy hundreds.</p><p>The bird might occupy only a few.</p><p>So how can one detector handle objects at entirely different scales?</p><p>This is where <strong>Feature Pyramid Networks (FPN)</strong> become useful.</p><p>But there is an important clarification:</p><blockquote><strong><em>FPN was not designed specifically for tiny-object detection. It was designed to improve multi-scale object detection.</em></strong></blockquote><p>Tiny objects are simply one case where multi-scale features can be particularly helpful.</p><h3>1. The Problem: Objects Come in Different Sizes</h3><p>As an image passes through a CNN, its spatial resolution generally decreases.</p><p>For example:</p><pre>640 × 640<br>    ↓<br>320 × 320<br>    ↓<br>160 × 160<br>    ↓<br>80 × 80<br>    ↓<br>40 × 40</pre><p>Why?</p><p>Because deeper layers are learning increasingly meaningful representations of the image.</p><p>Early layers tend to capture things like:</p><ul><li>edges</li><li>corners</li><li>textures</li><li>fine details</li></ul><p>Deeper layers tend to capture:</p><ul><li>shapes</li><li>object parts</li><li>semantic information</li><li>context</li></ul><p>So we get a trade-off:</p><blockquote><strong><em>Early layers have more spatial detail, while deeper layers have stronger semantic information.</em></strong></blockquote><p>FPN is about combining the advantages of both.</p><h3>2. Let’s Pretend You’re 5 Years Old</h3><p>Imagine you have a giant coloring book.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fQXzJCZf-m29cO7kwY3JaQ.png" /></figure><p>At the beginning, you can see every tiny line.</p><p>You can see the eyes, the nose, the edges, and all the little details.</p><p>Now imagine repeatedly shrinking the page.</p><p>The tiny details slowly disappear.</p><p>You might still know:</p><blockquote>“This is a face.”</blockquote><p>But you may no longer know exactly where the tiny details are.</p><p>A CNN behaves relatively like this.</p><p>As we go deeper, the network can understand <strong>what</strong> it is looking at better, but the feature maps become smaller.</p><p>So we want to somehow give the detailed layers some of the knowledge from the deeper layers.</p><p>That is the basic intuition behind FPN.</p><h3>3. The CNN Already Gives Us a Pyramid</h3><p>A CNN naturally produces feature maps at different resolutions.</p><p>In the ResNet-style backbone used in the original FPN paper, these stages are commonly represented as:</p><p>C2, C3, C4, C5</p><p>Conceptually:</p><pre>C₂ → High resolution, less semantic information</pre><pre>C₃ → Medium-high resolution</pre><pre>C₄ → Medium resolution</pre><pre>C₅ → Low resolution, strong semantic information</pre><p>So the CNN already gives us a <strong>feature hierarchy</strong>.</p><p>To visualize it :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8lmj9YUHdTxI4unzNs0WVQ.png" /></figure><p>The problem is that the higher-resolution features don’t have as much semantic information as the deeper ones.</p><p>FPN improves this hierarchy.</p><h3>4. Why Not Just Resize the Image?</h3><p>One way to detect objects at different scales is to create an <strong>image pyramid</strong>.</p><p>For example:</p><pre>Large image<br>     ↓<br>Medium image<br>     ↓<br>Small image</pre><p>The detector can process these different image sizes and find objects at different scales.</p><p>The problem?</p><p>Running the network multiple times is computationally expensive.</p><p>FPN takes a different approach.</p><p>Instead of repeatedly resizing and processing the original image, it uses the <strong>different feature maps the CNN is already producing</strong>.</p><p>This gives us multi-scale features without needing a separate image pyramid.</p><h3>5. FPN ‘s unique introduction</h3><p>FPN adds a <strong>top-down pathway</strong> to the CNN’s existing bottom-up pathway.</p><p>The backbone already gives us:</p><pre>Image<br>  ↓<br>C₂<br>  ↓<br>C₃<br>  ↓<br>C₄<br>  ↓<br>C₅</pre><p>FPN then starts from the deeper features and moves upward.</p><pre>C₅<br> ↑<br>C₄<br> ↑<br>C₃<br> ↑<br>C₂</pre><p>But it doesn’t simply copy them.</p><p>The deeper feature is <strong>upsampled</strong> and combined with the corresponding higher-resolution backbone feature.</p><p>This process is called <strong>multi-scale feature fusion</strong>.</p><p>The idea is simple: features from different levels of the CNN contain different kinds of information. FPN <strong>fuses them together</strong>, allowing higher-resolution features to benefit from the stronger semantic information found in deeper layers.</p><h3>6. What Actually Happens?</h3><p>For a particular level, the process is roughly:</p><pre>Deep feature<br>     │<br>  Upsample<br>     │<br>     ├──────────────┐<br>     │              │<br>     │       Backbone feature<br>     │          + 1×1 Conv<br>     │              │<br>     └────── + ─────┘<br>            │<br>         3×3 Conv<br>            │<br>            ▼<br>       FPN feature</pre><p>There are three important operations:</p><h4>1. 1×1 Convolution</h4><p>This adjusts the number of channels so the two feature maps can be added.</p><p>For example:</p><p>512 → 256</p><h4>2. Upsampling</h4><p>The deeper feature is enlarged spatially, typically by a factor of 2 in the original FPN implementation.</p><p>For example:</p><p>20×20→40×40</p><h4>3. Element-wise Addition + 3×3 Convolution</h4><p>The two features are added together and then passed through a 3×3 convolution to produce the final feature at that level.</p><p>This addition is the actual <strong>feature fusion step</strong>: information from two different scales is combined into a single feature map.</p><p>So, in simple terms:</p><pre>CNN<br> ↓<br>Multi-scale feature hierarchy<br> ↓<br>FPN<br> ↓<br>Top-down pathway<br> ↓<br>Upsampling + lateral connections<br> ↓<br>Multi-scale feature fusion<br> ↓<br>P2, P3, P4, P5</pre><h3>7. Mathematics</h3><p>Let the backbone features be:</p><p>C2, C3, C4, C5</p><p>First, project the backbone feature:</p><p>Li = Conv 1×1 (Ci)</p><p>Then upsample the feature from the deeper level:</p><p>Ui = Upsample (Mi+1)</p><p>Combine them:</p><p>Mi = Li + Ui</p><p>Finally:</p><p>Pi = Conv3×3 (Mi)</p><p>That’s the core FPN operation.</p><p>The result is a pyramid of features:</p><p>P2, P3, P4, P5</p><h3>8. Why Does This Help Small Objects?</h3><p>Now we can talk about tiny objects.</p><p>Suppose a bird occupies only:</p><p>8×8 pixels in the original image.</p><p>A very low-resolution feature map may provide very little spatial detail for representing it.</p><p>A higher-resolution feature map provides more spatial locations over the same object.</p><p>For example, with a stride of 4:</p><p>8 / 4 = 2</p><p>So the object spans roughly 2 feature map locations in width.</p><p>This is still small, but it gives the network more spatial information to work with.</p><p>That is why the higher-resolution levels of a feature pyramid can be particularly useful for smaller objects.</p><p>But remember:</p><blockquote><strong><em>FPN does not create information that was never captured by the image.</em></strong></blockquote><p>If an object is only a couple of pixels wide, the problem may be much bigger than the feature pyramid itself.</p><h3>9. Why Not Just Use the Early Layers?</h3><p>Because high resolution isn’t everything.</p><p>Early layers have detailed spatial information, but they don’t have as much semantic understanding.</p><p>Deep layers have stronger semantic information but lower spatial resolution.</p><p>So:</p><pre>Layer        Resolution        Semantic Information<br>────────────────────────────────────────────────────<br>Early        High              Low<br>Middle       Medium            Medium<br>Deep         Low               High</pre><p>FPN combines these different types of information.</p><p>That’s the key idea.</p><h3>10. FPN Wasn’t Made for Tiny Objects</h3><p>This is worth repeating because it’s an easy misconception.</p><p>FPN was designed for <strong>multi-scale object detection</strong>.</p><p>Objects can appear at different sizes, and CNN features naturally exist at different resolutions.</p><p>FPN creates semantically stronger features across those resolutions.</p><p>Tiny-object detection benefits because small objects need enough spatial detail to be represented.</p><p>So:</p><p>FPN → Multi-scale features → Better representation across object sizes</p><p>And one possible benefit is better handling of small objects.</p><p>But:</p><p>FPN ≠ Tiny Object Detector</p><h3>11. The Real Insight</h3><p>The most important thing to remember isn’t the 1×1 or 3×3 convolution.</p><p>It isn’t even the upsampling.</p><p>It’s this:</p><blockquote><strong><em>Different layers of a CNN know different things.</em></strong></blockquote><p>Early layers know more about <strong>where</strong> things are.</p><p>Deep layers know more about <strong>what</strong> things are.</p><p>FPN connects those layers.</p><p>It gives higher-resolution features access to stronger semantic information while maintaining a pyramid of different spatial resolutions.</p><h3>12. Final Summarization—Like You’re 5 Again</h3><p>Imagine the CNN has several people looking at the same picture.</p><p>One person has a magnifying glass.</p><p>They can see tiny details.</p><p>Another person is standing far away.</p><p>They can’t see tiny details, but they understand the big picture.</p><p>FPN lets them share their knowledge.</p><p>The person who understands the big picture can tell the person with the magnifying glass:</p><blockquote>“Those tiny lines are part of a car.”</blockquote><p>And the person with the magnifying glass can say:</p><blockquote>“And here is exactly where those lines are.”</blockquote><p>That’s FPN.</p><p><strong>High-resolution features provide spatial detail.</strong></p><p><strong>Deep features provide semantic understanding.</strong></p><p><strong>FPN combines them across multiple scales.</strong></p><h3>One Sentence to Remember</h3><blockquote><strong><em>FPN combines high-resolution spatial information with strong semantic information from deeper layers to create useful feature representations at multiple scales.</em></strong></blockquote><p>And that’s why a technique designed for <strong>general multi-scale object detection</strong> can also be particularly useful for <strong>tiny-object detection</strong>.</p><h3>References</h3><p>Lin, T.-Y., Dollár, P., Girshick, R., He, K., Hariharan, B., &amp; Belongie, S. (2017). <a href="https://arxiv.org/abs/1612.03144"><em>Feature Pyramid Networks for Object Detection.</em></a></p><p>He, K., Zhang, X., Ren, S., &amp; Sun, J. (2016). <a href="https://arxiv.org/abs/1512.03385"><em>Deep Residual Learning for Image Recognition.</em></a></p><p>Shaoqing Ren, Kaiming He, Ross Girshick, Jian Sun . <a href="https://arxiv.org/abs/1506.01497"><em>Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cddd7a500e12" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>