<?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 Hamid Reza Mazandarani on Medium]]></title>
        <description><![CDATA[Stories by Hamid Reza Mazandarani on Medium]]></description>
        <link>https://medium.com/@hamidrezam?source=rss-71993f9a740c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eLIUvOUnQApTwI65vlQi-g.png</url>
            <title>Stories by Hamid Reza Mazandarani on Medium</title>
            <link>https://medium.com/@hamidrezam?source=rss-71993f9a740c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 08:10:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hamidrezam/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[What AI Asks of a Researcher]]></title>
            <link>https://medium.com/@hamidrezam/what-ai-asks-of-a-researcher-10255ec68231?source=rss-71993f9a740c------2</link>
            <guid isPermaLink="false">https://medium.com/p/10255ec68231</guid>
            <category><![CDATA[work-psychology]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[simulation]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Hamid Reza Mazandarani]]></dc:creator>
            <pubDate>Fri, 06 Nov 2026 22:24:57 GMT</pubDate>
            <atom:updated>2026-11-06T22:26:33.883Z</atom:updated>
            <content:encoded><![CDATA[<p>Say I ask an AI assistant (Claude, Codex, or another tool in November 2026) to write a simulation of packets waiting at a network router. It needs a few minutes. I could get coffee or tea, but I’ve only just sat down with one.</p><h3>While the model runs</h3><p>There’s an email I owe a colleague, so I start there. Halfway through, I remember a paper with an equation that might belong in the simulation. I open the paper and ask a second AI session about the equation. Just as the equation starts to make sense, the code is ready.</p><p>Before I can check the code, I have to scroll back to my prompt. What did I tell it about the traffic? My colleague, meanwhile, is still waiting for that email. I’d love to see a psychologist study an afternoon of working this way. All that switching back and forth (i.e., <em>context switching</em>) sounds tiring, even on a day when the AI does everything I ask.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1fT_gkbUh4qd-yadRZUQOA.jpeg" /></figure><h3>From LEGO bricks to marble</h3><p>When I write a simulation myself, I decide how packets arrive before I can see how long they wait. It’s one reason I think of research as building with LEGO. By the time I can pick the thing up, I know which pieces gave me trouble.</p><p>An AI agent can give me the whole simulation in one go, complete with a plot, a paragraph explaining it, and ideas for what to try next. It feels closer to sculpting. <strong>Most of the work now is deciding what I can cut away.</strong> One advantage code has over marble is that I can put a piece back.</p><p>I’d put the plot aside for a minute and look at the lines of code that generate the traffic. Perhaps the average delay looks so well behaved because the packets in this little network arrive much more regularly than the ones I wanted to study. I’d like to know what happens to that curve when they arrive in bursts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*29hc89NV23kFThXFZ0F1jQ.jpeg" /></figure><h3>What average delay misses on a video call</h3><p>I could spend quite a while on simulation before remembering why I cared about delay. Imagine a video call that goes smoothly until you ask someone a question. You see their mouth move, the picture freezes, and the next thing you hear is the end of their answer. The average delay over the whole call might look fine.</p><p>A <a href="https://www.nature.com/articles/d41586-026-01551-3"><em>Nature</em> editorial</a> credits researchers with “wisdom, empathy and sheer messiness.” I especially like that last one. I can plan a perfectly sensible afternoon around proving something about average delay. One conversation with the caller could undo the plan. They might remember exactly which words they missed and have very little to say about the rest of the call.</p><p>I’d want to write down when that happened, pull up the measurements, and look at the few seconds around the freeze. Maybe a burst of traffic explains it. Maybe something else happened that I’d never think to put in the simulation. I’d like to leave myself time to find out.</p><p><em>I used GPT to generate the images and AI to polish the text.</em></p><p>References are a couple of my LinkedIn posts<br><a href="https://lnkd.in/p/e55ckSWF">https://lnkd.in/p/e55ckSWF</a><br><a href="https://lnkd.in/p/e6X9mMwC">https://lnkd.in/p/e6X9mMwC</a><br><a href="https://lnkd.in/p/etG2Fi94">https://lnkd.in/p/etG2Fi94</a><br><a href="https://lnkd.in/p/ewHQNma5">https://lnkd.in/p/ewHQNma5</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10255ec68231" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Imagining and Building Wise Machines]]></title>
            <link>https://medium.com/@hamidrezam/imagining-and-building-wise-machines-3b52a00c3314?source=rss-71993f9a740c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b52a00c3314</guid>
            <category><![CDATA[wisodm]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[cognition]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Hamid Reza Mazandarani]]></dc:creator>
            <pubDate>Thu, 21 Nov 2024 09:26:01 GMT</pubDate>
            <atom:updated>2024-11-21T09:26:01.562Z</atom:updated>
            <content:encoded><![CDATA[<p>This post briefly summarises the recently published paper <strong>Imagining and Building Wise Machines: The Centrality of AI Metacognition</strong>, co-authored by renowned figures including <a href="https://en.wikipedia.org/wiki/Yoshua_Bengio">Yoshua Bengio</a> and <a href="https://en.wikipedia.org/wiki/Melanie_Mitchell">Melanie Mitchell</a>. Access the preprint version <a href="https://arxiv.org/abs/2411.02478">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o_hpz4zYLctvg9nRsGdixw.png" /><figcaption>It’s fascinating that authors from different fields collaborated.</figcaption></figure><h3>The missing piece of AI puzzle</h3><p>The authors discuss current AI systems&#39; limitations, noting that they “struggle in novel and unpredictable environments beyond their training data — they lack <em>robustness</em>.” They also highlight issues related to <em>explainability</em>, <em>cooperation</em>, and <em>safety</em>. They assert that the root of all these problems is the fact that AI systems “<strong>are not wise</strong>”.</p><p>They define wisdom as “the ability to successfully navigate intractable problems,” which involves two strategies:</p><ul><li><strong>Task-level:</strong> to manage the problem itself</li><li><strong>Metacognitive:</strong> to flexibly manage those task-level strategies (much less well-developed, according to the authors)</li></ul><p>The figure below illustrates the overall concept.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AOiW2rPyLZQYcAVlYziBOQ.jpeg" /></figure><h3>What makes us humans wise?</h3><p>The paper provides a literature review on various conceptualizations regarding wisdom and metacognition processes in the social and cognitive sciences.</p><p>The table below lists some processes that constitute wise behavior in humans.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IbyLlh0qKxIyrqYzfX1GWQ.jpeg" /></figure><h3>Wise Human == Wise Machine?</h3><p>Another interesting topic is addressed in the paper:</p><blockquote>“[Does] building wise AI will simply boil down to implementing the metacognitive strategies of wise humans”?</blockquote><p>This is important because machines and humans operate under different constraints, including our unique “computational constraints and social milieus”. (1)</p><p>The authors do not provide a definitive answer to this question, as it remains an open problem. However, regardless of the meaning, a wise machine offers many benefits, illustrated by the following scenarios:</p><ul><li><strong>Robust AI</strong>. “Intellectual humility leads reasoners to moderate confidence in predictions when the environment is uncertain or novel”</li><li><strong>Explainable AI</strong>. “A wise reasoner might introspect on her knowledge, determine that she does not know enough to make an informed decision [in a problem], and thereby seek out alternative points of view.”</li><li><strong>Cooperative AI</strong>. “Autonomous vehicles must negotiate the rules of the road with both other autonomous vehicles”</li><li><strong>Safe AI</strong>. “AIs with appropriately calibrated confidence can target the most likely safety risks”</li></ul><h3>How?</h3><p>Now is the time for authors to describe their strategies for designing wise AI systems. I found this section somewhat understated, perhaps because the paper aims to speculate on the problem of AI wisdom, rather than providing specific and straightforward solutions.</p><p>First, we must know <em>when </em>a system is wise, which is challenging because agents can memorize patterns (without novel reasoning); we need to evaluate both the outcome and underlying process, as well as provide a rich context for AI systems in real-world situations.</p><p>The next step is training these systems, for which two approaches are suggested:</p><p><strong>1st approach:</strong></p><ol><li>training models for wise strategy selection directly;</li><li>training them to use those strategies correctly.</li></ol><p><strong>2nd approach:</strong></p><ol><li>Evaluate whether models can explain their metacognitive strategies in benchmark cases;</li><li>Simultaneously train strategies and outputs.</li></ol><p>Let’s wrap up this post with the paper’s final sentence:</p><blockquote>We may not know precisely what form wisdom in AI will take but it must surely be preferable to folly.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4ACiQ78R-q3_pn9GpF-mIA.jpeg" /><figcaption>The Wild Robot, Image Credit: nytimes.com</figcaption></figure><p>(1) I strongly suggest the book “Seven and a Half Lessons About the Brain” by Lisa Feldman Barret. In this book, we read:</p><blockquote>Why did a brain like yours evolve? That question is not answerable because evolution does not act with purpose — there is no “why.” But we can say what is your brain’s most important job. It’s <strong>not </strong>rationality. <strong>Not </strong>emotion. <strong>Not </strong>imagination, or creativity, or empathy. Your brain’s most important job is to control your body — to manage allostasis — by predicting energy needs before they arise so you can efficiently make worthwhile movements and survive.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b52a00c3314" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Semantic Revolution from Communications to Orchestration for 6G]]></title>
            <link>https://medium.com/@hamidrezam/semantic-revolution-from-communications-to-orchestration-for-6g-e01f5b0ec152?source=rss-71993f9a740c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e01f5b0ec152</guid>
            <category><![CDATA[semcom]]></category>
            <category><![CDATA[semantic-communications]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[6g]]></category>
            <dc:creator><![CDATA[Hamid Reza Mazandarani]]></dc:creator>
            <pubDate>Tue, 02 Jul 2024 11:54:46 GMT</pubDate>
            <atom:updated>2024-07-02T11:54:46.012Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I will be discussing the key concepts from our recently accepted research paper titled <a href="https://arxiv.org/abs/2407.00081v1"><strong>Semantic Revolution from Communications to Orchestration for 6G: Challenges, Enablers, and Research Directions</strong></a> authored by <a href="https://www.linkedin.com/in/mshokrnezhad">Masoud Shokrnezhad</a>, <a href="https://www.linkedin.com/in/hamid-reza-mazandarani">myself</a>, and Professors <a href="https://www.linkedin.com/in/tariktaleb">Tarik Taleb</a>, <a href="https://www.linkedin.com/in/jaeseung-song-9302865/">JaeSeung Song</a>, and <a href="https://www.linkedin.com/in/richardforinternet/">Richard Li</a>, and has been accepted in <strong>IEEE Network Magazine</strong>.</p><p>Whether you are an expert in the field or new to the topic, this article helps connect the complexities of our paper to a broader audience interested in the future of wireless networks.</p><p><strong>Disclaimer: This article represents an unofficial, personal viewpoint and is not affiliated with the referenced paper, the copyright of which belongs to IEEE.</strong></p><p><em>Note</em>: The quoted text is from the paper. Side notes are specified with numbers.</p><h3>6G, SemCom, and their Interdependence</h3><p><strong>6G </strong>represents the <strong>6</strong>th <strong>G</strong>eneration of mobile networks, succeeding 5G. Besides enhancing current applications, there will be a surge of new applications in 6G, including holographic teleportation, <a href="https://en.wikipedia.org/wiki/Immersive_learning">immersive learning</a>, and <a href="https://en.wikipedia.org/wiki/Precision_agriculture">precision agriculture</a>, to name a few.</p><p><strong>Sem</strong>antic <strong>Com</strong>munications (<strong>SemCom</strong>) is an emerging paradigm in communications and networking. Throughout the history of communications, the <strong>Shannon </strong>paradigm has governed, “primarily optimizes opaque data pipes aiming to reproduce exactly exchanged sequences of symbols”. However, SemCom “centres on <strong><em>effectively </em></strong>inferring the <strong><em>meaning </em></strong>of what has been communicated” (1). The effectiveness and meaning depend on the context and applications:</p><ul><li>In the <em>language </em>domain, It’s about the <em>intent </em>and <em>impact </em>on the audience;</li><li>In the <em>vision </em>domain, it may be <em>image segments</em> with more useful information (e.g., faces).</li></ul><p>In SemCom, besides conventional networking functions (e.g., buffering) users must extract the semantics of information. To achieve this, they need access to a consistent <strong>K</strong>nowledge <strong>B</strong>ase (<strong>KB</strong>). This KB can be an AI model, for example, an image segmentation model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zoVGLs8cMAZQL8dx6h3RIw.jpeg" /><figcaption>Encoder and Decoder in SemCom, each color is a Knowledge Base (Ref)</figcaption></figure><p>The adoption of semantics in SemCom <strong>not only reduces resource consumption</strong> and enhances efficiency but also <strong>optimizes resource orchestration</strong>. By understanding the semantics of user requests, prioritization can be applied<strong> giving top priority to critical semantics</strong> to ensure seamless service responsiveness, and similar requests can be directed to shared computing nodes and network paths. This can assist in meeting the crucial challenge of <em>resource scarcity</em> in 6G.</p><h3>Challenges Ahead</h3><p>SemCom, like any new technology, presents its own set of challenges. The main challenge in SemCom is the requirement for “universal access to the same background knowledge by all semantic transcoders.” In our paper, we have divided this challenge into two separate problems:</p><blockquote><strong>Knowledge Refinement</strong> pertains to the optimal allocation of scarce computing and network resources to continuously evolve KBs.</blockquote><blockquote><strong>Knowledge Arrangement</strong> involves the efficient distribution of updated KBs to users, instances, and entities responsible for resource allocation, such as network edge devices and/or the system orchestrator.</blockquote><p>Let’s illustrate these concepts with an example. Imagine users participating in a holographic presence service within the Metaverse. Here, “spatial, visual, and auditory semantics — including positioning, gestures, and ambient sounds — are extracted using semantic encoders”.</p><p>Now, envision a user transitioning from listener to speaker role, in a language not well-trained in operational AI models. In such a scenario, relevant AI models must be obtained first (Knowledge Refinement), and then these new models should be delivered to users (Knowledge Arrangement).</p><p>We have suggested two <strong>enablers </strong>for these problems, summarized as follows (detailed explanations available in the manuscript):</p><ul><li><strong>Lifelong Learning</strong>: “segregating training procedures for different contexts by assigning each one to a task”;</li><li><strong>Computing-Network Convergence (CNC)</strong>: “Orchestrate diverse [network and compute] domain resources collectively”</li></ul><h3>KB-MANO</h3><p>Our proposed framework is called <strong>KB-MANO</strong>, which stands for <strong>K</strong>nowledge <strong>B</strong>ase <strong>Man</strong>agement And <strong>O</strong>rchestration. So, What’s this framework supposed to do? Basically:</p><ul><li><strong>Selecting </strong>KB training strategies (centralized, distributed or federated),</li><li><strong>Placing </strong>KB training tasks on computing resources,</li><li><strong>Disseminating </strong>the latest KB versions to users, service instances, and network edge devices,</li><li><strong>Predicting </strong>future utilization patterns across computing and network domains.</li></ul><p>KB-MANO conducts the above tasks at three distinct layers:</p><ul><li><strong>End-to-end (E2E) Layer</strong> performs high-level decision-making related to knowledge refinement and arrangement;</li><li><strong>Domain Layer</strong> oversees intra-domain resource allocation (2);</li><li><strong>Resource Layer</strong> manages resource allocation for knowledge refinement and arrangement across network devices and computing nodes.</li></ul><p>Our paper provides a detailed proof-of-concept on integrating the KB-MANO with resource allocation in radio access networks. By implementing semantic-aware orchestration, we demonstrate significant improvements in communication efficiency and resource utilization. For brevity, we refer to the text (Section IV) and <a href="https://arxiv.org/abs/2401.06308">our previous WCNC paper</a>.</p><h3>Research Directions</h3><p>The journey towards a fully functional semantic-oriented 6G system is filled with exciting research opportunities (3). We have identified several future research directions, including:</p><ul><li><strong>End-to-end (E2E) Management of KB Refinement and Deployment:</strong> Optimizing resource allocation for running KB training and distribution tasks (<em>Reminder</em>: resources are reserved for actual user traffic, so we should be cautious about using them for KBs!)</li><li><strong>Calculation of Semantic Performance</strong>: Developing metrics to translate E2E Quality of Service/Experience (QoS/QoE) performance into actionable resource allocation parameters.</li><li><strong>E2E Deterministic Provision of Services</strong>: Integrating real-time states of semantic transcoding blocks into resource allocation decisions (4).</li><li><strong>Sustainable Design of Semantic-Aware Systems</strong>: Focusing on environmentally, societal, and economically sustainable resource allocation strategies.</li></ul><p>Thank you for your interest and support. Together, let’s shape the future of 6G technology!</p><h4>Side notes:</h4><p>(1) One might wonder why SemCom hadn’t been utilized all these years. Anyway, this approach feels more authentic and human-like than bit-oriented communications. The reason (perhaps the sole reason) is the lack of adequate tools for deriving semantics from data. However, the landscape has shifted with the emergence of advanced AI models.</p><p>(2) We considered network and compute domains, but we can also explore administrative domains (operating under distinct supervision).</p><p>(3) We studied plenty of insightful articles during our research, though we had to be picky due to the limitations of IEEE magazines (i.e., only 15 citations). For example, the authors of <a href="https://ieeexplore.ieee.org/abstract/document/10531097">this paper</a> have designed an efficient Federated Learning framework for training Semantic communication systems.</p><p>(4) For example, choosing between a <em>perfect </em>encoder with a 1 ms delay and a <em>good </em>encoder with a 0.1 ms delay may become critical in mission-critical applications!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e01f5b0ec152" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Some Systematic thoughts on AI systems]]></title>
            <link>https://medium.com/@hamidrezam/some-systematic-thoughts-on-ai-systems-10a02b62ed89?source=rss-71993f9a740c------2</link>
            <guid isPermaLink="false">https://medium.com/p/10a02b62ed89</guid>
            <category><![CDATA[data-centric-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[systems-thinking]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Hamid Reza Mazandarani]]></dc:creator>
            <pubDate>Sat, 26 Aug 2023 06:02:57 GMT</pubDate>
            <atom:updated>2023-08-26T06:02:57.031Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In this brief article, I aim to express some thoughts regarding the impact of <strong>systems thinking</strong> on the design and comprehension of AI systems. I believe that such an <em>expansionist </em>mindset (as opposed to a <em>reductionist </em>mindset) presents an opportunity to understand AI systems more clearly.</p><p>First, let’s review the definition of systems. The following quote and most of the other quotes in this article are from Donella Meadows&#39;s book <a href="https://en.wikipedia.org/wiki/Thinking_In_Systems:_A_Primer">Thinking In Systems: A Primer</a> [1].</p><blockquote>A system is an <strong>interconnected set of elements</strong> that is <strong>coherently organized</strong> in a way that <strong>achieves something</strong> [1].</blockquote><p>That <em>something </em>in an AI system is mainly its intended task(s), e.g. classifying medical images, conversing with the user, or assisting in decision-making. However, some <em>unintended consequences</em> may arise due to the complexity of systems. For instance, MIT researchers found that:</p><blockquote>[Medical imaging] models that perform well overall falter when it comes to subgroups for which relatively few data have been collected and utilized in the training process [2].</blockquote><p>Although these consequences are unintended and undesirable, we must remember that they are a <em>natural behavior</em> of the AI system with the current design. In general:</p><blockquote>A system is more than the sum of its parts. It may exhibit adaptive, dynamic, goal-seeking, self-preserving, and sometimes evolutionary behavior [1].</blockquote><p>Therefore, whenever a medical imaging model suffers from bias, a chatbot model talks viciously, or a self-driving car prioritizes its safety over pedestrians, systems thinking can assist us in mitigating the issue.</p><h3>AI systems Characteristics</h3><p>Our first job is to identify the system’s <em>elements </em>along with their potential <em>interconnections </em>while establishing reasonable boundaries with the <em>environment</em>. The following figure depicts a sample that I came up with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*D69G9Um5w-ej3EqitshXyg.png" /></figure><ul><li>Clearly, the <em>Dataset </em>and <em>Learning Model</em> are two <strong>Core Components</strong> of an AI system because they offer identity to the system.</li><li><em>Hyperparameters</em>, which I have put as a <em>subsystem </em>of the <em>Software</em>, can be considered the <strong>Leverage Point</strong> of the system. i.e., “places in the system where a small change could lead to a large shift in behavior [1].” Accordingly, by adjusting hyperparameters (e.g., learning rate) we can achieve much better outputs.</li><li>In deep learning, the <em>Feature Extraction</em> element is usually integrated into the <em>Learning Model</em>, leading to an end-to-end approach. Yet, even in deep learning, it is useful to perform some pre-processing on the source data.</li><li>The decision of whether <em>Hardware </em>(particularly for training) falls within the system’s boundaries has significant impacts. In this regard, by using cloud services (e.g., Amazon SageMaker) we may wrongfully ignore the climatic effects of AI systems.</li><li>By providing a connection from <em>KPIs </em>(such as model accuracy) to the <em>Data Supplier</em> (dotted line in the figure), we create a <strong>Feedback </strong>loop in the system with many benefits, which I explain in the next section.</li><li>Another transformative interconnection is from <em>Dataset </em>to <em>KPIs</em>, to customize the learning performance based on the data. Calculating KPI for each subgroup (e.g., men and women) as conducted in [2] is a vivid example of this interconnection.</li><li>It is probable that there are some essential elements or interconnections I have forgotten to include in this design. Do you have any thoughts that you would like to share?</li></ul><h3>Data-Centric AI</h3><p>The emerging paradigm of data-centric AI is defined as:</p><blockquote><strong>systematically </strong>engineering data to build better AI systems [3].</blockquote><p>An instance of this paradigm is <strong>Active Learning</strong> (i.e., selecting the most informative data to label next). Suppose that in a self-driving car, you may notice a problem, let’s say the model does not work well in tunnels (following figure). Thus, the system itself (not the developer) requests the specific data via the feedback loop from KPIs to the data supplier. The feedback loop is essentially a “closed chain of causal connections [1]”.</p><p>Nonetheless, while this approach will expectedly improve the system’s behavior, issues may arise including <strong>delay</strong>. If the system continually requests data, it may become tricky to identify the impact of each subset of the dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M9ul1TOEHCRjgKouJc_cjQ.png" /><figcaption>An example of data-centric AI [3]</figcaption></figure><h3>References</h3><p>[1] Meadows, Donella H. <em>Thinking in systems: A primer</em>. Chelsea Green Publishing, 2008.</p><p>[2] How machine-learning models can amplify inequities in medical diagnosis and treatment, MIT news (<a href="https://news.mit.edu/2023/how-machine-learning-models-can-amplify-inequities-medical-diagnosis-treatment-0817">link</a>)</p><p>[3] Data-Centric AI vs. Model-Centric AI (<a href="https://dcai.csail.mit.edu/lectures/data-centric-model-centric/">link</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10a02b62ed89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How can AI improve consensus in Blockchain?]]></title>
            <link>https://medium.com/@hamidrezam/how-can-ai-improve-consensus-in-blockchain-3d1176d858e4?source=rss-71993f9a740c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d1176d858e4</guid>
            <category><![CDATA[consensus]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Hamid Reza Mazandarani]]></dc:creator>
            <pubDate>Fri, 07 Oct 2022 17:29:14 GMT</pubDate>
            <atom:updated>2022-10-07T17:29:14.436Z</atom:updated>
            <content:encoded><![CDATA[<h3>Skin in the Blockchain Game</h3><p>At the heart of every blockchain technology lies a <a href="https://www.investopedia.com/terms/c/consensus-mechanism-cryptocurrency.asp">consensus mechanism</a>, which enables numerous players -being malicious among them- to agree on the state of an information system. Current implementations of blockchain technology are mostly cryptocurrencies, where the information system records an immutable history of financial transactions.</p><p>As part of a consensus mechanism, users are required to spend <em>a limited resource</em> to prove they have <a href="https://en.wikipedia.org/wiki/Skin_in_the_game_(phrase)">skin in the game</a>. In the current version of <strong>Bitcoin</strong>, that resource to be spent is the <em>computational power</em>, with which users show they actually desire a healthy system. <strong>Ethereum </strong>users have recently turned to spending <em>money </em>to prove their responsibility for the chain. Other cryptos may use <em>computer memory</em>, <em>users’ activity duration</em>, etc. to provide consensus.</p><p>I do not intend to explain these <em>proof-of-X</em> mechanisms in this article, as there are already many well-written tutorials online. Instead, I would like to take a closer look at the intriguing question mentioned in the title.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dgZ8a_TfULS1s0bJP0qkYQ.jpeg" /><figcaption>Image by <a href="https://pixabay.com/users/geralt-9301/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3349204">Gerd Altmann</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3349204">Pixabay</a></figcaption></figure><h3>A Good Consensus</h3><p>Before investigating our main question, let’s reach a consensus about what a good consensus algorithm is!</p><p>A Google Scholar search for the term “comparison of consensus algorithms” returns many research papers. Among them, [1] has included a very informative table categorizing evaluation metrics based on three dimensions: <strong><em>Effectiveness</em></strong>, <strong><em>Decentralization</em></strong>, and S<strong><em>ecurity</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O9hT_Ok71Vei8YaDqTJVxQ.png" /><figcaption>Source: [1] - DoI: <a href="https://doi.org/10.1007/s11432-019-2790-1">10.1007/s11432-019-2790-1</a></figcaption></figure><p>The truth is metrics of all the above dimensions matter. As an example, Bitcoin has proven to be both decentralized and secure. Still, its lack of effectiveness due to its high energy consumption has sparked intense debates around its overall sustainability as a cryptocurrency.</p><h3>Change The Code on Twitter: &quot;A single Bitcoin transaction could power the average U.S. household for a month.Your refrigerator has to meet energy efficiency standards. Shouldn&#39;t crypto mining? / Twitter&quot;</h3><p>A single Bitcoin transaction could power the average U.S. household for a month.Your refrigerator has to meet energy efficiency standards. Shouldn&#39;t crypto mining?</p><p>There might be an inherent trade-off here, similar to many other multi-dimensional engineering problems, that prevents achieving effectiveness, decentralization, and security <em>simultaneously </em>(if you happen to know about any, please let me know).</p><p>However, if an AI solution can improve one dimension while maintaining the others, I will certainly appreciate it (Won’t you?). For instance, blockchains may become more widely accepted if their effectiveness metrics (such as throughput) are boosted without sacrificing decentralization or security. So, let’s explore the research space of this mindset.</p><h3>AI for Blockchain, and Blockchain for AI</h3><p>AI models (and deep learning in particular) are uniquely able to discover patterns in massive amounts of data of any kind, so why not use them to:</p><ul><li>validate the miners, voters, or any other player in the blockchain ecosystem;</li><li>validate the blocks or transactions data;</li><li>adjust system-level parameters (e.g. difficulty of mining) intelligently;</li><li>or any other creative approach?</li></ul><p>After reviewing research papers with both AI and blockchain keywords, I found <strong>some critical points</strong>:</p><ul><li>Most AI solutions for blockchain consensus target a limited scenario, such as IoT or energy markets. This shows that maybe there is an opportunity for researchers to design more general-purpose solutions.</li><li>Applications of blockchain to secure and validate distributed AI is another amazing research area, and possibly the topic of my next article!</li><li>The consensus Layer is not the only piece of blockchain that can be improved with AI, but all other layers (illustrated in the following figure [2]) could potentially benefit. For example, reinforcement learning may provide a better Incentive layer via its reward mechanism.</li><li>Digital markets in the metaverse will be fertile ground for the synergy of the two technologies in all dimensions [2].</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BSkpYwcAxIVBm273ha21lg.png" /><figcaption>Source: Reference [2]</figcaption></figure><h3>A Consensus Among “things”</h3><p>If I want to name one industry — other than Fintech — where blockchain will flourish, I name the IoT industry (maybe I am a bit biased toward networking!). Simply put, blockchain technology can provide a secure platform for collaboration among things.</p><p>However, the <strong>IoT has some special considerations</strong> to be met, one being intolerance of high delays as IoT needs a rapid consensus. Another issue is the high probability of IoT devices being compromised (because of their minimal security measures and ease of access to outsiders), making the security dimension much more critical.</p><p>In this vein, a team of researchers at the University of Central Florida has proposed “A new framework for a <strong>secure and robust consensus</strong> in blockchain-based IoT networks [3]”.</p><p>Their proposal is rather complex, but in short, they have added an outlier-detection learning mechanism at the front door of their consensus mechanism. As can be seen in the figure, both uncompromised and compromised data enter the consensus algorithm, but the outlier detection only accepts the healthy data (although there will be false positives and false negatives, too).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pcC3WDrgEg-w853740ksbw.png" /><figcaption>Source: Reference [3]</figcaption></figure><h3>Select who can vote!</h3><p>The <em>Proof of Artificial Intelligence</em> (PoAI) consensus mechanism [4] is another research proposal worth mentioning. This mechanism uses a neural network to select the super nodes (i.e. nodes with excessive computational power) and random nodes for mining transactions.</p><p>I think their proposal is somewhat ambiguous (although the paper has nearly 30 citations), but the reason for introducing this paper was to show the vast potential of AI in selecting nodes for voting based on their history, the graph of connections, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*g25r35MWL7VgjyKQgUat5Q.png" /><figcaption>Source: Reference [4]</figcaption></figure><h3>Final Remarks</h3><p>AI-powered consensus algorithms appear to be a relatively new area of research, and they have enormous potential to improve blockchains in many ways, including:</p><ul><li>Resilience to cyber-attacks (e.g., DDoS)</li><li>Assurance of data integrity</li><li>Making the chain independent of the decisions of a powerful minority</li><li>Validating data at a lower cost (in terms of money or energy)</li><li>…</li></ul><p>Just keep in mind that we are at the beginning of the blockchain-native era, which means any advancement in consensus algorithms will be crucial to achieving a 20-billion-dollar market by 2025.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BhWucl1lwoLDYQNE.png" /><figcaption><a href="https://www.fortunebusinessinsights.com/industry-reports/blockchain-technology-market-100072"><em>Source:</em></a><em> Fortune Business Insight</em></figcaption></figure><h3>References</h3><p>[1] Fu, Xiang, Huaimin Wang, and Peichang Shi. “<strong>A survey of Blockchain consensus algorithms: mechanism, design and applications</strong>.” <em>Science China Information Sciences</em> 64.2 (2021): 1–15.</p><p>[2] Ynag, Qiinglin, et al. “<strong>Fusing Blockchain and AI with Metaverse: A Survey</strong>.” <em>arXiv preprint arXiv:2201.03201</em> (2022).</p><p>[3] Salimitari, Mehrdad, Mohsen Joneidi, and Mainak Chatterjee. “<strong>AI-enabled blockchain: An outlier-aware consensus protocol for blockchain-based IoT networks</strong>.” <em>2019 IEEE Global Communications Conference (GLOBECOM)</em>. IEEE, 2019.</p><p>[4] Chen, Jianwen, et al. “<strong>An AI-based super nodes selection algorithm in blockchain networks</strong>.” <em>arXiv preprint arXiv:1808.00216</em> (2018).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d1176d858e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Distributed Learning for Democracy]]></title>
            <link>https://medium.com/@hamidrezam/distributed-learning-for-democracy-4b1d0585735a?source=rss-71993f9a740c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b1d0585735a</guid>
            <category><![CDATA[federated-learning]]></category>
            <category><![CDATA[distributed-learning]]></category>
            <category><![CDATA[ai-for-good]]></category>
            <category><![CDATA[democracy]]></category>
            <category><![CDATA[yuval-noah-harari]]></category>
            <dc:creator><![CDATA[Hamid Reza Mazandarani]]></dc:creator>
            <pubDate>Wed, 25 May 2022 05:47:55 GMT</pubDate>
            <atom:updated>2022-06-10T07:31:20.463Z</atom:updated>
            <content:encoded><![CDATA[<h3>Liberty in Danger</h3><p>The inspiring book of Yuval Noah Harari, <strong>21 Lessons for the 21st Century</strong>, discusses the fundamental challenges humanity faces in the era of bio and data technologies [1].</p><p>In Chapter 3 of the book, titled <strong>Liberty</strong>, the author warns that AI might be more potent in the hands of totalitarians. The following scenario clearly illustrates what Harari has in mind.</p><blockquote>If an authoritarian government orders all its citizens to have their DNA scanned and to share all their medical data with some central authority, it would gain an immense advantage in genetics and medical research over societies in which medical data is strictly private.</blockquote><p>But how is this possible, and how can the AI and data science ecosystem change the game in favor of democracy? These are the questions I aim to address in this article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*KXzWD3pJRG2CB8yOX6vSvQ.jpeg" /><figcaption>Smile! You&#39;re on CCTV all over the world! (source: <a href="https://www.flickr.com/photos/landahlauts/9956320644/">Flickr</a>)</figcaption></figure><h3>The Rise of AI-powered Totalitarianism</h3><p>What Harari envisions about the impact of data science on democracy can be broadly illustrated in the following image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*jPMLPLnFxxpokL3LZQAkqw.png" /><figcaption>Image by author, inspired from [1]</figcaption></figure><p>Indeed, since the emergence of data-processing techniques in the late twentieth century, democracies have enjoyed a golden age:</p><blockquote>Given twentieth-century technology, it was <strong>inefficient </strong>to concentrate too much information and power in one place. Nobody [including dictatorships] had the ability to process <strong>all </strong>the information fast enough and make the right decisions.</blockquote><p>However, the story <em>might </em>not be happy-ending:</p><blockquote>AI might make centralised systems <strong>far more efficient</strong> than diffused systems, because machine learning works better the more information it can analyse.</blockquote><p>Practitioners of AI and data science are familiar with the above sentences. The more data collected, the better the output. Consequently, authoritarian governments and BigTech companies can gain a competitive edge thanks to <strong><em>well-structured bureaucracy</em></strong> and <strong><em>advanced surveillance systems</em></strong>.</p><h3>Level Playing Field</h3><p>Democratic governments have limiting regulations (e.g., the well-known <a href="https://gdpr-info.eu/">GDPR</a> in Europe) that prevent them from accessing massive amounts of citizens&#39; data. Also, Small and Medium-sized Enterprises (SMEs) lack the massive datasets Big Tech companies possess. Who has access to -even an anonymized version of- Facebook&#39;s Graph dataset?</p><p>So what democratic governments and SMEs can do? One possible technical (and possibly <em>not </em>the most promising) solution has been spoiled in the title of this article: <strong>Distributed Learning</strong>.</p><p>I would like to share two personal opinions before continuing:</p><ul><li>Distributed learning can be beneficial in undemocratic countries as well. In fact, there is no such a binary classification of countries as democratic and totalitarian countries; there is a spectrum of democracy that each country lies within;</li><li>Technological solutions are not a panacea for humanitarian issues. These challenges should be ultimately resolved with humanitarian solutions.</li></ul><h3>Learning, but Distributed!</h3><p>Any Machine Learning (ML) model learns to produce better results by extracting patterns in the data.</p><p>Consider a CCTV camera connected to an ML model. The model tries to find anomalies in the scene (e.g., shoplifting in a store). The <strong>common mindset</strong> to develop such an ML model is as follows:</p><ul><li>Gather and store a sufficient amount of data (e.g., normal and abnormal scenes in the above example);</li><li>Train a single model on a fraction of the available data;</li><li>Test the model on the rest of the data to see if its works well.</li></ul><p>The <strong>distributed learning mindset</strong> enhances this <em>monolithic </em>system to a <em>modular </em>one, illustrated in the following image adopted from a survey on the same topic [2].</p><p>In the case of <strong><em>data parallelism</em></strong>, one could train separate models on data chunks from different sources (for example, CCTV cameras of different stores).</p><p>In the case of <strong><em>model parallelism</em></strong>, data itself doesn&#39;t change, but separate models (usually on different machines) collaboratively extract patterns in the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SeP5mfDviOhMpY_raT2pFA.png" /><figcaption>Both data or models can be parallelized [2]</figcaption></figure><p>Now, let&#39;s focus on data parallelism, which is more related to our topic. This approach helps democratic governments and SMEs leverage the knowledge of various data sources without breaking privacy regulations.</p><p>For example, different countries may agree on a standard format for financial transaction data (if it doesn&#39;t exist already). Then, each country can train its own model to detect fraudulent transactions in the data. Without the need to share sensitive financial data, they can share their models (i.e., the knowledge extracted from their data) in order to make a powerful global model.</p><p>The above scenario is a class of distributed learning called<strong> Federated Learning</strong> and can be applied in addition to finance in other domains, including medicine, cybersecurity, transportation, networking, etc.</p><p><strong>The last word</strong>: As with the state of democracy in different countries, distributed learning schemes also lie on a spectrum of varying data concentration levels. The following image demonstrates different scenarios [2]. The most futuristic scenario is peer-to-peer distributed learning (item <em>d</em> in the image), which is similar to <strong><em>sharing wisdom in human societies</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RK0oI-A0kysWKouq_U2opg.png" /><figcaption>Degrees of distribution vary in distributed learning schemes [2]</figcaption></figure><p>If you are interested in this article, you can follow me here or on <a href="https://www.linkedin.com/in/hamid-reza-mazandarani/">Linkedin </a>to see similar discussions.</p><p><strong>References</strong></p><p>[1] Harari, Yuval Noah. <em>21 Lessons for the 21st Century</em>. Random House, 2018.</p><p>[2] Verbraeken, Joost, et al. &quot;A survey on distributed machine learning.&quot; <em>ACM Computing Surveys (CSUR)</em> 53.2 (2020): 1–33. (<a href="https://dl.acm.org/doi/abs/10.1145/3377454">link</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b1d0585735a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>