<?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 Mahmudul Hasan on Medium]]></title>
        <description><![CDATA[Stories by Mahmudul Hasan on Medium]]></description>
        <link>https://medium.com/@mahmud.csedu?source=rss-e72ecc0ea936------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4hnaKnkwIRXUKbo4dEz6Cg.png</url>
            <title>Stories by Mahmudul Hasan on Medium</title>
            <link>https://medium.com/@mahmud.csedu?source=rss-e72ecc0ea936------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 12:05:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mahmud.csedu/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[Waiting for a “Clean Perfect Dataset” Is How AI Projects Die]]></title>
            <link>https://medium.com/@mahmud.csedu/waiting-for-a-clean-perfect-dataset-is-how-ai-projects-die-96e033e839ca?source=rss-e72ecc0ea936------2</link>
            <guid isPermaLink="false">https://medium.com/p/96e033e839ca</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Mahmudul Hasan]]></dc:creator>
            <pubDate>Fri, 16 Jan 2026 20:38:17 GMT</pubDate>
            <atom:updated>2026-01-16T20:38:17.862Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sFtWCGstEpPiWvHCEOuo6w.png" /><figcaption>Drawn by my 5 year old daughter</figcaption></figure><p><strong>In applied machine learning, there’s a quiet killer that rarely shows up in postmortems or architecture diagrams.</strong></p><p>It’s not model choice.<br>It’s not cloud cost.<br>It’s not even technical debt.</p><p>It’s the belief that <em>we should wait until the data is clean</em>.</p><p>I’ve seen promising AI initiatives stall for months — sometimes years — not because the problem was unsolvable, but because teams were waiting for a mythical moment when the dataset would be “ready.”</p><p>That moment almost never comes.</p><h3>The Myth of the Perfect Dataset</h3><p>In academic settings, we’re trained on well-curated datasets:</p><ul><li>clean labels</li><li>balanced classes</li><li>clear definitions</li></ul><p>Real-world systems look nothing like that.</p><p>In production AI — especially in domains like content moderation, recommendations, fraud detection, or personalization — data is:</p><ul><li>noisy</li><li>incomplete</li><li>biased</li><li>inconsistently labeled</li><li>constantly changing</li></ul><p>And that’s not a bug. It’s reality.</p><p>If your project depends on perfectly labeled, perfectly balanced data before you can move forward, the project is already in trouble.</p><h3>What Successful Teams Do Instead</h3><p>The teams that succeed don’t wait. They <strong>ship imperfect models early</strong> and design their systems to learn over time.</p><p>Their approach usually looks like this:</p><ol><li><strong>Start with weak or partial labels</strong><br>Publisher tags, heuristic rules, metadata, legacy systems — none of these are perfect, but they are directionally useful.</li><li><strong>Train a baseline model</strong><br>Not to impress anyone with accuracy numbers — but to establish a reference point.</li><li><strong>Measure what actually matters</strong><br>Precision vs. recall trade-offs, false positives, false negatives, and business risk — not just overall accuracy.</li><li><strong>Deploy behind guardrails</strong><br>Conservative thresholds, human-in-the-loop review, or limited rollout.</li><li><strong>Learn from production signals</strong><br>Disagreements, overrides, edge cases, feedback loops.</li><li><strong>Iterate deliberately</strong><br>Improve labels, rebalance data, refine definitions, retrain.</li></ol><p>This loop — <strong>ship → measure → learn → iterate</strong> — is the foundation of applied AI.</p><h3>Why Waiting Feels “Responsible” (But Isn’t)</h3><p>Waiting for cleaner data often <em>feels</em> like the responsible choice. Teams worry about:</p><ul><li>model reliability</li><li>reputational risk</li><li>future rework</li><li>technical correctness</li></ul><p>These concerns are valid — but waiting rarely reduces risk. It just delays learning.</p><p>The real risk is building a model in isolation from real-world usage and discovering too late that:</p><ul><li>the definition was wrong</li><li>the edge cases matter more than expected</li><li>the metrics don’t align with business goals</li></ul><p>You don’t eliminate uncertainty by waiting. You eliminate it by <strong>testing assumptions early</strong>.</p><h3>Imperfect Models Can Still Create Value</h3><p>An early-stage model doesn’t need to be perfect to be useful.</p><p>A model with:</p><ul><li>70% accuracy</li><li>known failure modes</li><li>calibrated confidence scores</li><li>clear thresholds</li></ul><p>can already:</p><ul><li>reduce manual workload</li><li>flag high-risk cases</li><li>support decision-making</li><li>surface patterns humans miss</li></ul><p>The key is <strong>honesty</strong>:</p><ul><li>Be explicit about what the model can and cannot do.</li><li>Document assumptions.</li><li>Align expectations with stakeholders.</li></ul><p>An imperfect but well-understood model is far more valuable than a perfect model that never ships.</p><h3>This Is What I Emphasize When Teaching AI</h3><p>When I teach applied AI/ML to professionals, this is a recurring theme:</p><p><strong><em>Model architecture is important — but engineering judgment matters more.</em></strong></p><p>Understanding:</p><ul><li>when to ship</li><li>how to evaluate risk</li><li>how to design feedback loops</li><li>how to align with business constraints</li></ul><p>These skills separate production ML from academic exercises.</p><p>AI systems don’t succeed because the first version was flawless.<br>They succeed because the team <strong>designed for learning</strong>.</p><h3>Progress Beats Paralysis</h3><p>If there’s one takeaway, it’s this:</p><p><strong>Progress beats paralysis. Every time.</strong></p><p>Don’t wait for perfect data.<br>Don’t wait for perfect labels.<br>Don’t wait for perfect definitions.</p><p>Ship something reasonable. Measure carefully. Learn relentlessly. Iterate responsibly.</p><p>That’s how real AI systems are built.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96e033e839ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multilayer Prompting - an effective approach to talk to LLM]]></title>
            <link>https://medium.com/@mahmud.csedu/iterative-refinement-in-text-analysis-introducing-the-concept-of-multilayer-prompting-in-ai-96eb3de616c5?source=rss-e72ecc0ea936------2</link>
            <guid isPermaLink="false">https://medium.com/p/96eb3de616c5</guid>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Mahmudul Hasan]]></dc:creator>
            <pubDate>Wed, 05 Jun 2024 23:33:23 GMT</pubDate>
            <atom:updated>2024-07-03T19:18:59.994Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Multilayer Prompting - an Effective Approach to Talk to LLM</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BSQ02qj5KGxXvSfO" /><figcaption>Photo by <a href="https://unsplash.com/@allauddimiajee?utm_source=medium&amp;utm_medium=referral">🄰llauddin 🄼iajee</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>In the rapidly evolving landscape of AI and machine learning, extracting meaningful insights from large volumes of text data remains a significant challenge. Traditional methods often fall short in capturing the nuanced context and intricate details embedded in unstructured text. However, the advent of Large Language Models (LLMs) has opened up new avenues for text analysis, enabling more sophisticated and accurate feature extraction. One such innovative technique that I have explored recently in one of my recent projects, which has shown great promise, is Multilayer Prompting.</p><h3><strong>Understanding Multilayer Prompting</strong></h3><p>Multilayer prompting is a strategic approach that involves breaking down the task of text analysis into multiple stages, each stage building upon the results of the previous one. This technique leverages the power of LLMs like GPT-4 to process and refine text data iteratively, ultimately leading to more precise and insightful outcomes.</p><h3><strong>The Multilayer Prompting Process</strong></h3><ol><li><strong>Initial Prompting for Preliminary Insights:</strong> The process begins with an initial prompt designed to generate a broad outcome from the text data. This could involve summarizing large chunks of text, identifying key themes, or extracting basic entities such as names, dates, and locations. The goal at this stage is to produce a foundational layer of understanding that sets the stage for more detailed analysis.</li><li><strong>Refinement through Secondary Prompts:</strong> Once the initial layer of analysis is complete, secondary prompts are employed to refine and enhance the results. For example, if the first prompt identified several key themes, the next prompt could delve deeper into each theme to uncover sub-themes, sentiment, or specific details that were not apparent in the initial analysis. This iterative approach helps in building a richer and more nuanced understanding of the text data.</li><li><strong>Advanced Analysis with Tertiary Prompts:</strong> The final stage involves using tertiary prompts to perform advanced analysis on the refined data. This could include generating actionable insights, predicting trends, or even formulating recommendations based on the extracted features. By this stage, the text data has undergone multiple layers of processing, each adding a new dimension of depth and clarity.</li></ol><h3><strong>How is it Different than Chain of Thought (CoT) Prompting?</strong></h3><p>The concept of multilayer prompting is indeed similar to the Chain of Thought (CoT) prompting used in language models, but there are some nuances that differentiate the two approaches. Here’s a breakdown of both concepts and how they compare:</p><p>Chain of Thought prompting is a technique used to improve the reasoning capabilities of language models by generating a series of intermediate reasoning steps that lead to the final answer. It encourages the model to think step-by-step, breaking down complex problems into smaller, manageable chunks.</p><h3><strong>Chain of Thought Prompting Process:</strong></h3><ol><li><strong>Prompt Generation:</strong> The initial prompt guides the model to start reasoning about the problem.</li><li><strong>Intermediate Steps:</strong> The model generates intermediate steps or thoughts that build upon each other sequentially.</li><li><strong>Final Answer:</strong> The model arrives at the final answer after considering all the intermediate steps.</li></ol><h3><strong>Key Differences between Multilayer and Chain of Thought Approach:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*elCq0rac5pUS4b2wWXAHWw.png" /></figure><p>While both Chain of Thought and Multilayer Prompting involve breaking down tasks into smaller, manageable parts, they serve different purposes and are applied in different contexts. Chain of Thought prompting enhances logical reasoning capabilities by guiding the model through intermediate steps, whereas multilayer prompting enhances text data analysis through iterative refinement and layered processing. Understanding these differences can help practitioners choose the most appropriate technique for their specific needs.</p><h3><strong>Applications of Multilayer Prompting</strong></h3><p>Multilayer prompting has a wide range of applications across different industries. In marketing, it can be used to analyze various kind of datasets like customer feedbacks or call center transcripts, or social media texts, or product reviews to understand brand sentiment and identify emerging trends. In healthcare, it can help in processing clinical notes and research papers to extract relevant information for patient care and medical research. In finance, it can be leveraged to analyze market reports and news articles to create very specific features or to gain insights into market movements and investment opportunities.</p><h3><strong>The Importance of Validation</strong></h3><p>While multilayer prompting can significantly enhance the quality of text analysis, it is crucial to validate the results at each stage of the process. Validation ensures that the insights generated are accurate, reliable, and free from biases. This can be achieved through various methods, including cross-referencing with external data sources, manual verification, and using additional models to corroborate the findings.</p><h3><strong>Conclusion</strong></h3><p>In the age of big data, the ability to extract meaningful insights from large volumes of text data is more important than ever. Multilayer prompting offers a powerful and flexible approach to text analysis, enabling organizations to uncover deeper insights and make more informed decisions. However, it is essential to validate the results at each stage to ensure their accuracy and reliability. By embracing multilayer prompting, businesses can harness the full potential of LLMs and stay ahead in the competitive landscape of data-driven decision-making.</p><h3><strong>References:</strong></h3><p>1. Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B., Xia, F., Chi, E., Le, Q., &amp; Zhou, D. (2022). Chain of Thought Prompting Elicits Reasoning in Large Language Models.</p><p>2. Boshi Wang, Sewon Min, Xiang Deng, Jiaming Shen, Will Wu, Luke Zettlemoyer, Huan Sun (2023). Towards Understanding Chain-of-Thought Prompting: An Empirical Study of What Matters.</p><p>If you have any questions or simply interested to chat about AI, reach out to me at <strong><em>mahmud.csedu@gmail.com</em></strong> or connect with me on <a href="https://www.linkedin.com/in/mahmudul-hasan-7558047/"><strong><em>LinkedIn</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96eb3de616c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>