<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Mahir Shahriar Tamim: Blog</title>
    <link>https://mahirshahriar1.github.io/blog.html</link>
    <atom:link href="https://mahirshahriar1.github.io/feed.xml" rel="self" type="application/rss+xml" />
    <description>Notes on machine learning, backend engineering and inference systems.</description>
    <language>en</language>
    <item>
      <title>How AI text watermarking works</title>
      <link>https://mahirshahriar1.github.io/blog/ai-watermark.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/ai-watermark.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning</category>
      <description>A model can hide a signal in which words it picks: invisible to you, countable with a key. How the green-list trick works, a demo to break it, and what it can’t tell you.</description>
    </item>
    <item>
      <title>The harness: what turns a language model into an agent</title>
      <link>https://mahirshahriar1.github.io/blog/ai-harness.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/ai-harness.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning · Backend Engineering</category>
      <description>A model only writes text. The loop, tools, permissions and context around it are what let Claude Code or Cursor do real work.</description>
    </item>
    <item>
      <title>Why my service shouldn’t wait for anyone</title>
      <link>https://mahirshahriar1.github.io/blog/learning-kafka/why-async.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/learning-kafka/why-async.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Backend Engineering</category>
      <description>Why a payment should not block on five notification channels, seven ways to do it later, and why a log beats a queue.</description>
    </item>
    <item>
      <title>Topics, partitions and keys</title>
      <link>https://mahirshahriar1.github.io/blog/learning-kafka/topics-partitions-keys.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/learning-kafka/topics-partitions-keys.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Backend Engineering</category>
      <description>The topic is a name, the partition is the real thing: how keys pick a partition, how many partitions to use, and what an offset really is.</description>
    </item>
    <item>
      <title>Consumers: groups, lag and delivery guarantees</title>
      <link>https://mahirshahriar1.github.io/blog/learning-kafka/consumers-lag-delivery.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/learning-kafka/consumers-lag-delivery.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Backend Engineering</category>
      <description>Consumer groups, why more instances do not always cut lag, committing offsets, and what “exactly once” really covers.</description>
    </item>
    <item>
      <title>Replication: surviving a dead broker</title>
      <link>https://mahirshahriar1.github.io/blog/learning-kafka/replication.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/learning-kafka/replication.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Backend Engineering</category>
      <description>Leaders, followers and the ISR, who decides who leads, and the full write path of one message.</description>
    </item>
    <item>
      <title>Why Kafka is fast</title>
      <link>https://mahirshahriar1.github.io/blog/learning-kafka/why-kafka-is-fast.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/learning-kafka/why-kafka-is-fast.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Backend Engineering</category>
      <description>Sequential disk writes, the page cache and zero-copy: where the speed actually comes from.</description>
    </item>
    <item>
      <title>What a notification service actually does</title>
      <link>https://mahirshahriar1.github.io/blog/notification-service/what-it-does.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/notification-service/what-it-does.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Backend Engineering</category>
      <description>Four channels and their providers, device tokens and preferences, one queue per channel, and routing each event to the right channels.</description>
    </item>
    <item>
      <title>Why Kafka, and why not RabbitMQ?</title>
      <link>https://mahirshahriar1.github.io/blog/notification-service/kafka-vs-rabbitmq.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/notification-service/kafka-vs-rabbitmq.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Backend Engineering</category>
      <description>A diary versus a post office: replay and many readers on one side, priorities, delays and per-message retries on the other.</description>
    </item>
    <item>
      <title>OTP: the notification that can’t wait</title>
      <link>https://mahirshahriar1.github.io/blog/notification-service/otp-and-priority.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/notification-service/otp-and-priority.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Backend Engineering</category>
      <description>Why an OTP must never queue behind a campaign, expiry checks, gateway failover, and treating a code like a password.</description>
    </item>
    <item>
      <title>Retries, duplicates and dead letters</title>
      <link>https://mahirshahriar1.github.io/blog/notification-service/reliability.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/notification-service/reliability.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Backend Engineering</category>
      <description>Timeouts that might have worked, idempotency keys, backoff with jitter, retry and dead-letter topics, and circuit breakers.</description>
    </item>
    <item>
      <title>Watching it run, and sizing it</title>
      <link>https://mahirshahriar1.github.io/blog/notification-service/observability-and-scale.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/notification-service/observability-and-scale.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Backend Engineering</category>
      <description>The metrics that catch silent failures, tracking a message’s life, what SMS really costs, and a capacity estimate you can play with.</description>
    </item>
    <item>
      <title>Templates, languages and user preferences</title>
      <link>https://mahirshahriar1.github.io/blog/notification-service/templates-and-preferences.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/notification-service/templates-and-preferences.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Backend Engineering</category>
      <description>One message in two languages across four channels, why one emoji can double an SMS bill, opt-outs, quiet hours and frequency caps.</description>
    </item>
    <item>
      <title>Campaigns and bulk sends</title>
      <link>https://mahirshahriar1.github.io/blog/notification-service/campaigns-and-bulk-sends.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/notification-service/campaigns-and-bulk-sends.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Backend Engineering</category>
      <description>Sending to a million users without hurting OTPs, the providers, or the budget: snapshots, chunks, token-bucket throttling, kill switches and unsubscribe.</description>
    </item>
    <item>
      <title>What pruning is, and the first ideas that worked</title>
      <link>https://mahirshahriar1.github.io/blog/pruning/what-is-pruning.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/pruning/what-is-pruning.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning</category>
      <description>Why make models smaller, magnitude pruning, Optimal Brain Damage, and the prune–retrain recipe that cut AlexNet and VGG by 9–13×.</description>
    </item>
    <item>
      <title>Why 90% sparse is not 10× faster</title>
      <link>https://mahirshahriar1.github.io/blog/pruning/structured-vs-unstructured.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/pruning/structured-vs-unstructured.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning</category>
      <description>Unstructured vs structured pruning, what sparse formats really cost, and NVIDIA’s 2:4 pattern.</description>
    </item>
    <item>
      <title>The Lottery Ticket Hypothesis</title>
      <link>https://mahirshahriar1.github.io/blog/pruning/lottery-ticket.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/pruning/lottery-ticket.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning</category>
      <description>Winning tickets, rewinding, why it needed late rewinding to scale, pruning at initialisation, and subnetworks that need no training.</description>
    </item>
    <item>
      <title>Pruning large language models</title>
      <link>https://mahirshahriar1.github.io/blog/pruning/pruning-llms.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/pruning/pruning-llms.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning</category>
      <description>One-shot pruning with SparseGPT and Wanda, outlier features, and structured pruning plus distillation (Sheared LLaMA, Minitron).</description>
    </item>
    <item>
      <title>Why industry reaches for quantization and distillation first</title>
      <link>https://mahirshahriar1.github.io/blog/pruning/why-industry-quantizes.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/pruning/why-industry-quantizes.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning</category>
      <description>Dense models run fast everywhere: how quantization and distillation compare with pruning, and where pruning still earns its place.</description>
    </item>
    <item>
      <title>Sparse training: networks that are sparse from the start</title>
      <link>https://mahirshahriar1.github.io/blog/pruning/sparse-training.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/pruning/sparse-training.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning</category>
      <description>RigL and dynamic sparse training: growing and pruning connections during training instead of after it.</description>
    </item>
    <item>
      <title>What an adversarial example is</title>
      <link>https://mahirshahriar1.github.io/blog/adversarial-attacks/what-is-an-adversarial-example.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/adversarial-attacks/what-is-an-adversarial-example.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning</category>
      <description>The 2014 discovery, the panda that became a gibbon, FGSM, why high-dimensional inputs make tiny changes powerful, the L∞, L2 and L0 rulers, and threat models.</description>
    </item>
    <item>
      <title>Stronger attacks: from one step to many</title>
      <link>https://mahirshahriar1.github.io/blog/adversarial-attacks/stronger-attacks.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/adversarial-attacks/stronger-attacks.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning</category>
      <description>BIM and PGD, DeepFool and Carlini–Wagner, few-pixel attacks, and one pattern that fools every image.</description>
    </item>
    <item>
      <title>Black-box and real-world attacks</title>
      <link>https://mahirshahriar1.github.io/blog/adversarial-attacks/black-box-and-physical.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/adversarial-attacks/black-box-and-physical.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning</category>
      <description>Transfer from substitute models, gradient estimation by queries, label-only attacks, and stickers, patches and a 3D-printed turtle.</description>
    </item>
    <item>
      <title>Defences, and how most of them broke</title>
      <link>https://mahirshahriar1.github.io/blog/adversarial-attacks/defences.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/adversarial-attacks/defences.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning</category>
      <description>Defensive distillation, obfuscated gradients, adversarial training and TRADES, randomized smoothing, and AutoAttack.</description>
    </item>
    <item>
      <title>Adversarial attacks on language models</title>
      <link>https://mahirshahriar1.github.io/blog/adversarial-attacks/attacks-on-llms.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/adversarial-attacks/attacks-on-llms.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning</category>
      <description>Adversarial suffixes, perplexity filters, SmoothLLM, indirect prompt injection, and why defence has to live outside the model too.</description>
    </item>
    <item>
      <title>Backdoors and data poisoning</title>
      <link>https://mahirshahriar1.github.io/blog/adversarial-attacks/backdoors-and-poisoning.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/adversarial-attacks/backdoors-and-poisoning.html</guid>
      <pubDate>Sun, 01 Nov 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning</category>
      <description>Attacks that happen at training time: hidden triggers planted in the data, and how to find them.</description>
    </item>
    <item>
      <title>Why evicting 90% of the KV cache frees so little memory</title>
      <link>https://mahirshahriar1.github.io/blog/kv-cache-eviction.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/kv-cache-eviction.html</guid>
      <pubDate>Thu, 01 Oct 2026 00:00:00 +0000</pubDate>
      <category>Inference Systems</category>
      <description>Dropping tokens does not free memory by itself. Paged blocks, FlashAttention, and how TriAttention picks what to keep.</description>
    </item>
    <item>
      <title>What a world model is, and the tools to build one</title>
      <link>https://mahirshahriar1.github.io/blog/learning-world-models/what-is-a-world-model.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/learning-world-models/what-is-a-world-model.html</guid>
      <pubDate>Thu, 01 Oct 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning</category>
      <description>The agent–environment loop, the renderer / simulator / planner map, state versus observation, and the four tools every paper assumes: compression, return, value and actor–critic.</description>
    </item>
    <item>
      <title>MiniPong: building V and M from scratch</title>
      <link>https://mahirshahriar1.github.io/blog/learning-world-models/minipong-v-and-m.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/learning-world-models/minipong-v-and-m.html</guid>
      <pubDate>Thu, 01 Oct 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning</category>
      <description>Squeezing a 32×32 frame into 12 numbers, the four small decisions that make it work, a memory that works out velocity on its own, and why the dream drifts.</description>
    </item>
    <item>
      <title>Learning inside a dream, and what breaks without the tricks</title>
      <link>https://mahirshahriar1.github.io/blog/learning-world-models/learning-in-a-dream.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/learning-world-models/learning-in-a-dream.html</guid>
      <pubDate>Thu, 01 Oct 2026 00:00:00 +0000</pubDate>
      <category>Machine Learning</category>
      <description>A controller trained by evolution, how agents cheat a flawed dream, and my experiment removing each MiniPong trick one at a time. Plus a short appendix on the VAE.</description>
    </item>
    <item>
      <title>Fuzzy-matching voice commands with edit distance</title>
      <link>https://mahirshahriar1.github.io/blog/fuzzy-matching-voice-commands.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/fuzzy-matching-voice-commands.html</guid>
      <pubDate>Sat, 01 Aug 2026 00:00:00 +0000</pubDate>
      <category>Backend Engineering</category>
      <description>A 60-year-old algorithm that beats both exact matching and an ever-growing list of misspellings.</description>
    </item>
    <item>
      <title>Multi-Tenant Architecture for AI Voice Agents: A Practical Guide</title>
      <link>https://mahirshahriar1.github.io/blog/multi-tenant-voice-agents.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/multi-tenant-voice-agents.html</guid>
      <pubDate>Mon, 01 Jun 2026 00:00:00 +0000</pubDate>
      <category>Backend Engineering</category>
      <description>What it actually takes to serve many businesses from one real-time voice platform: the parts that aren’t the AI.</description>
    </item>
    <item>
      <title>CPU vs. GPU: Two Philosophies of Speed</title>
      <link>https://mahirshahriar1.github.io/blog/cpu-vs-gpu.html</link>
      <guid isPermaLink="true">https://mahirshahriar1.github.io/blog/cpu-vs-gpu.html</guid>
      <pubDate>Thu, 01 Jan 2026 00:00:00 +0000</pubDate>
      <category>Inference Systems</category>
      <description>Why the two chips ended up so different, from a single line of code all the way up to the laws of physics.</description>
    </item>
  </channel>
</rss>
