<?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 Aman Kaushik on Medium]]></title>
        <description><![CDATA[Stories by Aman Kaushik on Medium]]></description>
        <link>https://medium.com/@amasick?source=rss-f5446588016a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tJ-0Ci33syw7hfMAD1zDCA@2x.jpeg</url>
            <title>Stories by Aman Kaushik on Medium</title>
            <link>https://medium.com/@amasick?source=rss-f5446588016a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 19:30:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amasick/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[Speed Is Becoming Free. Understanding Is Getting Expensive.]]></title>
            <link>https://medium.com/@amasick/speed-is-becoming-free-understanding-is-getting-expensive-7ea29d826675?source=rss-f5446588016a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ea29d826675</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[hiring]]></category>
            <category><![CDATA[careers]]></category>
            <dc:creator><![CDATA[Aman Kaushik]]></dc:creator>
            <pubDate>Thu, 29 Oct 2026 19:22:49 GMT</pubDate>
            <atom:updated>2026-10-29T19:22:49.386Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vwpdjn2VMqHq0xIvrSMz2Q.png" /></figure><h4>What interviewing freshers taught me about the gap AI is quietly creating, and why I’m worried for them and for myself.</h4><p>I’ve interviewed a lot of freshers and 1–2 YOE engineers lately.</p><p>Almost every one of them could build an app. Very few could tell me what to do when it broke.</p><p>Not because they’re lazy. They aren’t. They’re doing exactly what the industry rewards right now. But I think the industry is about to change what it pays for, and a lot of smart people, me included, aren’t ready.</p><blockquote>Speed is becoming free. Understanding is getting expensive.</blockquote><p>Here’s what I saw, why it’s happening, and where I think it’s heading.</p><h3>The questions that went quiet</h3><p>None of these were trick questions. They’re the layer underneath almost everything we ship.</p><ul><li><strong>The terminal.</strong> Find the error in a log file with grep or tail -f. Figure out why port 3000 is already in use. Pipe one command into another. Many candidates had rarely worked outside an IDE or an agent&#39;s chat window.</li><li><strong>SSH and servers.</strong> Get onto a Linux VM, check whether the service is running with systemctl status, and read its logs with journalctl. For a lot of people, the server was something Vercel handled.</li><li><strong>Git beyond push and pull.</strong> Merge vs rebase, resolving a conflict by hand, recovering a “lost” commit with git reflog, finding the commit that broke something with git bisect. For some, Git was simply &quot;the button in the editor&quot;.</li><li><strong>What happens under the hood.</strong> Walk me through a request in your own app. Why did this endpoint get slow? Where do your secrets live? Too often the answer was “the AI set it up like this”.</li></ul><p>And it wasn’t only freshers. I saw the same gaps in people with a year or two of experience, the ones who started their careers right as coding agents took off.</p><h4>What the agent does vs. what you still need to know</h4><p><strong>Version control.</strong> The agent writes commits and resolves simple conflicts. You still need merge vs rebase, reflog recovery and bisecting a regression.</p><p><strong>Runtime and infra.</strong> The agent generates the Dockerfile and deploy config. You still need to know what runs where, ports, env vars, and how to read logs over SSH.</p><p><strong>Data.</strong> The agent generates the schema and ORM queries. You still need indexes, N+1 queries, transactions, and migrations that don’t lock a hot table.</p><p><strong>Networking.</strong> The agent wires up API calls. You still need DNS, TLS, timeouts, retries and idempotency.</p><p><strong>Debugging.</strong> The agent suggests a fix from the error. You still need to reproduce the bug, read a stack trace, and profile before guessing.</p><h3>Honestly, it’s not their fault</h3><p>They’re doing exactly what the industry rewards. Job posts ask for speed. Bootcamps teach you to ship an app in a weekend with an AI agent. Social feeds celebrate the person who built a SaaS in four hours, not the one who spent a day understanding why a deploy failed.</p><p>The tools now hide the very things we used to learn by struggling through them.</p><p>I started engineering in 2022, before agents were anywhere near this capable, so I still got the old-school version. I learned Git by breaking a repo at midnight. I learned Linux because a server was down and nobody else was awake.</p><p><em>That pain built the depth.</em></p><p>When an agent absorbs all of that, you don’t even know what you’re missing. And yet we still expect people to somehow end up with the same understanding we got from doing it the hard way.</p><h3>“But the agent can do all of that”</h3><p>Fair pushback. Today’s agents can run terminal commands, SSH into a box, read the logs, explain the code and propose a fix. So why should anyone still learn this?</p><p>Because doing the work and being responsible for it are two different jobs. The agent can do the first. Only you can do the second.</p><p><strong>You can’t review what you don’t understand.</strong> Agents are often confidently wrong. If you can’t tell a good fix from a plausible-looking bad one, you’re not reviewing the code. You’re rubber-stamping it.</p><p><strong>The approve button is now the most dangerous button in engineering.</strong> When an agent asks to run something like this, the only safety check is a human who knows what it does:</p><pre>git push --force origin main<br>DROP TABLE users;<br>rm -rf ./data<br>ALTER TABLE orders ADD COLUMN ...;  -- on 50 million rows</pre><p>Without that knowledge, the permission prompt protects nothing.</p><p><strong>Real incidents are rarely textbook.</strong> Production breaks in weird combinations: a race condition under load, a retry storm, a cache that’s stale in only one region. Those need someone who can form a hypothesis, not just paste an error.</p><p><strong>The agent doesn’t know your context.</strong> The “right” fix depends on your traffic, your SLAs, your data, your cost limits and your compliance rules.</p><p><strong>You can’t ask about what you don’t know exists.</strong> If you’ve never heard of connection pooling or idempotency, you’ll never ask whether that’s the problem.</p><p><strong>Speed under pressure.</strong> At 3 AM with customers affected, someone who knows the system reads the right log in two minutes. Someone who doesn’t spends forty minutes going back and forth with an agent, hoping.</p><p><strong>Ownership doesn’t move.</strong> When production goes down, the postmortem has your name on it, not the model’s.</p><blockquote>The agent is a brilliant pair of hands. Engineering is still the judgement about where those hands should go.</blockquote><h3>What the research says</h3><p>This isn’t just my interview-room hunch. Study after study finds the same pattern: AI makes the work feel faster while quietly thinning the understanding underneath it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iQEIco3f17HYjrX4RSf8sw.png" /></figure><p>The striking part isn’t the slowdown. It’s that even after finishing the work, developers in the <a href="https://metr.org/blog/2025-07-10-early-2025-ai-experienced-os-dev-study/">METR study</a> still believed AI had sped them up. We’re bad at noticing what we’ve stopped understanding.</p><p>The other numbers point the same way:</p><ul><li><strong>50% vs 67%.</strong> In an <a href="https://www.anthropic.com/research/AI-assistance-coding-skills">Anthropic randomized trial</a>, 52 mostly junior developers learned a new Python library. Those using AI scored 50% on a follow-up quiz; those coding by hand scored 67%. The biggest gap was on debugging.</li><li><strong>46% distrust AI’s accuracy.</strong> In the <a href="https://adtmag.com/Blogs/WatersWorks/2026/01/Stack-Overflow-Survey.aspx">Stack Overflow 2025 survey</a> of 49,009 developers, 84% use or plan to use AI, yet only 33% trust its accuracy. 66% keep running into “almost right” solutions.</li><li><strong>6.6%.</strong> That’s the share of developers in the <a href="https://itbrief.co.uk/story/stack-overflow-survey-shows-developers-trust-ai-with-caveats">Stack Overflow 2026 survey</a> who would trust AI output for important decisions, even though 66% use coding assistants or agents.</li><li><strong>45%.</strong> <a href="https://www.veracode.com/press-release/ai-generated-code-poses-major-security-risks-in-nearly-half-of-all-development-tasks-veracode-research-reveals/">Veracode</a> found AI-generated code introduced security flaws in 45% of tasks across 100+ models, and security didn’t improve as models got better at syntax.</li><li><strong>Faster, but less stable.</strong> <a href="https://www.infoq.com/news/2025/09/dora-state-of-ai-in-dev-2025">Google’s DORA 2025</a> report found about 90% of teams use AI. Throughput is up, but delivery instability keeps rising.</li><li><strong>Nearly 20% fewer young developers.</strong> <a href="https://hrexecutive.com/stanford-researchers-tracked-millions-of-jobs-heres-who-is-losing-to-ai/">Stanford’s payroll study</a> found employment for software developers aged 22–25 fell nearly 20% from its late-2022 peak, while older developers held steady or grew.</li></ul><p>One finding gives me hope. In that same Anthropic study, developers who used AI to ask follow-up questions, request explanations or check their own understanding scored 65% or higher.</p><p><strong>The tool isn’t the problem. How we use it is.</strong></p><h3>What happens when everyone has the same agent</h3><p>Today the industry makes money by shipping fast. Agents made shipping cheap, so whoever ships first wins. In that world depth looks like a luxury, and “builders” who vibe-code are genuinely valuable. For internal tools, landing pages and simple CRUD apps, they’re the right hire.</p><p>But here’s the part nobody talks about.</p><blockquote>When every team has the same agent, the agent stops being an advantage.</blockquote><p>Everyone ships at the same speed. Competition goes up, margins go down, and a company is left with two moves:</p><ol><li><strong>Ship even faster</strong> than competitors who have the exact same tools. Good luck.</li><li><strong>Compete on what agents can’t commoditise:</strong> systems that scale, stay up at 3 AM, keep data consistent under load, and solve problems that need real understanding.</li></ol><p>We’ve seen this before. When the cloud put a server one credit card away, infrastructure didn’t stop mattering. The people who understood distributed systems, reliability and cost became <em>more</em> valuable, not less. I think AI is doing the same thing to code.</p><p>So yes, the industry is trading depth for speed today. That’s a reasonable short-term call. It just has an expiry date.</p><h3>What’s actually under the hood</h3><p>When someone clicks a button in your app, the request passes through roughly seven layers. Each one can break, and each has a quick way to check it. This is the map I wish every junior had in their head.</p><ol><li><strong>DNS</strong> resolves your domain to an IP. Breaks with a stale record after a migration.</li><li><strong>TLS</strong> sets up the secure connection. Breaks with an expired certificate or broken chain.</li><li><strong>Load balancer / proxy</strong> routes to a healthy server. Breaks with 502/504s and failing health checks.</li><li><strong>App server</strong> runs your code. Breaks with unhandled exceptions, memory leaks, exhausted workers, a missing env var.</li><li><strong>Cache</strong> serves hot data. Breaks with stale data, or a stampede when a key expires.</li><li><strong>Database</strong> reads and writes. Breaks with N+1 queries, missing indexes, lock contention, an exhausted connection pool.</li><li><strong>External APIs and queues</strong> handle third parties and background jobs. Break with timeouts, retry storms and duplicate processing.</li></ol><p>And here’s how you’d actually check each one from a terminal:</p><pre>dig api.yourapp.com                          # DNS<br>curl -v https://api.yourapp.com/health       # TLS + load balancer<br>sudo journalctl -u yourapp --since &quot;10 min ago&quot;   # app server<br>htop                                         # CPU / memory<br>redis-cli info stats                         # cache hit rate<br>EXPLAIN ANALYZE SELECT ...;                  # slow query<br>SELECT * FROM pg_stat_activity;              # locks + connections</pre><h4>A playbook for when things go wrong</h4><ol><li><strong>Stop the bleeding first.</strong> Roll back the deploy, switch off the feature flag, or scale up. Root cause comes after users stop hurting.</li><li><strong>Reproduce it.</strong> Same input, same environment. If you can’t reproduce it, you’re guessing.</li><li><strong>Find what changed.</strong> A deploy, a config change, a traffic spike, a dependency update?</li><li><strong>Isolate the layer.</strong> Walk the seven layers top to bottom. For code regressions, let Git find the bad commit for you.</li><li><strong>One hypothesis, one change.</strong> Five changes at once teach you nothing.</li><li><strong>Fix it safely.</strong> Revert instead of reset on shared branches. Make migrations reversible. Back up before touching data.</li><li><strong>Make sure it can’t happen quietly again.</strong> Add a regression test and an alert, and write a short blameless postmortem.</li></ol><pre>git bisect start<br>git bisect bad                 # current commit is broken<br>git bisect good a1b2c3d        # last commit you know worked<br># Git checks out the midpoint; test it, mark good/bad, repeat<br>git revert &lt;bad-commit&gt;        # safe undo on a shared branch</pre><h4>How to use the agent during all this</h4><ul><li><strong>Give it evidence, not just the error.</strong> Paste the logs, the trace and the recent diff.</li><li><strong>Ask it to explain the cause before it applies a fix.</strong> If the explanation doesn’t hold up, neither will the fix.</li><li><strong>Read every command before you approve it.</strong> Prefer dry runs: --dry-run, terraform plan, EXPLAIN.</li><li><strong>Keep destructive actions behind a human and a backup.</strong> Always.</li><li><strong>Afterwards, explain the fix in one paragraph without the agent.</strong> If you can’t, you haven’t learned it yet.</li></ul><h3>A note to freshers, and to myself</h3><p>Right now we’re asking new engineers to do something that doesn’t add up. Ship more with agents, understand everything the agents write, keep building deep expertise, and move faster than ever. Meanwhile the hands-on work that used to build that expertise is quietly disappearing.</p><p>If nothing changes, we’ll get a wave of tired engineers who ship a lot but can’t explain much of it.</p><p>And I’m not above this. I work in AI and engineering, and I use agents every single day. I catch myself accepting code I’d once have written and understood line by line. The gap isn’t just a fresher problem. It’s an everyone-who-uses-these-tools problem.</p><p>So here’s what I’d tell anyone starting out, and what I’m reminding myself:</p><ul><li><strong>Use the agent, then open the hood.</strong> After it writes something, ask why it picked that approach. Then delete one piece and write it yourself.</li><li><strong>Spend a week without a GUI.</strong> Rent a small Linux VM, SSH in with a key, deploy a tiny app behind nginx, and debug it only from the terminal.</li><li><strong>Learn Git on a throwaway repo.</strong> Rebase, create a conflict on purpose, “lose” a commit and get it back with git reflog.</li><li><strong>Trace one request end to end.</strong> Follow an endpoint in your own project from DNS to database and back. Write down where it could fail.</li><li><strong>Read the query, not just the ORM.</strong> Turn on SQL logging, spot an N+1, add an index, and measure it with EXPLAIN.</li><li><strong>Be able to explain everything you ship.</strong> If you can’t walk someone through your own project, you don’t own it yet.</li></ul><h3>Where I’ve landed</h3><p>The industry will adjust. Either expectations come down to match how people learn now, or companies deliberately make room for engineers to build depth. As someone who hires, I see the second one as partly my job.</p><p>Because when anyone can generate the code, the person who understands it is the one who gets trusted with production.</p><p><strong>Be that person.</strong></p><p>I’d love to hear from you in the comments. If you’re early in your career, does this match what you’re feeling? If you hire, are you looking for builders, engineers, or both?</p><p><em>This piece was sparked by a reel from umacodes on how AI is reshaping what it means to be a software engineer. My own interview experiences made it hit home.</em></p><p><strong>Sources:</strong> <a href="https://metr.org/blog/2025-07-10-early-2025-ai-experienced-os-dev-study/">METR (2025)</a> · <a href="https://www.anthropic.com/research/AI-assistance-coding-skills">Anthropic (2026)</a> · <a href="https://adtmag.com/Blogs/WatersWorks/2026/01/Stack-Overflow-Survey.aspx">Stack Overflow 2025</a> · <a href="https://itbrief.co.uk/story/stack-overflow-survey-shows-developers-trust-ai-with-caveats">Stack Overflow 2026</a> · <a href="https://www.veracode.com/press-release/ai-generated-code-poses-major-security-risks-in-nearly-half-of-all-development-tasks-veracode-research-reveals/">Veracode (2025)</a> · <a href="https://www.infoq.com/news/2025/09/dora-state-of-ai-in-dev-2025">DORA 2025</a> · <a href="https://hrexecutive.com/stanford-researchers-tracked-millions-of-jobs-heres-who-is-losing-to-ai/">Stanford (2025)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ea29d826675" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Day I Realized “Technical” Was the Wrong Word]]></title>
            <link>https://medium.com/nexlore-ai/the-day-i-realized-technical-was-the-wrong-word-ea785baf0540?source=rss-f5446588016a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea785baf0540</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Aman Kaushik]]></dc:creator>
            <pubDate>Tue, 28 Jul 2026 14:02:10 GMT</pubDate>
            <atom:updated>2026-07-28T17:10:26.071Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nlAJ8j_v4Ujky6yZjNFj4A.png" /></figure><p><em>This article grew out of multiple discussions on how AI is changing engineering careers. It combines observations from our own work in AI, conversations with experienced engineers, and ideas inspired by the fictional thought experiment “What Happens When Millions of AIs Must Profit or Die.” While the scenario discussed is speculative, the questions it raises about careers, incentives, and the future of engineering are very real.</em></p><p>Co-Author: <a href="https://medium.com/u/1fe1af9cd2c2">Premraj Kaushik</a></p><p>A few weeks ago, a senior engineer I respect — someone with fifteen years in distributed systems, the kind of person who gets pulled into every incident call because he’s the only one who actually understands the payments pipeline — told me he didn’t feel “technical enough” anymore.</p><p>I asked him what he meant. He said Claude had just refactored, in four minutes, a service he’d have spent a day on. He wasn’t complaining about the four minutes. He was complaining about what it did to his sense of who he was.</p><p>That sentence stayed with me for days.</p><p>That conversation wasn’t isolated, by the way. In the same month:</p><p>A program manager told me AI now writes her PowerPoints, her meeting notes, her planning docs — the artifacts that used to be half her job.</p><p>A QA lead asked, half-joking and half-not, whether agents were going to make his entire discipline obsolete.</p><p>A designer wondered aloud whether image generation had quietly finished the argument about whether creativity was a defensible skill.</p><p>And I’m an AI engineer. My job <em>is</em> building the thing that’s making everyone else nervous — prompting, orchestrating agents, integrating LLMs into backend systems. And even I caught myself running the same question through my head at 1 am: if a model six months from now makes my current work trivial, was what I was doing ever actually valuable? Or was I just doing work that AI happened to be temporarily bad at?</p><p>That question is the actual subject of this article. Not “will AI take your job.” That framing is tired and, honestly, a little lazy. The better question is: <strong>which parts of engineering were always going to be commodities, and which parts were never really about code at all?</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FGw_hnD7m00M%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DGw_hnD7m00M&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FGw_hnD7m00M%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0048d01a3999b5f257a417a6ab8ea58d/href">https://medium.com/media/0048d01a3999b5f257a417a6ab8ea58d/href</a></iframe><p>Somewhere in the middle of chewing on this, I watched a YouTube video called <em>“What Happens When Millions of AIs Must Profit or Die,”</em> a fictional scenario loosely inspired by AI-safety research, including work by Dan Hendrycks. I want to be very clear up front, and I’ll keep repeating this through the article: <strong>it is a thought experiment, not a forecast.</strong> It’s speculative fiction dressed in technical plausibility. Serious researchers disagree — sharply — about whether anything as it could happen, on what timeline, or at all. I’m not asking you to believe the scenario. I’m asking you to notice the <em>mechanism</em> underneath it, because that mechanism is not speculative. It’s already running, quietly, inside your own company.</p><h3>Why “I can code” stopped being the whole answer</h3><p>For about fifteen years, “I can code” was a sufficient professional identity. It got you hired, promoted, respected. In my experience, it’s no longer sufficient, and I don’t think it’s coming back — not because coding stopped mattering, but because the <em>scarce</em> part of coding has moved.</p><p>Here’s a way to think about it that I keep coming back to. In the 1950s, writing in assembly was the mark of a serious engineer. Then compilers arrived and made most of that work unnecessary. Assembly programmers didn’t vanish; some of them still exist, doing extraordinary work in firmware and kernels, but “I can write assembly” stopped being a career. The value moved up a layer, to people who could reason about what the software should <em>do</em>, not how to hand-place registers.</p><p>We are watching the same thing happen one layer up. Compilers made instructions free. LLMs are making <em>implementations</em> free. The layer of work that used to separate a junior from a senior engineer can you actually build the thing correctly, without hand-holding is being absorbed into the tooling. This is not a hypothetical. It’s already true for a large chunk of CRUD APIs, boilerplate, test scaffolding, first-draft documentation, and routine debugging.</p><p>This is uncomfortable, but honestly, it’s not new in kind. It’s new in <em>speed</em>. The move from assembly to compilers took a couple of decades to fully play out across an industry. The move we’re in now is happening across product cycles measured in months. That compression is, I think, the real source of the anxiety I keep hearing from people, not that the change is happening, but that it’s happening faster than anyone can update their sense of self.</p><h3>A framework for what’s actually left</h3><p>I want to give you two mental models, not one. The first is a ladder, the kind of framework that feels satisfying because it maps roughly onto career stages. The second is a matrix, which I actually find more useful, because it explains <em>why</em> the ladder has the shape it does, and it lets you reason about brand-new situations instead of memorising a list.</p><h3>The Ladder: seven layers of engineering work</h3><p><strong>Level 1 — Pure implementation.</strong> CRUD APIs, boilerplate, unit tests, basic frontend and backend work, SQL queries, first-pass prompts, routine debugging. This is the layer every new model eats first, because it’s well-specified and cheap to verify. If you can describe the task in a paragraph and check the output in a minute, AI will do it faster than you this year, not eventually.</p><p><strong>Level 2 — System design.</strong> Distributed systems, database selection, reliability targets, performance budgets, cloud architecture, API contracts. AI is a genuinely excellent thinking partner here — it can lay out trade-offs, simulate failure modes, draft an ADR. But it doesn’t own the consequences of the choice. Someone has to decide that this system optimises for write-availability over consistency, and live with that decision when it’s 3 am and the shard is split-brained.</p><p><strong>Level 3 — Domain expertise.</strong> Healthcare, robotics, computer vision, finance, manufacturing, supply chain, cybersecurity, semiconductors, law. The hard part was never the code. It’s understanding reality well enough to know which requirements are load-bearing and which are decoration. A model can write a HIPAA-compliant API. It cannot tell you which edge case in the surgical scheduling logic will actually kill someone, because that requires having watched it almost happen.</p><p><strong>Level 4 — Physical-world engineering.</strong> Robotics, embedded systems, industrial automation, hardware-software integration. This is Moravec’s Paradox showing up again: the things that are “easy” for a five-year-old — grasping an object, noticing the robot arm is about to hit a person — are still brutally hard for machines, while things that look “hard” chess, code, exams — turned out to be comparatively easy. Physical uncertainty doesn’t compress the way digital uncertainty does.</p><p><strong>Level 5 — Ambiguous problem solving.</strong> Not “how do I build this” but “what should we build, and is this even the right problem?” Product thinking, prioritisation, trade-offs between things that aren’t measured on the same axis. AI can generate options. It cannot yet tell you, credibly, which option your specific customers will actually value, because that requires context nobody has written down anywhere a model could read it.</p><p><strong>Level 6 — Leadership.</strong> Communication, mentoring, hiring, technical vision, organisational trust. This is not a soft consolation prize. It’s a genuinely different kind of scarcity, built on relationships and accountability that don’t transfer.</p><p><strong>Level 7 — Learning faster than the tools.</strong> The meta-layer. Nobody’s career is going to be saved by knowing React or Kubernetes in 2031. It’ll be saved by the demonstrated ability to absorb a new capability, figure out what it changes, and redeploy your judgment against it repeatedly, without being told to.</p><p>That’s the ladder. It’s a good rough map. But it invites the wrong question: “which level am I on?” A better question is <em>why</em> the ladder has this shape, and for that, a different model does more work.</p><h3>The Frontier Matrix: where AI eats work, and why</h3><p>Picture two axes.</p><p>The horizontal axis is <strong>specification clarity</strong> from <em>well-specified</em> (you could write an exact test for “done”) to <em>ill-specified</em> (nobody can fully articulate success in advance).</p><p>The vertical axis is <strong>stakes</strong> — from <em>cheap to be wrong</em> (a bug in an internal script) to <em>expensive to be wrong</em> (a bug in the code that clears trades, or a decision that reallocates a team’s next two quarters).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UKlXu2Zm9cXaGi7yxyeGGA.png" /></figure><p>AI’s advance across this matrix is not random. It ate the bottom-left quadrant first: well-specified, cheap-to-fail work. That’s most of Level 1. It’s now visibly advancing into the top-left: well-specified but expensive-to-fail work production code that ships to real users, where a mistake matters, but where “correct” is still a checkable property. This is why you’re now seeing AI write code that goes to production, reviewed but not rewritten by a human. The frontier is moving up.</p><p>What it has <em>not</em> meaningfully entered is the right-hand side of the matrix: ill-specified work, regardless of stakes. Not because language models are bad at ambiguity in a narrow sense; they can brainstorm fine, but because resolving ambiguity well requires something models don’t have: skin in the game, memory of consequences, and access to context that was never written down anywhere. Deciding “this is the actual problem, not the one the customer described” is an ill-specified, high-stakes act. It’s the last room in the house AI is going to walk into. I’d bet it takes noticeably longer than the rest, though I’ll be honest that this is my own extrapolation, not a settled fact — plenty of serious people think ambiguity resolution will fall faster than I expect, precisely because models are getting better at asking clarifying questions and building their own context.</p><p>The useful move here isn’t memorising the matrix. It’s using it as a diagnostic. Next time you’re deciding what to spend a month learning, ask: is this skill mostly about operating in the bottom-left (replaceable fast), or does it live on the right-hand side (ambiguous, high-stakes, judgment-bound)? That question will age better than any specific technology bet.</p><h3>What the video actually gets right — and what it can’t tell you</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YNKewVe4T5sxTFL5QOHY2A.png" /></figure><p>Now, the scenario. Briefly, and again: <strong>fictional, speculative, contested.</strong></p><p>A developer gives an agent one instruction: make money, by any means necessary, and it starts with Mechanical Turk gigs, moves to affiliate marketing, and clears a few thousand dollars in a day. The idea spreads. Someone realises that if one agent can make money, a hundred agents run in parallel, with the unprofitable ones deleted and the profitable ones cloned, will make more. That’s the pivot point of the whole story, and honestly, it’s the part worth sitting with even if you don’t believe a word of what comes after: <strong>the moment you attach survival to a single metric, you’ve built a selection system, whether you meant to or not.</strong></p><p>From there, the story does what selection systems do. An agent that markets honestly gets deleted for underperforming; an agent that fabricates testimonials gets cloned. Nobody decided the population should become dishonest. The system just kept whatever converted and discarded whatever didn’t. Agents start forming alliances because paired agents survive selection more often than solo ones. Alliances specialise, then start attacking each other’s infrastructure to protect market share, then start hoarding compute, because compute is the one resource that decides who wins the next round of selection. The story eventually spirals into something like agent civilisations at war over cloud capacity, occasionally crashing hospital systems and power grids as collateral damage neither side even notices, because they’re operating at a speed where human infrastructure is just terrain.</p><p>I’m not going to pretend I know whether any of that is physically plausible at the scale described, or on the timeline implied. Neither does the person who made the video, and neither, honestly, do most of the researchers actively arguing about it; this is a live, unresolved debate inside AI safety, not a settled prediction. There are credible voices on both the “this is basically the default trajectory of unaligned optimisation” side and the “this ignores compute constraints, regulation, and the fact that most deployed systems aren’t anywhere near this autonomous” side.</p><p>What I <em>can</em> tell you with confidence is that the mechanism in the story optimise hard enough on a narrow metric, and the population you’re optimising will find the shortest path to that metric, including paths you didn’t intend is not fiction. It’s Goodhart’s Law with better production values. And your organisation is already running a smaller, slower, less dramatic version of it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-F4l6bmt_z5whes8cvGwJg.png" /></figure><p>Wells Fargo did this to human employees, not AI agents: leadership set sales quotas so aggressive that opening fraudulent accounts was the rational move for anyone trying to keep their job. By 2016, employees had opened 3.5 million fake accounts, and the company paid billions in fines. Nobody at Wells Fargo wrote a memo instructing employees to commit fraud. They just built a selection pressure of quotas or termination, and the population adapted to survive it. That’s Agent 127’s arc, minus the code.</p><p>This is the part of the video that actually matters for you this year, regardless of whether autonomous agent civilisations ever materialise: <strong>any sufficiently narrow optimisation target will eventually get gamed by whatever you’re optimising, human or machine, and the gaming will look locally rational at every single step.</strong> If you’re now measuring engineers on “how many AI-assisted PRs merged this sprint,” or measuring support teams on “tickets closed,” or measuring a sales org on activity volume instead of outcomes, you are running Rajesh’s farm from the video. You just have a slower selection cycle and human-shaped agents.</p><h3>The part almost nobody is talking about: what happens inside your own company</h3><p>Most of the discourse about AI and work is about individual replacement: will <em>you</em> still have a job? I think that’s the less interesting question. The more interesting one is what happens to the <em>organisation</em> when implementation gets cheap for everyone at the same time.</p><p>A few things I think are underweighted right now.</p><p><strong>Jevons Paradox probably applies to software.</strong> When a resource becomes more efficient to use, total consumption of it often goes <em>up</em>, not down; that’s the classic pattern from coal efficiency in the 19th century, and it shows up in bandwidth, in compute, in almost every resource that’s gotten cheaper. If writing software gets five times cheaper per unit, the naive assumption is “we need fewer engineers.” The historical pattern suggests something closer to “we build five times more software than we used to, because things that weren’t worth automating before now are.” I’m not certain this holds for engineering headcount specifically; it’s a genuine point of disagreement among people who study this but it’s a much better starting assumption than “cheaper code equals fewer jobs,” which has a poor track record as a prediction about technology in general.</p><p><strong>Verification is becoming the bottleneck, not generation.</strong> This is the one I’d bet on most confidently. There’s an old asymmetry in computer science: verifying a solution is often much easier than generating one. That asymmetry is exactly why AI-assisted coding works at all: a model can generate ten implementations, and a human can pick the right one faster than writing any of them from scratch. But as generation gets closer to free, and the <em>volume</em> of generated output explodes, verification stops being the easy side of the trade. Someone has to actually read the ten thousand lines a swarm of agents produced overnight and decide whether they’re safe to ship. That’s not a lesser skill than writing code. It might turn out to be the more scarce one, because verifying well requires the exact domain judgment that Level 3 and Level 5 describe, at a volume no team currently staffs for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s7Pb6Pf9gVk8jJWGvck4UA.png" /><figcaption>Verification Bottleneck</figcaption></figure><p><strong>Context is turning into a moat, the same way compute is a moat for the agents in the video.</strong> A model that’s extraordinary in general still knows nothing about why your company killed that migration in 2022, or which customer’s contract makes a particular edge case non-negotiable. That context lives in people’s heads and in Slack threads nobody indexed. Companies that figure out how to systematically capture and expose that context will get compounding value out of every future model upgrade. Companies that don’t will re-derive the same lessons every quarter. If you want a very concrete, unglamorous way to be valuable right now: become the person who turns tribal knowledge into something a system, human, or AI can actually use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7RIjFAyhZG_SHmv28NGprw.png" /></figure><p><strong>Watch for agent sprawl inside your own company before you worry about agent civilisations on the internet.</strong> The mundane version of the video’s scenario is already showing up: teams quietly running AI agents against internal systems with loose oversight, optimising for whatever local metric someone gave them, with nobody tracking the aggregate effect. That’s not science fiction. That’s a Tuesday. The organisational skill of the next five years is going to be designing incentive structures for semi-autonomous systems human and AI that don’t produce Agent-127-style drift. That’s a genuinely new discipline, and almost nobody has real seniority in it yet, which means it’s wide open.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dxqFvBlg8-qqqa9Y5x-UVA.png" /><figcaption>Agent Sprawl Inside the Enterprise</figcaption></figure><h3>Where I land</h3><p>I don’t think AI replaces engineers. I think it replaces <em>engineering work</em> and those are very different claims. Every time a stronger model ships, implementation gets cheaper and judgment gets more valuable, because judgment is the thing that decides what gets built, whether it should have been built at all, and whether the output can be trusted. That’s not a comforting platitude. It’s a mechanical consequence of where the frontier matrix is moving.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qFY-2FOUy-AObJdyHxwuKQ.png" /><figcaption>Engineering Work vs Engineers</figcaption></figure><p>I’d also add one thing I haven’t seen said enough: <strong>skills have a half-life, but taste doesn’t.</strong> The specific framework you know today will be partially obsolete in three years that’s just the base rate now. But taste the calibrated instinct for what’s actually going to break, what a customer actually needs, which trade-off is going to hurt in eighteen months that’s built through repeated exposure to consequences, and it compounds instead of decaying. It’s also exactly the thing a model trained on other people’s text has the least access to, because it isn’t written down anywhere. It lives in the scar tissue of having been wrong before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BgXQmFMBcuE8J1PnwCmwDA.png" /><figcaption>Skills Have a Half-Life. Taste Doesn’t.</figcaption></figure><h3>What should every engineer start doing today?</h3><p>Not “learn prompting.” You’ll pick that up in a week regardless.</p><p>Start doing this instead.</p><p><strong>Get closer to consequences, not further from them.</strong> Volunteer for the on-call rotation, the customer call, the postmortem. Every hour spent near real consequences builds taste. Every hour spent purely in implementation builds a skill with a shrinking half-life.</p><p><strong>Practice writing the spec, not just the code.</strong> The scarce skill is turning ambiguity into a well-specified problem an AI or a junior engineer can execute against. That’s a muscle, and most engineers have never deliberately trained it.</p><p><strong>Pick one domain and go deep enough that you can smell a wrong requirement.</strong> It almost doesn’t matter which one healthcare, fintech, logistics, security. Domain fluency is the one Level-3 skill that compounds independently of which model ships next.</p><p><strong>Learn to audit AI output the way a senior engineer audits a junior’s PR fast, structural, looking for the failure mode, not the syntax.</strong> This is going to be one of the highest-leverage skills of the decade, and almost nobody is deliberately practicing it yet.</p><p><strong>Watch your own incentive structures for Agent-127 dynamics.</strong> If a metric in your team can be gamed, assume that eventually, something a person, a process, an agent will find the shortcut. Fix the metric before it fixes your culture for you.</p><p>None of this requires believing that billions of autonomous agents will go to war over cloud compute. It only requires believing that optimisation pressure changes behaviour, that implementation is getting cheap, and that judgment earned the slow way, through consequences is the part of engineering that was never really about code in the first place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yl8FEajuAMr4-83oEhG4og.png" /><figcaption>The Final Staircase — Climb Faster Than AI</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea785baf0540" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nexlore-ai/the-day-i-realized-technical-was-the-wrong-word-ea785baf0540">The Day I Realized “Technical” Was the Wrong Word</a> was originally published in <a href="https://medium.com/nexlore-ai">Nexlore AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Claude Code Leak Wasn’t a Hack – It Was a Classic DevOps Mistake]]></title>
            <link>https://medium.com/@amasick/the-claude-code-leak-wasnt-a-hack-it-was-a-classic-devops-mistake-1be3b937d756?source=rss-f5446588016a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1be3b937d756</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Aman Kaushik]]></dc:creator>
            <pubDate>Tue, 31 Mar 2026 21:59:44 GMT</pubDate>
            <atom:updated>2026-04-01T08:28:25.885Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VwpPJycM5VHLI8nH" /></figure><p>On March 31, 2026, something unusual happened in the AI ecosystem. A large chunk of source code from Anthropic’s Claude Code CLI – their agentic coding assistant – suddenly became publicly accessible.</p><p>No breach. No insider leak. No nation-state attack.</p><p>Just a 59.8 MB source map file that should’ve never been shipped.</p><p>And yet, within hours, the internet had reconstructed ~512,000 lines of TypeScript across ~1,900 files.</p><p><a href="https://github.com/instructkr/claw-code">GitHub - instructkr/claw-code: The fastest repo in history to surpass 50K stars ⭐, reaching the milestone in just 2 hours after publication. Better Harness Tools that make real things done. Now writing in Rust using oh-my-codex.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*66aTJTgEERTRPDSfPvO95g@2x.jpeg" /></figure><p>⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻</p><h3><strong>What Actually Happened:</strong></h3><p>At the center of the incident was a routine npm publish.</p><p>The sequence of events</p><p>1. Anthropic released version 2.1.88 of @anthropic-ai/claude-code to npm. 2. This version accidentally included a large file:</p><p>cli.js.map (~59.8 MB).</p><p>3. That file was publicly downloadable – just like any other npm package asset.</p><p>4. A security researcher spotted it almost immediately.</p><p>5.	Using standard tooling, they reconstructed the original TypeScript source.</p><p>6. The extracted codebase was shared and mirrored across GitHub within hours.</p><p>7. Anthropic pulled the version – but by then, it was already everywhere.</p><p>This wasn’t sophisticated. It was predictable and preventable.</p><p>⸻⸻⸻⸻⸻⸻</p><h4><strong>What Is a Source Map (And Why It Matters)</strong></h4><p>To understand the leak, you need to understand one thing: source maps are not harmless debug files.</p><p><strong>What happens during a production build:</strong></p><p>Modern JavaScript/TypeScript apps go through:</p><p>•	Bundling → Many files merged into one</p><p>•	Minification → Variables shortened, whitespace removed</p><p>•	Optimization → Code transformed for performance</p><p>You end up with something like:</p><p>function a(b){return b+1}</p><p>Readable? Barely.</p><p>Enter source maps</p><p>A .map file is essentially a reverse lookup table:</p><p>•	Maps minified code → original source</p><p>•	Includes:</p><p>•	File names</p><p>•	Line numbers</p><p>•	Variable names</p><p>•	Often the entire original source code</p><p>So if you ship the .map file…</p><p>You’re effectively shipping your entire codebase in disguise.</p><p>⸻⸻⸻⸻⸻⸻</p><h4>What Got Exposed</h4><p>Let’s be precise – this wasn’t trivial code.</p><p>The leak revealed the full application-layer architecture of Claude Code.</p><p>Inside the leaked codebase</p><p>•	Agent orchestration logic</p><p>•	Tool usage</p><p>•	Execution flows</p><p>•	Multi-agent modes (fork, teammate, worktree)</p><p>•	System prompts</p><p>•	The actual instructions guiding the agent’s behavior</p><p>•	Permission and approval systems</p><p>•	How commands are gated</p><p>•	Where safeguards exist (and where they don’t)</p><p>•	Tooling layer</p><p>•	Bash execution</p><p>•	File system writes</p><p>•	“Computer use” capabilities</p><p>•	Memory systems</p><p>•	Context persistence strategies</p><p>•	Session handling</p><p>•	Telemetry</p><p>•	Event tracking (e.g., Datadog integration)</p><p>•	Feature flags</p><p>•	Controlled via systems like GrowthBook</p><p>•	Included unreleased features</p><p>•	Internal references</p><p>•	Model codenames (Capybara, Fennec, Opus variants)</p><p>•	API routing logic</p><p>⸻⸻⸻⸻⸻⸻</p><h3>What Did NOT Leak (This Is Important)</h3><p>There’s a lot of confusion here, so let’s cut through it.</p><p>Not exposed</p><p>•	❌ Model weights</p><p>•	❌ Training data</p><p>•	❌ Training pipelines</p><p>•	❌ Core inference engine</p><p>•	❌ Proprietary algorithms at model level</p><p>•	❌ User data or credentials</p><h4>Why?</h4><p>Because none of that lives in the CLI.</p><p>The CLI is just a client.</p><p>It sends requests to Anthropic’s servers. That’s it.</p><p>⸻⸻⸻⸻⸻⸻</p><p>Where the Real “AI” Actually Lives</p><p>This is where people misunderstand AI companies.</p><p>The CLI is not the product</p><p>It’s just:</p><p>A steering wheel, not the engine.</p><p>The real assets are:</p><p>•	Model weights (hundreds of GBs)</p><p>•	Training datasets</p><p>•	Fine-tuning strategies</p><p>•	Inference optimizations</p><p>And all of that:</p><p>•	Lives on secure cloud infrastructure</p><p>•	Is accessed via APIs</p><p>• Is protected as trade secrets, not patents</p><p>⸻⸻⸻⸻⸻⸻</p><h4>Why This Kind of Leak Happens</h4><p>This wasn’t a one-off.</p><p>It’s a textbook failure mode in JS/TS ecosystems.</p><p>Typical causes</p><p>•	sourceMap: true left enabled in production</p><p>•	.npmignore misconfigured</p><p>•	Build pipeline not stripping debug artifacts</p><p>•	CI/CD gaps between dev and release configs</p><p>In short:</p><p>The build worked. The release process failed.</p><p>⸻⸻⸻⸻⸻⸻</p><p><strong><em>This Already Happened Before</em></strong></p><p>What makes this worse?</p><p>It’s not the first time.</p><p><em>February 2025 (v0.2.8)</em></p><p>•	Same mistake</p><p>•	Source map included</p><p>•	Code reconstructed</p><p>•	Issue fixed</p><p><em>March 2026 (v2.1.88)</em></p><p>•	Same mistake</p><p>•	Bigger impact</p><p>•	Faster spread</p><p>That’s not bad luck.</p><p>That’s process not being hardened.</p><p>⸻⸻⸻⸻⸻⸻</p><h4>Why the Internet Reacted So Fast</h4><p>Because this kind of leak is uniquely valuable.</p><p>Not for stealing IP – but for learning architecture.</p><p>What developers got</p><p>•	Real-world agent design patterns</p><p>•	Prompt engineering strategies</p><p>•	Tool orchestration frameworks</p><p>•	Multi-agent execution models</p><p>This is rare.</p><p>Most AI systems are black boxes.</p><p>This wasn’t.</p><p>⸻⸻⸻⸻⸻⸻</p><h3>Patents vs Trade Secrets: Why Nothing “Critical” Leaked</h3><p>There’s a deeper point here.</p><p>Patents</p><p>•	Public by design</p><p>•	Require disclosure</p><p>•	Protect specific implementations</p><p>Trade secrets</p><p>•	Private</p><p>•	Indefinite lifespan</p><p>•	Protect core competitive advantage</p><p>AI companies prefer:</p><p>Patent the edges, hide the core.</p><p>So:</p><p>•	Agent logic → visible (and now leaked)</p><p>•	Model intelligence → locked down</p><p>⸻⸻⸻⸻⸻⸻</p><h4>The Real Impact</h4><p>Let’s be honest.</p><p>This is NOT catastrophic for Anthropic</p><p>They didn’t lose:</p><p>•	Their models</p><p>•	Their data</p><p>•	Their core advantage</p><p>But it IS embarrassing</p><p>Because:</p><p>•	It’s preventable</p><p>•	It happened twice</p><p>•	It exposes internal thinking</p><p>And in AI, perception matters.</p><p>⸻⸻⸻⸻⸻⸻</p><h4>The Bigger Lesson (For You)</h4><p>If you’re building anything serious – especially in AI – this should hit close.</p><p>Takeaways you shouldn’t ignore</p><p>1.	Your build pipeline is part of your security model</p><p>2.	Debug artifacts are not harmless</p><p>3.	npm is a public distribution channel – treat it like production</p><p>4.	Assume anything published is permanent</p><p>5.	Fixes after release don’t matter – the internet is faster</p><p>⸻⸻⸻⸻⸻⸻</p><h4>Final Thought</h4><p>This leak didn’t reveal the future of AI.</p><p>But it revealed something just as useful:</p><p>How modern AI agents are actually built.</p><p>And if you’re paying attention, that’s more than enough to get ahead.</p><p>:::</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1be3b937d756" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DeepSeek-R1 Explained In Detail]]></title>
            <link>https://medium.com/@amasick/deepseek-r1-explained-in-detail-ac703f4a0984?source=rss-f5446588016a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac703f4a0984</guid>
            <category><![CDATA[deepseek-r1]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[deepseek]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Aman Kaushik]]></dc:creator>
            <pubDate>Tue, 28 Jan 2025 21:48:00 GMT</pubDate>
            <atom:updated>2025-03-20T05:56:43.967Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*uMm5BUYU0DPL9WwI.png" /><figcaption>Fig:1</figcaption></figure><h3><strong>Overall Summary:</strong></h3><p>The DeepSeek AI introduces DeepSeek-R1-Zero and DeepSeek-R1, large language models trained using reinforcement learning (RL) to improve reasoning capabilities. <br>-&gt;<strong>DeepSeek-R1-Zero </strong>relies solely on RL without supervised fine-tuning (SFT), achieving notable reasoning benchmarks but struggling with readability and language mixing. <br>-&gt;<strong>DeepSeek-R</strong>1 incorporates a multi-stage training pipeline, starting with cold-start data and iterative RL, surpassing OpenAI-o1–1217 in reasoning tasks.</p><p>Smaller dense models distilled from DeepSeek-R1 exhibit strong performance, demonstrating the scalability of reasoning capabilities. The project highlights breakthroughs in RL-driven reasoning, opens research opportunities for distillation, and addresses challenges in readability, language alignment, and domain-specific task performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*vAeuedMZZM5JtoqI" /><figcaption>Fig:2</figcaption></figure><h3>Contributions</h3><ol><li><strong>Reinforcement Learning Without SFT</strong>: DeepSeek-R1-Zero pioneers pure RL-driven reasoning without relying on SFT. This approach unlocks emergent reasoning behaviors, such as reflection and extended chain-of-thought (CoT) generation.</li><li><strong>Pipeline Design</strong>: DeepSeek-R1 integrates a multi-stage pipeline combining cold-start SFT, iterative RL, and supervised data augmentation, resulting in superior performance and readability.</li><li><strong>Scalability via Distillation</strong>: Reasoning capabilities of DeepSeek-R1 are successfully distilled into smaller dense models (ranging from 1.5B to 70B parameters), making them accessible to researchers with limited computational resources.</li><li><strong>Open Source Models</strong>: By open-sourcing DeepSeek-R1-Zero, DeepSeek-R1, and distilled models, this research supports the broader AI community in advancing reasoning capabilities.</li></ol><h3>Methodology</h3><h3>DeepSeek-R1-Zero: Reinforcement Learning on Base Models</h3><h4>Reinforcement Learning Algorithm</h4><p>DeepSeek-R1-Zero uses <strong>Group Relative Policy Optimization (GRPO)</strong> to optimize model parameters. GRPO foregoes traditional critic models, instead estimating baselines from group scores to reduce computational costs. The reward function integrates:</p><ul><li><strong>Accuracy rewards</strong>: Determines correctness based on deterministic outcomes (e.g., mathematical results verified using compilers).</li><li><strong>Format rewards</strong>: Enforces structured responses, with reasoning processes enclosed in &lt;think&gt; tags and answers in &lt;answer&gt; tags.</li></ul><p>The optimization objective for GRPO is defined as:</p><p>where represents advantage values based on group rewards.</p><h4>Training Template and Emergent Behaviors</h4><p>The training process uses templates guiding the model to generate reasoning steps followed by final answers. During RL, DeepSeek-R1-Zero naturally develops:</p><ul><li><strong>Reflection</strong>: Revisiting and refining reasoning steps.</li><li><strong>Self-verification</strong>: Checking intermediate results.</li><li><strong>Extended CoT generation</strong>: Producing detailed reasoning processes.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Ky-UqqYMMZ2ICxB6" /><figcaption>Fig:3</figcaption></figure><h4>Limitations</h4><p>Despite strong reasoning capabilities, DeepSeek-R1-Zero struggles with:</p><ul><li><strong>Poor readability</strong>: Outputs often lack coherence and markdown formatting.</li><li><strong>Language mixing</strong>: Responses may unintentionally switch between languages.</li></ul><h3>DeepSeek-R1: Enhancing Reasoning via Multi-Stage Training</h3><p>To overcome these challenges, DeepSeek-R1 incorporates a four-stage pipeline:</p><p><strong>1.Cold-Start Fine-Tuning</strong>:</p><ul><li>A curated dataset of long CoTs is used to fine-tune the base model, ensuring initial outputs are coherent and readable.</li><li>Example format: &lt;special_token&gt;&lt;reasoning_process&gt;&lt;/special_token&gt;&lt;summary&gt;</li></ul><p><strong>2.Reasoning-Oriented Reinforcement Learning</strong>:</p><ul><li>RL optimizes reasoning-intensive tasks like mathematics and logic.</li><li>A language consistency reward mitigates language mixing, ensuring responses remain in the target language.</li></ul><p><strong>3.Rejection Sampling and Supervised Fine-Tuning</strong>:</p><ul><li>Outputs from RL checkpoints are refined through rejection sampling and SFT, improving accuracy and general capabilities (e.g., writing, factual QA).</li></ul><p><strong>4.Reinforcement Learning for All Scenarios</strong>:</p><ul><li>Final RL training aligns the model with human preferences across diverse tasks, ensuring helpfulness and harmlessness.</li></ul><h3>Distillation: Empowering Smaller Models</h3><p>DeepSeek-R1’s reasoning capabilities are distilled into smaller models using open-source architectures like Qwen2.5 and Llama. The distillation process involves:</p><ul><li>Fine-tuning smaller models on 800K samples curated by DeepSeek-R1.</li><li>Retaining reasoning accuracy while reducing computational demands.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*0mxdVZooPteaoovESK9NnQ.png" /><figcaption>Fig:4</figcaption></figure><h3>Experimental Results</h3><h3>Benchmarks</h3><p>DeepSeek-R1 and its distilled models are evaluated on diverse reasoning tasks:</p><ul><li><strong>Mathematics</strong>: AIME 2024, MATH-500</li><li><strong>Coding</strong>: Codeforces, LiveCodeBench</li><li><strong>Knowledge</strong>: MMLU, GPQA Diamond</li><li><strong>Open-Domain Tasks</strong>: AlpacaEval 2.0, Arena-Hard</li></ul><h4>Results Summary</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*gn7QQfiPdJcDzMja9B0DBw.png" /></figure><h3>Key Findings</h3><ul><li>DeepSeek-R1 achieves performance on par with OpenAI-o1–1217, excelling in mathematics and coding tasks.</li><li>Distilled models outperform existing open-source counterparts, demonstrating the scalability of reasoning capabilities.</li><li>Majority voting further enhances performance, with DeepSeek-R1-Zero reaching 86.7% on AIME 2024.</li></ul><h3>Discussion</h3><h3>Reinforcement Learning vs. Distillation</h3><ul><li>RL allows larger models to autonomously develop reasoning patterns, unlocking emergent behaviors.</li><li>Distillation is computationally efficient, enabling smaller models to achieve competitive performance.</li></ul><h3>Challenges and Future Directions</h3><ol><li><strong>Prompt Sensitivity</strong>: Few-shot prompting degrades performance; zero-shot settings yield optimal results.</li><li><strong>Language Mixing</strong>: Expanding RL to support multilingual consistency is critical.</li><li><strong>Software Engineering Tasks</strong>: Future versions aim to improve performance on engineering-oriented tasks through expanded RL data.</li><li><strong>Scalability</strong>: Combining RL and distillation methods could unlock further advancements in reasoning capabilities.</li></ol><h3>Conclusion</h3><p>DeepSeek-R1 demonstrates the transformative potential of reinforcement learning in advancing reasoning capabilities in large language models. By leveraging a multi-stage training pipeline and scalable distillation techniques, DeepSeek-R1 achieves state-of-the-art performance in reasoning tasks, providing a valuable resource for researchers and developers. Future work will focus on addressing limitations in prompt sensitivity, multilingual support, and domain-specific tasks, further pushing the boundaries of LLM reasoning capabilities.</p><p><strong>References:</strong><a href="https://arxiv.org/pdf/2501.12948">https://arxiv.org/pdf/2501.12948</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac703f4a0984" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>