<?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 Kriti Singh on Medium]]></title>
        <description><![CDATA[Stories by Kriti Singh on Medium]]></description>
        <link>https://medium.com/@ksingh23?source=rss-94289c9c93b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Qt3zm9YBetg0R6AOytdFSg.jpeg</url>
            <title>Stories by Kriti Singh on Medium</title>
            <link>https://medium.com/@ksingh23?source=rss-94289c9c93b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:20:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ksingh23/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[Training Compute-Efficient LLMs: Why Chinchilla’s Lessons Matter More Than Ever]]></title>
            <link>https://medium.com/@ksingh23/training-compute-efficient-llms-why-chinchillas-lessons-matter-more-than-ever-842160dca51e?source=rss-94289c9c93b------2</link>
            <guid isPermaLink="false">https://medium.com/p/842160dca51e</guid>
            <dc:creator><![CDATA[Kriti Singh]]></dc:creator>
            <pubDate>Mon, 26 Jan 2026 03:41:56 GMT</pubDate>
            <atom:updated>2026-01-26T03:41:56.891Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Frustration of Perpetually Undertrained Models</h3><p>For years, I followed what seemed like the obvious playbook: implement state-of-the-art architectures. Vision task? Grab ViT. Language modeling? Transformers all the way. My mentor’s guidance was clear — use what’s proven to work at scale.</p><p>But here’s what nobody tells you when you’re working with good-sized datasets on limited compute: you’re almost always building undertrained models.</p><p>I’d spin up transformer architectures, watch the training curves, and inevitably hit the wall. Either I didn’t have enough computational resources to properly train the model, or I lacked sufficient data to even evaluate whether my model had learned meaningful patterns or simply memorized biases. The gap between “state-of-the-art architecture” and “state-of-the-art results” felt impossibly wide.</p><p><strong>Then DeepSeek changed the conversation.</strong></p><p>When DeepSeek demonstrated that smaller, properly trained models could match or exceed the performance of their bloated counterparts, it felt like validation of something I’d suspected but couldn’t articulate. The problem wasn’t just about having bigger models — it was about the fundamental tradeoff between parameter count and training data that most of us were getting wrong.</p><p>With robotics advancing rapidly and the industry’s pivot toward deploying models on edge devices — smartphones, embedded systems, IoT devices — the question of parameter efficiency suddenly became critical. A 70B parameter model might impress in a benchmark, but it’s worthless if it can’t run on the hardware where you actually need it.</p><h3><strong>The Chinchilla Paper</strong></h3><p>This brings me to Jordan Hoffmann’s 2022 paper, “Training Compute-Optimal Large Language Models” (better known as the Chinchilla paper). While the ML community was caught up in the race to build ever-larger models, Hoffmann and his team at DeepMind asked a deceptively simple question:</p><p><strong>Given a fixed compute budget, how should we optimally split resources between model size and training data?</strong></p><h4>Key Finding #1: Most LLMs Were Undertrained and Oversized</h4><p>The Chinchilla scaling laws revealed that for most compute budgets, models were too large and trained on too little data. The optimal ratio? For every doubling of compute, you should roughly double both model parameters AND training tokens, not just scale up parameters.</p><p>This explained my frustration perfectly. I was implementing architectures designed for compute budgets 100x or 1000x larger than what I had available. Of course they were undertrained.</p><h4>Key Finding #2: Smaller + Properly Trained &gt; Larger + Undertrained</h4><p>Chinchilla-70B outperformed Gopher-280B on numerous benchmarks while using 4x less compute for training. The difference? Chinchilla was trained on more tokens relative to its size.</p><p>For someone working with constrained resources, this was a game-changer. Instead of trying to cram a GPT-scale model into my compute budget and starving it of data, I could train a smaller model properly.</p><h4>Key Finding #3: The Compute Budget Should Be Split Roughly Equally</h4><p>The paper established that for compute-optimal training, you should allocate your resources roughly equally between scaling model parameters and increasing training tokens. If you have budget for a 10B parameter model trained on 100B tokens, you’ll likely get better results than a 20B parameter model trained on 50B tokens.</p><h3>Why This Matters More Now Than Ever: The Edge Computing Shift</h3><p>Here’s where these findings intersect with the current moment in AI: edge deployment.</p><p>The industry is undergoing a massive shift. LLMs aren’t just running in data centers anymore — they’re moving to:</p><ul><li>Smartphones (on-device AI assistants)</li><li>Robotics platforms (real-time decision making)</li><li>Embedded systems (IoT, autonomous vehicles)</li><li>Local deployment for privacy and latency</li></ul><p>Edge deployment introduces hard constraints:</p><ul><li><strong>Memory limits</strong>: Your model must fit in available RAM/VRAM</li><li><strong>Power consumption</strong>: Battery life matters</li><li><strong>Inference speed</strong>: Real-time applications can’t wait for slow models</li><li><strong>Bandwidth</strong>: Can’t always rely on cloud connectivity</li></ul><p>Suddenly, the Chinchilla framework isn’t just about training efficiency — it’s about deployment viability.</p><h3>State Space Models: The Next Frontier for Edge AI</h3><p>While compute-optimal training helps us build better transformers, an even more fundamental shift is underway: <strong>State Space Models (SSMs) are emerging as serious contenders to replace transformers entirely for edge deployment.</strong></p><p>Models like Mamba, based on structured state space architectures, address a critical weakness of transformers: the quadratic attention complexity. For transformers, processing a sequence of length N requires O(N²) operations. For a robotics application processing continuous sensor data or a chatbot maintaining long conversation history, this becomes prohibitively expensive on edge hardware.</p><p>State Space Models offer something transformers can’t: <strong>O(N) linear scaling</strong> with sequence length.</p><h3>Looking Forward: Purpose-Built Models for Edge</h3><p>The convergence of compute-optimal training principles, State Space Models, and edge deployment needs points toward an exciting future:</p><p><strong>Architecture Diversity</strong>: The end of “one architecture to rule them all.” We’ll see:</p><ul><li>State Space Models for real-time, long-context edge applications</li><li>Transformers for complex reasoning tasks where latency is less critical</li><li>Hybrid models that blend both approaches based on compute budgets</li></ul><p><strong>Specialized Edge Models</strong>: Instead of compressing general-purpose models, we’ll train compute-optimal models specifically sized for target hardware from the start, choosing architectures that match deployment constraints.</p><p><strong>Dynamic Scaling</strong>: Models that can efficiently scale across different edge devices while maintaining compute-optimal training principles, potentially switching between SSM and transformer layers based on available resources.</p><h4>The Chinchilla paper, combined with practical demonstrations from DeepSeek and the emergence of State Space Models, provides a more honest framework: train models appropriate to your resources and deployment constraints. Focus on the tradeoff between parameters and data. Choose architectures that match your deployment environment. Optimize for the full lifecycle of your model, not just the architecture choice.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=842160dca51e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3D Point-cloud Processing]]></title>
            <link>https://medium.com/@ksingh23/3d-point-cloud-processing-lessons-learned-the-hard-way-ec8b73e7a8e1?source=rss-94289c9c93b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec8b73e7a8e1</guid>
            <category><![CDATA[3d-point-cloud]]></category>
            <category><![CDATA[data-preprocessing]]></category>
            <category><![CDATA[3d-lidar]]></category>
            <dc:creator><![CDATA[Kriti Singh]]></dc:creator>
            <pubDate>Mon, 13 Jan 2025 09:40:44 GMT</pubDate>
            <atom:updated>2025-01-13T13:01:21.128Z</atom:updated>
            <content:encoded><![CDATA[<p>After spending countless hours debugging point-cloud processing pipelines and encountering numerous challenges, I’ve compiled the key lessons that every developer working with 3D point-cloud data should know. These insights come from my experience and could save you significant time and frustration.</p><h3>1. The Importance of Standardized Point-cloud Formats</h3><p>One of the most fundamental yet overlooked aspects of point-cloud processing is maintaining consistent data formats. Different sensors, software, and libraries may output point-clouds in various formats, leading to compatibility issues.</p><h3>Common Formats</h3><ul><li>.pcd: Point Cloud Data format (PCL&#39;s native format)</li><li>.ply: Polygon File Format</li><li>.xyz: Simple coordinate format</li><li>.las/.laz: Industry standard for LiDAR data</li></ul><p>Here’s a practical example of format standardization using Python and Open3D:</p><pre>import open3d as o3d<br>import numpy as np</pre><pre>def standardize_pointcloud(input_path, output_path):<br>    # Detect file format<br>    file_extension = input_path.split(&#39;.&#39;)[-1].lower()<br>    <br>    # Load point cloud based on format<br>    if file_extension == &#39;pcd&#39;:<br>        pcd = o3d.io.read_point_cloud(input_path)<br>    elif file_extension == &#39;ply&#39;:<br>        pcd = o3d.io.read_point_cloud(input_path)<br>    elif file_extension == &#39;xyz&#39;:<br>        # Load XYZ file as numpy array<br>        xyz_data = np.loadtxt(input_path, delimiter=&#39;,&#39;)<br>        pcd = o3d.geometry.PointCloud()<br>        pcd.points = o3d.utility.Vector3dVector(xyz_data[:, :3])<br>    <br>    # Convert to standard format (PCD in this case)<br>    o3d.io.write_point_cloud(output_path, pcd)<br>    return pcd</pre><h3>2. Navigating Coordinate System Complexities</h3><p>Coordinate system mismatches are a common source of confusion. Different tools and libraries may use different conventions (right-hand vs. left-hand coordinate systems).</p><h3>Common Issues and Solutions</h3><pre>import numpy as np<br>import matplotlib.pyplot as plt<br>from mpl_toolkits.mplot3d import Axes3D</pre><pre>def visualize_pointcloud(points, title=&quot;Point Cloud&quot;):<br>    fig = plt.figure(figsize=(10, 10))<br>    ax = fig.add_subplot(111, projection=&#39;3d&#39;)<br>    <br>    # Scatter plot<br>    ax.scatter(points[:, 0], points[:, 1], points[:, 2], s=1)<br>    <br>    # Set labels<br>    ax.set_xlabel(&#39;X&#39;)<br>    ax.set_ylabel(&#39;Y&#39;)<br>    ax.set_zlabel(&#39;Z&#39;)<br>    <br>    # Set consistent aspect ratio<br>    ax.set_box_aspect([1,1,1])<br>    <br>    plt.title(title)<br>    plt.show()</pre><pre>def transform_coordinates(points, source_system=&#39;right&#39;, target_system=&#39;left&#39;):<br>    &quot;&quot;&quot;<br>    Transform between right-handed and left-handed coordinate systems<br>    &quot;&quot;&quot;<br>    if source_system != target_system:<br>        # Flip Y axis to convert between right and left-handed systems<br>        points[:, 1] = -points[:, 1]<br>    return points</pre><h3>3. Establishing a Reference Plane</h3><p>Aligning point-clouds to a common reference plane is crucial for consistency. Here’s how to implement plane fitting and alignment:</p><pre>import open3d as o3d<br>import numpy as np<br>from scipy.spatial import KDTree</pre><pre>def align_to_reference_plane(pcd):<br>    # Convert to numpy array<br>    points = np.asarray(pcd.points)<br>    <br>    # Fit plane using PCA<br>    center = np.mean(points, axis=0)<br>    covariance_matrix = np.cov(points - center, rowvar=False)<br>    eigenvalues, eigenvectors = np.linalg.eigh(covariance_matrix)<br>    <br>    # Ground plane normal (assuming it&#39;s the direction of smallest variance)<br>    normal = eigenvectors[:, 0]<br>    <br>    # Create rotation matrix to align normal with up direction [0, 0, 1]<br>    up = np.array([0, 0, 1])<br>    rotation_axis = np.cross(normal, up)<br>    rotation_angle = np.arccos(np.dot(normal, up))<br>    <br>    # Create rotation matrix using Rodrigues&#39; formula<br>    rotation_matrix = o3d.geometry.get_rotation_matrix_from_axis_angle(<br>        rotation_axis * rotation_angle<br>    )<br>    <br>    # Apply transformation<br>    pcd.rotate(rotation_matrix, center=center)<br>    return pcd</pre><h3>4. Point-cloud Preprocessing for Object Isolation</h3><p>Removing noise and ground plane is essential for many applications. Here’s a comprehensive preprocessing pipeline:</p><pre>def preprocess_pointcloud(pcd, voxel_size=0.02):<br>    # 1. Voxel downsampling<br>    downsampled = pcd.voxel_down_sample(voxel_size)<br>    <br>    # 2. Remove statistical outliers<br>    cleaned, _ = downsampled.remove_statistical_outlier(<br>        nb_neighbors=20, std_ratio=2.0<br>    )<br>    <br>    # 3. Remove ground plane<br>    plane_model, inliers = cleaned.segment_plane(<br>        distance_threshold=0.01,<br>        ransac_n=3,<br>        num_iterations=1000<br>    )<br>    <br>    # Extract non-ground points<br>    objects = cleaned.select_by_index(inliers, invert=True)<br>    <br>    return objects</pre><pre>def remove_noise(pcd, nb_neighbors=20, std_ratio=2.0):<br>    &quot;&quot;&quot;<br>    Remove noise using statistical outlier removal<br>    &quot;&quot;&quot;<br>    cleaned, indices = pcd.remove_statistical_outlier(<br>        nb_neighbors=nb_neighbors,<br>        std_ratio=std_ratio<br>    )<br>    return cleaned</pre><h3>5. Resolution Management: Sampling Strategies</h3><p>Proper sampling is crucial for balancing processing speed and accuracy:</p><pre>def manage_resolution(pcd, target_points=10000):<br>    &quot;&quot;&quot;<br>    Adjust point cloud resolution based on target point count<br>    &quot;&quot;&quot;<br>    current_points = len(np.asarray(pcd.points))<br>    <br>    if current_points &gt; target_points:<br>        # Downsample<br>        voxel_size = np.cbrt(np.prod(pcd.get_max_bound() - pcd.get_min_bound()) * <br>                            target_points / current_points)<br>        return pcd.voxel_down_sample(voxel_size)<br>    else:<br>        # Upsample<br>        return pcd.random_sample_points(target_points)</pre><h3>Best Practices and Recommendations</h3><ol><li><strong>Validation Pipeline</strong></li></ol><pre>def validate_pointcloud(pcd):<br>    &quot;&quot;&quot;<br>    Basic validation checks for point cloud data<br>    &quot;&quot;&quot;<br>    points = np.asarray(pcd.points)<br>    <br>    checks = {<br>        &quot;point_count&quot;: len(points) &gt; 0,<br>        &quot;has_normals&quot;: pcd.has_normals(),<br>        &quot;has_infinite&quot;: not np.any(np.isinf(points)),<br>        &quot;has_nan&quot;: not np.any(np.isnan(points))<br>    }<br>    <br>    return checks</pre><ol><li><strong>Performance Optimizations</strong></li></ol><pre>def optimize_for_processing(pcd, max_points=100000):<br>    &quot;&quot;&quot;<br>    Optimize point cloud for processing<br>    &quot;&quot;&quot;<br>    # 1. Downsample if too large<br>    if len(pcd.points) &gt; max_points:<br>        pcd = manage_resolution(pcd, max_points)<br>    <br>    # 2. Estimate normals if needed<br>    if not pcd.has_normals():<br>        pcd.estimate_normals(<br>            search_param=o3d.geometry.KDTreeSearchParamHybrid(<br>                radius=0.1, max_nn=30<br>            )<br>        )<br>    <br>    return pcd</pre><h3>Conclusion</h3><p>Working with point-cloud data requires careful attention to format standardization, coordinate systems, alignment, and preprocessing. The code examples provided here form a foundation for building robust point-cloud processing pipelines.</p><p>Remember to:</p><ul><li>Always validate input data formats</li><li>Check coordinate system consistency</li><li>Implement proper preprocessing steps</li><li>Consider performance implications of sampling</li></ul><p>Visualization also serves a crucial role in unit testing point cloud processing functions. In my experience, manually inspecting the visual output of each function in the pipeline has been invaluable for catching subtle issues and ensuring correct behaviour that might not be apparent from numerical tests alone.</p><p>Resources</p><ul><li>Open3D Documentation: <a href="http://www.open3d.org/docs/">http://www.open3d.org/docs/</a></li><li>Point Cloud Library (PCL): <a href="https://pointclouds.org/">https://pointclouds.org/</a></li><li>NumPy Documentation: <a href="https://numpy.org/doc/">https://numpy.org/doc/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec8b73e7a8e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Gradient Boosting Algorithms Have Become a Popular Choice for Tabular Data]]></title>
            <link>https://medium.com/@ksingh23/why-gradient-boosting-tree-based-algorithms-have-become-a-popular-choice-for-tabular-data-90765ec60762?source=rss-94289c9c93b------2</link>
            <guid isPermaLink="false">https://medium.com/p/90765ec60762</guid>
            <category><![CDATA[tabular-data]]></category>
            <category><![CDATA[mls]]></category>
            <category><![CDATA[gradient-boosting]]></category>
            <dc:creator><![CDATA[Kriti Singh]]></dc:creator>
            <pubDate>Sun, 12 Jan 2025 09:54:00 GMT</pubDate>
            <atom:updated>2025-01-13T09:42:14.661Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Having worked extensively with real-world tabular datasets — from multispectral band data extracted from UAV images to large-scale industrial machine sensor data — I’ve consistently found myself turning to XGBoost or other gradient boosting approaches for optimal performance. While my approach always involves experimenting with various algorithms, from classical machine learning methods to neural networks, XGBoost repeatedly emerges as the superior choice.</p><h3>The Journey to XGBoost</h3><p>In my experience working with tabular data, I typically explore several categories of algorithms:</p><ul><li>Classical ML approaches (Linear regression, Lasso regression, SVM)</li><li>Ensemble tree-based methods (Random Forest, Boosting)</li><li>Neural Networks (MLPs)</li></ul><p>While Neural Networks have revolutionized many areas of machine learning, I consistently noticed their performance lagging behind tree-based algorithms when dealing with tabular data. This observation led me to investigate the underlying reasons.</p><h3>Why Tree-Based Algorithms Outperform Deep Learning</h3><p>Through extensive research and practical experience, I discovered several key factors that explain this phenomenon. A groundbreaking paper by Grinsztajn et al. (2022) titled ‘Why do tree-based models still outperform deep learning on tabular data?’ provided compelling experimental evidence for this phenomenon. These were the findings:</p><h3>1. Neural Networks’ Bias Toward Smooth Solutions</h3><p>Neural Networks tend to produce overly smooth solutions, which isn’t always optimal for tabular data. When testing with Gaussian Kernel smoothing at various length-scales, the authors claimed:</p><ul><li>Tree-based models’ accuracy decreased significantly with smoothing</li><li>Neural Networks remained largely unaffected. This suggests that tree-based models are better at capturing irregular patterns in data.</li></ul><h3>2. Resilience to Uninformative Features</h3><p>In real-world tabular datasets, not all features carry equal importance.The authors carried out experiments that revealed:</p><ul><li>Gradient Boosted Trees (GBT) maintained strong performance even after removing up to 50% of less important features</li><li>Models trained on removed features showed very low accuracy, confirming these features were truly uninformative</li><li>Neural Networks struggled more with handling these uninformative features</li></ul><h3>3. The Rotation Invariance Problem</h3><p>A fundamental insight comes from understanding rotational invariance in learning procedures. MLPs face a distinct disadvantage here because:</p><ul><li>They are rotationally invariant as defined by Ng (2004)</li><li>This property means their sample complexity grows linearly with irrelevant features</li><li>Tree-based models, in contrast, can more effectively handle feature relationships in their original orientation</li></ul><h3>The XGBoost Advantage</h3><p>XGBoost, as a tree-based algorithm, inherits these advantages while adding its own optimizations. It provides:</p><ul><li>Superior handling of irregular patterns</li><li>Better feature selection capabilities</li><li>More interpretable results through its tree-based structure</li></ul><h3><strong>Conclusion</strong></h3><p>While neural networks remain at the forefront of machine learning, particularly excelling with large datasets and complex non-linear pattern extraction, they aren’t always the optimal choice. The world of data science often requires finding the delicate balance between model performance and interpretability.</p><p>Tree-based algorithms, particularly XGBoost, have carved out their niche in the machine learning ecosystem, especially for tabular data. They offer a compelling compromise: delivering robust performance while maintaining interpretability. This balance becomes crucial in real-world applications where understanding model decisions is as important as the predictions themselves.</p><p>The key takeaway isn’t that one approach is universally superior, but rather that different problems require different tools. XGBoost and similar tree-based algorithms have become popular precisely because they excel in scenarios where we need both accuracy and transparency. As we continue to work with increasingly complex datasets, having tools that provide this balance becomes not just beneficial, but essential.</p><p>The next time you’re working with tabular data, consider whether you need the full complexity of a neural network, or if a more interpretable, equally effective solution like XGBoost or Random forest, might be the better choice. Sometimes, the simpler solution is indeed the more elegant one.</p><h3>References</h3><p>Grinsztajn, L., Oyallon, E., &amp; Varoquaux, G. (2022). Why do tree-based models still outperform deep learning on tabular data? In <em>Advances in Neural Information Processing Systems</em> (NeurIPS 2022).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90765ec60762" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>