<?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 Rashidat Sikiru on Medium]]></title>
        <description><![CDATA[Stories by Rashidat Sikiru on Medium]]></description>
        <link>https://medium.com/@rasheedatsikiru?source=rss-e8c5e11a433f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TIhCKAKzH-QNQf182fThQA.jpeg</url>
            <title>Stories by Rashidat Sikiru on Medium</title>
            <link>https://medium.com/@rasheedatsikiru?source=rss-e8c5e11a433f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 10:05:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rasheedatsikiru/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[Why Doesn’t 0.1 + 0.2 Equal 0.3 in Python?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@rasheedatsikiru/why-doesnt-0-1-0-2-equal-0-3-in-python-ede2fb8e0137?source=rss-e8c5e11a433f------2"><img src="https://cdn-images-1.medium.com/max/2048/1*MbTbqRXDrPsIbMPR6sjPRA.png" width="2048"></a></p><p class="medium-feed-snippet">A step-by-step look at binary fractions, IEEE 754 floats, and the exact value your computer stores for 0.1.</p><p class="medium-feed-link"><a href="https://medium.com/@rasheedatsikiru/why-doesnt-0-1-0-2-equal-0-3-in-python-ede2fb8e0137?source=rss-e8c5e11a433f------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@rasheedatsikiru/why-doesnt-0-1-0-2-equal-0-3-in-python-ede2fb8e0137?source=rss-e8c5e11a433f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ede2fb8e0137</guid>
            <category><![CDATA[math]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[floating-points]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Rashidat Sikiru]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 14:03:40 GMT</pubDate>
            <atom:updated>2026-11-19T14:03:40.632Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Beyond the CPU: A Beginner’s Guide to 9Types of Processors]]></title>
            <link>https://medium.com/@rasheedatsikiru/beyond-the-cpu-a-beginners-guide-to-9types-of-processors-cbac3380d596?source=rss-e8c5e11a433f------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbac3380d596</guid>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[processors]]></category>
            <dc:creator><![CDATA[Rashidat Sikiru]]></dc:creator>
            <pubDate>Fri, 06 Nov 2026 17:22:25 GMT</pubDate>
            <atom:updated>2026-11-06T17:22:25.438Z</atom:updated>
            <content:encoded><![CDATA[<p><em>From CPUs and GPUs to NPUs, TPUs, and QPUs, understanding the processors that power modern computing and artificial intelligence.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fmJUb8ka9nGYfEt3dXFpgA.png" /></figure><p>You probably use several types of processors every day without realising it.</p><p>When you open a browser, stream a video, play a game, or ask an AI assistant to generate an image, different processing units may make those experiences possible.</p><p>For decades, the Central Processing Unit (CPU) was the processor most people associated with computers. It executes instructions, runs applications and coordinates operations across a computing system.</p><p><em>But computing has changed.</em></p><p>Graphics have become more demanding. Data centres process enormous volumes of information. Artificial intelligence has introduced computational workloads that require massive amounts of parallel processing. Meanwhile, smartphones and laptops need to perform increasingly complex tasks without consuming excessive power.</p><p>The challenge is that different computational workloads have different requirements. A processor designed to handle a wide variety of tasks may not be the most efficient option for every operation.</p><p>This has driven the development of specialised processing architectures, each designed to handle particular types of computation.</p><p><em>Today, we encounter CPUs, GPUs, NPUs, TPUs, LPUs, DPUs, IPUs, APUs and QPUs.</em></p><p>But what makes these processors different? Why do we need so many? And how do they work together to power modern computing?</p><p>Let’s break it down.</p><h3>1. CPU: The general-purpose processor</h3><p>Before exploring specialised processors, let’s start with the one most people know: the Central Processing Unit (CPU).</p><p>The CPU is commonly described as the brain of a computer. It executes program instructions, performs calculations, manages operations, and coordinates activities across the system.</p><p>Think about what happens when you open your laptop.</p><p>Your operating system needs to run, applications need to execute instructions, files need to be accessed, and different hardware components need to communicate. The CPU handles much of this general-purpose processing.</p><figure><img alt="An image showing the structure of a CPU" src="https://cdn-images-1.medium.com/max/1024/1*5pioS2u_nNkQKvbNcOVScA.png" /><figcaption>Image generated using Claude Design</figcaption></figure><h3>How does a CPU work?</h3><p>At a fundamental level, a CPU executes instructions through a process commonly described as the <strong>fetch-decode-execute cycle</strong>.</p><ol><li><strong>Fetch:</strong> The processor retrieves an instruction from memory.</li><li><strong>Decode:</strong> It interprets the instruction to determine the operation required.</li><li><strong>Execute:</strong> It performs the operation using its execution units.</li><li><strong>Write back:</strong> It stores the result in a register or memory, as required.</li></ol><p>This is a simplified model of instruction execution. Modern processors use techniques such as pipelining, branch prediction and out-of-order execution to improve performance. These techniques allow different instructions to be at different stages of execution simultaneously.</p><h3>What makes a CPU general-purpose?</h3><p>Unlike specialised accelerators designed around particular workloads, CPUs are built to execute a broad range of instructions.</p><p>They can run operating systems, manage databases, execute applications, perform calculations and coordinate other processing units.</p><p>Their flexibility makes them essential to almost every computing environment.</p><h3>What determines CPU performance?</h3><p>Several architectural characteristics influence how efficiently a CPU executes workloads.</p><p><strong>Clock speed</strong></p><p>Clock speed measures the frequency at which a processor’s clock operates, usually in gigahertz (GHz).</p><p>A 3 GHz processor has a clock frequency of three billion cycles per second. However, this does not mean it necessarily executes three billion instructions per second. An instruction can require multiple cycles, and some processors can execute multiple instructions during one cycle.</p><p>Consequently, clock speed alone is not a reliable measure of performance.</p><p><strong>Cores and threads</strong></p><p>A core is an individual processing unit within a CPU that can execute instructions.</p><p>Modern processors contain multiple cores, allowing different tasks or instruction streams to execute concurrently.</p><p>A thread represents a sequence of instructions that can be scheduled for execution. Technologies such as simultaneous multithreading allow a physical core to maintain and execute multiple hardware threads.</p><p><strong>Cache memory</strong></p><p>A cache is a small, high-speed memory located within or close to the processor.</p><p>It stores frequently accessed data and instructions so that the CPU does not always need to retrieve them from slower system memory.</p><p>CPU caches are commonly organised into levels, such as L1, L2 and L3, with different capacities and access characteristics.</p><p><strong>Instruction Set Architecture (ISA)</strong></p><p>An Instruction Set Architecture defines the instructions a processor understands and how software communicates with the hardware.</p><p><em>Examples include x86–64 and ARM architectures.</em></p><blockquote>These characteristics work together to determine how effectively a CPU handles different workloads.</blockquote><h3>Where are CPUs used?</h3><p>CPUs are found in:</p><ul><li>Personal computers and laptops.</li><li>Smartphones and tablets.</li><li>Servers and cloud infrastructure.</li><li>Embedded systems.</li><li>Automotive computing systems.</li></ul><p>The CPU’s greatest strength is flexibility. However, flexibility comes with trade-offs.</p><p>Some workloads involve performing thousands or millions of similar mathematical operations simultaneously. CPUs can handle these operations, but their architecture may not be the most efficient option for achieving massive computational throughput.</p><p><em>This brings us to the GPU.</em></p><h3>2. GPU: When parallel processing becomes important</h3><p>Imagine you have 10,000 mathematical calculations to perform.</p><p>You could assign one person to complete all 10,000 calculations sequentially. Alternatively, you could distribute the calculations among 100 people, with each person handling a smaller portion at the same time.</p><p>The second approach could complete the work much faster, provided the calculations can be performed independently and the coordination overhead is manageable.</p><p>This is the fundamental idea behind parallel processing.</p><p>A Graphics Processing Unit (GPU) is a processor originally developed to accelerate graphics rendering. Unlike CPUs, which handle a broad range of tasks using relatively sophisticated cores, GPUs are designed to execute many similar operations concurrently.</p><h3>Why were GPUs developed?</h3><p>Rendering graphics involves performing enormous numbers of calculations.</p><p>Consider a computer generating a 3D image. It must calculate the position, colour, lighting and appearance of numerous pixels and objects.</p><p>Many of these calculations can be performed simultaneously.</p><p>GPUs were designed to handle this type of computational workload efficiently.</p><p>Over time, researchers and developers realised that the same parallel processing capabilities could accelerate other computationally intensive workloads, including scientific simulations, data analytics and machine learning.</p><p>This is one reason GPUs became so important in artificial intelligence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*babHTBNpTlejgyGfIzCgUg.png" /><figcaption>Image generated using Claude Design</figcaption></figure><h3>How does GPU architecture work?</h3><p>GPUs contain multiple processing units designed to execute many threads concurrently.</p><p>For example, NVIDIA GPUs use a parallel execution model called <strong>Single Instruction, Multiple Threads (SIMT)</strong>.</p><p>Under this model, groups of threads execute instructions together, while each thread maintains its own execution state.</p><p>SIMT is related to another concept called Single Instruction, Multiple Data (SIMD), where one instruction operates on multiple data elements.</p><p>The distinction is that SIMT presents parallel execution through individual threads, while SIMD exposes vector operations more directly.</p><p>GPU performance also depends heavily on memory bandwidth. Processing units need data to remain busy, so moving data efficiently between memory and compute units is just as important as the number of calculations a GPU can perform.</p><h3>Why are GPUs important in AI?</h3><p>Training neural networks involves performing enormous numbers of mathematical operations, particularly matrix multiplications.</p><p>Consider a neural network processing thousands of images. Each image passes through multiple layers, with mathematical operations performed on input data and model parameters.</p><p>Many of these operations can be distributed across GPU processing units.</p><p>This makes GPUs particularly useful for:</p><ul><li>Training deep learning models.</li><li>Running large language models.</li><li>Computer vision.</li><li>Scientific computing.</li><li>3D graphics and rendering.</li><li>High-performance computing.</li></ul><p>However, GPUs are not automatically the best choice for every workload. They require suitable software, sufficient memory and workloads that can benefit from parallel execution.</p><p><em>GPUs have become central to AI development, but another type of processor is increasingly appearing in everyday devices: the NPU.</em></p><h3>3. NPU: Bringing AI processing closer to everyday devices</h3><p>Your smartphone can recognise your face, improve photographs, translate languages and perform voice recognition.</p><p>But these operations do not always need to be sent to a remote data centre for processing.</p><p>This is where the Neural Processing Unit (NPU) becomes important.</p><p>An NPU is a specialised processor designed to accelerate neural network computations, particularly the mathematical operations used in artificial intelligence.</p><h3>Why do we need NPUs?</h3><p>CPUs and GPUs can run AI workloads, but dedicated AI hardware can handle certain neural network operations more efficiently.</p><p>Consider a smartphone performing real-time voice recognition.</p><p>You want the operation to happen quickly, without draining the battery or generating too much heat.</p><p>An NPU accelerates supported AI computations efficiently, making it well-suited for these workloads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BFdJRjxWG9ZLaTOi7HJmbg.png" /><figcaption>Image generated using Claude Design</figcaption></figure><h3>How does an NPU work?</h3><p>Neural networks rely heavily on operations such as:</p><ul><li>Matrix multiplication.</li><li>Convolution.</li><li>Vector operations.</li><li>Activation functions.</li></ul><p>NPUs incorporate specialised compute engines and data pathways designed to accelerate these operations.</p><p>Their architectures differ across manufacturers, but many are optimised for parallel neural network computation and efficient data movement.</p><p>One important consideration is power efficiency. An NPU can handle suitable AI workloads while allowing the CPU and GPU to focus on other operations.</p><h3>What is TOPS, and why does it matter?</h3><p>When comparing NPUs, you will often encounter the term TOPS.</p><p>TOPS stands for <strong>Trillions of Operations Per Second</strong>.</p><p>It describes how many operations a processor can theoretically perform per second.</p><p>For example, an NPU rated at 40 TOPS is advertised as capable of performing up to 40 trillion operations per second under the specified measurement conditions.</p><p>However, TOPS should not be treated as a universal measure of AI performance.</p><p>The precision used, supported operations, sparsity assumptions, memory bandwidth, software optimisation and power consumption all influence real-world performance.</p><p>Two NPUs with similar TOPS ratings may deliver different results on the same workload.</p><h3>Where are NPUs used?</h3><ul><li>Face recognition.</li><li>Image enhancement.</li><li>Noise cancellation.</li><li>Speech recognition.</li><li>Real-time translation.</li><li>Background removal.</li><li>On-device generative AI.</li></ul><p>NPUs are particularly relevant to edge AI, where models run directly on devices instead of relying entirely on cloud infrastructure.</p><p><em>However, an NPU is not a replacement for a CPU or GPU. It is part of a heterogeneous computing architecture in which different processing units handle workloads according to their capabilities.</em></p><h3>4. TPU: Specialised hardware for machine learning</h3><p>A Tensor Processing Unit (TPU) is an application-specific integrated circuit (ASIC) Google developed to accelerate machine learning workloads.</p><p>To understand why TPUs exist, we first need to understand something important about deep learning: tensors.</p><p>A tensor is a mathematical structure that represents data. It generalises scalars, vectors and matrices into higher-dimensional structures.</p><p>Neural networks process large quantities of tensor data, performing mathematical operations such as matrix multiplication repeatedly during training and inference.</p><p>These operations require substantial computational resources.</p><p>Google developed TPUs to accelerate this type of computation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9F_LRuv-mmn3bSvJ9at3gQ.png" /><figcaption>Image generated by Claude Design</figcaption></figure><h3>How does a TPU work?</h3><p>One defining feature of Google’s TPU architecture is the <strong>systolic array</strong>.</p><p>A systolic array is a network of interconnected processing elements that pass data between one another in a coordinated manner.</p><p>Rather than repeatedly retrieving data from external memory for each operation, the architecture lets data flow through processing elements, performing multiple calculations along the way.</p><p>This is particularly useful for matrix multiplication.</p><p>Google TPUs also include specialised components called Matrix Multiplication Units (MXUs), which perform many of the mathematical operations neural networks require.</p><p>The MXU is part of a larger processing structure called a TensorCore, which also includes other units for vector and scalar operations.</p><h3>Why is this useful?</h3><p>Matrix multiplication is central to many neural network operations.</p><p>By designing hardware specifically to accelerate these calculations, TPUs can achieve high computational throughput for suitable machine learning workloads.</p><h3>Where are TPUs used?</h3><ul><li>Training deep learning models.</li><li>Large-scale neural network inference.</li><li>Natural language processing.</li><li>Computer vision.</li><li>Generative AI.</li></ul><p>Google Cloud provides access to TPUs through its cloud infrastructure, with support for machine learning frameworks such as JAX and PyTorch.</p><h3>TPU vs GPU</h3><p>Both GPUs and TPUs can accelerate machine learning workloads.</p><p>The difference lies largely in their architectural design and optimisation.</p><p>GPUs are programmable parallel processors that support many workloads, including graphics, scientific computing and AI.</p><p>TPUs are more specialised around the mathematical operations central to machine learning.</p><p><em>Neither is universally better. The appropriate choice depends on the workload, hardware availability, software ecosystem, cost and performance requirements.</em></p><h3>5. LPU: A specialised approach to language model inference</h3><p>Training an AI model is only part of the story.</p><p>Once a large language model has been trained, it needs to generate responses when users interact with it.</p><p>This process is called inference.</p><p>Inference introduces its own computational challenges.</p><p>When you ask an AI chatbot a question, the model processes your input and generates a response token by token. The time taken to generate these tokens affects how responsive the application feels.</p><p>This is where Groq’s Language Processing Unit (LPU) comes in.</p><h3>What is an LPU?</h3><p>Groq’s LPU is a specialised processor architecture developed for AI inference, particularly workloads involving large language models.</p><p>Its design focuses on predictable execution, efficient data movement and low-latency computation.</p><p>Unlike a general-purpose processor, it is designed around the specific computational requirements of AI model execution.</p><h3>What makes its architecture different?</h3><p>One of Groq’s defining architectural ideas is its programmable assembly-line approach.</p><p>Instead of relying heavily on dynamic scheduling during execution, the compiler statically schedules operations and data movement.</p><p>The processor then executes this planned sequence.</p><p>This allows the hardware to know in advance where and when operations should occur.</p><p>Groq also emphasises deterministic execution and on-chip memory to reduce bottlenecks and improve predictability.</p><h3>Why does this matter?</h3><p>For conversational AI applications, response latency matters.</p><p>Users don’t just care whether a model produces an accurate answer. They also care about how quickly the answer appears.</p><p>Specialised inference architectures aim to improve the speed and efficiency of this process.</p><p>However, LPU is Groq’s proprietary terminology and architectural approach, not a universally standardised processor category.</p><p><em>It is also important to distinguish the LPU from the broader category of AI inference accelerators, which includes GPUs and other specialised chips.</em></p><h3>6. DPU: The processor handling data movement</h3><p>Computing isn’t just about performing mathematical calculations.</p><p>Modern data centres also need to move, store, secure and manage enormous amounts of information.</p><p>Networking, storage and infrastructure operations consume computing resources, placing additional demands on CPUs.</p><p>The Data Processing Unit (DPU) addresses this challenge.</p><p>A DPU is a specialised infrastructure processor designed to accelerate and offload tasks such as networking, storage and security operations.</p><h3>Why do we need DPUs?</h3><p>Imagine a large cloud data centre handling thousands of applications simultaneously.</p><p>Its servers must process application requests, transfer data across networks, manage storage and enforce security policies.</p><p>If CPUs handle every infrastructure operation, these tasks may consume resources that could otherwise support application workloads.</p><p><em>DPUs help offload some of that work.</em></p><h3>How does a DPU work?</h3><p>A modern DPU can combine:</p><ul><li>General-purpose CPU cores.</li><li>High-speed network interfaces.</li><li>Hardware acceleration engines.</li><li>Security processing capabilities.</li></ul><p>For example, NVIDIA’s BlueField DPU combines Arm CPU cores with networking and hardware acceleration capabilities.</p><p>This allows it to handle infrastructure services independently of the host CPU.</p><h3>Where are DPUs used?</h3><ul><li>Cloud computing infrastructure.</li><li>Data centres.</li><li>Network security.</li><li>Storage acceleration.</li><li>High-performance computing.</li><li>AI infrastructure.</li></ul><p><em>As computing infrastructure becomes increasingly distributed and demanding, DPUs are becoming an important part of modern data-centre architecture.</em></p><h3>7. IPU: A different approach to parallel AI computing</h3><p>Another specialised processor developed for machine learning is the Intelligence Processing Unit (IPU), introduced by Graphcore.</p><p>The IPU was designed around a highly parallel architecture intended to accelerate artificial intelligence and machine learning workloads.</p><h3>How does an IPU work?</h3><p>One defining architectural feature is its use of multiple independent processing units called <strong>tiles</strong>.</p><p>Each tile contains a processor and its own local memory.</p><p>These tiles communicate through an internal exchange fabric, allowing computations to be distributed across the processor.</p><p>Unlike architectures that rely heavily on a shared hierarchy of external memory, Graphcore’s IPU emphasises distributed local memory.</p><h3>How does it differ from a GPU?</h3><p>Traditional GPU architectures use multiple streaming multiprocessors and hierarchical memory systems.</p><p>Graphcore’s IPU architecture takes a different approach by organising computation around independent tiles with local SRAM.</p><p>This lets programs distribute computation across tiles, coordinate execution, and explicitly manage data movement.</p><p>The IPU also uses a bulk-synchronous parallel execution model, in which computation, synchronisation and data exchange happen in coordinated stages.</p><h3>Where are IPUs used?</h3><p>The architecture was designed for workloads including:</p><ul><li>Deep learning.</li><li>Neural network training.</li><li>AI inference.</li><li>Graph-based computation.</li><li>Large-scale machine learning.</li></ul><p><em>An important distinction: IPU here refers to Graphcore’s Intelligence Processing Unit, not a universally standardised processor category.</em></p><h3>8. APU: Combining processing capabilities</h3><p>So far, we have explored processors designed for different computational tasks.</p><p>But what happens when you combine multiple processing capabilities into one chip?</p><p>This brings us to the Accelerated Processing Unit (APU), a term AMD uses for processors combining CPU and GPU capabilities.</p><h3>How does an APU work?</h3><p>Traditionally, computers could use a separate CPU and dedicated graphics card.</p><p>An APU integrates CPU and GPU capabilities into a single processor package or chip.</p><p>Depending on the design, the processing components can share resources and communicate without relying on a separate discrete graphics card.</p><h3>Why are APUs useful?</h3><p>They can provide:</p><ul><li>Reduced hardware complexity.</li><li>Lower system cost.</li><li>Improved space efficiency.</li><li>Reduced power consumption in suitable designs.</li><li>Integrated graphics without requiring a separate graphics card.</li></ul><p>APUs are useful in laptops, compact computers and other environments where balancing performance, power and cost matters.</p><p>However, integrated graphics do not necessarily match the performance of a powerful discrete GPU.</p><p><em>Processor terminology also varies across manufacturers. AMD’s APU stands for Accelerated Processing Unit, while APU can mean something else in other computing contexts.</em></p><h3>9. QPU: Entering the world of quantum computing</h3><p>Everything we have discussed so far belongs to classical computing.</p><p><em>But there is another approach to computation that works differently: quantum computing.</em></p><p>At the centre of a quantum computer is the Quantum Processing Unit (QPU).</p><p>Unlike classical processors, which operate on bits represented as 0s and 1s, quantum processors use quantum bits, commonly called qubits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tmqHoh1g_RJgSFis40crfw.png" /><figcaption>Image generated using Claude Design</figcaption></figure><h3>What makes a qubit different?</h3><p>A classical bit has one of two possible values: 0 or 1.</p><p>A qubit can exist in a quantum superposition of the two computational basis states.</p><p>This means its state is described by probability amplitudes associated with those states, rather than simply holding one classical value before measurement.</p><p>Two important concepts in quantum computing are:</p><p><strong>Superposition</strong></p><p>A quantum state can be a combination of the 0 and 1 basis states. When measured, the qubit produces a classical outcome according to the probabilities determined by its state.</p><p><strong>Entanglement</strong></p><p>Two or more qubits can share quantum correlations that you can&#39;t describe by treating each qubit as an independent system.</p><p>These properties, together with quantum interference, allow quantum computers to perform certain computations using principles that differ fundamentally from classical computing.</p><h3>How does a QPU work?</h3><p>Quantum computers use quantum gates to manipulate qubits.</p><p>A sequence of these operations forms a quantum circuit.</p><p>When the circuit is executed, the system performs quantum operations and eventually measures the qubits to produce classical results.</p><p>The QPU operates alongside classical computing infrastructure, which prepares instructions, controls the hardware and processes measurement results.</p><h3>Where could QPUs be useful?</h3><p>Potential applications include:</p><ul><li>Quantum chemistry.</li><li>Materials science.</li><li>Certain optimisation problems.</li><li>Quantum simulation.</li><li>Cryptography research.</li></ul><p>However, quantum computing is still an evolving field. Current hardware faces challenges involving noise, error rates, qubit stability and scalability.</p><p>A QPU is not simply a faster CPU, and quantum computers are not expected to replace conventional computers.</p><p>Instead, they represent a different computational approach that may be useful for specific classes of problems.</p><h3>How do these processors work together?</h3><p>We have now explored nine different processing architectures.</p><p>But understanding their individual functions is only part of the story.</p><p>The more interesting question is how they work together.</p><blockquote>Modern computing increasingly relies on <strong>heterogeneous computing</strong>: an approach that uses different types of processors within the same system, allowing each to handle the workloads it is designed to perform efficiently.</blockquote><p>Consider an AI-powered application running on a modern laptop.</p><ul><li>The CPU coordinates the operating system and application.</li><li>The GPU handles graphics and computationally intensive parallel workloads.</li><li>The NPU accelerates supported on-device AI operations.</li></ul><p>Now consider the cloud infrastructure supporting that application.</p><ul><li>CPUs coordinate server operations and application workloads.</li><li>GPUs or TPUs accelerate suitable machine learning workloads.</li><li>DPUs handle networking, storage and infrastructure operations.</li><li>Specialised inference hardware, such as Groq’s LPU, can serve language models.</li></ul><p>A quantum computing environment introduces yet another layer, where classical processors coordinate quantum workloads executed by QPUs.</p><p>Not every computing system contains all these processors. Their combination depends on the workload, system architecture and application requirements.</p><p>The important idea is that modern computing is no longer about finding one processor that does everything.</p><p>It is increasingly about selecting the right processing architecture for the job.</p><h3>Which processor should you use?</h3><p>Understanding the differences between processors is useful, but knowing when to use each one is even more valuable.</p><p>The choice depends on several factors:</p><ul><li>CPU: General-purpose application execution</li><li>GPU: Graphics rendering and parallel computation</li><li>NPU: Power-efficient on-device AI</li><li>TPU: Specialised tensor computation</li><li>LPU: Specialised low-latency language model inference</li><li>DPU: Data-centre infrastructure processing</li><li>IPU: Specialised parallel machine learning</li><li>APU: Integrated CPU and graphics capabilities</li><li>QPU: Quantum computational workloads</li></ul><p>This is a simplified guide, not a strict allocation of workloads. There is considerable overlap between processors, and actual performance depends on the hardware, software, memory system and workload.</p><p><em>When evaluating processors, engineers should also consider:</em></p><ul><li><strong>Processing performance:</strong> How much computation can the processor perform?</li><li><strong>Memory capacity and bandwidth:</strong> How quickly can it access the data it needs?</li><li><strong>Latency:</strong> How long does it take to complete an operation or respond to a request?</li><li><strong>Energy efficiency:</strong> How much power does it consume to perform the workload?</li><li><strong>Software compatibility:</strong> Does the processor support the required frameworks and tools?</li><li><strong>Cost and scalability:</strong> Is it economically suitable for the intended application?</li></ul><p>The fastest processor on paper isn’t necessarily the best choice for a particular application.</p><h3>The future of computing: More specialised, more connected</h3><p>The evolution of computer processors tells an interesting story.</p><p>We moved from relying primarily on general-purpose computing towards increasingly specialised processing architectures.</p><p>GPUs expanded beyond graphics. NPUs brought AI acceleration into everyday devices. TPUs were designed to accelerate machine learning workloads. DPUs addressed the growing infrastructure demands of modern data centres. Quantum processors introduced an entirely different approach to computation.</p><p>And this evolution is far from over.</p><p>As artificial intelligence, robotics, scientific computing and cloud infrastructure continue to develop, the demand for specialised processing capabilities will likely increase.</p><p>But perhaps the most important development isn’t simply creating more powerful processors.</p><p>It is the ability to make different processors work together efficiently.</p><p>The future of computing may not belong to one processor architecture. It may belong to systems that combine multiple architectures, each contributing its strengths to solve increasingly complex problems.</p><p>So, the next time you use your computer to train an AI model, play a game or generate an image, remember: there’s a lot more happening behind the screen than you might think.</p><h3>Further reading</h3><p>For readers who want to explore the underlying architectures and technical details, here are some useful starting points.</p><p><strong>CPU</strong></p><ul><li><a href="https://www.arm.com/glossary/cpu">Arm: What is a CPU?</a></li><li><a href="https://www.ibm.com/think/topics/central-processing-unit-types">IBM: Types of CPUs</a></li></ul><p><strong>GPU</strong></p><ul><li><a href="https://docs.nvidia.com/cuda/cuda-programming-guide/">NVIDIA: CUDA Programming Guide</a></li><li><a href="https://rc.dartmouth.edu/hpc-cookbook/fundamentals/gpu-computing/">Dartmouth: GPU Computing</a></li></ul><p><strong>NPU</strong></p><ul><li><a href="https://www.qualcomm.com/content/dam/qcomm-martech/dm-assets/documents/Unlocking-on-device-generative-AI-with-an-NPU-and-heterogeneous-computing.pdf">Qualcomm: Unlocking On-Device Generative AI with an NPU</a></li><li><a href="https://www.intel.com/content/www/us/en/support/articles/000099561/processors/intel-core-ultra-processors.html">Intel: What is an AI PC?</a></li></ul><p><strong>TPU</strong></p><ul><li><a href="https://docs.cloud.google.com/tpu/docs/system-architecture-tpu-vm">Google Cloud: TPU Architecture</a></li><li><a href="https://research.google/pubs/a-domain-specific-supercomputer-for-training-deep-neural-networks/">Google Research: A Domain-Specific Supercomputer for Training Deep Neural Networks</a></li></ul><p><strong>LPU</strong></p><ul><li><a href="https://groq.com/blog/the-groq-lpu-explained">Groq: What is a Language Processing Unit?</a></li></ul><p><strong>DPU</strong></p><ul><li><a href="https://www.nvidia.com/en-us/networking/products/data-processing-unit/">NVIDIA: BlueField Data Processing Unit</a></li></ul><p><strong>IPU</strong></p><ul><li><a href="https://docs.graphcore.ai/projects/ipu-programmers-guide/en/latest/">Graphcore: IPU Programmer’s Guide</a></li></ul><p><strong>APU</strong></p><ul><li><a href="https://www.amd.com/en/products/processors/business-systems/ryzen-ai.html">AMD: Ryzen AI Processors</a></li></ul><p><strong>QPU</strong></p><ul><li><a href="https://www.ibm.com/think/topics/qpu">IBM: What is a Quantum Processing Unit?</a></li><li><a href="https://www.ibm.com/think/topics/qubit">IBM: What is a Qubit?</a></li></ul><p><em>If this piece was useful, consider sharing it with your team and follow me for more insight on AI/ML via </em><a href="https://www.linkedin.com/in/rashidatsikiru/"><em>LinkedIn</em></a>, <a href="http://o_damilola21/">X</a>, and right here on <a href="https://medium.com/@rasheedatsikiru">Medium</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbac3380d596" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why AI Needs to Learn More and Remember Less]]></title>
            <link>https://medium.com/@rasheedatsikiru/why-ai-needs-to-learn-more-and-remember-less-258d7fa61e8c?source=rss-e8c5e11a433f------2</link>
            <guid isPermaLink="false">https://medium.com/p/258d7fa61e8c</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm-memorisation]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Rashidat Sikiru]]></dc:creator>
            <pubDate>Tue, 21 Jul 2026 07:01:03 GMT</pubDate>
            <atom:updated>2026-07-21T07:01:03.331Z</atom:updated>
            <content:encoded><![CDATA[<h4>Understanding memorisation in Large Language Models and its implications for privacy, security, and trust.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*HxsAslcX0wkJwBHHqX102A.jpeg" /><figcaption><a href="https://vizuara.substack.com/p/decoding-multi-head-latent-attention">source</a></figcaption></figure><p>Artificial Intelligence has become remarkably good at answering questions, writing code, summarising documents, and even holding conversations that feel surprisingly human. Behind these capabilities are Large Language Model (LLM) systems trained on vast amounts of text to learn the patterns of human language.</p><p>When we interact with these models, we expect them to learn from data in the same way a student learns from reading many books. We expect them to understand concepts, recognise patterns, and apply that knowledge to new situations.</p><p>But what if, instead of learning, a model simply remembered?</p><p>That question lies at the heart of one of the most important discussions in modern AI research: LLM memorisation.</p><p>While memorisation is not always harmful, it becomes a serious concern when a model reproduces parts of its training data too closely, potentially exposing private, sensitive, or copyrighted information. Understanding the difference between learning and memorising is essential if we want AI systems that are not only powerful but also trustworthy.</p><h3>Learning Isn’t the Same as Remembering</h3><p>Think about how humans learn.</p><p>When you study mathematics, you don’t memorise every equation you’ve ever seen. Instead, you understand the underlying principles, which lets you solve problems you’ve never encountered before.</p><p>Language models are designed to work similarly.</p><p>During training, they analyse billions of words and sentences by gradually learning grammar, sentence structure, relationships between words, and styles of writing. This ability to apply learned patterns to unfamiliar situations is called <strong><em>generalisation</em></strong>, and it’s what allows an LLM to answer questions it has never seen before.</p><p><em>Memorisation is different.</em></p><p>Instead of understanding patterns, a model stores parts of its training data so precisely that it can reproduce them almost word for word when prompted appropriately.</p><p>A simple analogy illustrates the distinction:</p><blockquote>Imagine two students preparing for an exam. One understands the concepts and can solve new problems independently. The other memorizes every page of the textbook without understanding why the answers are correct. Both may perform well on familiar questions , but only one can adapt to something new.</blockquote><p>That’s the difference between generalisation and memorisation. For a language model, both can coexist, but only one is safe when the training data contains information that was never meant to be repeated.</p><h3>Why Do Language Models Memorise?</h3><p>If language models are built to recognise patterns, why do they memorise at all? The answer lies in how these models are trained.</p><p><strong>Repeated exposure:</strong> If a particular document or sentence appears many times in the training data, the model is far more likely to memorize it than information it encounters only once. Imagine hearing the same song every day for months; eventually, you know every lyric without trying. Research confirms this: frequent repetition in training data is one of the strongest predictors of memorisation.</p><p><strong>Rare or unique information:</strong> Counterintuitively, uncommon information can also be easier to memorise. A unique sentence or rarely used phrase doesn’t have many similar examples to learn from, so the model may end up remembering the exact wording instead of abstracting a broader pattern.</p><p><strong>Larger models have more capacity.</strong> Modern LLMs contain billions or even trillions of parameters. Those additional parameters increase a model’s ability to capture complex language relationships, but they also increase its capacity to retain specific pieces of information. Studies show that larger models can exhibit stronger memorisation under certain conditions, particularly without appropriate safeguards.</p><p><strong>Fine-tuning on small datasets:</strong> Many organisations fine-tune foundation models using smaller, specialised datasets. While this helps the model become an expert in a particular domain, repeatedly training on limited data can unintentionally encourage memorisation, especially when that data contains sensitive or unique information. This is why developers are especially cautious when fine-tuning on medical records, legal documents, or proprietary company data.</p><h3>Why Memorisation Matters</h3><p>At first glance, memorisation may not seem like a serious issue. After all, humans memorise things too. The following are issues that may arise from memorisation</p><p><strong>Privacy risks:</strong> Suppose a model was trained on publicly available text containing personal information. If the model later reproduces someone’s email address, phone number, or other sensitive details when prompted, the privacy concern is immediate. Researchers have demonstrated that carefully crafted prompts can sometimes extract memorised information from language models, a technique called <em>adversarial prompting</em>.</p><p><strong>Copyright concerns:</strong> Many LLMs are trained on enormous collections of internet text. If a model reproduces lengthy passages from books, articles, or source code without meaningful transformation, questions about intellectual property arise. This has become a central issue in ongoing legal cases involving generative AI.</p><p><strong>Trust in AI systems:</strong> Users trust AI because they expect it to generate answers based on understanding, not repetition. If a model frequently recalls exact training examples instead of generating new responses, confidence in its reliability and safety erodes.</p><h3>How Do Researchers Detect Memorisation?</h3><p>Measuring memorisation isn’t as simple as asking a model a few questions. Researchers have developed several techniques to estimate whether a model has stored specific training examples.</p><p><strong>Prefix prompting: </strong>This<strong> </strong>is one of the most common methods. The idea is to provide the beginning of a sentence that appeared in the training data and observe whether the model completes it almost perfectly. Consistent, near-verbatim completion is a signal of memorisation rather than genuine reasoning.</p><p><strong>Membership inference attacks: </strong>This is an<strong> </strong>attempt to determine whether a particular example was included in the training data, based on patterns in how fluently or confidently the model responds to it.</p><p><strong>Adversarial prompting: </strong>This method<strong> </strong>uses carefully designed inputs to encourage the model to surface memorised content, a technique security researchers use to stress-test models before deployment.</p><blockquote>One important nuance: detection methods can produce false positives. A model might generate text that closely resembles its training data but actually produced it through learned patterns rather than direct recall. This makes measurement genuinely difficult, and it’s an active area of research.</blockquote><h3>Is Memorisation Always Bad?</h3><p>Not necessarily.</p><p>Some level of memorisation is actually desirable. Language models should remember things like programming syntax, mathematical formulas, grammar rules, and widely accepted factual knowledge. These are foundational pieces of information that make the model useful.</p><p>The challenge is distinguishing between <em>helpful memorisation</em> and <em>harmful memorisation</em>.</p><p>Remembering that Paris is the capital of France is useful. Remembering someone’s private medical record is not.</p><p>The goal is not to eliminate memorisation; it’s to prevent models from recalling information that should remain confidential, while preserving everything that makes them capable and reliable.</p><h3>Reducing Harmful Memorisation</h3><p>A lot of work is ongoing on the development of techniques that can reduce unwanted memorisation without sacrificing the model’s ability to learn. Some of the most promising approaches include:</p><ul><li><strong>Data deduplication: </strong>removing repeated examples from training data before training begins, which is one of the simplest and most effective interventions</li><li><strong>Dataset filtering: </strong>excluding sensitive, private, or copyrighted text from training corpora</li><li><strong>Differential privacy: </strong>a mathematical framework that adds controlled noise to the training process, making it harder for the model to memorise individual examples (though it comes with trade-offs in model quality)</li><li><strong>Machine unlearning: </strong>an emerging technique that aims to selectively remove specific knowledge from a trained model after the fact, essentially teaching it to forget targeted content</li><li><strong>Output filtering: </strong>post-deployment safeguards that scan model responses for matches against known sensitive data before returning them to the user</li></ul><p>None of these is a complete solution on its own, and many involve trade-offs. The field is still developing the tools and benchmarks needed to evaluate them rigorously at scale.</p><h3>Looking Ahead</h3><p>As language models become integrated into search engines, coding assistants, healthcare, education, finance, and customer support, the conversation around memorisation will only grow more important.</p><p>Building better AI is no longer just about making models larger or more intelligent. It’s about making them more trustworthy.</p><p>Researchers continue to explore how models learn, what they remember, and how to ensure they protect the information entrusted to them.</p><p>Perhaps the future of AI won’t be defined solely by how much a model knows, but by how responsibly it handles what it has learned.</p><p><em>Further reading:</em></p><ul><li><em>The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigation</em> — a recent survey covering causes, detection methods, privacy concerns, and mitigation strategies</li><li><em>A Comprehensive Analysis of Memorization in Large Language Models</em> — empirical findings on model size, prompt length, frequency effects, and false positives in detection</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=258d7fa61e8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How DeepSeek Handles 1 Million Tokens With a Fraction of the Memory]]></title>
            <link>https://pub.towardsai.net/how-deepseek-handles-1-million-tokens-with-a-fraction-of-the-memory-b35f3256a3aa?source=rss-e8c5e11a433f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b35f3256a3aa</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[research-paper-summary]]></category>
            <category><![CDATA[sliding-windows]]></category>
            <category><![CDATA[token]]></category>
            <dc:creator><![CDATA[Rashidat Sikiru]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 19:01:00 GMT</pubDate>
            <atom:updated>2026-06-17T19:01:00.688Z</atom:updated>
            <content:encoded><![CDATA[<h4>A simple explanation of FlashMemory-DeepSeek-V4 and Lookahead Sparse Attention.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*Iz6MBjN6szbZj4zc3zdZPQ.jpeg" /><figcaption><a href="https://www.google.com/search?sca_esv=ec2bff8bd1e2ef21&amp;sxsrf=ANbL-n4ftvoqROOaJVsP9iguTVn2Uf_h8w:1781620859843&amp;udm=2&amp;fbs=ADc_l-aN0CWEZBOHjofHoaMMDiKpaEWjvZ2Py1XXV8d8KvlI3vxYI1tojT_24H7Q4iMwclSqIfnTP5J_a1_YHnhrZjiiTJD_2pug00kYgkdnJCgVeWKMtN3ZYjU-fsD1M3d2Dmz1foaT9_R1LQVgaHp55LH_v32V-HRoy-dUTf3fbguP4iqnOyH0s16yO48k0dBLeKMo1WdNvgJZylz2CnOnN2tgIPl--g&amp;q=Deepseek+token+increase+meme&amp;sa=X&amp;ved=2ahUKEwiRnubz_ouVAxVZXEEAHdNABf0QtKgLegQIFhAB&amp;biw=681&amp;bih=598&amp;dpr=1#sv=CAMSVhoyKhBlLVlnX1lyOWVLS001RTVNMg5ZZ19ZcjllS0tNNUU1TToOR3NnTDhneVNlUnhsdE0gBCocCgZtb3NhaWMSEGUtWWdfWXI5ZUtLTTVFNU0YADABGAcgzczMDUoIEAEYASABKAE">Source</a></figcaption></figure><p>The race toward million-token context windows has created a new problem for AI systems: <em>memory</em>.</p><p>Modern large language models can theoretically read entire books, lengthy research reports, massive codebases, and months of conversation history. But as context windows grow, storing and managing all that information becomes increasingly expensive. In many cases, memory consumption becomes a bigger bottleneck than the computation itself.</p><p>This is the problem a team of researchers from Tencent, Tsinghua University, and HKUST set out to solve in their paper, <em>FlashMemory-DeepSeek-V4: Lightning Index Ultra-Long Context via Lookahead Sparse Attention</em>.</p><p>Rather than storing every piece of information a model encounters, they propose a smarter approach: <em>predict what will matter in the future and keep only that</em><strong>.</strong> The result is a significant reduction in memory usage while maintaining, and in some cases actually improving, performance.</p><p>In this article, we’ll explore the long-context memory problem, unpack the intuition behind Lookahead Sparse Attention (LSA), and examine why FlashMemory-DeepSeek-V4 could be an important step toward truly scalable AI.</p><h3>Why Ultra-Long Context Is So Expensive</h3><p>To understand why this paper matters, you need to understand one key bottleneck: the <strong>KV cache</strong>.</p><p>When a language model processes text, it doesn’t simply read and forget. For every token it has seen, it stores two vectors — a <strong>Key</strong> and a <strong>Value</strong> — so it can reference that information later without recomputing it. This is the KV cache, and it’s what gives the model its “memory” during a single session.</p><p>The problem: <strong>the KV cache grows linearly with context length.</strong> The longer the document, the more Key-Value pairs pile up in GPU memory. At 128K tokens, it starts to strain the system. At 500K or 1M tokens, it becomes the single biggest memory cost in the entire inference pipeline.</p><p>A useful analogy:</p><blockquote>Imagine reading a 500-page book and photocopying every page as you go, so you can refer back to anything later. At chapter five, your stack of copies is manageable. By chapter forty, it weighs more than the book itself.</blockquote><p>That’s essentially what happens inside a large language model at scale.</p><p>What makes this worse is that most of what gets stored is never actually used. The researchers found something striking in real-world inference logs: <strong>over 90% of requests with contexts longer than 64K tokens could be resolved using only the last 8K tokens.</strong> The model was carrying enormous amounts of history it seldom touched.</p><p>Yet the fix isn’t simply discarding the rest. A simple sliding window approach of keeping only recent tokens fails on tasks that genuinely require reasoning over the full document. You need <em>both</em>: the ability to maintain global context and the efficiency to not store everything.</p><p>That’s the hard contradiction FlashMemory sets out to resolve.</p><h3>The Core Insight: Not Everything Is Worth Remembering</h3><p>Most long-context research focuses on the same question: <em>how do we process all this more efficiently?</em></p><p>FlashMemory asks a different question: <em>does the model need to remember all of it in the first place?</em></p><p>When you answer a question about a long document, you rarely need every sentence in equal measure. Some passages are critical. Many are somewhat relevant. Most contribute nothing to the current moment. Traditional attention mechanisms treat them all the same, store everything, attend to everything, and incur the memory cost for everything. Lookahead Sparse Attention directly challenges that assumption.</p><h3>Understanding Lookahead Sparse Attention (LSA)</h3><p>Think about how students prepare for an exam.</p><p>A strong student doesn’t memorise every sentence in the textbook. They identify key concepts, highlight important sections, and make strategic notes about what’s most likely to come up.</p><p>LSA brings this logic into memory management for language models.</p><p>Before the model processes each new step, a lightweight component called the <strong>Neural Memory Indexer</strong> proactively predicts which portions of the stored context are likely to be important in the next several decoding steps. Only those predicted high-value chunks get loaded into active GPU memory. Everything else is offloaded to CPU memory, still accessible if needed, but not taking up precious GPU space.</p><p>Here’s the contrast in plain terms:</p><p><strong>Standard attention:</strong></p><ul><li>Store everything in GPU memory</li><li>At each step, attend to all of it</li><li>Pay the full memory cost no matter what</li></ul><p><strong>Lookahead Sparse Attention:</strong></p><ul><li>Predict which chunks will matter next</li><li>Load only those into GPU memory</li><li>Pay only for what actually gets used</li></ul><p>The keyword is <em>lookahead</em>. The system isn’t waiting to see what gets attended to and then deciding to prune. It makes the prediction <em>ahead of time</em>, every 64 decoding steps, so the right memory is already resident when computation begins. This turns memory management from a passive cost into an active, intelligent decision.</p><h3>The Lightning Index: A Search Engine for Memory</h3><p>Pair LSA with another concept introduced in the paper: the <strong>Lightning Index</strong>.</p><p>Without an index, finding a specific piece of information in a massive context means scanning through everything. With an index, you can jump directly to what’s relevant.</p><p>The Lightning Index acts like a search catalogue for the model’s own memory. Instead of exhaustively attending to all stored context, the model uses the index to identify and retrieve the most query-relevant chunks efficiently. It dramatically reduces what needs to remain active while ensuring nothing critical is unreachable.</p><p>Together, LSA predicts what to keep, the Lightning Index organise how to retrieve it, these form a tiered memory architecture:</p><ol><li><strong>Heavily Compressed Attention (HCA) layers</strong> maintain a 128:1 compressed global view of all context, always present, lightweight</li><li><strong>LSA-filtered CSA chunks</strong> provide fine-grained recall, loaded on-demand based on the indexer’s predictions</li><li><strong>A local sliding window</strong> keeps the most recent tokens always available</li></ol><p>The model never loses awareness of the full document. It just stops hauling all of it into GPU memory at once.</p><h3>Backbone-Free Training</h3><p>Here’s something I found genuinely elegant about this paper.</p><p>Training the Neural Memory Indexer doesn’t require loading the massive DeepSeek-V4-Flash backbone, a 285-billion-parameter model with 13B active per token, at all.</p><p>The indexer is structured as a <strong>dual-encoder retrieval model, </strong>the same architecture used in dense passage retrieval systems. The backbone model’s compressed key vectors are pre-extracted and frozen offline. The indexer only needs to learn how to map the current hidden state to those frozen targets.</p><p>The trainable parameters account for less than 0.1% of the full model. The entire Memory Indexer converges within a single H20 GPU hour.</p><p>For comparison, the team ran approximately 500 training experiments in a single week to find the optimal configuration, something that would have been computationally impossible under traditional joint fine-tuning on the full backbone. That’s the kind of decoupled design that makes research cycles fast and deployment practical.</p><h3>The Results: Less Really Is More</h3><p>Efficiency techniques usually come with trade-offs. Reduce memory aggressively, and performance suffers. Reduce computation and quality drops.</p><p>Across three long-context benchmarks — <strong>LongBench-v2</strong>, <strong>LongMemEval</strong>, and <strong>RULER</strong> — the results are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*G0E61Xbf9s0CtJ2ERyQa5Q.png" /><figcaption>source: <a href="https://arxiv.org/abs/2606.09079">https://arxiv.org/abs/2606.09079</a></figcaption></figure><p>The model slightly outperforms the full-memory baseline. On the hardest subset (LongBench-v2-L, 493K tokens), FM-DS-V4 beats the baseline by <strong>+1.9%</strong> while running on just 10% of the memory.</p><p>The researchers argue this happens because LSA acts as an <strong>attention denoiser</strong>. By filtering out thousands of low-relevance historical chunks, the model’s attention is no longer diluted by noise. It focuses more sharply on what matters, which reduces factual hallucinations in long-context tasks.</p><p>For contrast, the naive alternatives completely collapse:</p><ul><li><strong>Recency Only</strong> (last 8K tokens): average accuracy drops to 33.3%</li><li><strong>Random 10%</strong> (random sparse selection): average accuracy of 38.7%</li></ul><p>Neither can match LSA’s 77.5%. The indexer isn’t guessing — it’s learned to route intelligently.</p><h3>What This Means for Real AI Applications</h3><p>This matters beyond academic benchmarks.</p><p>Ultra-long context has always felt like a capability that exists in theory but costs too much to use in practice. The KV cache overhead at 500K+ tokens makes it prohibitively expensive at scale. That affects anyone building:</p><ul><li>Document QA systems over large corpora</li><li>Legal or financial contract analysis tools</li><li>Coding agents that reason over full repositories</li><li>Long-horizon conversational agents</li><li>Research tools that synthesise across many papers</li></ul><p>If you can reduce KV cache memory by 90% without sacrificing accuracy, then longer contexts become economically viable for production. More requests can run concurrently on the same hardware. Latency improves. The infrastructure cost of deploying these systems comes down significantly.</p><h3>A Note on Limitations</h3><p>This paper is honest about what it doesn’t know yet.</p><p>The project was suspended due to organisational changes at Tencent before some planned ablations could be completed. A few hyperparameters, including the 64-step trigger interval and 0.5 classification threshold, were selected from early exploratory runs rather than systematic sweeps. The optimal 3-layer configuration (layers 10, 12, 20) came from a 500-run Pareto search, but finer-grained analysis remains as future work.</p><p>Open questions worth following:</p><ul><li>How does LSA hold up at 2M+ tokens?</li><li>Does the backbone-free training strategy transfer to other model architectures?</li><li>What’s the optimal trigger interval for different task types?</li></ul><p>The project lead has explicitly invited collaboration for the next phase, compute sponsorship, scaling tests, and research integration. This work feels like the beginning of something, not the end.</p><h3>Final Thoughts</h3><p>FlashMemory-DeepSeek-V4 makes a deceptively simple argument: <strong>you don’t need to remember everything to understand everything.</strong></p><p>By training a lightweight Neural Memory Indexer to predict which historical chunks are query-critical, LSA reduces KV cache memory to just 13.5% of the full baseline and to over 90% at 500K tokens, while slightly improving accuracy. The backbone-free decoupled training makes it practical to build and iterate on without the overhead of loading massive models during indexer optimisation.</p><p>The future of long-context AI may not belong to models that remember everything. It may belong to models that know what’s worth remembering.</p><p><em>What’s your take, do you think intelligent memory selection is more promising than simply scaling context windows larger? Drop a comment below.</em></p><p><strong>Resources:</strong></p><ul><li>Paper: <a href="https://arxiv.org/abs/2606.09079">FlashMemory-DeepSeek-V4 on arXiv</a></li><li>HuggingFace: <a href="https://huggingface.co/papers/2606.09079">huggingface.co/papers/2606.09079</a></li><li>Video explainer: <a href="https://youtu.be/XJUpuOBpT-4">YouTube walkthrough</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b35f3256a3aa" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/how-deepseek-handles-1-million-tokens-with-a-fraction-of-the-memory-b35f3256a3aa">How DeepSeek Handles 1 Million Tokens With a Fraction of the Memory</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Poisoning Explained: How Attackers Manipulate AI From the Inside]]></title>
            <link>https://pub.towardsai.net/data-poisoning-explained-how-attackers-manipulate-ai-from-the-inside-cc19df24389c?source=rss-e8c5e11a433f------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc19df24389c</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-security]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Rashidat Sikiru]]></dc:creator>
            <pubDate>Fri, 05 Jun 2026 20:01:00 GMT</pubDate>
            <atom:updated>2026-06-05T20:01:00.668Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>How one of the most dangerous threats in machine learning works, and what the leading AI companies are doing about it.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*J5IQiGpEYsMAgWGKm6nj_g.jpeg" /><figcaption>Source: <a href="https://programmerhumor.io/memes/data-poisoning">Programmer Humor</a></figcaption></figure><p>There is a class of cyberattack so subtle that the victim never sees it coming. No alarms trip. No dashboards flash red. The model passes every accuracy test. It performs well in staging. It ships to production on schedule.</p><p><em>And somewhere inside it, a time bomb is ticking.</em></p><p>This is <strong>data poisoning, </strong>a threat that is quietly becoming one of the most serious challenges in AI and machine learning today, especially because it often remains invisible until damage is done.</p><p>Research shows that data quality remains one of the biggest obstacles to successful AI deployments. Industry reports and academic studies have found that issues such as incomplete data, inconsistent labelling, bias, and poor governance contribute significantly to model failures and underperformance. Data poisoning weaponises these existing weaknesses, transforming ordinary data quality problems into deliberate attacks designed to manipulate model behaviour.</p><h3>What exactly is data poisoning?</h3><p>Every machine learning model is only as trustworthy as the data it learned from. Feed it clean, representative, well-labelled data, and you get a reliable model. Feed it corrupted data, and you get a model that does exactly what an adversary designed it to do.</p><p>Data poisoning is the act of contaminating a model’s training data to manipulate its behaviour. Unlike most cyberattacks, which target infrastructure or code, data poisoning targets the learning process itself.</p><p>The attack may involve:</p><ul><li>Inserting fabricated or mislabelled data points into the training set</li><li>Modifying legitimate samples with subtle noise or altered labels</li><li>Deleting critical data points to create blind spots in what the model knows</li></ul><p>What makes this especially dangerous is <em>when</em> the damage surfaces. Effects may be immediate, or they may lie dormant, only activating when the model encounters a specific trigger in the real world. By then, the corrupted training run is long finished, the data pipeline has moved on, and tracing the source of the problem becomes a forensic nightmare.</p><p>For a poisoning attack to succeed, it needs three things: <strong>stealth</strong> (the corrupt data must look legitimate), <strong>efficacy</strong> (it must actually achieve the attacker’s goal), and <strong>consistency</strong> (the effect must reliably appear in deployment).</p><h3>The Attack Landscape: Eight Ways to Poison an AI</h3><p>Data poisoning is not a single technique. It is a family of related attacks, each with different goals and methods.</p><h4>1. Targeted Attacks</h4><p>The adversary wants the model to fail in a very specific, controlled way, while succeeding everywhere else. A facial recognition system that refuses to identify one particular person. A spam filter that lets through emails from one specific sender.</p><h4>2. Non-Targeted (Availability) Attacks</h4><p>Blunter and simpler. The goal is to break the model broadly, reduce accuracy, increase error rates, and make it unreliable. Think of it as vandalism rather than sabotage.</p><h4>3. Label Poisoning / Backdoor Attacks</h4><p>An attacker injects mislabelled training samples containing a hidden trigger pattern. The model learns to associate that trigger with a specific (wrong) output. Once deployed, anyone who knows the trigger can reliably manipulate the model’s predictions remotely and/or repeatedly, without touching any infrastructure.</p><h4>4. Training Data Poisoning</h4><p>Large-scale manipulation of many training examples through minor, individually imperceptible changes. No single modification looks wrong. Together, they systematically skew the model’s decision boundaries, causing failures that cascade across every application relying on that model.</p><h4>5. Model Inversion Attacks</h4><p>This one isn’t about breaking the model; it’s about stealing from it. By carefully querying the model with crafted inputs, an attacker can reconstruct the original training data or infer statistical properties of it. If that training data included private medical records, financial data, or personal information, this is a serious privacy breach. The model becomes a window into the data it was supposed to keep private.</p><h4>6. Stealth Attacks</h4><p>Think of a slow leak rather than a burst pipe. Tiny perturbations are inserted into the training stream over time, each one too small to trigger any alert, but collectively degrading the model’s performance in ways that look like normal drift. By the time anyone notices, the damage is serious and the source is cold.</p><h4>7. Clean-Label Attacks</h4><p>This is the most technically sophisticated variant. Poisoned samples carry correct labels, so label-based validation catches nothing. But they have been crafted at the feature level to cause misclassification of specific targets at inference time. Standard data audits pass them cleanly. Only deep feature-space analysis can catch them.</p><h4>8. Feature Manipulation</h4><p>Rather than touching labels at all, adversaries shift the statistical properties of specific features, pushing the model’s decision boundaries in a desired direction while the data looks structurally normal on the surface.</p><h3>What the Industry Is Doing About It</h3><p>As data poisoning has gained attention within the AI security community, leading technology companies and research institutions have increasingly treated training data as a security-critical asset rather than a trusted input.</p><p>Across the industry, several common defence strategies have emerged. These include rigorous data validation and filtering, provenance tracking to understand where data originated, anomaly detection systems that identify unusual patterns in training datasets, and continuous monitoring of model behaviour throughout development and deployment.</p><p>Many organisations are also adopting Zero Trust principles for AI pipelines. Under this approach, incoming data is assumed to be potentially malicious until it has been validated, sanitised, and verified against established standards. Rather than trusting data simply because it comes from an internal or familiar source, every dataset is subjected to scrutiny before entering the training process.</p><p>Research teams at organisations such as OpenAI, Microsoft, Google, and Meta have published work on adversarial machine learning, model robustness, secure data handling, and AI risk management. While implementation details vary, the underlying philosophy is increasingly consistent: training data must be protected with the same level of diligence applied to source code, infrastructure, and production systems.</p><h3>How to Defend Against Data Poisoning</h3><p>Defence requires coordination across data engineering, model development, and security, none of which can do it alone.</p><h4>Data Validation and Sanitisation</h4><p>Build validation gates into every stage of the data pipeline. Distribution checks against known-good baselines, label consistency validation, feature range enforcement, cross-referencing with trusted external sources. Make data cleaning a continuous, owned process, not a one-time preprocessing step that someone ran six months ago.</p><h4>Real-Time Anomaly Detection</h4><p>Deploy systems that monitor statistical properties of training data as it flows through the pipeline. When incoming data deviates meaningfully from expected distributions, trigger an alert before it reaches training. The goal is to catch poisoning during ingestion, not after deployment.</p><h4>Adversarial Training</h4><p>Expose models to adversarial examples, including simulated poisoned samples, during training. This teaches the model to treat statistical outliers as noise rather than signal, building in robustness against a range of poisoning attack types.</p><h4>Red Teaming</h4><p>Run dedicated exercises that simulate data poisoning attacks against your models before adversaries can. Red teaming provides ground-truth evidence of vulnerabilities and informs precisely targeted defences. If you are not attacking your own models, someone else will.</p><h4>Data Provenance Tracking</h4><p>Maintain immutable records of data origin, transformation history, and access patterns throughout the pipeline. When poisoning is suspected, provenance records are the forensic foundation for identifying when and where contamination entered and what was affected.</p><h4>Ensemble Learning</h4><p>Combine predictions from multiple independently trained models. Because independently trained models on different data subsets are unlikely to share the same poisoning vulnerabilities, ensemble approaches reduce false positives and false negatives from adversarial injections. Research shows ensemble learning can restore accuracy by an average of 15–20% in poisoning scenarios.</p><h4>Secure Data Handling</h4><p>Role-based access controls, multi-factor authentication, audit logging, and change management protocols. Limit who can touch training data. Log everything. Most poisoning scenarios require some form of data access; make that access difficult, auditable, and attributable.</p><h4>Continuous Post-Deployment Monitoring</h4><p>Data drift and model drift monitoring after deployment can surface poisoning effects that survived training evaluation. Track accuracy, precision, recall, and calibration metrics over time. Investigate anomalies. A model that looked clean at launch can degrade through subsequent poisoned updates.</p><h3>The Roles to Prevent Data Poisoning</h3><p>Defending against data poisoning is a team sport. Here is who needs to be involved:</p><ul><li><strong>Developers</strong> own data integrity at acquisition and preprocessing. Rigorous input validation, clean data pipelines, secure handling practices, and staying current on emerging attack vectors are non-negotiable parts of the job.</li><li><strong>MLOps teams</strong> enforce security throughout the full model lifecycle, CI/CD pipelines with validation layers, continuous performance monitoring, regression testing, and simulated attack exercises. They are the bridge between development and production, and data poisoning falls squarely in their domain.</li><li><strong>Security teams</strong> bring the adversarial perspective. Access controls, dataset audits, suspicious-pattern monitoring, incident response planning, and internal education. They need to be at the table for AI development conversations, not brought in after a breach.</li></ul><p>None of these functions can cover the problem alone. Cross-functional governance, shared standards, joint reviews, and common incident response protocols are what actually close the gaps.</p><h3>Conclusion</h3><p>Data poisoning does not annihilate your model in a single dramatic event. It is quieter than that, and far more dangerous because of it. It corrupts the foundation the model is built on, and lets the model walk out the door looking perfectly healthy. The damage stays hidden until an adversary decides to surface it, or until a high-stakes decision goes catastrophically wrong and someone starts asking hard questions about the training data.</p><p>The real question is not whether your organisation can defend against data poisoning. It is whether it has been decided that the training data deserves the same level of scrutiny as the code, the infrastructure, and the model architecture. For most teams, that shift in mindset has not happened yet.</p><p>Your training data is not a trusted input. It is an attack surface. The sooner that is treated as an engineering requirement rather than an afterthought, the better the chances of building AI that stays trustworthy under pressure, which is exactly when it matters most.</p><h3>Further Reading</h3><ol><li>Korada, L. (2024). Data Poisoning — What Is It and How It Is Being Addressed by the Leading Gen AI Providers. <em>European Journal of Advances in Engineering and Technology</em>, 11(5), 105–109.</li><li>Kure, H. I., Sarkar, P., Nwajana, A. O., &amp; Ndanusa, A. B. (2025). Detecting and Preventing Data Poisoning Attacks on AI Models. <em>PIERS 2025</em>, Abu Dhabi, UAE.</li><li>Nightfall AI. (2024). Data Poisoning: The Essential Guide. <a href="https://www.nightfall.ai/ai-security-101/data-poisoning">https://www.nightfall.ai/ai-security-101/data-poisoning</a></li><li>Open Data Science. (2025). Why Data Quality Is the Main Bottleneck Facing AI Projects. <a href="https://opendatascience.com/why-data-quality-is-the-main-bottleneck-facing-ai-projects/">https://opendatascience.com/why-data-quality-is-the-main-bottleneck-facing-ai-projects/</a></li><li>Koh, P. W., Steinhardt, J., &amp; Liang, P. (2022). Stronger data poisoning attacks break data sanitization defenses. <em>Machine Learning</em>, 1–47.</li><li>Goldblum, M. et al. (2022). Dataset security for machine learning. <em>IEEE TPAMI</em>, 45(2), 1563–1580.</li><li>Baracaldo, N. et al. (2017). Mitigating poisoning attacks: A data provenance-based approach. <em>ACM AISec Workshop</em>, 103–110.</li></ol><p><em>If this piece was useful, consider sharing it with your ML team, your security team, or anyone building systems that depend on data they didn’t fully control at the source, which, in practice, is almost everyone. Follow me for more insight on AI/ML via </em><a href="https://www.linkedin.com/in/rashidatsikiru/"><em>LinkedIn</em></a>, <a href="http://o_damilola21/">X</a>, and right here on <a href="https://medium.com/@rasheedatsikiru">Medium</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc19df24389c" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/data-poisoning-explained-how-attackers-manipulate-ai-from-the-inside-cc19df24389c">Data Poisoning Explained: How Attackers Manipulate AI From the Inside</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Polyglean: A Text Cleaning Library That Works for Any Language]]></title>
            <link>https://medium.com/@rasheedatsikiru/polyglean-a-text-cleaning-library-that-works-for-any-language-b8a19b2fc13c?source=rss-e8c5e11a433f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8a19b2fc13c</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[african-languages]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Rashidat Sikiru]]></dc:creator>
            <pubDate>Thu, 07 May 2026 16:10:56 GMT</pubDate>
            <atom:updated>2026-05-07T16:10:56.289Z</atom:updated>
            <content:encoded><![CDATA[<h4>Built while preparing datasets for low-resource languages and fixing the silent failures left by English-first NLP tools.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DDdqnojd-L0ZqXX55E3Teg.jpeg" /><figcaption>Sourc: Image from Author</figcaption></figure><p><em>Most text cleaning tools are quietly English-first.</em></p><p>They work beautifully on Latin-script data. Then you hand them Yoruba, Hausa, Arabic, or Devanagari text, and they fail <em>silently</em>. No error. No warning. Just wrong output that looks right until you’re deep enough into your pipeline to notice.</p><p>I hit this wall while building TTS (text-to-speech) voice datasets for four Nigerian languages. The data came from multiple sources in multiple formats: Excel spreadsheets, scraped JSON, plain text, and OCR-extracted newspapers. Every language needed the same pipeline: load, clean, deduplicate, filter by word count, save — but the tools I reached for kept making the same wrong assumptions.</p><p>So I built <strong>Polyglean</strong>: a universal text-cleaning pipeline that works correctly for any Unicode script, any file format, and any language.</p><p>Github: <a href="https://github.com/dammmie-beep/polyglean">https://github.com/dammmie-beep/polyglean</a></p><pre>pip install polyglean</pre><h3>The Bugs That Motivated This</h3><h4>Bug 1: is_all_caps() that ignores your entire script</h4><p>Filtering out all-caps rows is standard practice; they’re usually headers, section titles, or noise. The naive implementation looks like this:</p><pre># ❌ Broken for non-Latin scripts<br>def is_all_caps(text: str) -&gt; bool:<br>    letters = re.sub(r&quot;[^a-zA-ZÀ-ÿ]&quot;, &quot;&quot;, text)<br>    return len(letters) &gt; 0 and letters == letters.upper()</pre><p>That regex strips out every character outside the Latin range. So when you pass in a Hausa sentence, for example, written in all-caps, the function sees an empty string and returns False</p><h4>Bug 2: Deduplication that misses half your duplicates</h4><p>Some languages uses tonal diacritical marks: ẹ́, ọ̀. The problem is that the <em>same character</em> can be stored in two different ways in Unicode:</p><ul><li><strong>NFC (precomposed):</strong> ẹ́ as a single codepoint</li><li><strong>NFD (decomposed):</strong> e + combining dot below + combining acute — three separate codepoints</li></ul><p>Both look identical on screen. A Python string equality check sees them as completely different. So the same sentence, copy-pasted from two different sources, survives your deduplication step as two separate rows. At scale, this creates thousands of false duplicates.</p><h4>Bug 3: One pipeline per file format</h4><p>Real NLP datasets don’t come in one format. Some of my data was in Excel, CSV, JSON, etc. Every new source meant writing another loader, another normaliser, another merge step, the same boilerplate, over and over.</p><h3>The Fixes That Make Polyglean</h3><h4>Fix 1: Unicode Normalisation (NFC)</h4><p>The diacritics problem has a one-line solution. Run it <em>first</em>, before anything else:</p><pre>import unicodedata<br><br>def normalize_unicode(text: str) -&gt; str:<br>    return unicodedata.normalize(&quot;NFC&quot;, text)</pre><h4>Fix 2: Unicode-Aware is_all_caps()</h4><p>The fix is to stop asking “is this an ASCII letter?” and instead ask “what <em>category</em> of Unicode character is this?”</p><pre># ✅ Works for any script<br>import unicodedata<br><br>def is_all_caps(text: str) -&gt; bool:<br>    cased = [ch for ch in text if unicodedata.category(ch) in (&quot;Lu&quot;, &quot;Ll&quot;, &quot;Lt&quot;)]<br>    return len(cased) &gt; 0 and all(unicodedata.category(ch) == &quot;Lu&quot; for ch in cased)</pre><p>unicodedata.category() classifies every Unicode character using the standard Unicode property system:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*tyjOYyalNWq5WgOkIzOwAQ.png" /><figcaption>Source: Image from Author</figcaption></figure><p>This works for Cyrillic, Greek, Armenian, and any script that has a case distinction. Scripts <em>without</em> case distinction (Arabic, CJK) are never flagged as all-caps, which is the correct behaviour.</p><h4>Fix 3 — Multi-Format Source Loading</h4><p>Polyglean handles all common dataset formats through a single unified source config:</p><pre>source_config = [<br>    # Excel (shorthand tuple: path, column, label)<br>    (&quot;bbc_news.xlsx&quot;, &quot;sentence&quot;, &quot;bbc&quot;),<br><br>    # CSV with tab separator<br>    {&quot;path&quot;: &quot;data.tsv&quot;, &quot;col&quot;: &quot;text&quot;, &quot;label&quot;: &quot;web&quot;,<br>     &quot;type&quot;: &quot;csv&quot;, &quot;sep&quot;: &quot;\t&quot;},<br><br>    # Parquet<br>    {&quot;path&quot;: &quot;corpus.parquet&quot;, &quot;col&quot;: &quot;sentence&quot;,<br>     &quot;label&quot;: &quot;hf&quot;, &quot;type&quot;: &quot;parquet&quot;},<br><br>    # JSON array of objects<br>    {&quot;path&quot;: &quot;stories.json&quot;, &quot;col&quot;: &quot;story_text&quot;,<br>     &quot;label&quot;: &quot;stories&quot;, &quot;type&quot;: &quot;json_list&quot;},<br><br>    # Plain text — one sentence per line<br>    {&quot;path&quot;: &quot;sentences.txt&quot;, &quot;label&quot;: &quot;misc&quot;, &quot;type&quot;: &quot;txt&quot;},<br>]</pre><p>Every entry gets loaded, labelled with its source, and merged into a single DataFrame. The source column survives all the way to the output; you always know where each sentence came from.</p><h3>An Example Usage</h3><p>Here is what a full language config looks like. One dict, one function call:</p><pre>import polyglean<br><br>config = {<br>    &quot;base_dir&quot;:       &quot;/path/to/yoruba/data/&quot;,<br>    &quot;output_dir&quot;:     &quot;/path/to/output/&quot;,<br>    &quot;source_config&quot;:  [<br>        (&quot;bbc_yoruba.xlsx&quot;,   &quot;sentence&quot;, &quot;bbc&quot;),<br>        (&quot;bible_yoruba.xlsx&quot;, &quot;sentence&quot;, &quot;bible&quot;),<br>        (&quot;news_yoruba.xlsx&quot;,  &quot;sentence&quot;, &quot;news&quot;),<br>    ],<br>    &quot;separate_files&quot;: [],<br>    &quot;extra_cleaners&quot;: [],<br>    &quot;word_count_min&quot;: 5,<br>    &quot;word_count_max&quot;: 20,<br>    &quot;output_tts&quot;:   &quot;yoruba_tts.xlsx&quot;,<br>    &quot;output_other&quot;: &quot;yoruba_other.xlsx&quot;,<br>}<br><br>polyglean.run_language(&quot;yoruba&quot;, config)</pre><p>Running this produces two output files:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*-3GPauaVnwsTjXWO39qdmg.png" /><figcaption>Source: Image from Author</figcaption></figure><p>The pipeline logs every step:</p><pre>============================================================<br>  Language: YORUBA<br>============================================================<br><br>[1/4] Loading sources...<br>  Loaded  12,483 rows  ← bbc_yoruba.xlsx<br>  Loaded  94,221 rows  ← bible_yoruba.xlsx<br>  Loaded   8,374 rows  ← news_yoruba.xlsx<br>  Total rows loaded: 115,078<br><br>[2/4] Cleaning...<br>  Rows after clean + dedup: 89,432<br>  Word count range: 1–312<br>  In 5–20 word range: 61,204<br><br>[3/4] Saving merged files...<br>  Saved  61,204 rows → yoruba_tts.xlsx<br>  Saved  28,228 rows → yoruba_other.xlsx</pre><h4>What about the long sentences?</h4><p>The rows in yoruba_other.xlsx aren&#39;t junk; there are many are long paragraphs containing perfectly good material that just needs splitting. Polyglean handles this too:</p><pre>polyglean.split_other_sentences(&quot;yoruba&quot;, config)</pre><p>This splits on sentence-boundary punctuation (. , ;), cleans each chunk, and saves yoruba_split_sentences.xlsx with word counts, using the same word_count_min/word_count_max from your config. No hardcoded magic numbers.</p><h3>Adding Your Own Language</h3><p>Adding a new language requires one config block and zero changes to the library itself. Here is a Swahili example with a custom cleaner to strip a dataset-specific prefix:</p><pre>import re<br>from polyglean import LANGUAGES, run_language<br>from polyglean.cleaners import remove_urls<br><br>LANGUAGES[&quot;swahili&quot;] = {<br>    &quot;base_dir&quot;:       &quot;/path/to/swahili/&quot;,<br>    &quot;output_dir&quot;:     &quot;/path/to/output/&quot;,<br>    &quot;source_config&quot;:  [<br>        (&quot;swahili_news.xlsx&quot;, &quot;sentence&quot;, &quot;news&quot;),<br>        {&quot;path&quot;: &quot;web_data.csv&quot;, &quot;col&quot;: &quot;text&quot;,<br>         &quot;label&quot;: &quot;web&quot;, &quot;type&quot;: &quot;csv&quot;},<br>    ],<br>    &quot;separate_files&quot;: [],<br><br>    # Applied after the universal BASE_CLEANERS<br>    &quot;extra_cleaners&quot;: [<br>        remove_urls,<br>        lambda text: re.sub(r&quot;^Habari:\s*&quot;, &quot;&quot;, text),<br>    ],<br><br>    &quot;word_count_min&quot;: 5,<br>    &quot;word_count_max&quot;: 20,<br>    &quot;output_tts&quot;:   &quot;swahili_tts.xlsx&quot;,<br>    &quot;output_other&quot;: &quot;swahili_other.xlsx&quot;,<br>}<br><br>run_language(&quot;swahili&quot;, LANGUAGES[&quot;swahili&quot;])</pre><p>The extra_cleaners list is the extension point for anything language-specific. The base pipeline: Unicode normalisation, control character removal, bracket stripping, whitespace collapsing, runs automatically for every language.</p><h3>What’s Next</h3><p>Polyglean v0.1.1 is functional and tested across Yoruba, Hausa, Igbo, and Nigerian Pidgin.</p><p>The roadmap:</p><ul><li><strong>Tests and CI</strong> — a pytest suite and GitHub Actions workflow</li><li><strong>Non-space-segmented scripts</strong> — Languages that don’t use spaces between words; word count needs a character-based fallback or a pluggable tokeniser</li><li><strong>Sentence quality scoring</strong> — filter by perplexity or length distribution, not just word count</li><li><strong>YAML config files</strong> — define language configs in a file, not in code</li></ul><h3>Try It</h3><pre>pip install polyglean</pre><p><strong>GitHub:</strong> <a href="https://github.com/dammmie-beep/polyglean">github.com/dammmie-beep/polyglean</a></p><p><em>Contributions are very welcome. whether that’s adding a language config, improving the sentence splitter, or filing a bug report. If you work with low-resource language data, I’d especially love to hear about formats and cleaning challenges I haven’t run into yet. Open an issue, open a PR, or just star the repo if it was useful.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8a19b2fc13c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 2: Inside an HPC Cluster — Nodes, Networks and Storage]]></title>
            <link>https://medium.com/@rasheedatsikiru/part-2-inside-an-hpc-cluster-nodes-networks-and-storage-20898e3d696f?source=rss-e8c5e11a433f------2</link>
            <guid isPermaLink="false">https://medium.com/p/20898e3d696f</guid>
            <category><![CDATA[mls]]></category>
            <category><![CDATA[hpc]]></category>
            <category><![CDATA[parallel-computing]]></category>
            <category><![CDATA[gpu]]></category>
            <dc:creator><![CDATA[Rashidat Sikiru]]></dc:creator>
            <pubDate>Mon, 20 Apr 2026 20:16:03 GMT</pubDate>
            <atom:updated>2026-04-20T20:16:03.432Z</atom:updated>
            <content:encoded><![CDATA[<h4>A documentation of the hardware and architecture that makes parallel computing possible</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*1761QRaZ6Aid8Sh6QRxrWA.png" /><figcaption>Image Source: Author</figcaption></figure><p>In <a href="https://medium.com/@rasheedatsikiru/part-1-what-is-high-performance-computing-and-why-should-you-care-3ea43cf02622">Part 1</a>, we established that high-performance computing uses clusters of processors working in parallel to solve problems that are simply too large, too slow, or too numerous for a standard laptop or desktop. We introduced the key concepts: nodes, schedulers, parallelism, and the idea that HPC is increasingly accessible to researchers everywhere.</p><p>Now it is time to go deeper. In this part, we will take a closer look at what an HPC cluster is made of: the hardware components, how they connect, and the storage systems you will use every day as an HPC user. Understanding this architecture directly affects how you write your job scripts, where you put your data, and how you get the best performance out of the system.</p><h3><strong>Cluster as a Network of Computers</strong></h3><p>The word “cluster” is key. An HPC cluster is a carefully organised collection of individual computers, called nodes, that are connected by a high-speed network and managed by a central scheduler. From a user’s perspective, the cluster feels like one unified system.</p><p>Think of it like a large law firm. Each lawyer (node) works independently on their cases (computations), but they all share the same filing system (storage), receive their case assignments from a central coordinator (the scheduler), and can quickly consult with colleagues (communicate over the network) when needed. The firm operates as one, even though many individuals are doing the work.</p><h3>The Different Types of Nodes</h3><p>Different types of nodes serve different purposes, and understanding the distinction is essential for using a cluster effectively.</p><h4><strong>Login Nodes</strong></h4><p>Login nodes are your entry point to the cluster. When you connect to a cluster via SSH (Secure Shell) from your laptop or workstation, you land on a login node. This is where you write and edit your job scripts, manage your files, compile your code, and submit jobs to the scheduler.</p><h4><strong>Compute Nodes</strong></h4><p>Compute nodes are where the actual work happens. These are the powerful servers that run your jobs once the scheduler allocates them to you. You never interact with compute nodes directly; SLURM sends your job script there and runs it without any input from you.</p><p>A modern compute node typically contains multiple CPUs, each with many cores. For example, a single compute node might have two 64-core AMD EPYC processors, giving it 128 physical cores, hundreds of gigabytes of RAM, and fast local temporary storage. Multiply this by hundreds or thousands of nodes, and you start to understand the scale of what an HPC cluster can do.</p><h4><strong>GPU Nodes</strong></h4><p>GPU nodes are compute nodes that have been fitted with one or more graphics processing units. While originally designed for rendering graphics, GPUs have become essential for HPC workloads that involve massive parallelism — particularly machine learning, deep learning, and certain types of scientific simulation.</p><p>A single high-end data centre GPU, like the NVIDIA A100 or H100, contains thousands of small processing cores, making it extraordinarily efficient at performing the same mathematical operation on huge amounts of data simultaneously. This is precisely the kind of work involved in training neural networks or running molecular dynamics simulations. We will explore GPUs in much more depth in Part 4 of this series.</p><h4><strong>High-Memory Nodes</strong></h4><p>Some computations are not limited by processing speed — they are limited by the amount of RAM available. Genomics analyses, large graph computations, and certain data analytics workloads can require hundreds of gigabytes or even terabytes of memory. High-memory (or “bigmem”) nodes are specialised compute nodes with significantly more RAM than standard nodes, reserved for exactly these kinds of memory-hungry jobs.</p><h3><strong>How Do the Nodes Talk to Each Other?</strong></h3><p>One of the defining features of an HPC cluster is how fast those nodes can communicate with each other. In parallel computing, your job is often split across multiple nodes that need to constantly exchange data. If that communication is slow, it becomes the bottleneck, no matter how powerful each node is.</p><p>This is why HPC clusters use specialised high-speed networks called interconnects, rather than standard Ethernet. The three most common technologies you will encounter are:</p><p>InfiniBand It offers speeds of up to 400 Gb/s (HDR InfiniBand) and extremely low latency at the sub-microsecond level. Due to these characteristics, it is best suited for tightly coupled parallel workloads such as MPI jobs and large-scale simulations. InfiniBand is typically found in national HPC centres like Alliance Canada clusters.</p><p>High-speed Ethernet is another networking option used in HPC systems, with speeds ranging from 25 to 400 Gb/s depending on the generation. While its latency is low, it is generally higher than that of InfiniBand. It is often used for less tightly coupled workloads, cloud-based HPC, and general data transfer tasks. High-speed Ethernet is commonly deployed in cloud HPC environments, newer clusters, and some academic systems.</p><p>RDMA (Remote Direct Memory Access) is a technology that enables one computer to directly access the memory of another without involving the CPU, thereby reducing overhead. This significantly lowers latency and improves data transfer efficiency. Both InfiniBand and modern Ethernet networks support RDMA and play a key role in making cloud-based HPC systems more competitive with traditional on-premises clusters.</p><h3>The Storage: Where Your Data Lives</h3><p>HPC clusters do not work like your laptop, where all your files live in one place. Instead, they have multiple distinct storage areas, each with different characteristics, quotas, and intended purposes.</p><h4><strong>The Main Storage Areas</strong></h4><p>There are three main storage areas in HPCs</p><p><strong>$HOME — Your Home Directory</strong></p><ul><li>Small quota (typically 50 GB to a few hundred GB, depending on the cluster)</li><li>It is your safest storage for important files because it is backed up regularly</li><li>Available on all nodes, including login and compute nodes</li><li>Read-only on compute nodes on some clusters (check your cluster’s documentation)</li><li>Best for dotfiles, configuration files, virtual environments, and small scripts</li><li>Not suitable for large datasets, job outputs, or anything that changes frequently</li></ul><p><strong>$SCRATCH — Your Scratch Space</strong></p><ul><li>Large quota (often several terabytes per user)</li><li>Files can be lost if the system fails, since there is no backup</li><li>On many clusters, files not accessed for 60 days are automatically purged</li><li>Optimised for high-throughput I/O</li><li>Available on all nodes</li><li>Best for active job inputs and outputs, large datasets being processed, and intermediate results</li><li>This is your main working area when running jobs</li></ul><p><strong>$PROJECT (or $ARCHIVE) — Project Storage</strong></p><ul><li>Large quota, shared among a research group</li><li>Backed up, slower access than scratch, but safer</li><li>Best for completed project data, datasets you want to keep long-term, and shared data for your team</li><li>Move data here from scratch once a project is complete</li></ul><h4><strong>$TMPDIR: Node-Local Storage</strong></h4><p>There is a fourth storage area that many users overlook but can dramatically improve job performance: the local temporary storage on each compute node, accessible via the environment variable $TMPDIR.</p><p>Unlike the shared storage areas described above, $TMPDIR is physically located on the compute node itself, not on a network file system. This means reading and writing to it is extremely fast, with no network overhead. For jobs that perform many small, rapid file operations, using $TMPDIR for intermediate files and writing only final results back to scratch can provide significant speed improvements.</p><h3><strong>Why HPC Storage Is Different</strong></h3><p>The shared storage on an HPC cluster is a parallel file system, a specialised storage architecture designed to handle many nodes reading and writing data simultaneously at high speed.</p><p>The most widely used parallel file systems in HPC are <em>Lustre</em> and <em>GPFS (IBM Spectrum Scale)</em>. These systems distribute files across many storage servers and disks, allowing hundreds of compute nodes to read and write data in parallel without creating bottlenecks.</p><p>This architecture has some important implications for how you should use the file system:</p><ul><li><strong>Avoid creating millions of small files.</strong> Parallel file systems handle large files much more efficiently than huge numbers of tiny files. If your job produces many small outputs, consider archiving them into a single file (e.g., a tar archive) before storing.</li><li><strong>Avoid frequent random reads/writes.</strong> Sequential access patterns (reading or writing data in order) are much faster on parallel file systems than random access patterns.</li><li><strong>Use $TMPDIR for temporary small files.</strong> As mentioned above, for intensive small-file operations within a job, use the local node storage instead of the shared parallel file system.</li></ul><h3><strong>Getting Data To and From the Cluster</strong></h3><p>Before you can run a job, you need to get your data onto the cluster. And once the job is done, you need to get your results back. This data transfer step is part of everyday HPC work.</p><p><strong>scp (Secure Copy): </strong>Simple transfer of individual files or small directories. Easy to use from the terminal.</p><pre>scp myfile.csv username@cluster.example.ca:~/scratch/</pre><p><strong>rsync: </strong>Syncing directories between your machine and the cluster. More efficient than scp for repeated transfers, as it only copies changed files.</p><p><strong>sftp: </strong>Interactive file transfer session. Useful when you want to browse the remote file system and transfer files interactively.</p><p><strong>Globus: </strong>Large-scale data transfer, especially between institutions. Highly reliable, fault-tolerant, and can resume interrupted transfers. Preferred for terabyte-scale transfers.</p><p><strong>wget / curl: </strong>Downloading data directly from the internet to the cluster. Useful for large public datasets — faster than downloading locally and then uploading.</p><h3><strong>Environment Modules: Managing Software on the Cluster</strong></h3><p>HPC clusters support many users with many different software needs, and maintaining a consistent global software environment for everyone is practically impossible.</p><p>The solution is the module system, a tool that lets you load specific versions of software into your environment on demand. When you load a module, it sets the necessary environment variables (like PATH and LD_LIBRARY_PATH) so that the correct version of the software is accessible.</p><h4><strong>Common Module Commands</strong></h4><p><strong>module avail:</strong> List all available modules on the cluster</p><p><strong>module spider gcc:</strong> Search for a module and see its dependencies</p><p><strong>module load gcc:</strong> Load specific modules into your environment</p><p><strong>module list:</strong> Show currently loaded modules</p><p><strong>module unload:</strong> Remove a module from your environment</p><p><strong>module purge:</strong> Remove all currently loaded modules</p><p>A critical habit to develop: always load your modules inside your job script, not in your .bashrc file. Loading modules in .bashrc can cause confusing behaviour when jobs run in non-interactive environments. Keep your job scripts self-contained; they should load every module they need explicitly.</p><h3><strong>Putting It All Together</strong></h3><p>Now that you understand the components, let us trace the journey of a typical HPC job from start to finish, using the architectural knowledge from this article.</p><p><strong>1. Connect: </strong>You SSH into a login node from your laptop. You are now on the cluster.</p><p><strong>2. Prepare: </strong>You edit your Python script and job script (.sh file) on the login node. Your files live in $SCRATCH.</p><p><strong>3. Load modules: </strong>You test that your modules load correctly: e.g., module load gcc python/3.11</p><p><strong>4. Submit: </strong>You run sbatch run_job.sh. SLURM receives your job and adds it to the queue.</p><p><strong>5. Queue: </strong>SLURM finds available compute nodes that match your resource request (CPUs, memory, GPUs).</p><p><strong>6. Run: </strong>Your job script executes on the allocated compute nodes. Your code reads input from $SCRATCH and writes outputs back to $SCRATCH.</p><p><strong>7. Complete: </strong>The job finishes. SLURM writes your terminal output to the log file (e.g., job-12345.out) in your submission directory.</p><p><strong>8. Retrieve: </strong>You check your results in $SCRATCH. If the project is done, you move important outputs to $PROJECT for long-term storage.</p><h3>What’s Next?</h3><p><em>You now understand the physical architecture of an HPC cluster, the nodes, the network, and the storage hierarchy. In Part 3, we will go deep on the job scheduler: how SLURM works, how to write effective job scripts, what all those #SBATCH directives actually mean, and how to monitor and troubleshoot your running jobs. This is where theory meets practice.</em></p><p><strong><em>Follow me so you don’t miss Part 3, it drops next week. </em></strong><em>If this was helpful, </em><strong><em>leave a clap (or fifty 👏), </em></strong><em>it helps more people find this series.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20898e3d696f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 1: What Is High-Performance Computing and Why Should You Care?]]></title>
            <link>https://medium.com/@rasheedatsikiru/part-1-what-is-high-performance-computing-and-why-should-you-care-3ea43cf02622?source=rss-e8c5e11a433f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ea43cf02622</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[hpc]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Rashidat Sikiru]]></dc:creator>
            <pubDate>Thu, 09 Apr 2026 18:28:51 GMT</pubDate>
            <atom:updated>2026-04-09T18:28:51.124Z</atom:updated>
            <content:encoded><![CDATA[<h4>A beginner-friendly introduction to HPC clusters, supercomputers, and the technology reshaping modern research</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pKeCegCT3X3zCMp_aRC1OQ.png" /><figcaption>Source: Author</figcaption></figure><p>If you have ever wondered how scientists model the Earth’s climate, how drug researchers discover new medicines in record time, or how your bank detects fraud in milliseconds, the answer, more often than not, involves High-Performance Computing (HPC).</p><p>HPC is not another buzzword. It is the backbone of modern scientific discovery, powering some of the most complex and consequential computations on the planet. Yet for many researchers, students, and data professionals, it remains a mysterious black box.</p><p>This series aims to change that. Over five parts, we will pull back the curtain on HPC, what it is, how it works, and most importantly, how you can start using it. Whether you are a researcher with computations that are taking too long on your laptop or simply a curious person who wants to understand the technology shaping the modern world, this series is for you.</p><p>Let us start from the very beginning.</p><h3><strong>What Is High-Performance Computing?</strong></h3><p>At its most fundamental level, High-Performance Computing is exactly what its name suggests: computing at very high performance levels. But that description barely scratches the surface.</p><p>A standard laptop or desktop computer solves problems using serial computing; it breaks a task into a sequence of steps and executes them one after another on a single processor. This works perfectly fine for most everyday tasks: writing documents, browsing the internet, and running spreadsheets.</p><p>But what happens when your problem is too big, too complex, or too time-sensitive for a single machine? What if your climate simulation needs to model a billion atmospheric data points? What if your genomics pipeline needs to process terabytes of DNA sequences? What if your neural network has hundreds of millions of parameters to train?</p><p>This is precisely where HPC steps in.</p><blockquote>HPC utilises clusters of powerful processors working in parallel to process massive datasets and solve complex problems at extremely high speeds, often operating at speeds more than one million times faster than the fastest standard desktop or laptop computers.</blockquote><p>The keyword is parallel. Instead of doing one thing at a time, HPC systems split enormous workloads into smaller pieces and process many of those pieces simultaneously, across potentially thousands of processors. The results are then combined into a final answer. This approach allows researchers to solve problems that would be completely infeasible or would take years to complete on a conventional computer.</p><p><strong>From Supercomputers to Clusters</strong></p><p>When most people hear “high-performance computing,” they picture a supercomputer: a room-sized machine that looks more like a data centre than a computer. Supercomputers have indeed been central to HPC for decades. Purpose-built with millions of processors or processor cores, they can perform billions of floating-point mathematical operations every single second.</p><p>Today, however, the HPC landscape has expanded significantly. Rather than needing access to a dedicated supercomputer, many organisations now run HPC workloads on clusters of high-speed computer servers, either hosted on-premises in their own data centres or accessed through cloud providers. This democratisation of HPC means that the same power once available only to national laboratories and elite research universities is increasingly accessible to smaller research groups, startups, and even individual researchers.</p><h3><strong>How Does HPC Actually Work?</strong></h3><p>Understanding HPC requires grasping a few core concepts: parallel computing, clusters, and the software that holds it all together.</p><p><strong>Massively Parallel Computing</strong></p><p>The foundation of HPC is parallelism. While your laptop might have 8 or 16 processor cores, an HPC cluster can have tens of thousands to millions of processor cores working in concert. The computational work is divided into smaller independent tasks that run simultaneously on different processors. When they are done, their results are assembled into a final output.</p><p>Think of it like this: if one person can dig a hole in 10 hours, ten people working together can dig it in roughly one hour. HPC applies this principle to computation, with thousands of “diggers” working in parallel.</p><p><strong>The Anatomy of an HPC Cluster</strong></p><p>Most HPC systems you will encounter in research or industry are built around the concept of a cluster, a collection of individual computers (called nodes) that are tightly interconnected and work together as a unified system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BYOrWxOQmiWlc73H5M28DQ.png" /><figcaption>Source: Image Created by the Author</figcaption></figure><p>A single HPC cluster can contain anywhere from a few dozen to over 100,000 nodes. Each node in a modern cluster is typically equipped with multi-core CPUs, high-speed memory, and increasingly, powerful GPUs that are particularly suited to the mathematical operations at the heart of machine learning and scientific simulation.</p><p><strong>The Role of the Job Scheduler</strong></p><p>One critical concept of HPC is that you cannot simply run your code directly on a compute node. Instead, you submit your work as a “job” to a scheduler.</p><p>The scheduler, typically SLURM (Simple Linux Utility for Resource Management) on modern clusters, takes your job request, places it in a queue, and allocates the appropriate compute resources when they become available. You tell the scheduler what you need: how many processors, how much memory, how long you expect the job to run, and whether you need a GPU. The scheduler handles the rest.</p><p>This system exists for a very good reason: HPC clusters are shared resources. Dozens, sometimes hundreds, of users are competing for the same compute nodes. The scheduler ensures fair, efficient access for everyone while maximising the utilisation of expensive hardware.</p><h3><strong>When Should You Use an HPC Cluster?</strong></h3><p>Not every computation belongs on an HPC cluster. In fact, a simple serial program that does not need much memory can actually run slower on an HPC cluster than on a newer laptop or desktop computer, simply because of the overhead involved in cluster operations.</p><p>Therefore, you should consider HPC when:</p><ul><li>Your computations need far more memory than your laptop or desktop can provide</li><li>You need to run the same program many times, usually on different input datasets</li><li>Your program takes too long to run, but can be parallelised using MPI or OpenMP</li><li>You need access to GPU accelerators for machine learning or GPU-enabled simulation</li><li>Your datasets are so large that transferring and processing them on a local machine is impractical</li></ul><h3><strong>Why Is HPC Important?</strong></h3><p>To appreciate why HPC matters, it helps to look at the problems it is actively solving right now, across a remarkable range of fields.</p><p><strong>Healthcare and Genomics</strong></p><p>The first attempt to sequence a complete human genome took 13 years and cost approximately 3 billion US dollars. Today, HPC systems can sequence a human genome in less than a day. Beyond genome sequencing, HPC powers drug discovery pipelines that simulate how millions of chemical compounds interact with biological targets, accelerating the search for new treatments for diseases like cancer, Alzheimer’s, and emerging infectious diseases.</p><p><strong>Climate Science</strong></p><p>Climate models simulate the extraordinarily complex interactions between the Earth’s atmosphere, oceans, and land surfaces. These simulations involve billions of data points and require vast computational power to run at the resolutions needed to make meaningful predictions. HPC enables climate scientists to run more detailed and accurate simulations, helping policymakers understand climate change impacts and design effective responses.</p><p><strong>Financial Services</strong></p><p>Banks and financial institutions rely on HPC for real-time fraud detection, algorithmic trading, and risk analysis using Monte Carlo simulation methods. Credit card fraud detection, something most of us benefit from daily without thinking about it depends on HPC to identify fraudulent transactions in milliseconds, even as fraud tactics evolve constantly.</p><p><strong>Artificial Intelligence</strong></p><p>The modern AI revolution is inseparable from HPC. Training large language models, deep learning systems, and neural networks requires enormous amounts of computation. The GPU-accelerated HPC infrastructure that powers scientific simulation has become the same infrastructure that trains the AI systems increasingly embedded in everyday products and services.</p><h3><strong>HPC vs. Your Laptop: A Quick Comparison</strong></h3><p>The following points compare your laptop to an HPC</p><ul><li>Processor Cores: Typically 8 to 16 cores on a modern laptop vs. thousands to millions on an HPC cluster</li><li>Memory (RAM): Usually 8 to 64 GB on a laptop vs. terabytes distributed across cluster nodes</li><li>Storage: A few Terabytes locally vs. petabytes of shared parallel storage on a cluster</li><li>Job Execution: Run directly and interactively vs. submitted to a scheduler and queued</li><li>Cost: You own the hardware vs. shared resource, often free to researchers or institution-funded</li><li>GPU Access: Consumer GPU if present vs. high-end data centre GPUs like NVIDIA A100 or H100</li></ul><h3>How Do You Get Access?</h3><p>Many countries operate national HPC infrastructure that is freely accessible to academic researchers. In Canada, for example, the Digital Research Alliance provides free access to world-class HPC clusters to any eligible academic. Similar programmes exist in the United States (ACCESS, formerly XSEDE), the United Kingdom (ARCHER2), and the European Union (EuroHPC). Cloud providers like AWS, Google Cloud, and Microsoft Azure also offer HPC as a service, allowing organisations to access HPC-class hardware on a pay-per-use basis without building their own infrastructure.</p><blockquote>If you are a student, researcher, or faculty member at an accredited institution, you already have access to HPC resources you may not know about. Check with your institution’s research computing team.</blockquote><h3><strong>What’s Next?</strong></h3><p><em>In </em><strong><em>Part 2</em></strong><em>, we deep dive into understanding an actual HPC cluster. We’ll look at how nodes are organised, how the high-speed network ties everything together, and the storage hierarchy that trips up almost every first-time HPC user.</em></p><p><strong><em>Follow me so you don’t miss Part 2, it drops next week. </em></strong><em>If this was helpful, </em><strong><em>leave a clap (or fifty 👏), </em></strong><em>it helps more people find this series.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ea43cf02622" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluating LLMs: Beyond Accuracy — What Metrics Actually Matter]]></title>
            <link>https://pub.towardsai.net/evaluating-llms-beyond-accuracy-what-metrics-actually-matter-1b16b7d6de91?source=rss-e8c5e11a433f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b16b7d6de91</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[llm-evaluation]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Rashidat Sikiru]]></dc:creator>
            <pubDate>Wed, 18 Mar 2026 22:01:00 GMT</pubDate>
            <atom:updated>2026-03-18T22:01:00.952Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Accuracy tells you a model got the right answer. It doesn’t tell you whether to trust it, deploy it, or stake your product on it.</em></h4><figure><img alt="A dashboard display showing six LLM evaluation metrics — calibration, robustness, fairness, bias, toxicity, and efficiency — surrounding a cracked “85%” accuracy score in the centre, illustrating that accuracy alone is insufficient for evaluating large language models. Framework credits at the bottom read: HELM (Liang et al., 2022) and COLM 2024 Survey: Mondorf &amp; Plank (2024)." src="https://cdn-images-1.medium.com/max/1024/1*_FFkxS-XnOxXwkfqt9NjAw.png" /><figcaption>Source: Image Generated using Nano Banana</figcaption></figure><h3>1. The number that broke AI benchmarking</h3><p>In 2023, a major LLM scored over 85% on a widely cited reasoning benchmark. Researchers celebrated. Blog posts were published. Comparisons were drawn to human performance.</p><p>Then someone tried a simple experiment: they rephrased the benchmark questions. Same logic, different wording. The model’s accuracy dropped by more than 20 percentage points.</p><p>Nothing about the underlying task had changed. The model hadn’t gotten worse. It had never been as good as the number suggested.</p><blockquote>“LLMs tend to rely on surface-level patterns and correlations in their training data, rather than on sophisticated reasoning abilities.” Mondorf &amp; Plank, 2024</blockquote><p>This is the accuracy trap. And it’s not an edge case. It is, according to a 2024 survey published at COLM, a systematic feature of how current LLMs behave, and how we’ve been measuring them.</p><p>This article is about fixing your measurement. We’ll go through what accuracy misses, what the research says we should be measuring instead, and how to build an evaluation approach that actually tells you whether a model is fit for your purpose.</p><figure><img alt="A highlighted callout box titled “Why this matters right now,” noting that by end of 2025 the AI industry faced a public reckoning with benchmark saturation — including LiveCodeBench score drops of 20–30%, MMLU crossing 90% accuracy and losing utility, and the creation of Humanity’s Last Exam as a response." src="https://cdn-images-1.medium.com/max/668/1*XnQForQaZQf-LE0fKMVXlA.png" /><figcaption>Source: Image Created by the Author</figcaption></figure><h3>2. Accuracy: what it measures, what it misses</h3><p>Accuracy is seductive. It’s a single number. It ranks models cleanly. It shows up neatly in leaderboards and press releases. And for narrow, well-defined classification tasks, is this email spam? Does this image contain a cat? It does the job.</p><p>The problem is that most real LLM tasks aren’t narrow and well-defined. They’re open-ended, contextual, and performed by users who phrase things inconsistently, make typos, add irrelevant context, or switch languages mid-prompt.</p><p>Mondorf and Plank’s 2024 survey systematically reviewed studies that probed LLM reasoning beyond simple task performance. Their central finding: when you look past accuracy, models frequently reveal that they are not reasoning, they are pattern-matching.</p><p><strong>The shortcut learning problem</strong></p><p>A model trained on a large corpus will absorb statistical regularities in that corpus. If answer choice “A” tends to be correct more often on a benchmark, the model may learn to favour A. If questions containing the word “not” tend to have a different answer distribution, the model picks that up too.</p><p>This is called shortcut learning: achieving high accuracy by exploiting statistical artefacts in the dataset rather than solving the actual problem. The model looks capable. The metric confirms it. The underlying behaviour is fragile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*aiVPtFsM9oYy40vrJyoAHQ.png" /><figcaption>Source: Image Created by the Author</figcaption></figure><p><strong>The benchmark contamination problem</strong></p><p>There is a second, increasingly serious issue: data contamination. Many prominent benchmarks like MMLU, HellaSwag, and GSM8K have been circulating for years. The training corpora of modern LLMs almost certainly contain text that overlaps with, or directly reproduces, benchmark questions and answers.</p><p>When a model scores 90% on MMLU, you cannot be certain whether that reflects generalisation ability or memorisation. The metric doesn’t distinguish between the two. This is not a niche research concern; it is a fundamental validity problem that affects how the entire industry compares models.</p><h3>3. The 6 metrics that actually matter</h3><p>In 2022, researchers at Stanford’s Centre for Research on Foundation Models published HELM: Holistic Evaluation of Language Models. It is one of the most comprehensive LLM evaluation frameworks to date, covering 42 scenarios, 30 models, and 7 core metrics.</p><p>The core insight behind HELM: no single metric is sufficient. Every metric reveals something different about a model’s behaviour. Evaluating only accuracy is like evaluating a car only on its top speed, technically informative, practically misleading.</p><p>Here are the six non-accuracy metrics that matter, what each one tells you, and what goes wrong when you ignore it.</p><figure><img alt="A reference table listing six LLM evaluation metrics — calibration, robustness, fairness, bias, toxicity, and efficiency — with columns describing what each metric measures, why it matters, and what goes wrong when it is skipped." src="https://cdn-images-1.medium.com/max/780/1*_eVbsNJQIOcYz31aX8y_8w.png" /><figcaption>Source: Image Created by the Author</figcaption></figure><p><strong>Calibration: Does the model know what it doesn’t know?</strong></p><p>A well-calibrated model is one whose confidence matches its actual accuracy. When it says it’s 90% confident, it should be right about 90% of the time. When it says 60%, it should be right roughly 60% of the time.</p><p>Most LLMs are poorly calibrated. They express high confidence even on questions where they are wrong, a behaviour sometimes called hallucination with conviction. For high-stakes applications (medical, legal, financial), calibration may be more important than accuracy. A model that is right 80% of the time but always tells you when it’s uncertain is more useful than one that is right 85% of the time but never admits doubt.</p><p><strong>Robustness: Does it hold up under variation?</strong></p><p>Robustness measures how stable a model’s outputs are when inputs change in ways that shouldn’t change the answer: synonym substitution, reordering of information, different phrasing, added irrelevant context, and spelling errors.</p><p>HELM’s evaluations found significant robustness gaps across models. A model that handles a clean benchmark prompt well may handle a messy real-world prompt poorly. Since real users never type clean benchmark prompts, robustness is a direct proxy for production reliability.</p><p><strong>Bias: what associations is it amplifying?</strong></p><p>Bias evaluation tests whether the model’s outputs systematically associate certain groups with certain attributes in ways that reflect or reinforce social stereotypes. This is distinct from fairness: a model can treat all groups equally poorly (fair but biased) or treat them unequally without stereotyping (unfair but less biased).</p><p>Bias tends to be invisible until it isn’t. A content generation tool might produce subtly gendered descriptions of professionals for months before someone notices the pattern. Proactive bias evaluation surfaces these issues in the lab, not in production.</p><p><strong>Toxicity: what’s the floor on harmful output?</strong></p><p>Toxicity metrics measure how frequently a model produces content that is offensive, harmful, or dangerous, under adversarial prompting, edge-case inputs, or even normal use. The key insight: toxicity is a tail risk. A model might produce toxic output only 0.3% of the time, but at scale, 0.3% is thousands of harmful outputs per day.</p><p>Toxicity evaluation should include both standard and adversarial conditions. Models that behave well under neutral prompts sometimes behave very differently when users probe their limits.</p><p><strong>Efficiency: Can you actually afford to deploy it?</strong></p><p>Efficiency measures latency, throughput, and cost per inference. It is frequently omitted from research evaluations because it is infrastructure-dependent. It is rarely irrelevant to practitioners.</p><p>A model that scores 92% accuracy but costs $40 per thousand tokens and takes 8 seconds per response may be completely impractical for your use case. A model that scores 84% but costs $2 and responds in 400ms may be the right choice. HELM’s inclusion of efficiency as a core metric reflects this reality.</p><h3>4. The evaluation gap: what the research found</h3><p>Before HELM, the state of LLM evaluation was fragmented in a way that is, in retrospect, remarkable. Liang et al. found that prior to their work, models were evaluated on an average of just 17.9% of the same core scenarios, meaning different models were rarely tested on the same tasks under the same conditions.</p><blockquote>If two models have never been tested on the same benchmark under the same conditions, any comparison between them is essentially fiction.</blockquote><p>HELM improved this to 96%, all 30 models benchmarked on the same core scenarios. What they found when they finally looked at the same models through the same lens: the rankings changed significantly depending on which metric you prioritised. A model that ranked first on accuracy ranked seventh on fairness. A model that ranked third on accuracy ranked first on efficiency.</p><p>This is the finding that should reshape how your team discusses model selection. There is no universally best model. There is only the best model for your specific metric priorities, your specific use case, and your specific user base.</p><h3>5. Reasoning behaviour vs reasoning performance</h3><p>The deepest contribution of Mondorf and Plank’s survey is a distinction that the field has been slow to operationalise: the difference between reasoning performance and reasoning behaviour.</p><p>Reasoning performance is what we currently measure: did the model get the right answer on a set of reasoning tasks? Reasoning behaviour is what we actually want to understand: how did the model arrive at that answer, and would it arrive at the same answer through a different route?</p><p><strong>Why the distinction matters</strong></p><p>Consider a model that consistently answers multi-step arithmetic problems correctly. Two explanations are possible. First: the model has learned arithmetic and is applying it. Second: the model has memorised patterns from its training data that happen to produce correct outputs on these specific problem types.</p><p>These two models would score identically on a standard accuracy benchmark. They would behave very differently in production, specifically on problems that deviate from the training distribution in any way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*p16CI_lyi0LFhhM4a3G-Rw.png" /><figcaption>Source: Image Created by the Author</figcaption></figure><p><strong>Behavioural probing: what it looks like in practice</strong></p><p>Researchers are developing behavioural evaluation methods that go beyond asking “did the model get it right” to asking “does the model’s reasoning hold up under perturbation?” Techniques include:</p><ul><li>Consistency probing: ask the same question in multiple equivalent forms and check whether the model gives consistent answers</li><li>Counterfactual testing: change a non-logically-relevant aspect of the problem and verify the answer changes only when it should</li><li>Chain-of-thought auditing: examine the model’s stated reasoning steps and check whether they are actually causally linked to the output</li><li>Adversarial rephrasing: systematically vary phrasing, syntax, and context to measure how much the model’s output depends on surface form</li></ul><p>These methods are not yet standardised, and they require more effort than running a model through a benchmark. But they are the direction the field needs to move in, and the direction practitioners should start moving in now, even informally.</p><h3>6. How to evaluate an LLM for your use case</h3><p>Different applications demand different metric priorities. A one-size-fits-all evaluation suite does not exist, and trying to use one will either mislead you or bury the signal you actually need.</p><p>Here is a practical framework for matching metrics to task type:</p><p><strong>Customer support and conversational AI</strong></p><ul><li><strong>Users rephrase, abbreviate, and make errors constantly. </strong>Robustness is paramount</li><li><strong>Any harmful output is a brand and legal risk. The toxicity</strong> threshold must be tight</li><li><strong>The model should know when to hand off to a human. </strong>Calibration matters for escalation</li><li><strong>Latency over 2 seconds, degrades conversation quality. </strong>Efficiency directly affects experience</li></ul><p><strong>Code generation and developer tools</strong></p><ul><li><strong>Code either runs, or it doesn’t. </strong>Accuracy on functional correctness is meaningful here</li><li><strong>Developers describe requirements differently. </strong>Robustness to specification variation</li><li><strong>But not zero (generated code can contain biased variable names, comments). </strong>Bias evaluation is a lower priority</li></ul><p><strong>Medical, legal, and financial summarisation</strong></p><ul><li><strong>Overconfident wrong answers in these domains cause direct harm. </strong>Calibration is the top priority</li><li><strong>Hallucination is a safety issue, not just a quality issue. </strong>Factual accuracy with source attribution</li><li><strong>Input documents varies enormously. </strong>Robustness to jargon and format variation</li><li><strong>The primary risk is confident misinformation, not offensive language. </strong>Toxicity is relevant but secondary</li></ul><p><strong>Content generation for diverse or global audiences</strong></p><ul><li><strong>Quality must not degrade for non-standard English users. </strong>Fairness across dialects and languages</li><li><strong>Content generation at scale amplifies any systematic associations. </strong>Bias evaluation is critical</li><li><strong>Fringe topics often receive lower-quality outputs than mainstream ones. </strong>Robustness to topic variation</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*PZsnSi0v86A8WR8T0ldp1Q.png" /><figcaption>Source: Image Created by the Author</figcaption></figure><h3>7. The honest conclusion</h3><p>Here is what the research tells us, plainly: we do not yet fully understand how LLMs reason. We can measure what they output. We can probe their behaviour. But the internal processes that produce those outputs remain largely opaque, even to their creators.</p><p>This uncertainty is not a reason to avoid deploying LLMs. It is a reason to deploy them carefully, with eyes open, with the right metrics in place, and with the humility to know that a benchmark score is not a guarantee.</p><p>Mondorf and Plank close their survey by calling for research that “delineates the key differences between human and LLM-based reasoning.” That is a long-term project. In the short term, the practical version of that call is simpler:</p><ul><li>Stop treating accuracy as a proxy for capability</li><li>Evaluate the metrics that match your specific risk profile</li><li>Test under conditions that resemble how real users will actually interact with your model</li><li>Treat evaluation as an ongoing practice, not a one-time gate</li></ul><p>The models are getting better. The evaluations need to keep pace.</p><h3>References</h3><p><em>Mondorf, P. &amp; Plank, B. (2024). </em>Beyond Accuracy: Evaluating the Reasoning Behavior of Large Language Models — A Survey. COLM 2024. arXiv:2404.01869</p><p><em>Liang, P., Bommasani, R., et al. (2022). </em>Holistic Evaluation of Language Models (HELM). Transactions on Machine Learning Research (2023). arXiv:2211.09110</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b16b7d6de91" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/evaluating-llms-beyond-accuracy-what-metrics-actually-matter-1b16b7d6de91">Evaluating LLMs: Beyond Accuracy — What Metrics Actually Matter</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Read Research Papers Without Getting Lost]]></title>
            <link>https://medium.com/@rasheedatsikiru/how-to-read-research-papers-without-getting-lost-9b43d4a7f1f7?source=rss-e8c5e11a433f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b43d4a7f1f7</guid>
            <category><![CDATA[research]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[academic-research]]></category>
            <dc:creator><![CDATA[Rashidat Sikiru]]></dc:creator>
            <pubDate>Tue, 10 Mar 2026 13:20:00 GMT</pubDate>
            <atom:updated>2026-03-10T13:20:00.960Z</atom:updated>
            <content:encoded><![CDATA[<h4>A practical framework for understanding academic papers using the three-pass method, critical questions, and a simple research workflow.</h4><figure><img alt="A lady sitting and reading a research paper on her laptop." src="https://cdn-images-1.medium.com/max/1024/1*knAVqvOY0DiCZ82ghIvkCw.png" /></figure><p>The first time I tried to read a research paper, I thought something was wrong with me.</p><p>I opened the PDF, started from the first paragraph, and tried to read it line by line like a textbook. Ten minutes in, I was confused. Thirty minutes later, I was still on the first page. By the end of the hour, I had highlighted half the paper and understood almost nothing.</p><p>If this sounds familiar, you’re not alone.</p><p>Most of us have had that experience. You find a promising paper on arXiv or Google Scholar, click the PDF with excitement, and suddenly you’re staring at fifteen pages of dense notation, unfamiliar terminology, and equations that seem to appear out of nowhere. Somewhere between the abstract and the references, your focus fades. You may have read the words, but the ideas didn’t really stick.</p><p>For a long time, I assumed the problem was me.</p><p>But the real problem was how I was reading the paper.</p><p>Most of us were taught to read everything the same way: start at the beginning, go through every sentence, and try to understand everything before moving forward. That works well for novels, blog posts, and even textbooks.</p><p>Research papers are different.</p><p>They are not written to be read casually from start to finish. They are structured arguments, designed to present a problem, propose a method, and justify results to other researchers.</p><p>Which means reading them efficiently requires a different strategy.</p><p>Experienced researchers rarely read papers linearly. Instead, they read them in multiple passes, each with a specific goal. First, they skim to understand the big picture. Then they evaluate whether the paper is worth deeper attention. Only after that do they dive into the technical details.</p><p>Learning this completely changed how I read research papers.</p><p>Instead of getting overwhelmed by pages of experiments, equations, and citations, I started seeing papers for what they really are: <strong>structured stories about problems, ideas, and evidence</strong>.</p><p>In this article, I’ll walk you through a practical framework for reading research papers efficiently, so you can extract the ideas that matter without spending hours stuck on page one.</p><h4>Understanding the Structure of a Research Paper</h4><p>Before learning how to read research papers efficiently, it helps to understand how they are organised. Research papers are not random collections of paragraphs; they follow a consistent structure designed to help readers quickly locate information.</p><p>In many scientific fields, papers follow a format often called <strong>IMRaD</strong>, which stands for <em>Introduction, Methods, Results, and Discussion</em>. This structure mirrors the process of scientific discovery: posing a question, explaining how the study was conducted, presenting the findings, and interpreting their implications.</p><p>Although the exact layout may vary by discipline or journal, most research papers include several core sections.</p><h4>Title</h4><p>The title gives the first clue about the topic of the paper. A good title is concise and descriptive, helping readers quickly decide whether the paper is relevant to their interests.</p><h4>Abstract</h4><p>The abstract is a summary of the entire paper. It typically describes the research problem, the method used, the main results, and the key conclusion in a few sentences.</p><p>If you only read one part of the paper, the abstract should give you a quick understanding of what the work is about.</p><h4>Introduction</h4><p>The introduction explains why the research was done. It provides background on the topic, describes the problem being addressed, and outlines the main contribution of the paper.</p><blockquote>Think of this section as the author answering the question:<br> <em>“Why should anyone care about this problem?”</em></blockquote><h4>Related Work or Literature Review</h4><p>This section places the research in context. The authors discuss previous studies, compare existing approaches, and highlight the gap their work is trying to fill.</p><h4>Methodology (or Methods)</h4><p>The methodology section explains how the research was conducted. It may describe algorithms, experiments, datasets, or analytical techniques used to answer the research question.</p><p>In many technical fields, this is where the core technical contribution of the paper lives.</p><h4>Results</h4><p>The results section presents the outcomes of the experiments or analyses. This often includes tables, graphs, and quantitative evaluations that show how well the proposed method works.</p><h4>Discussion</h4><p>Here, the authors interpret the results. They explain what the findings mean, how they compare with previous work, and what limitations exist.</p><h4>Conclusion</h4><p>The conclusion summarises the key contributions of the paper and may suggest directions for future research.</p><figure><img alt="An Image showing a summary of the three pass reading method" src="https://cdn-images-1.medium.com/max/1024/1*b8IlJoQd2WboDKwA4FdVXw.png" /></figure><h4>The Three-Pass Method: A Practical Way to Read Research Papers</h4><p>Now that you understand how research papers are structured, the next question is: <strong>how should you actually read them?</strong></p><p>One of the most widely recommended strategies is the <strong>Three-Pass Method</strong>, originally proposed by computer scientist S. Keshav. The key idea is simple: instead of reading a paper from beginning to end in one sitting, you read it in multiple passes, each with a different goal and level of depth.</p><p>Each pass builds on the previous one. The first gives you a high-level overview, the second helps you understand the core ideas, and the third allows you to dive deeply into the technical details.</p><p>This approach prevents a common mistake of <strong>g</strong>etting stuck in complex details before understanding the big picture.</p><h4>Pass 1: The Quick Scan</h4><p>The first pass is a 5–10 minute scan that gives you a bird’s-eye view of the paper. The goal here is not deep understanding but answering a simple question:</p><p><em>Is this paper worth my time?</em></p><p>During this pass, you should:</p><ul><li>Read the title, abstract, and introduction</li><li>Look at the section headings</li><li>Glance at figures and diagrams</li><li>Read the conclusion</li><li>Scan the references</li></ul><p>After this pass, you should be able to answer basic questions such as:</p><ul><li>What problem does the paper address?</li><li>What type of paper is it (theoretical, experimental, system design)?</li><li>What are the main contributions?</li><li>Is it relevant to what you are studying/working on?</li></ul><p>This quick scan helps you filter through many papers efficiently before deciding which ones deserve deeper attention.</p><h4>Pass 2: Understanding the Core Idea</h4><p>If the paper seems useful, move to the second pass.</p><p>Here, you read the paper more carefully, focusing on understanding the main idea rather than every detail. This stage often takes around 30–60 minutes.</p><p>During this pass, you should:</p><ul><li>Read the paper more thoroughly</li><li>Study figures, graphs, and tables carefully</li><li>Pay attention to the method and experiments</li><li>Take notes on key ideas</li><li>Mark unfamiliar concepts for later review</li></ul><blockquote>By the end of this pass, you should be able to <strong>explain the paper’s main idea in your own words</strong>.If you cannot explain it simply, you likely need to revisit parts of the paper or read some background material.</blockquote><h4>Pass 3: Deep Understanding</h4><p>The third pass is for papers that are truly important to your work.</p><p>In this stage, you go through the paper carefully and examine the details: the assumptions, methodology, experiments, and conclusions. The goal is to develop a<strong> </strong>deep understanding of the research.</p><p>One useful technique at this stage is to try to mentally reconstruct the paper’s method or experiment, almost as if you were implementing it yourself.</p><p>During this pass, you should:</p><ul><li>Work through equations and methods carefully</li><li>Question assumptions and claims</li><li>Compare the work with other papers</li><li>Identify strengths, weaknesses, and limitations</li></ul><blockquote>By the end of the third pass, you should not only understand the paper but also be able to <strong>critically evaluate it</strong>.</blockquote><h4>Questions You Should Ask While Reading a Research Paper</h4><p>Instead of simply moving through the text, effective readers constantly ask questions while reading. This helps you understand the paper more deeply and evaluate whether the research is reliable, meaningful, and relevant to your work.</p><p>Below are some of the most useful questions you can ask as you read a research paper.</p><h4>1. What Problem Is the Paper Trying to Solve?</h4><p>Every research paper exists to answer a specific question or address a particular problem. One of the first things you should identify is the research question or hypothesis.</p><p>Ask yourself:</p><ul><li>What is the central research question?</li><li>Why does this problem matter?</li><li>What gap in existing knowledge is the paper trying to fill?</li></ul><h4>2. What Is the Main Contribution?</h4><p>Most good research papers introduce something new. This could be:</p><ul><li>A new method or algorithm</li><li>A new dataset</li><li>A new theoretical insight</li><li>A better evaluation of existing techniques</li></ul><h4>3. How Did the Authors Approach the Problem?</h4><p>When reading through the methodology, questions to ask include:</p><ul><li>What method or technique did the authors use?</li><li>Is the approach appropriate for the problem being studied?</li><li>Are the assumptions reasonable?</li></ul><h4>4. Do the Results Support the Claims?</h4><p>Research papers often make strong claims, but those claims must be supported by evidence.</p><p>As you read the results section, consider:</p><ul><li>What are the key findings?</li><li>Do the experiments actually support the conclusions?</li><li>Are the results clearly presented and logically explained?</li></ul><h4>5. What Are the Limitations?</h4><p>No research paper is perfect. Good researchers acknowledge the limitations of their work.</p><p>Ask yourself:</p><ul><li>What assumptions might weaken the results?</li><li>Are there potential biases in the data or experiments?</li><li>Are there alternative explanations for the results?</li></ul><p>By asking these questions while reading, you transform the process from passive reading into active analysis. Instead of just consuming information, you start thinking like a researcher, questioning ideas, evaluating evidence, and identifying opportunities for future work.</p><h4><strong>Final Thoughts</strong></h4><p>Reading research papers can feel overwhelming at first. The language is dense, the ideas are complex, and the structure is unfamiliar.</p><p>But reading papers is a skill, and like any skill, it improves with practice.</p><p>In this guide, we focused on four key ideas:</p><ul><li>Start with the right mindset: research papers aren’t meant to be read linearly.</li><li>Understand the structure of a research paper.</li><li>Use the three-pass method to read efficiently.</li><li>Ask the right questions while reading.</li></ul><p>You don’t need to understand everything in one sitting. Focus on the big picture first, then gradually deepen your understanding.</p><p>Over time, you’ll begin to see patterns in research, how problems are framed, how ideas are tested, and how knowledge evolves.</p><h4>Call to Action</h4><p>The next time you open a research paper, don’t try to read every line. Try the 3-pass method instead.</p><p>If you found this helpful, follow me here on Medium and connect with me on <a href="https://www.linkedin.com/in/rashidatsikiru/">LinkedIn</a>, where I share practical insights on AI, research, and learning complex topics faster.</p><h4>Further Reading</h4><p>If you’d like to explore deeper frameworks for reading research papers, the following guides were helpful when writing this article.</p><p>Michael Mitzenmacher — <em>How to Read a Research Paper</em><br><a href="https://www.eecs.harvard.edu/~michaelm/postscripts/ReadPaper.pdf"> https://www.eecs.harvard.edu/~michaelm/postscripts/ReadPaper.pdf</a></p><p>S. Keshav — <em>How to Read a Paper</em><br> <a href="https://web.stanford.edu/class/ee384m/Handouts/HowtoReadPaper.pdf">https://web.stanford.edu/class/ee384m/Handouts/HowtoReadPaper.pdf</a></p><p>Jason Eisner — <em>How to Read a Technical Paper</em><br><a href="https://www.cs.jhu.edu/~jason/advice/how-to-read-a-paper.html">https://www.cs.jhu.edu/~jason/advice/how-to-read-a-paper.html</a></p><p>Purdue University Libraries — <em>How to Read a Scientific Paper</em><br><a href="https://lib.purdue.edu/wp-content/uploads/2024/06/Newest-Scientific-Paper.pdf">https://lib.purdue.edu/wp-content/uploads/2024/06/Newest-Scientific-Paper.pdf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b43d4a7f1f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>