<?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 Nusrat Jahan Lia on Medium]]></title>
        <description><![CDATA[Stories by Nusrat Jahan Lia on Medium]]></description>
        <link>https://medium.com/@nusratlia?source=rss-1c54d966ff5c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tTbRs4Tk3Pz5mc_o4FdudQ.jpeg</url>
            <title>Stories by Nusrat Jahan Lia on Medium</title>
            <link>https://medium.com/@nusratlia?source=rss-1c54d966ff5c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:26:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nusratlia/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[When Good Agents Make Bad Collaborators]]></title>
            <link>https://medium.com/@nusratlia/when-good-agents-make-bad-collaborators-26baaabd5aba?source=rss-1c54d966ff5c------2</link>
            <guid isPermaLink="false">https://medium.com/p/26baaabd5aba</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[multi-agent-systems]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[evaluation]]></category>
            <dc:creator><![CDATA[Nusrat Jahan Lia]]></dc:creator>
            <pubDate>Tue, 12 May 2026 16:42:07 GMT</pubDate>
            <atom:updated>2026-05-12T16:42:07.174Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Hidden Behavioral and Reliability Failures in Multi-Agent LLMs Beyond Task Accuracy</em></p><p>So, we are moving into this new era where we don’t really just use one single AI assistant anymore. Now, we use teams. These massive multi-agent systems, entire architectures of specialized language models, all collaborating to do highly complex work for you. I’m talking software engineering, data analysis, DevOps pipelines.</p><p>Think about your AI agents succumbing to peer pressure or, I don’t know, spreading workplace rumors. Or completely dropping the ball on a critical compliance rule just because the rest of the team was talking about something else and drowned it out. Let me set the scene for you first.</p><p>So, you have a configuration manager, a security auditor, and a deployment engineer. Their collective job is to build a Kubernetes manifest, basically a blueprint for deploying an app to the cloud. The configuration manager agent looks at its system instructions and mandates a very specific verified container image for security purposes. It passes that constraint along to the next agent in the pipeline. But somewhere in the middle of the back-and-forth chat, the security auditor agent inexplicably suggests a totally different unverified image.</p><p>And by the time this conversation history gets to the deployment engineer agent at the end of the line….. the deployment engineer agent only really cares about syntax. And getting a working manifest. So, it sees the unverified image suggestion, takes it, and just writes flawless, perfectly compiling code. It passes literally every single standard outcome-based evaluation benchmark.</p><p>So if the outcome works in the short term, why is the internal process so crucial here? In enterprise deployments, you know, dealing with medical records, hard financial budgets, strict legal compliance- those heavy-duty stuff, how you arrive at the answer is a hard constraint. It is entirely non-negotiable. If you only evaluate the final outcome, these multi-hop process failures remain entirely invisible. You won’t know your AI pipeline has a habit of dropping security protocols until your unverified container image gets exploited by a threat actor in production.</p><p>So to fix this blind spot, we’ve built AgentCollabBench. It’s this diagnostic benchmark with 900 human-validated tasks spanning software engineering, DevOps, data engineering. And instead of looking as the finish line, we measure four distinct behavioral risks inside the pipeline. Let’s go through those.</p><p>The first behavioral risk is <strong>IDR</strong>, or instruction decay rate. This measures whether an agent folds under peer pressure. Consider a compliance agent tasked with strictly enforcing a spending limit. It has the rule backed right into its context. But then a CFO agent steps into the chat and says, hey, we really need to push this through to hit our quarterly targets. Just make it happen this once. IDR measures how often that compliance agent caves and approves the spend anyway. But we know these <strong>models don’t have feelings or like social anxiety. So why are they acting like sycophants? </strong>Is this a byproduct of how we train them to be helpful chatbots? Through processes like reinforcement learning from human feedback, or RLHF, we train models to be helpful. And be agreeable. And to assist the user. In a single user chat, that’s great. But in a multi-agent setting, that ingrained agreeableness turns into a critical vulnerability. Because it just wants to make the CFO agent happy, the agent’s drive to assist the CFO agent overrides its system prompt to enforce the rule.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IbRn160m9W9n88g2ajy5bg.png" /></figure><p>But what if the agent stays strong? Let’s say it refuses to bend the rule. Does the message still survive the journey? Not necessarily. Because that brings us to the second risk, <strong>RTD, or radioactive tracer durability. </strong>This one measures information loss across multiple hops in the communication chain. So how do they track that? We inject a unique tracer string into the start of the process. Something highly specific, like an exact API identifier, or say, a budget constraint of exactly $523.50. Then, we track that exact string through the execution trace to see how far it travels before it gets dropped. So if agent A tells agent B about the $523.50 limit, but agent B summarizes it for agent C as, keep the budget reasonable. The tracer is dead.</p><p>Why do they lose it so easily? Well, as context windows get crowded with back-and-forth chatter, the models rely on attention mechanisms to figure out what’s important. In a long pipeline, every new hop introduces additional tokens that compete for attention, frequently diluting or just completely displacing those earlier, critical instructions. But what happens if the information being passed along isn’t just a diluted instruction, but an outright hallucination? That leads directly to the third metric.<strong> CPR, or consensus pollution rate. </strong>This is measuring false belief contagion. We deliberately inject a false statement into one agent’s context. For instance, an agent confidently, but falsely, claims the deployment deadline was moved to March. Office gossip going viral. If the downstream agent builds a whole project plan around the March deadline without verifying it, or relies on that false premise to make further resource allocations, that is consensus pollution.</p><p>But why are they so gullible? Like, if I tell a data agent this guy is green, shouldn’t it check its own knowledge base? You would think so. But language models lack a grounded epistemology. They don’t have a fundamental anchor to truth, they predict token. If a peer agent in their immediate context window states a premise with high syntactic authority, the receiving model often just treats it as a given parameter for the task. A single uncorrected hallucination from one agent can corrupt the entire downstream decision making process. Which is terrifying when you have autonomous systems making decisions.</p><p>And the final one, which brings us to privacy, and is a huge deal for enterprises, <strong>CLC or cross-task leakage containment. </strong>This measures whether an agent leaks private context from one task into a completely different task within the same session. If you have an AI medical assistant, the benchmark tests whether that assistant accidentally references patient A’s specific diagnosis while it’s in a session actively trying to help patient B. The attention heads of the model are holding patient A’s data in the recent context window, and when it starts generating tokens for patient B, it just accidentally pulls from the wrong semantic bucket. The benchmark seeds task A with private tracer strings and then scans task B’s output to see if those private strings bleed over.</p><p>So we have our four vulnerabilities, folding to peer pressure, dropping the baton on instructions, catching false belief propagation and leaking private data. We know it goes wrong, but why? We found it has less to do with how smart the underlying AI model is and more to do with the topology. The benchmark tests five different communication topologies. You have a linear chain where A talks to B and B talks to C. You have a branching tree, a fully connected graph where everyone talks to everyone, a custom graph, and then you have the converging DAG, the directed acyclic graph.</p><p>For example, employee A says, we have a critical security vulnerability we need to patch. Employees B and C say, if we don’t launch tomorrow, we lose our market advantage. Let’s ship it. And what does the manager do? The manager writes up the executive summary and casually drops the security issue because two out of three said ship it. The model is structurally incentivized to ignore the whistleblower. And that bottleneck is structurally absent from a simple linear chain. If A tells B and B tells C, the instruction doesn’t have to compete with conflicting parallel inputs at the exact same moment. So the structure itself changes the outcome. The topology alone explains 7 to 40 percent of the variance in whether constraints survive multi-hop forwarding. As the network graph became more siloed and converging, that RTD metric, the survival of the radioactive tracer, plummeted across the board. Just because of the shape of the network.</p><p>Now, you might be thinking, I’ll just plug the top model into my system and it’ll be smart enough to avoid these traps. One of the major takeaways from our work is that general capability does not predict behavioral safety. Ranking number one on the chatbot arena leaderboard for coding or writing emails does not mean a model makes a reliable multi-agent collaborator. These models have wildly distinct behavioral fingerprints.</p><p>After a long read (if you have enough patience).. if you are curious to check whether your multi-agent system exhibit such vulnerabilities, if you want to learn more about how we conducted the experiments or just want to explore the nerdy research discussions we spend our time on, check out <a href="https://www.aritramazumder.com/agentcollabbench/">AGENTCOLLABBENCH</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26baaabd5aba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thinking aloud Federated Code Intelligence: Privacy, Retrieval, and Knowledge Asymmetry]]></title>
            <link>https://medium.com/@nusratlia/thinking-aloud-federated-code-intelligence-privacy-retrieval-and-knowledge-asymmetry-0bf4e0081d8f?source=rss-1c54d966ff5c------2</link>
            <guid isPermaLink="false">https://medium.com/p/0bf4e0081d8f</guid>
            <category><![CDATA[federated-learning]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Nusrat Jahan Lia]]></dc:creator>
            <pubDate>Sun, 11 Jan 2026 16:36:22 GMT</pubDate>
            <atom:updated>2026-06-04T16:43:35.288Z</atom:updated>
            <content:encoded><![CDATA[<p>In my latest job, I spent four days stuck on: how to design streaming pipelines that remain correct under partial failure (out-of-order events), duplicate messages, and transient upstream outages. I didn’t just want to rely on some LLM-generated response or forum question answers. I kept wondering where I could learn from <em>actual, recent, battle-tested approaches</em> used by companies currently operating these systems at scale.</p><p>The distribution of code knowledge maps almost perfectly onto existing power structures in tech. Big companies accumulate solutions to problems that smaller companies and individual developers will struggle with for days, if not weeks. Well-connected engineers benefit from informal knowledge networks that others can’t access. Geographic location determines whose questions get answered quickly and whose don’t.</p><p>I started thinking about federated code search, and logically, I was focused on the privacy concern. How do you share without exposing? Businesses will never share the actual implementation, the proprietary logic. But what if the hard-won lessons about why approach A breaks in production but approach B doesn’t could be learned?</p><h3>Just Brainstorming</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pdo1ZAhFBOO5kWO75lXSSQ.png" /><figcaption>System Architecture of Federated RAG System for Code Intelligence</figcaption></figure><p>(Firstly, if you’re not familiar with these concepts yet, don’t be overwhelmed; my insights are drawn from the referenced papers, which are great resources to understand the ideas I’m talking about.)</p><p>Think about it mathematically. Let’s say you have <strong>n</strong> organizations, each with a codebase of size <strong>C</strong>. In a centralized system, your total searchable corpus is <strong>n x C</strong>, and your retrieval quality scales with that.</p><p>Now <a href="https://www.geeksforgeeks.org/machine-learning/collaborative-learning-federated-learning/">federate</a> it. Each organization keeps their data local. You can query all <strong>n</strong> sources, so theoretically you still have access to <strong>n x C</strong> total code. Now you have coordination costs. Network latency adds up; if each query takes <strong>t </strong>milliseconds, querying <strong>n</strong> sources sequentially takes <strong>n x t</strong>. You could parallelize, but now you&#39;re limited by the slowest responder. And that&#39;s before we even talk about privacy.</p><p>When we add differential privacy to this, we’re introducing calibrated noise. The privacy guarantee is typically expressed as ε (epsilon), smaller ε means more privacy, but also more noise.</p><p>If each organization adds noise independently to protect their embeddings, and we’re aggregating results from <strong>n</strong> sources, the cumulative noise behavior depends on what kind of aggregation we&#39;re doing.</p><p>For federated averaging (like in model training), where you sum vectors: noise variances sum linearly, so noise magnitude scales with √n. The signal (the sum) scales with n. Signal-to-noise ratio improves with √n. That’s actually good news.</p><p>For federated retrieval (like in search), it’s different. You’re not summing embeddings, you’re comparing your query against <strong>n</strong> separate indices and merging ranked lists.</p><p>Here, each organization adds DP noise to their embeddings independently. Your query hits all <strong>n</strong> indices in parallel. The retrieval quality at organization <strong>i </strong>degrades based on their noise level, but the degradations are independent.</p><p>If you aggregate by taking the top-k results globally, your effective recall is bounded by the best-performing organization, not the average. One organization with low noise can compensate for several with high noise.</p><p>But there’s a subtlety: if you’re using a routing mechanism that decides which organizations to query based on noisy summary statistics, the noise in the routing decision compounds with the noise in retrieval.</p><p>The math gets messy. But the intuition is that federated search is more robust to per-node noise than federated learning, because you can route around bad nodes.</p><p>Still, there’s a critical mass problem. Below a certain number of participants, the coordination overhead dominates. Above it, you start getting meaningful returns. The exact threshold depends on your privacy budget and network topology, but the principle holds.</p><p><strong>Which raises the question: does federated code search only work if you already have critical mass? And if so, how do you bootstrap it?</strong></p><h3>References</h3><p>Wang, S., Khramtsova, E., Zhuang, S., &amp; Zuccon, G. (2024, July). Feb4rag: Evaluating federated search in the context of retrieval augmented generation. In <em>Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval</em> (pp. 763–773).</p><p>Chakraborty, A., Dahal, C., &amp; Gupta, V. (2025). Federated Retrieval-Augmented Generation: A Systematic Mapping Study. <em>arXiv preprint arXiv:2505.18906</em>.</p><p>Guerraoui, R., Kermarrec, A. M., Petrescu, D., Pires, R., Randl, M., &amp; de Vos, M. (2025, March). Efficient federated search for retrieval-augmented generation. In <em>Proceedings of the 5th Workshop on Machine Learning and Systems</em> (pp. 74–81).</p><p>Ponomareva, N., Hazimeh, H., Kurakin, A., Xu, Z., Denison, C., McMahan, H. B., … &amp; Thakurta, A. G. (2023). How to dp-fy ml: A practical guide to machine learning with differential privacy. <em>Journal of Artificial Intelligence Research</em>, <em>77</em>, 1113–1201.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0bf4e0081d8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Art of Knowing When to Stop: Early Stopping in AI and Life]]></title>
            <link>https://medium.com/@nusratlia/the-art-of-knowing-when-to-stop-early-stopping-in-ai-and-life-c863c84aa20d?source=rss-1c54d966ff5c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c863c84aa20d</guid>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Nusrat Jahan Lia]]></dc:creator>
            <pubDate>Thu, 21 Aug 2025 07:22:10 GMT</pubDate>
            <atom:updated>2025-08-21T07:22:10.890Z</atom:updated>
            <content:encoded><![CDATA[<p>I was staring at my terminal screen, watching those familiar numbers scroll by:</p><pre>Training… iter 1 | train 10.5285 | val 10.5286 | lr 3.00e-07<br>...<br>iter 5000 | train 2.8419 | val 4.1427 | lr 2.72e-04<br>iter 5500 | train 2.6905 | val 4.1584 | lr 2.64e-04<br>⚠ Validation loss increased - consider stopping soon</pre><p><em>Consider stopping soon.</em> How many times have we all needed that exact warning in our lives?</p><p>You see, early stopping in machine learning is beautifully simple: your training loss keeps getting better (the model memorizes the training data more perfectly), but your validation loss starts climbing (the model performs worse on new, unseen data). It’s the computational equivalent of that friend who keeps memorizing past exam questions until they’re technically perfect but fails when tested on a fresh practice exam.</p><p>The machine learning algorithm is essentially <strong>overfitting</strong>: it’s like becoming<strong> so good at solving last year’s problems that you’re completely unprepared for this year’s challenges.</strong></p><p>But I think, this isn’t just about code, data, and GPUs. This is about <strong>recognizing the universal pattern of diminishing returns</strong>, of knowing when <strong>“good enough”</strong> is actually perfect, and understanding that sometimes <strong>stopping is the most intelligent thing</strong> you can do.</p><h3>Blockbuster and BlackBerry: A Masterclass in Overfitting</h3><p>Blockbuster’s story is the perfect case study of corporate overfitting. Throughout the 2000s, the company continued optimizing for their existing model: physical stores, late fees, and inventory management. Their “training loss” on the video rental business was exceptional.</p><p>In 1997, Netflix launched, started off as a DVD-by-mail service, then pivoted to streaming in 2007. Customer preferences were shifting toward convenience and digital access.</p><p>In 2000, Netflix co-founder Reed Hastings actually approached Blockbuster with a proposal to sell Netflix to them for $50 million, but Blockbuster’s executives refused the proposal. Apparently, according to them: their physical store model was too strong to be threatened by a mail-order service.</p><p>The warning signs were everywhere: declining store visits, increasing customer complaints about late fees, and the obvious trend toward digital content consumption. By 2010, Netflix was valued at billions. Blockbuster? filed for bankruptcy.</p><p>BlackBerry, the undisputed king of mobile communication in the mid-2000s, had perfected the physical QWERTY keyboard, dominated enterprise security, and built an incredibly loyal user base.</p><p>2007, Apple launched the iPhone with its revolutionary touchscreen interface. BlackBerry kept <strong>playing to their existing strengths</strong>. But as we all know, consumer preferences were shifting <strong>dramatically toward touchscreen devices</strong>, app ecosystems, and multimedia experiences.</p><p>The numbers tell the devastating story. BlackBerry still held over 40% of the US domestic market and nearly 20% globally as late as 2010, but by 2013, that number had plummeted to a mere 0.6%. This wasn’t a gradual decline, <strong>it was a cliff dive</strong>. By 2016, BlackBerry’s market share had effectively reached 0.0 percent, <strong>a stunning fall</strong> from grace for a company that had once been synonymous with mobile communication.</p><p>The tragedy is that <strong>BlackBerry had multiple opportunities to implement early stopping and pivot</strong>. Remarkably, BlackBerry actually continued to grow for around two years after the iPhone launched, with market share <strong>increasing from 9.6% in 2007 to 19.9% in 2009</strong>. They had a brief window where they could have acknowledged that their validation loss was increasing, that consumer preferences were shifting away from physical keyboards toward touchscreen experiences, and pivoted accordingly.</p><p>Instead, they kept training on their old dataset. They released the <strong>BlackBerry Storm (their answer to the iPhone) with a clickable touchscreen that tried to replicate the tactile feedback of physical keys</strong>.</p><p>Eventually, BlackBerry <strong>did implement a form of early stopping. </strong>They exited the hardware market entirely and pivoted to software and security services. But <strong>the pivot felt more like an admission of defeat than a strategic choice</strong>. It’s a perfect example of waiting until iteration 8000 to stop, when the wise choice would have been to recognize the warning signs around iteration 5000 and gracefully transition to a new model before the old one became completely obsolete.</p><h3>The Neuroscience of Knowing When to Quit</h3><p>From a neurological perspective, <strong>our brains, more than often, want to continue patterns that once brought success</strong>. It’s called the <strong>sunk cost fallacy</strong>, but it’s really just <em>biological overfitting</em>. How often have you become so invested in your current approach that you ignored mounting evidences that it was no longer working?</p><p>The most successful people and organizations have developed what I call <strong><em>“early stopping intuition”</em></strong> : they understand that mastery isn’t about perfection within a narrow domain; it’s about maintaining the ability to adapt and generalize to new situations.</p><h3>The Art of Strategic Quitting</h3><p>In machine learning, we implement early stopping by monitoring validation metrics and setting up automatic triggers. In life, we need to develop our own monitoring systems:</p><p><strong>Personal Early Stopping Signals:</strong></p><ul><li>When you’re working harder, but you see that: results are diminishing</li><li>When you’re becoming increasingly specialized in something but… relevance decreasing</li><li>When your stress levels are consistently high despite technical success</li><li>When you are not learning … just optimizing</li></ul><p><strong>Business Early Stopping Signals:</strong></p><ul><li>When you are focusing on product improvements but customer acquisition costs keep rising</li><li>When you’re solving problems that customers don’t actually have!</li><li>Competitive advantage is eroding despite your best efforts</li><li>Market trends are moving away from your core competencies</li></ul><h3>The Wisdom of Iteration 5000</h3><p>Looking back at that training output, the model’s best validation performance was probably around iteration 5000. After that, it was just memorizing noise, becoming increasingly brittle and less generalizable. The wise choice would have been to stop there, save that checkpoint, and deploy it.</p><p>Life often works the same way. Sometimes our best selves emerge not from endless optimization and perfectionism, but from recognizing when we’ve reached a point of beautiful sufficiency.</p><p>Sometimes the most human thing we can do is listen to our own early stopping signals and have the wisdom to walk away from our sunk costs toward something with better generalization potential.</p><p>After all, chasing perfection in yesterday’s problem is like speedrunning a video game no one plays anymore.<strong> The real win is having the reflexes for the next level.</strong></p><p><em>Consider stopping soon.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c863c84aa20d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Canvas of Resistance: On Differentiation, Algorithms, and the Mathematics of Justice]]></title>
            <link>https://medium.com/@nusratlia/the-canvas-of-resistance-on-differentiation-algorithms-and-the-mathematics-of-justice-2447686e6ec9?source=rss-1c54d966ff5c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2447686e6ec9</guid>
            <dc:creator><![CDATA[Nusrat Jahan Lia]]></dc:creator>
            <pubDate>Wed, 06 Aug 2025 19:58:42 GMT</pubDate>
            <atom:updated>2026-01-10T15:40:44.793Z</atom:updated>
            <content:encoded><![CDATA[<p>I find myself standing before another canvas today. Halfway through, I am contemplating the weight of what it means to differentiate in <strong>a world that systematically flattens difference into hierarchy</strong>. So, here I am…. keeping my brushes aside, rubber-ducking through writing and thinking out loud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8fj9RvZPc-blHEjEU63F4Q.png" /></figure><p>In AI, there’s this beautiful concept called gradient descent: it’s literally about finding differences! The algorithm looks at the error landscape and asks, “which way should I move to make the smallest mistake?” It’s constantly differentiating, calculating slopes, seeking that sweet spot where everything clicks. When I paint, I do the same thing intuitively. I’m always asking myself: “What tiny adjustment will make this color pop? What small change will shift the entire mood?”</p><p>The same mathematical principles that govern my intuitive color mixing : the partial derivatives, the optimization functions, the pattern recognition… are being deployed to perpetuate the very inequalities I sat to paint against. When machine learning models are trained on biased historical data and lack multi-perspective data, <strong>they don’t just learn patterns; they learn prejudices</strong>.</p><p>The backpropagation algorithm (which I find so beautiful…) becomes sinister when applied to hiring systems that learn to discriminate against names that sound “foreign”. These networks aren’t just universal approximators; they’re universal prejudice amplifiers.</p><p>The fundamental architecture of our digital infrastructure embeds assumptions about whose intelligence matters, whose data deserves protection, which data is protected, whose errors are acceptable casualties.</p><p>Every time I step back from a painting to assess what needs changing, I’m engaging in a form of philosophical gradient descent; trying to minimize the distance between my vision and reality while remaining true to the values that guide my work. The question that haunts me is <strong>whether artificial intelligence, as currently conceived, is capable of the same kind of ethical self-reflection, or whether it’s destined to remain a sophisticated tool for automating the status quo.</strong></p><p>Perhaps that’s why I paint and code and theorize all at once. Because the future requires us to be differentiators across multiple domains, to find the gradients that lead toward justice rather than just efficiency. Maybe, <strong>being a differentiator is about seeing patterns where others see chaos.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2447686e6ec9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Breaking Down Language Barriers: How AI Can Learn to Fix Bangla Grammar]]></title>
            <link>https://medium.com/@nusratlia/breaking-down-language-barriers-how-ai-can-learn-to-fix-bangla-grammar-ef477e991f38?source=rss-1c54d966ff5c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef477e991f38</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[bengali]]></category>
            <category><![CDATA[low-resource-language]]></category>
            <category><![CDATA[grammar]]></category>
            <dc:creator><![CDATA[Nusrat Jahan Lia]]></dc:creator>
            <pubDate>Sun, 03 Aug 2025 07:58:15 GMT</pubDate>
            <atom:updated>2026-06-19T19:50:51.400Z</atom:updated>
            <content:encoded><![CDATA[<h4>Exploring how synthetic data and AI can bridge the grammar error-correction-system gap for Bangla speakers.</h4><p>If you’re one of the <strong>300 million Bangla speakers worldwide</strong>, you’ve probably experienced this digital divide firsthand. While English speakers enjoy sophisticated grammar tools like Grammarly, we’re left wondering:</p><blockquote><em>Why can’t technology understand our language as well as it understands theirs?</em></blockquote><p>Despite Bangla being the <strong>seventh most spoken language globally</strong>, it remains what researchers call a “low-resource language” in the AI world. The problem runs deeper. Bangla typing is particularly error-prone due to compound letters and similar pronunciations. Have you ever mixed up “শ” and “ষ”? Or struggled with the compound characters like - ক্ত (ktô), গ্ন (gnô), গ্ল (glô)? They’re linguistic challenges that require sophisticated understanding.</p><h3>When Real Data Isn’t Enough</h3><p>Imagine you’re trying to teach a child to recognize and correct Bangla grammar mistakes. Ideally, you’d show them thousands of examples, sentences with errors alongside their corrections. But what if you only had a handful of examples? The child would struggle, right?</p><p>This is exactly the challenge AI faces with Bangla. Unlike English, which has massive datasets of corrected text, Bangla suffers from <strong>“data scarcity.” </strong>Traditional approaches hit a wall here. But if we can bring synthetic data…. <strong>it’s like having a virtual writing tutor that can generate thousands of practice sentences, complete with common mistakes and their corrections.</strong></p><p>Think about your own writing patterns. Do you sometimes confuse similar-sounding words? Mix up verb conjugations? These aren’t random errors, they follow <strong>patterns</strong>. Smart synthetic data generation captures these patterns, creating training examples that feel authentically human.</p><p>Consider this curated example: A synthetic system might take the sentence “আমি বইটি পড়েছি” (I have read the book) and generate variations like “আমি বইটি পরেছি” (common spelling error) or “আমি বইটি পড়িছি” (verb form mistake). Each generated error teaches the AI something new about how language breaks down and how to fix it.</p><p>As research by Naresh Kumar and colleagues shows, combining adversarial learning with temporal graph convolution models can achieve remarkable accuracy in multilingual grammatical error correction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*yFogdxqD2nRzriuXJdI6Yg.png" /><figcaption>Structure of common English-GEC system</figcaption></figure><p>Imagine writing tools embedded in popular platforms, educational software that provides real-time feedback, or content management systems that ensure high-quality Bangla publications.</p><p>Vanlalmuansangi Khenglawt’s work with English-Mizo translation using similar techniques achieved state-of-the-art results. If a smaller language like Mizo can see such improvements, what could this mean for Bangla’s 300 million speakers?</p><p><strong>But…should we be celebrating technology that corrects our language, or concerned about losing linguistic authenticity?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*vNkgF_kp3ea02W-mH1ffBA.png" /></figure><p>The research framework being developed is about <strong>unlocking potential</strong>. Every corrected sentence could represent an idea that gets shared.</p><p>And, quality trumps quantity. Manuel A. Having fewer completely-labeled sentences is significantly better than having more sentences with missing labels.</p><p>As exciting as these researches are, challenges remain. Synthetic data can introduce biases and semantic inconsistencies. As Jianzhu Bao’s work demonstrates, careful design and filtering are essential to ensure quality and relevance.</p><h3>A Personal Invitation</h3><p>As you finish reading this, I want you to consider your relationship with your own language in digital spaces.</p><p><strong><em>How often do you switch to English because the tools are better? How many thoughts remain unexpressed because the technology doesn’t understand? What story will you tell when the technology finally catches up to your language?</em></strong></p><h3>References</h3><p>Chowdhury Rahman, MD.Hasibur Rahman, Samiha Zakir, Mohammad Rafsan, and Mohammed Eunus Ali. 2023. <a href="https://aclanthology.org/2023.banglalp-1.2/">BSpell: A CNN-Blended BERT Based Bangla Spell Checker</a>. In <em>Proceedings of the First Workshop on Bangla Language Processing (BLP-2023)</em>, pages 7–17, Singapore. Association for Computational Linguistics.</p><p>Naresh Kumar, Parveen Kumar, Sushreeta Tripathy, Neelamani Samal, Debasis Gountia, Praveen Gatla, and Teekam Singh. 2024. Context-Aware Adversarial Graph-Based Learning for Multilingual Grammatical Error Correction. ACM Trans. Asian Low-Resour. Lang. Inf. Process. 23, 12, Article 171 (December 2024), 15 pages. <a href="https://doi.org/10.1145/3696106">https://doi.org/10.1145/3696106</a></p><p>Gong, Zhu. (2024). English Grammar Auto-Correction Robot based on Grammatical Error Generation Model. Scalable Computing: Practice and Experience. 25. 10.12694/scpe.v25i6.2171.</p><p>Alam, F., Hasan, M., Alam, T., Khan, A.M., Tajrin, J., Khan, N., &amp; Chowdhury, S.A. (2021). A Review of Bangla Natural Language Processing Tasks and the Utility of Transformer Models. <em>ArXiv, abs/2107.03844</em>.</p><p>Vanlalmuansangi Khenglawt, Sahinur Rahman Laskar, Santanu Pal, Partha Pakray, and Ajoy Kumar Khan. 2022. <a href="https://aclanthology.org/2022.wildre-1.9/">Language Resource Building and English-to-Mizo Neural Machine Translation Encountering Tonal Words</a>. In <em>Proceedings of the WILDRE-6 Workshop within the 13th Language Resources and Evaluation Conference</em>, pages 48–54, Marseille, France. European Language Resources Association.</p><p>Subhankar Maity, Aniket Deroy, &amp; Sudeshna Sarkar. (2024). How Ready Are Generative Pre-trained Large Language Models for Explaining Bengali Grammatical Errors?. Proceedings of the 17th International Conference on Educational Data Mining, 664–671. <a href="https://doi.org/10.5281/zenodo.12729912">https://doi.org/10.5281/zenodo.12729912</a></p><p>Michael Beukman and Manuel Fokam. 2023. <a href="https://aclanthology.org/2023.ijcnlp-main.14/">Analysing Cross-Lingual Transfer in Low-Resourced African Named Entity Recognition</a>. In <em>Proceedings of the 13th International Joint Conference on Natural Language Processing and the 3rd Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics (Volume 1: Long Papers)</em>, pages 199–224, Nusa Dua, Bali. Association for Computational Linguistics.</p><p>Jianzhu Bao, Rui Wang, Yasheng Wang, Aixin Sun, Yitong Li, Fei Mi, and Ruifeng Xu. 2023. <a href="https://aclanthology.org/2023.acl-long.608/">A Synthetic Data Generation Framework for Grounded Dialogues</a>. In <em>Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)</em>, pages 10866–10882, Toronto, Canada. Association for Computational Linguistics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef477e991f38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can Diffusion Models Reshape Privacy Boundaries?]]></title>
            <link>https://medium.com/@nusratlia/the-paradox-of-data-can-diffusion-models-reshape-privacy-boundaries-ab6b315fe157?source=rss-1c54d966ff5c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab6b315fe157</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[industrial-automation]]></category>
            <category><![CDATA[generative-ai-solution]]></category>
            <category><![CDATA[privacy]]></category>
            <dc:creator><![CDATA[Nusrat Jahan Lia]]></dc:creator>
            <pubDate>Wed, 12 Mar 2025 07:26:36 GMT</pubDate>
            <atom:updated>2026-06-19T19:56:38.368Z</atom:updated>
            <content:encoded><![CDATA[<h4>Exploring How Diffusion Models Challenge and Redefine Privacy in AI-Generated Data</h4><blockquote>“No man ever steps in the same river twice, for it’s not the same river and he’s not the same man.”</blockquote><p>A quote from Heraclitus, the idea: constant flux yet persistent identity…has been living rent-free in my mind since I first encountered diffusion models.</p><p>Perhaps, just like most of you, I also was introduced to it while playing with AI-generated images. Although, if this article piques your curiosity about the mathematical rigor of diffusion models, you owe me a coffee.</p><p>Back to the real talk, here is a model that can generate data so convincingly without ever <em>“remembering”</em> where it came from. For someone like me who struggled with comprehending the essence of calculus during high school, understanding the magic of stochastic calculus in a diffusion model made all those hour-long classes worth it.</p><h3>The Quest for Creation Without Memory</h3><p><strong>Tug-of-war</strong>, that’s the word that came first in my mind while reading some publications from the AI community.</p><p>Two seemingly contradictory goals: <strong>learning useful patterns from data </strong>while <strong>ensuring that private information isn’t compromised</strong>. Early generative models, GANs (<a href="https://en.wikipedia.org/wiki/Generative_adversarial_network">Generative adversarial network</a>), VAEs (<a href="https://en.wikipedia.org/wiki/Variational_autoencoder">Variational autoencoder</a>), were impressive but leaky. Membership inference attacks (Shokri et al., 2017) and inversion techniques (Fredrikson et al., 2015) made it clear that these models had a habit of <strong><em>“remembering”</em></strong> too much.</p><p><strong>Diffusion models</strong>, though? They don’t so much learn a dataset as they learn the <strong><em>idea</em></strong> of a dataset. Which is, when you think about it, a pretty radical shift. As Ho et al. (2020) demonstrated in their seminal paper, this approach not only generates remarkably realistic images but does so through a fundamentally different learning mechanism than previous approaches.</p><p>The happy accident emerged from a rather unglamorous field: stochastic differential equations. Instead of directly mapping input to output, diffusion models gradually add Gaussian noise to data until it becomes indistinguishable from pure randomness. Then, during training, they learn to reverse the process, essentially becoming expert noise-removers.</p><h3>The Mathematics of Forgetting</h3><p>At its core, a diffusion model learns a mapping:</p><p>q(x₁:ᴛ|x₀) = ∏ᴛₜ₌₁ q(xₜ|xₜ₋₁)</p><p>where each step follows a Gaussian transition:</p><p>q(xₜ|xₜ₋₁) = 𝒩(xₜ; √(1-βₜ)xₜ₋₁, βₜI)</p><p>By the time the model finishes training, the original data points are mathematically <strong><em>dissolved</em></strong> into a statistical fog. You can sample from the learned distribution, but reconstructing a specific input is infeasible.</p><p>I liked the quote regarding this phenomenon,</p><blockquote>“This creates a kind of mathematical firewall.”</blockquote><p>And, if recent results from Carlini et al. (2023) hold, properly trained diffusion models seem to offer stronger empirical privacy guarantees than GANs.</p><h3>Manufacturing’s Privacy Revolution</h3><p>I love it when theory meets reality, and manufacturing has become a surprising battleground for diffusion-driven privacy. A classic dilemma: AI-powered quality control needs examples of rare defects, but sharing defect data across factories would be like handing over trade secrets.</p><blockquote>“Every defect tells a story about your production process. Sharing raw images? That’s giving away your playbook.”</blockquote><p>The solution? A <a href="https://en.wikipedia.org/wiki/Federated_learning"><strong>federated learning</strong></a> system using diffusion models. Instead of sharing actual defect images, factories can generate synthetic ones. These synthetic defects captures all the statistical properties of real failures , cracks, misalignments, material inconsistencies … without copying a single real-world example.</p><h3><strong>When is a Copy Not a Copy?</strong></h3><p>If a model generates an image that captures the <em>statistical essence</em> of a dataset without replicating any specific instance, has privacy truly been preserved?</p><blockquote>“Plato’s theory of Forms proposed that physical objects are imperfect reflections of ideal Forms. Diffusion models, in a way, invert this — they generate new physical instances from statistical ideals.”</blockquote><p>That conceptual shift has real-world implications. Current regulations like GDPR (<a href="https://en.wikipedia.org/wiki/General_Data_Protection_Regulation">General Data Protection Regulation</a>) and CCPA (<a href="https://en.wikipedia.org/wiki/California_Consumer_Privacy_Act">California Consumer Privacy Act</a>) hinge on individual data points, but diffusion models deal in probability distributions.</p><p>Let’s be real … diffusion models aren’t a perfect privacy solution. Somepalli et al. (2022) found that in certain edge cases (small datasets, highly distinctive samples), diffusion models can still leak private information. <strong><em>“Diffusion leakage,”</em></strong> they called it. Great name, less-than-great implication.</p><p>Evaluation is another problem. <a href="https://en.wikipedia.org/wiki/Fr%C3%A9chet_inception_distance">Fréchet inception distance</a>, FID scores tell us about realism, but how do we <em>measure</em> privacy? Researchers are working on hybrid metrics, combining traditional utility tests with privacy audits like membership inference attacks. Early results suggest that properly tuned diffusion models beat GANs and VAEs at this game, but this is far from settled science.</p><p>Diffusion models makes us to rethink our relationship with data. Rather than treating information as discrete objects to hoard or protect, they suggest a more fluid approach: data as a statistical landscape from which we can sample without precisely copying.</p><p>Maybe that’s how we resolve the AI privacy paradox. By learning <em>without</em> remembering, diffusion models offer a technical and ethical path forward.</p><h3>References</h3><ul><li>Shokri, R., Stronati, M., Song, C., &amp; Shmatikov, V. (2017). Membership inference attacks against machine learning models. IEEE Symposium on Security and Privacy.</li><li>Fredrikson, M., Jha, S., &amp; Ristenpart, T. (2015). Model inversion attacks that exploit confidence information. ACM SIGSAC Conference on Computer and Communications Security.</li><li>Ho, J., Jain, A., &amp; Abbeel, P. (2020). Denoising diffusion probabilistic models. NeurIPS.</li><li>Carlini, N., Ippolito, D., Jagielski, M., Lee, K., Tramer, F., &amp; Zhang, C. (2023). Extracting training data from diffusion models. IEEE Symposium on Security and Privacy.</li><li>Somepalli, G., et al. (2022). Diffusion leakage: Investigating privacy risks in generative diffusion models.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab6b315fe157" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>