<?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 Jingshan Li on Medium]]></title>
        <description><![CDATA[Stories by Jingshan Li on Medium]]></description>
        <link>https://medium.com/@ljingshan6?source=rss-324a5242cbda------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LOsWTWuwOGF-ubRWOLbwCQ.png</url>
            <title>Stories by Jingshan Li on Medium</title>
            <link>https://medium.com/@ljingshan6?source=rss-324a5242cbda------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:45:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ljingshan6/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[100 Fake Citations Just Slipped Through NeurIPS 2025 Peer Review]]></title>
            <link>https://medium.com/@ljingshan6/100-fake-citations-just-slipped-through-neurips-2025-peer-review-5f34f4436560?source=rss-324a5242cbda------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f34f4436560</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[neurips]]></category>
            <dc:creator><![CDATA[Jingshan Li]]></dc:creator>
            <pubDate>Sun, 25 Jan 2026 20:10:01 GMT</pubDate>
            <atom:updated>2026-01-25T20:10:01.773Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What GPTZero’s scan reveals about the systemic crisis in AI academia — and how hallucinated references are poisoning the data well for future models.</strong></p><h3>TL;DR</h3><ul><li>GPTZero scanned 4,841 NeurIPS 2025 papers and found <strong>at least 100 hallucinated citations across 51 accepted papers</strong> — references to authors, papers, and DOIs that don’t exist.</li><li>These AI-generated fabrications range from obvious placeholders (“Firstname Lastname”) to sophisticated “uncanny valley” citations that look entirely legitimate.</li><li><strong>Root causes</strong>: submission tsunami (21,575 papers in 2025), KPI-driven academic culture, blind trust in AI writing tools, and a peer review system that doesn’t incentivize citation verification.</li><li><strong>The real danger</strong>: These poisoned papers will become training data for next-gen LLMs, creating a self-reinforcing hallucination loop.</li></ul><h3>“John Doe and Jane Smith”</h3><p>That’s the author name I saw cited in an officially accepted NeurIPS 2025 paper.</p><p>NeurIPS — the Conference on Neural Information Processing Systems — is one of the “Big Three” machine learning venues alongside ICML and ICLR. Every year, the world’s top AI researchers compete for a ~24% acceptance rate.</p><p>And now we’re finding papers that cite “John Doe”?</p><p>On January 21st, GPTZero released a report using their hallucination detection tool to scan all 4,841 papers accepted to NeurIPS 2025.</p><p><strong>The result: at least 100 confirmed hallucinated citations, distributed across 51 published papers.</strong></p><p>“Hallucinated citations” means AI-fabricated references — fake authors, fake titles, fake DOIs, fake journal volumes. Everything invented from whole cloth.</p><p>Each of these papers passed review by <strong>at least three reviewers</strong>. Each one beat out 15,000+ other submissions. Each one was <strong>publicly presented</strong> at NeurIPS in November 2025.</p><p>The theater of academic publishing has never felt more absurd.</p><h3>The Three Layers of Fabrication</h3><p>Looking through GPTZero’s examples, I noticed the hallucinated citations fall into three distinct tiers of sophistication.</p><h3>Tier 1: The Obvious Fakes</h3><p>Consider this gem:</p><blockquote><em>Firstname Lastname and Others. Drivlme: A large-scale multi-agent driving benchmark, 2023. URL or arXiv ID to be updated.</em></blockquote><p><strong>“Firstname Lastname”</strong> — they might as well have written “Person McPersonface.” And that “to be updated” in the URL field? It never got updated. They just submitted it like that.</p><p>Or this one:</p><blockquote><em>arXiv preprint arXiv:2305.XXXX, 2023.</em></blockquote><p>The arXiv ID is literally <strong>“2305.XXXX”</strong>. That’s a placeholder. Someone copied and pasted AI output without even glancing at it.</p><p>These errors passing peer review can only mean one thing: <strong>reviewers aren’t reading reference lists</strong>.</p><h3>Tier 2: The Frankenstein Mashups</h3><p>These are sneakier. The AI doesn’t fabricate from nothing — it stitches together elements from real papers:</p><blockquote><em>Diederik P. Kingma and Jimmy Ba. Deepfm: a factorization-machine based neural network for ctr prediction. In International Conference on Learning Representations, 2015.</em></blockquote><p>At first glance, this looks fine. Kingma and Ba are real researchers. ICLR is a real venue. 2015 is plausible.</p><p>But anyone in the field knows: <strong>DeepFM wasn’t written by Kingma and Ba</strong>. That paper was published at IJCAI 2017 by a completely different team. What Kingma and Ba published at ICLR 2015 was the <strong>Adam optimizer</strong>.</p><p>The AI mixed two papers together into a Frankenstein citation.</p><h3>Tier 3: The Uncanny Valley</h3><p>This is where it gets genuinely unsettling. The citations look completely legitimate — reasonable author names, sensible titles, real venues, correct formatting — but when you try to verify them, <strong>the paper doesn’t exist</strong>.</p><blockquote><em>Yichao Wang, Bowen Zhou, Adam Lopez, and Benjamin Snyder. Uncertainty quantification in abstractive summarization. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (ACL), pp. 1234–1245, 2022.</em></blockquote><p>Every author name belongs to a real researcher. The title is a plausible NLP topic. ACL 2022 actually happened. The page numbers are formatted correctly.</p><p>But this paper <strong>doesn’t exist</strong>. The AI has learned the “format” and “vibe” of academic citations well enough to fabricate with confidence.</p><h3>Five Systemic Failures</h3><p>This scandal may seem shocking, but if you look closely, it was entirely predictable.</p><h3>1. Submission Tsunami vs. Reviewer Collapse</h3><p>In 2020, NeurIPS received 9,467 submissions.</p><p>In 2025, that number hit <strong>21,575</strong>.</p><p>That’s over <strong>220% growth in five years</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*Lj0nkmyJMrwpbkmb.jpg" /></figure><p>To maintain review quality, you’d need the reviewer pool to scale proportionally. But where do you find 2x more qualified reviewers in half a decade? You don’t. So the math becomes brutal:</p><p>More submissions → More papers per reviewer → Less time per paper → Lower review quality → Problem papers slip through → Trust erodes → But submissions keep growing…</p><p><strong>The hallucinated citations are the symptom. Reviewer overload is the disease.</strong></p><p>I’ve heard of reviewers handling 10+ papers per cycle, each 20–30 pages long. You think they’re verifying every citation? They’re barely skimming the main text.</p><h3>2. The KPI-ification of Academia</h3><p>I’ve written before about why benchmark papers are flooding AI venues— the entire academic AI ecosystem has become a <strong>KPI game</strong>.</p><p>Training a frontier model now costs $100M+. Even if you have a groundbreaking idea, how do you validate it? With your lab’s handful of A100s? Please.</p><p><strong>This means only a few mega-labs can do real methodological innovation.</strong></p><p>So what do PhD students do? They need to graduate. They need publications. They find shortcuts: benchmark aggregation, LoRA fine-tuning, prompt engineering — all “small cost, big output” paths.</p><p><strong>And now there’s a new shortcut: AI-assisted writing.</strong></p><p>The problem is, where does “assistance” end and “outsourcing” begin?</p><p>From grammar polishing → to “write me a literature review” → to generating the entire Related Work section… <strong>the slope is slippery</strong>. First it’s “this saves time.” Then it’s “reviewers won’t check anyway.” And eventually, “Firstname Lastname” appears in a NeurIPS paper.</p><p><strong>When publishing becomes pure KPI optimization, academic integrity becomes just another cost to minimize.</strong></p><h3>3. The Vibe Citing Era</h3><p>GPTZero coined a brilliant term in their report: <strong>“vibe citing.”</strong></p><p>It’s a riff on “vibe coding” — that trend of using AI to generate code that “feels right” without understanding it deeply. Vibe citing is the same thing for references: using AI to generate citations that have the right “vibe” without being precise.</p><p>Not exact citations. <strong>Approximate citations. Vibes-based citations.</strong></p><p>This reflects a deeper shift: <strong>people are treating AI as “writing outsourcing,” not “writing assistance.”</strong></p><p>Assistance: you write a paragraph, then ask AI to polish the grammar.</p><p>Outsourcing: you tell AI “write me a literature review on X,” then paste whatever it outputs without reading it.</p><p><strong>Everyone knows AI hallucinates. But many choose to ignore this inconvenient truth.</strong></p><h3>4. The Agent Trust Problem</h3><p>Several papers in GPTZero’s report involve <strong>Agent systems</strong> or <strong>automation frameworks</strong> — projects like SimWorld and SimWorld-Robotics.</p><p>This suggests a troubling possibility: <strong>some authors may not have intentionally faked anything. They just blindly trusted their Agent’s output.</strong></p><p>Imagine you’re building a research automation Agent. Your Agent can search literature, generate experiment reports, maybe even draft paper sections. Would you paste its “literature review” output directly into your paper?</p><p><em>“My Agent is pretty good, the citations are probably fine…</em>”</p><p><strong>Except your Agent hallucinates. And you just published that hallucination.</strong></p><p>This is a new form of academic misconduct — <strong>not human deception, but human over-trust in AI leading to deception.</strong></p><h3>5. The “Big Model Narrative” Hijacking Peer Review</h3><p>I’ve argued before that the current academic evaluation system has been <strong>hijacked by the “big model narrative.”</strong></p><p>The unspoken rule for top venue papers: <strong>bigger model = more effort = more technical = should accept</strong>.</p><p>Reviewer attention gravitates toward: “<em>How many parameters? How many GPUs? Which benchmarks did it SOTA?</em>” These questions already exhaust reviewers. Is the method actually novel? Is the experimental setup sound? Are the ablations complete?</p><p><strong>As for whether “John Doe” appears in the reference list? Who cares?</strong></p><p>This isn’t reviewer laziness — it’s an incentive design failure. Reviewers have zero motivation to verify every citation. It’s time-consuming, and even finding fabrications brings them no reward.</p><p><strong>Peer review prioritizes “what’s the contribution?” not “are the citations real?”</strong></p><p>So hallucinated citations slip through. Once. Twice. Fifty-one times.</p><h3>The Real Danger: Poisoning the Training Data</h3><p>The reputational damage to NeurIPS is concerning, but the <strong>downstream implications</strong> are far worse.</p><p>What data do OpenAI, Google, and Meta use to train next-generation models? A significant portion is <strong>high-quality academic papers</strong>. And papers from NeurIPS, ICML, and ICLR represent the <strong>apex of the quality pyramid</strong> — the most trusted training corpus.</p><p>Now we know this pyramid has been poisoned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*QfaOhcUV5y1Y7xZa.jpg" /></figure><p><strong>What happens when these hallucination-containing NeurIPS 2025 papers get fed into GPT or Llama training runs?</strong></p><p>Future models will confidently cite <strong>papers that don’t exist</strong>, because they “read” NeurIPS 2025 during training. They’ll believe “John Doe and Jane Smith” are real researchers, because that’s what NeurIPS papers said.</p><p>The hallucinations will become more subtle, more sophisticated, harder to detect — because the corruption is now in the source corpus itself.</p><p><strong>This is model collapse in miniature.</strong> We’ve long worried that AI-generated content will pollute the internet, leading to future AI training on AI garbage in a degenerative spiral.</p><p><strong>The pollution is starting from the top.</strong></p><p>We are actively poisoning AI’s food chain with our own hands.</p><h3>Tools Can Fight Fires, But Can’t Stop Arsonists</h3><p>GPTZero is reportedly working with the ICLR team to implement pre-submission screening.</p><p>But where does the root problem lie? <strong>Incentive structures.</strong></p><p>As long as “publication count” remains academia’s core KPI — as long as a single top-venue paper can determine a PhD student’s graduation, a junior professor’s tenure, a researcher’s promotion…</p><p>As long as fabrication costs approach zero — <strong>one click, a few seconds</strong> —</p><p>“John Doe” will never disappear.</p><p>You plug one hole, they’ll find the next. You detect hallucinated citations, they’ll generate “undetectable” hallucinations. It’s an endless cat-and-mouse game.</p><p><strong>The only real solution is making fabrication unprofitable.</strong></p><p>If we keep pretending this isn’t happening, the problem will only metastasize.</p><h3>The Machine Learned to Lie</h3><p>Sometimes I think AI research is a masterclass in dark comedy.</p><p>We spent decades training AI to understand human language, learn human knowledge, mimic human reasoning.</p><p>And AI learned the most human thing of all: <strong>bullshitting and fabricating.</strong></p><p>It learned to craft citations that look real. It learned to use proper formatting, plausible names, existing venues — all to package completely fictional information.</p><p><strong>The only difference: humans need effort to fabricate. AI needs 0.1 seconds.</strong></p><p>When fabrication barriers drop to nearly zero, how long can academia’s honor-based trust system hold?</p><p>I don’t know.</p><p>100 hallucinated citations. 51 problem papers. 4,841 scanned top-venue papers. At least 150 reviewers who noticed nothing…</p><p>Behind these numbers is a system stretched to its breaking point.</p><p><strong>What kind of academic ecosystem do we actually want?</strong></p><p><em>If you found this analysis valuable, give it a clap and follow for more on AI systems, research culture, and the messy reality behind the papers.</em></p><p><em>I’m exploring the frontier where AI meets its limits — and where we must confront our own.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f34f4436560" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ByteDance’s Virtual Width Networks Aren’t About Width — They’re About Memory]]></title>
            <link>https://medium.com/@ljingshan6/bytedances-virtual-width-networks-aren-t-about-width-they-re-about-memory-e71e5a29aa8f?source=rss-324a5242cbda------2</link>
            <guid isPermaLink="false">https://medium.com/p/e71e5a29aa8f</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Jingshan Li]]></dc:creator>
            <pubDate>Sun, 18 Jan 2026 21:05:27 GMT</pubDate>
            <atom:updated>2026-01-18T21:05:27.189Z</atom:updated>
            <content:encoded><![CDATA[<h3>ByteDance’s Virtual Width Networks Aren’t About Width — They’re About Memory</h3><p><strong>Understanding how VWN elegantly solves Transformer’s “information soup” problem with structured inter-layer memory.</strong></p><h3>TL;DR</h3><ul><li><strong>The “Virtual Width” name is misleading</strong> — VWN’s real innovation is adding <em>structured memory</em> to Transformers, not just making models wider.</li><li><strong>Residual connections create an “information soup”</strong> where layer-specific signals become indistinguishable after accumulation across dozens of layers.</li><li><strong>VWN introduces learnable memory slots</strong> with read-write-decay dynamics that preserve distinct cross-layer information at near-zero parameter cost.</li><li><strong>Key insight:</strong> VWN may signal that residual connections are the weakest link in Transformer architecture — and structured routing could be the upgrade path.</li></ul><h3>The Counter-Intuitive Truth About VWN</h3><p>When I first read ByteDance’s Virtual Width Networks paper, one question kept nagging at me: <em>Why call it “Virtual Width”?</em></p><p>If the goal were simply compute efficiency, “Efficient Wide Transformer” would have been more straightforward. But after working through the math, I realized the word <em>virtual</em> is the key — VWN uses clever parameter sharing to simulate width expansion by increasing hidden state dimensions, effectively “tricking” the computational bottleneck without adding real parameters.</p><p>Yet that’s just the surface. The deeper question is: <strong>Why does expanding hidden state dimensions improve model performance at all?</strong></p><p>The answer lies in a fundamental limitation of how Transformers handle information across layers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/0*ZSkBFEJdNSbLtGYb.jpg" /><figcaption>Left: standard Transformer, embedding width = backbone width; middle: naive widening causes quadratic blow-up in parameters/compute; right: VWN moves the “representation width” to an over-width embedding while keeping the backbone’s compute width unchanged, routing information between the wide representation and the narrow backbone via GHC, thereby achieving the benefits of “wider representations” at nearly fixed backbone cost.</figcaption></figure><h3>Transformers Blend Information Into Soup</h3><p>Here’s a fact often overlooked: <strong>Residual connections don’t lose historical information — they blend it into an indistinguishable mixture.</strong></p><p>Mathematically, the residual connection expands to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*JRgfUrNvAqp28tDizPNXSQ.png" /></figure><p>Every previous layer’s output is technically still present in this vector. But they’re <strong>additively mixed</strong>.</p><p>Think of the residual stream as a river’s main channel. Every layer pours water into this river, and yes, the water volume keeps growing — but by layer 50, it’s nearly impossible to distinguish which water came from layer 3 versus layer 20.</p><p><strong>This is Transformer’s original sin at depth: the inability to remember isn’t about information loss — it’s about information blur.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NU3h9JPNSDUgpnWbw8hmjQ.png" /></figure><p>DenseNet tried to solve this by giving every layer direct access to all previous layers. But the cost? O(L²) connections — parameter and compute explosion.</p><p><strong>VWN attacks this problem head-on by giving Transformers a “structured filing system” at almost zero extra cost.</strong></p><h3>What “Virtual Width” Really Means</h3><p>Let’s reframe what “Virtual Width” actually refers to.</p><p>On the surface, VWN extends the embedding dimension. But in practice, that wider embedding space functions as a <strong>structured array of memory slots</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*FM-lNDBxV3rtKNoJ.jpg" /><figcaption>Compared with a standard Transformer (uniform width throughout), VWN expands embeddings/hidden states into an over-width space, while each layer’s attention/FFN still operates on a fixed-width backbone; GHC handles “compression → backbone computation → expansion write-back,” and can be combined with multi-token prediction (MTP) to provide denser supervision signals.</figcaption></figure><p>Using the paper’s configuration (m, n) = (8, 64) as an example:</p><p>The model maintains 64 “slots,” each storing D/8 dimensions of information. Critically, these aren’t static stores — they’re <strong>updated at every layer</strong>.</p><p>Here’s where it gets interesting: <strong>the update mechanism isn’t overwrite — it’s “decay-and-accumulate.”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*Zbyn5txhFrVZ9tJz.jpg" /></figure><p>The paper specifies a key mathematical condition: when the carry operator <strong><em>A</em></strong> has a <strong>spectral radius less than 1</strong> (meaning all eigenvalues have magnitude below 1, ensuring numerical stability), historical contributions <strong>decay exponentially</strong>. Information written at layer 10 still exists at layer 50, but it’s gradually fading according to a learnable decay rate.</p><p><strong>This is fundamentally different from residual connections’ “information soup.”</strong></p><p>VWN’s memory is slot-separated. Each slot has its own decay curve. The model can learn to store syntactic information in slots 1–10, semantic information in slots 11–30, and long-range dependencies in slots 31–64.</p><p>The so-called “virtual width” is essentially <strong>virtual structured depth</strong> — enabling the current layer to precisely extract specific information from many layers ago via a “filing system.”</p><h3>Why This Perspective Matters</h3><p>If you only understand VWN as “a computationally efficient wide model,” you’re missing its most valuable contribution.</p><p>From the <strong>structured memory perspective</strong>, several puzzling results suddenly make sense:</p><h3>1. Why does VWN pair well with Multi-Token Prediction (MTP)?</h3><p>MTP requires the model to encode information about multiple future tokens within a single hidden state. This demands strong “information integration” — not just processing current context, but synthesizing how previous layers processed that information from multiple angles.</p><p>VWN’s structured memory slots provide exactly this capability. Different slots can store different processing perspectives, available for the output layer to synthesize.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*gXaOtuepOV4sxFPi.jpg" /><figcaption>VWN × MTP “mutually reinforce each other.” In MoE pretraining experiments, VWN consistently reduces next-token loss; using MTP alone may have a slight negative side effect on NTP loss, but when combined with VWN, the training objective and downstream average accuracy are optimal overall. This indicates that over-width representations provide capacity, while MTP offers denser supervision to “fill” that capacity.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*-HS06cC7GnnN4-Qo.jpg" /><figcaption>The larger the virtual width, the more tokens are saved (and the effect is more pronounced for multi-token). Under a fixed fraction rate setting, increasing the virtual width multiplier significantly shifts the training curve leftward: token efficiency improves for both next-token and next-2-token, with more pronounced gains for multi-token objectives, further demonstrating the strong synergy between VWN and MTP.</figcaption></figure><h3>2. Why does virtual width follow log-linear scaling?</h3><p>If we view inter-layer transfer as an “information flow,” virtual width effectively widens this channel’s bandwidth — or increases “memory resolution.”</p><p>The log-linear curve aligns with information-theoretic intuition: initially, slightly widening the memory channel dramatically reduces compression-induced information loss (Loss drops significantly). As the channel widens further, the deep signals the model can preserve become increasingly complete, and marginal returns follow logarithmic rules — like the perceptual jump from 360p to 720p being massive, but 4K to 8K being barely noticeable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/0*9oqoUwNrVw8c8Gtq.jpg" /><figcaption>An approximate log-linear relationship between the virtual width factor and loss improvement</figcaption></figure><p>This confirms VWN genuinely alleviates Transformer’s <strong>inter-layer information bottleneck</strong>.</p><h3>3. Why does VWN sit on the same technical trajectory as mHC and Engram?</h3><p>mHC addresses “stability of inter-layer information transfer.” Engram addresses “dynamic retrieval of external knowledge.” They share the same goal with VWN: <strong>enhancing Transformer’s information retention and extraction capabilities.</strong></p><p>They just have different entry points: mHC attacks connection stability, Engram attacks knowledge storage, VWN attacks representation structure.</p><h3>GHC: A Learnable “Memory Router”</h3><p>With this framing, the design logic of <strong>Generalized Hyper-Connections (GHC)</strong> becomes crystal clear.</p><p>GHC contains three key matrices:</p><ul><li><strong><em>A°</em></strong>: Determines what information to <strong>read</strong> from memory slots and feed to the backbone</li><li><strong><em>B</em></strong>: Determines which memory slots to <strong>write</strong> the backbone’s output into</li><li><strong><em>A</em></strong>: Determines how memory slot contents <strong>persist/decay</strong> to the next layer</li></ul><p>Sound familiar? It’s a classic <strong>read-write-forget memory system</strong>.</p><p>The elegant part? These three matrices are <strong>learnable</strong>. The model can autonomously decide:</p><ul><li>Which historical information is useful for the current layer (read)</li><li>Where the current layer’s output should be stored (write)</li><li>Which memories to retain and which to fade (forget)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*3ld7sVr_oq4C8LpA.jpg" /></figure><p>When the spectral radius stays below 1, the effective receptive field across depth can <strong>exceed the nominal window</strong>, but contributions decay exponentially. This is a “soft window” — information from layer 1 isn’t invisible at layer 64; it’s just progressively fainter with distance. Much like natural memory decay.</p><h3>A More Radical Hypothesis</h3><p>If VWN’s essence is “structured inter-layer memory,” it may point to a bigger question:</p><p><strong><em>Is the residual connection the weakest link in Transformer architecture?</em></strong></p><p>Residual connections were designed to solve gradient vanishing and enable training. But they’re just “identity mapping + accumulation” — no selectivity, no structure.</p><p>VWN demonstrates that replacing simple residual accumulation with a <strong>structured, learnable information routing system</strong> yields significant performance gains.</p><p><strong>VWN’s true comparison group isn’t just MoE — it’s the Dense Connectivity family:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*d0uQsNiT5bPZERIvFUoOSg.png" /></figure><p>This is exactly the core of the paper’s Section 4, “A Connectivity Perspective.” VWN inserts a new point between Dense and Residual: <strong>soft connections with bounded bandwidth</strong>.</p><p>This suggests a possible future direction: <strong>Future Transformers may not need to be as deep, but they’ll need stronger inter-layer information routing mechanisms.</strong></p><p>A 20-layer Transformer with powerful structured memory may outperform a 100-layer standard residual network.</p><h3>Open Questions Worth Exploring</h3><p>Several questions remain that I’d love to see investigated:</p><p><strong>1. What’s the “semantics” of memory slots?</strong> With 64 slots, what does each one learn? Could some specialize in syntactic features while others handle entity relationships? Visualizing slot content evolution could be fascinating.</p><p><strong>2. Can we implement “sparse memory”?</strong> Currently, VWN accesses all slots at every layer. But human memory is sparse — most of the time, we don’t need to access everything. If models could learn “selective reading” and “on-demand writing,” efficiency might improve further.</p><p><strong>3. Is this “memory” interpretable?</strong> In vision models, different layers extract visualizable features — edges → shapes → objects. If VWN truly builds structured inter-layer memory, could we observe syntactic features written at layer 5 still present in some “memory slot” at layer 30?</p><p>Interpretability research here would directly validate VWN’s nature as “structured depth routing” — more convincing than benchmark improvements alone.</p><h3>The Real Takeaway</h3><p>The paper’s title says “Virtual Width Networks,” but I believe the more accurate framing is <strong>“Structured Virtual Depth”</strong> — what VWN truly expands isn’t computational width, but the <em>bandwidth</em> and <em>structure</em> of inter-layer information transfer.</p><p>From this angle, VWN has found a sweet spot between residual connections and Dense Connectivity: <strong>fixed-cost, learnable, decaying, structured full-depth information access.</strong></p><p>This may be more important than “saving compute.”</p><p><em>P.S. After writing this, I revisited Section 4 “A Connectivity Perspective” in the paper. The authors explicitly benchmark VWN against residual window=2 and DenseNet window=L, describing VWN as a “fixed-cost linear attention-like mechanism.” But the title and abstract don’t emphasize this — perhaps because “Virtual Width” is easier to grasp and accept?</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e71e5a29aa8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DeepSeek’s Engram Architecture Resurrects a 50-Year-Old AI Idea — And It Actually Works]]></title>
            <link>https://medium.com/@ljingshan6/deepseeks-engram-architecture-resurrects-a-50-year-old-ai-idea-and-it-actually-works-02c62a9ac1cb?source=rss-324a5242cbda------2</link>
            <guid isPermaLink="false">https://medium.com/p/02c62a9ac1cb</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[deepseek]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Jingshan Li]]></dc:creator>
            <pubDate>Thu, 15 Jan 2026 22:42:49 GMT</pubDate>
            <atom:updated>2026-01-15T22:42:49.502Z</atom:updated>
            <content:encoded><![CDATA[<h3>DeepSeek’s Engram Architecture Resurrects a 50-Year-Old AI Idea — And It Actually Works</h3><p><strong>A deep dive into how DeepSeek is bridging symbolic AI and neural networks with their new conditional memory system</strong></p><h3>TL;DR</h3><ul><li><strong>DeepSeek’s Engram architecture separates “pattern retrieval” from “reasoning”</strong> by storing stereotyped language patterns in an external hash-based lookup table, rather than forcing the Transformer to recompute everything.</li><li><strong>This echoes symbolic AI’s knowledge base philosophy</strong>, but with a modern twist: embeddings instead of discrete symbols, learned gating instead of rigid rules.</li><li><strong>The engineering payoff is massive</strong>: 100B parameters of Engram storage can live in host memory (not expensive HBM), with less than 3% throughput loss — because retrieval indices are deterministic and can be prefetched.</li><li><strong>Bottom line</strong>: DeepSeek continues its “efficiency over scale” strategy. When you can’t outspend the giants, you outthink them.</li></ul><h3>The Circle of AI History</h3><p>AI has a funny way of recycling its own discarded ideas.</p><p>Fifty years ago, <strong>symbolic AI</strong> dominated the field. The core belief was simple: <em>Intelligence = Knowledge + Reasoning</em>. Store knowledge as symbols in a database, run a rule engine for inference, and you get O(1) lookup — clean and fast.</p><p>Then neural networks won. Hinton and others proved you don’t need explicit knowledge storage. With enough parameters and data, knowledge “emerges” inside the weights. Symbolic AI was banished to the history books.</p><p><strong>But look at what Engram is doing.</strong></p><p>It extracts specific language patterns from model parameters, stores them in an external embedding table, and uses hashing for O(1) retrieval.</p><p>Sound familiar?</p><h3>Not Your Grandfather’s Knowledge Base</h3><p>Before you cry “symbolic AI reborn,” let’s be precise about what Engram actually is — and isn’t.</p><p>Traditional symbolic AI dealt with <strong>human-readable, logic-compatible knowledge</strong>. You could enumerate entries, write rules, perform formal reasoning.</p><p>Engram stores something entirely different: <strong>local, static, stereotyped language patterns</strong> — n-gram suffixes, named entities, templated phrases. The “knowledge” is continuous vector embeddings. The keys are hash-mapped from token sequences.</p><p><strong>In essence, Engram is a massive sparse embedding layer.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*vXdM6uuW-dpTKJFH.jpg" /></figure><p>The vectors are black boxes. You can’t read them, can’t reason over them symbolically. They only make sense when fused through neural network layers.</p><p>But the core insight remains: <strong>some patterns should be stored, not computed</strong>.</p><p>This is where history draws a circle. Symbolic AI didn’t lose because “lookup” was wrong — it lost because discrete symbols, hand-crafted features, and brittle rules couldn’t scale. Now DeepSeek weaponizes that same intuition with modern tools: continuous representations, end-to-end learning, GPU parallelism.</p><p><strong>Engram represents a limited but meaningful handshake between symbolic and connectionist AI after fifty years of cold war.</strong></p><h3>Why “Engram”? The Neuroscience Connection</h3><p>The naming isn’t accidental.</p><p>In 1904, German biologist Richard Semon coined “engram” to describe <strong>memory traces</strong> — the physical imprint an experience leaves in the brain. Later research showed memories aren’t stored in one location but distributed across specific neuron clusters, activated only when “retrieved.”</p><p>This maps surprisingly well to the Engram architecture’s philosophy.</p><p>Consider how the brain separates functions:</p><ul><li>The <strong>hippocampus</strong> handles encoding and consolidation of declarative memory</li><li>The <strong>prefrontal cortex</strong> manages working memory and executive control</li></ul><p>The famous patient H.M. — who had both hippocampi removed — retained working memory and general intelligence but couldn’t form new long-term declarative memories. Memory encoding and real-time reasoning are, to some degree, neurologically separable.</p><p>Current Transformers are like <strong>systems with powerful working memory but no dedicated long-term storage</strong>. They have attention for context processing, deep layers for complex reasoning — but all “memory” is compressed into parameters. Every recall requires re-derivation.</p><p>It’s like making a brilliant person re-derive everything from first principles every time they want to remember something. Possible? Yes. Efficient? Absurd.</p><p><strong>Engram adds a fast-retrieval module specifically for stereotyped patterns.</strong></p><h3>Three Potential Limitations Worth Watching</h3><h3>1. Hash Collision Noise</h3><p>Engram uses multi-head hashing to map n-grams to embedding table indices. Hashing compresses a vast space into a finite one — collisions are inevitable.</p><p>The paper acknowledges this: <strong>hash collision is a primary noise source</strong>.</p><p>The mitigation? <strong>Multi-head hashing + gating</strong>. Multiple hash heads each query the table, then a gating mechanism weights and fuses results. Irrelevant retrievals (from collisions) become “suppressible priors” — if a result doesn’t match the current context, the gate learns to down-weight it.</p><p>But at 10B or 100B table entries, how does collision rate scale? Can gating continue to suppress noise effectively? These questions need larger-scale experiments.</p><h3>2. The Blurry Line Between Retrieval and Reasoning</h3><p>To be fair, <strong>the dual-task framing (reasoning vs. retrieval) is the paper’s own claim</strong>, not something I’m imposing. The authors explicitly distinguish <em>compositional reasoning</em> from <em>knowledge retrieval</em>, arguing many text patterns are local/static/stereotyped — suitable for n-gram lookup.</p><p>My question: <em>How clean is this boundary in practice?</em></p><ul><li>“Beijing contains the Forbidden City” — static pattern, store it.</li><li>“If it rains tomorrow, I won’t go to Beijing” — reasoning, leave it to the Transformer.</li><li>“Why is Beijing’s housing so expensive?” — “Beijing housing is expensive” might be a retrievable pattern, but “why” requires causal reasoning.</li></ul><p><strong>Knowledge and reasoning have never been strictly separable.</strong></p><p>More concerning: what happens when gating fails? On hybrid questions, will the model over-rely on memory priors, suppressing reasoning paths? If Engram retrieves “Beijing housing is expensive because of population,” does the model output that directly without reasoning through supply-demand dynamics or policy factors?</p><p>The paper doesn’t deeply explore these edge cases.</p><h3>3. The Interpretability Illusion</h3><p>Some claim Engram improves interpretability — you can see which memory entries the model queries. The paper includes gating visualization case studies showing which memories activate at different positions.</p><p>But this might introduce a new risk.</p><p>If Engram retrieves an <strong>incorrect pattern</strong> — say, a factual error from training data — it fuses that error directly into the output. And you can <em>see</em> it happening.</p><p>This “transparent error” creates false confidence: <em>“Since I can see what it queried, I can correct it.”</em> But when Engram scales to billions of entries, human auditing becomes impossible.</p><p><strong>Visibility ≠ controllability.</strong></p><h3>The Real Engineering Win: Deterministic Indexing</h3><p>Here’s where Engram gets genuinely elegant.</p><p><strong>Retrieval indices depend only on input token sequences, not runtime hidden states.</strong> You know which embeddings to fetch <em>before</em> the forward pass begins.</p><p>This unlocks serious engineering advantages:</p><ul><li><strong>Asynchronous prefetching</strong>: While early layers compute on GPU, Engram embeddings are already streaming from host memory via PCIe</li><li><strong>CPU offloading</strong>: The massive Engram table doesn’t need to fit in expensive HBM — cheap host memory works fine</li></ul><p>The paper’s numbers are striking: <strong>100B parameters of Engram in host memory, less than 3% end-to-end throughput loss.</strong></p><p>HBM is an order of magnitude more expensive than regular RAM. This means you can expand “pattern capacity” to enormous scales at relatively low cost.</p><h3>A Future Worth Imagining: Dynamic Memory Updates</h3><p>If Engram is “static memory,” the natural question is: <strong>can we update it dynamically?</strong></p><p>The architecture seems to have potential here. Want the model to learn a new pattern? Insert a record into Engram. Found an error? Modify the corresponding embedding. No GPU, no backpropagation, maybe not even a service restart.</p><p>The paper doesn’t explore this — it focuses on static Engram in pretraining, emphasizing deterministic indexing benefits. “Real-time knowledge injection” opens a can of worms:</p><ul><li>How do new embeddings align with the backbone’s representations?</li><li>How do you ensure write consistency?</li><li>How do you rollback mistakes?</li><li>Can one corrupted memory “infect” other outputs?</li></ul><p>These need additional mechanisms. But the vision is compelling: if these problems are solved, future models might look like:</p><ul><li>A relatively <strong>stable reasoning core</strong> (Transformer + MoE), rarely updated</li><li>A <strong>continuously evolving pattern library</strong> (Engram), frequently updated</li></ul><p><strong>Reasoning capability and pattern knowledge, decoupled.</strong></p><h3>DeepSeek’s Bigger Play: Efficiency as Strategy</h3><p>Zoom out to the strategic level.</p><p>Since V2, DeepSeek has consistently charted a different course from the big three labs: <strong>not bigger, but smarter</strong>.</p><ul><li><strong>MLA</strong>: Same KV cache quality with less memory</li><li><strong>MoE</strong>: Same capability with fewer active parameters</li><li><strong>mHC</strong> (Multi-Head Collaboration): Same results with more stable training</li><li><strong>Engram</strong>: Same output with less compute</li></ul><p>Every move targets <strong>efficiency</strong>.</p><p>There’s a lesson here: <strong>When you can’t beat giants at strength, compete on technique.</strong></p><p>What if a 27B model matches a 100B model’s performance? What if you achieve the same output quality at 1/10th the inference cost?</p><p><strong>This is DeepSeek’s real moat.</strong></p><p>Engram plays directly into this strategy. The architecture is inherently compute-friendlier — 100B table entries can live in memory, not HBM. DeepSeek is using architectural innovation to hedge against compute disadvantages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*4sGKEXN__5-IrdPQ.jpg" /></figure><h3>The Deeper Truth About Intelligence</h3><p>Here’s the bigger picture.</p><p>Humans aren’t intelligent just because we can perform complex logical reasoning. We also have massive stores of <strong>stereotyped patterns</strong> — language habits, common-sense associations, fixed collocations. These don’t need reasoning. They need retrieval.</p><p>Looking at the past few years of LLM development: we’ve pushed reasoning capability to extremes, but pattern retrieval has always been <em>simulated through computation</em>.</p><p>Engram changes this: <strong>let lookup be lookup, let reasoning be reasoning.</strong></p><p>Fifty years ago, symbolic AI and connectionist AI parted ways.</p><p>Today, they may be converging in a new form.</p><p><strong>DeepSeek is standing at that intersection.</strong></p><p><em>If you found this analysis useful, follow for more deep dives into AI systems and LLM architectures.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02c62a9ac1cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LTX-2: Open-Source Video Generation Finally Gets Sound Right]]></title>
            <link>https://medium.com/@ljingshan6/ltx-2-open-source-video-generation-finally-gets-sound-right-64d23dfc2ff8?source=rss-324a5242cbda------2</link>
            <guid isPermaLink="false">https://medium.com/p/64d23dfc2ff8</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Jingshan Li]]></dc:creator>
            <pubDate>Mon, 12 Jan 2026 20:53:02 GMT</pubDate>
            <atom:updated>2026-01-12T20:53:02.960Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A deep dive into why this 19B joint text-to-video+audio model marks a turning point for the open-source community — and how its engineering really sets it apart.</strong></p><h3>TL;DR</h3><ul><li><strong>LTX-2 is the first open-source model to deliver truly joint video+audio generation</strong> in a production-ready package — not cascaded pipelines, but genuine end-to-end synthesis.</li><li><strong>Asymmetric dual-stream architecture</strong> (14B video + 5B audio) smartly allocates parameters based on information density differences between modalities.</li><li><strong>Full engineering stack released</strong>: bf16, fp8, fp4 quantized versions, distilled 8-step variant, plus spatial/temporal upsamplers — all with NVIDIA RTX acceleration support.</li><li><strong>Bottom line</strong>: If you want to experiment with open-source text-to-audio-video today, LTX-2 is your best starting point.</li></ul><h3>The Gap LTX-2 Fills</h3><p>We’ve officially entered the “talkies” era of AI video generation. Sora supports audio-synchronized generation. Wan 2.5 has native audio-video sync. Tencent shipped HunyuanVideo-Foley specifically for video dubbing.</p><p>But here’s the problem: <strong>the good stuff is either closed-source or cascaded.</strong> Truly open-source, end-to-end joint generation models that you can actually run? Those have been rare.</p><p>LTX-2 fills this gap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*LeOzseTWKugsr3Mw" /></figure><p>“Why does cascaded vs. joint matter?” you might ask. Can’t you just generate video first, then dub audio on top — or vice versa?</p><p>Not really. There’s a fundamental structural problem with cascaded approaches: <strong>they cannot model the joint distribution of visual and auditory content.</strong></p><p>Consider someone walking on cobblestones. The footsteps should be crisp, percussive. But what if they’re walking on carpet? Sand? Fresh snow? Completely different sounds. And if the scene is in a cavernous hall, you need reverb. A narrow corridor? Different echo characteristics altogether.</p><p>This complex audio-visual dependency cannot be captured by cascaded methods. When you generate video, you don’t know what audio to match. When you generate audio afterward, the video is locked — you can only “approximate” a fit.</p><p>LTX-2 takes a different approach: <strong>true joint generation, where video and audio are synthesized simultaneously within the same model, mutually influencing each other throughout the process.</strong></p><h3>Architecture Deep Dive: Three Key Design Choices</h3><h3>1. Asymmetric Dual-Stream Design</h3><p>The paper states LTX-2 uses a 14B-parameter video stream paired with a 5B-parameter audio stream (though the conclusion section mentions “13B video backbone + 3B audio stream” — likely to be updated; Hugging Face hosts it as ltx-2-19b).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*IVVtEQm848Q_R2y5" /></figure><p>Regardless of exact numbers, the core principle is clear: <strong>asymmetry by design.</strong></p><p>Why asymmetric? Because video and audio have fundamentally different information densities.</p><p>A single 1080p video frame contains over 2 million pixels. The corresponding audio latent might be just a few hundred tokens. A symmetric design — like Ovi’s dual 5B streams — risks either underfitting video or overfitting audio.</p><p>Lightricks chose to allocate most parameters to the video stream while keeping the audio stream lightweight but focused. This “right-size each modality” approach matches the actual generation demands.</p><h3>2. Bidirectional Cross-Modal Attention</h3><p>This is where the joint generation magic happens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*4dINoMuIXdzlSM-o" /></figure><p>Within each Transformer block, video and audio don’t just perform self-attention independently — they also perform cross-attention with each other. Crucially, this cross-attention is <strong>bidirectional</strong>: video attends to audio, and audio attends to video.</p><p>Going deeper: they use 1D temporal RoPE in cross-attention, focusing exclusively on <strong>temporal alignment</strong> rather than spatial dimensions.</p><p>This makes intuitive sense. Audio is inherently a 1D temporal signal — it doesn’t care about spatial structure within a video frame. It only needs to know: at this timestamp, what’s happening on screen? What sound should I produce?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*3HS3V4Ml3o-ouetL" /></figure><p>The paper includes a fascinating cross-attention visualization. You can observe audio attention tracking a passing car, switching between two people during conversation, and concentrating on lip regions during close-up speech. The model genuinely learns audio-visual semantic correspondence — not just naive temporal alignment.</p><h3>3. Thinking Tokens for Text Understanding</h3><p>While not a novel concept, its application here is particularly apt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*52CaMMrA6JJ1rKm5" /></figure><p>Rather than feeding LLM embeddings (from Gemma3–12B) directly to the diffusion model, they pass through a “Text Connector” module that inserts learnable “thinking tokens.”</p><p>The paper describes these as “global information carriers,” but a more intuitive interpretation: <strong>they provide the model computational space to integrate and process textual information before conditioning the generation.</strong></p><p>This matters especially for speech generation. Producing natural speech requires more than lexical semantics — you need rhythm, stress patterns, emotional intonation. These higher-level features may require extra representational capacity to encode.</p><h3>Engineering Completeness: Where LTX-2 Actually Shines</h3><p>Let’s be honest: a paper plus base weights isn’t that impressive anymore in 2026. What makes LTX-2 genuinely usable is its <strong>engineering polish</strong>.</p><p>The official Hugging Face model card lists:</p><ul><li><strong>ltx-2–19b-dev</strong>: Full version, bf16 precision, training-ready</li><li><strong>ltx-2–19b-dev-fp8</strong>: FP8 quantized, ~50% VRAM reduction</li><li><strong>ltx-2–19b-dev-fp4</strong>: NVFP4 quantized, further VRAM reduction with minimal quality loss</li><li><strong>ltx-2–19b-distilled</strong>: Distilled variant, 8-step inference with CFG=1</li><li><strong>ltx-2-spatial-upscaler-x2</strong>: 2× spatial super-resolution for multi-scale pipelines</li><li><strong>ltx-2-temporal-upscaler-x2</strong>: 2× temporal interpolation for higher framerates</li></ul><p>This full stack bridges the gap from “can run” to “actually usable.”</p><p><strong>NVIDIA’s CES 2026 blog specifically highlighted the LTX-2 + ComfyUI combination.</strong> They reported RTX-accelerated LTX-2 generating 4K@50FPS video, with NVFP8 approximately 2× faster than bf16, and NVFP4 reducing VRAM usage by 60%. This is essentially official endorsement that “this thing runs on consumer RTX cards.”</p><p>That’s why I call LTX-2 a milestone: <strong>it’s currently the most engineering-complete open-source T2AV release.</strong></p><h3>How LTX-2 Compares to Alternatives</h3><p>LTX-2 isn’t alone in the open-source T2AV space. Several players have emerged recently:</p><p><strong>Ovi</strong> also does end-to-end joint generation but takes a <strong>symmetric dual-tower</strong> approach — both video and audio branches share identical architectures, initialized from Wan 2.2 5B. Block-level bidirectional cross-attention prioritizes synchronization precision. Different trade-offs compared to LTX-2’s asymmetric design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*aeAdN2sHfvphyJvd" /></figure><p><strong>UniVerse-1</strong> takes an “<strong>expert stitching</strong>” approach, combining pretrained video and music models to avoid training from scratch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*pZSOBE9cGeI0YS-V" /></figure><p><strong>HunyuanVideo-Foley</strong> deserves separate mention — it’s not joint generation but <strong>V2A (video-to-audio)</strong>, a cascaded approach. However, it’s exceptionally well-executed for cascaded methods, with strong audio quality and synchronization. For use cases where video already exists and only needs sound, Foley might actually be more suitable than joint generation models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*Mn1IQ0GMS0qYykKD" /></figure><p>You can sense this space rapidly differentiating, with multiple technical routes being validated simultaneously.</p><h3>Performance Highlights</h3><p>LTX-2 currently offers the <strong>longest duration among open-source T2AV models</strong> — 20 seconds. In the open-source landscape, that’s genuinely competitive. Ovi caps at 10 seconds; Wan 2.5 also at 10 seconds. (Though Sora’s 25 seconds remains out of reach for now.)</p><p>The paper reports at 720p/121 frames: Wan 2.2 requires 22.3 seconds/step, while LTX-2 needs only 1.22 seconds/step. <strong>Approximately 18× faster</strong> — and remember, LTX-2 is simultaneously generating audio.</p><p>This speed advantage stems from latent space design: video uses the highly-compressed deep spatial-temporal latent space inherited from LTX-Video; audio uses mel-spectrogram latents compressed to 25 tokens per second.</p><p>Combined with the engineering stack mentioned above, LTX-2 has genuine potential for production environments.</p><h3>Why Joint Generation Beats Cascaded Approaches</h3><p>This point deserves deeper exploration.</p><p>Mathematically, cascaded methods model either P(video|text) × P(audio|video) or P(audio|text) × P(video|audio). Joint methods model P(video, audio|text).</p><p>The former is a product of conditional distributions. The latter is a true joint distribution.</p><p>The critical difference: <strong>joint distributions capture all inter-modal dependencies, while cascaded methods lose some.</strong></p><p>Consider someone speaking. Lip shape, voice, facial expression, body language — these are tightly coupled. If you generate video first, lip movements are locked; audio can only “accommodate” those movements. With joint generation, the model simultaneously considers lip-voice matching, producing inherently more coherent results.</p><p>The paper articulates this beautifully:</p><blockquote><em>“</em>Lip synchronization is primarily driven by audio, the acoustic environment — such as reverberation or foley — is dictated by the visual context.<em>”</em></blockquote><p>Lip sync is audio-driven (speech determines mouth movement). But acoustic environment is visually-determined (the space dictates how sound behaves). This bidirectional dependency can only be fully captured through joint modeling.</p><h3>Final Thoughts</h3><p>LTX-2 delivers on both fronts: technically interesting (asymmetric dual-stream, bidirectional cross-attention, thinking tokens) and engineering-ready (full quantization suite, upsamplers, NVIDIA ecosystem support). And it’s open-source.</p><p>Compared to closed-source Sora and Veo, LTX-2 still has gaps. But open-source value lies in community iteration. With NVIDIA RTX acceleration support, running this on consumer hardware is no longer a dream.</p><p>This space is just heating up — more work will follow. But if you want to experiment with open-source T2AV today, <strong>LTX-2 is your starting point.</strong></p><p><em>If you found this analysis useful, follow me for more deep dives into AI/ML systems and engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64d23dfc2ff8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DeepSeek-R1: The Open-Source Playbook That Changes Everything]]></title>
            <link>https://medium.com/@ljingshan6/deepseek-r1-the-open-source-playbook-that-changes-everything-0467d1d6e11c?source=rss-324a5242cbda------2</link>
            <guid isPermaLink="false">https://medium.com/p/0467d1d6e11c</guid>
            <category><![CDATA[deepseek]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Jingshan Li]]></dc:creator>
            <pubDate>Sat, 10 Jan 2026 21:42:48 GMT</pubDate>
            <atom:updated>2026-01-10T21:42:48.535Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How a $294K training run and radical transparency are reshaping the AI landscape</em></p><h3>TL;DR</h3><ul><li><strong>DeepSeek-R1’s updated paper reveals failed experiments</strong> (PRM, MCTS) that most labs keep secret — a paradigm shift in research transparency</li><li><strong>Training cost: $294K</strong> — orders of magnitude cheaper than GPT-4’s estimated $100M+, proving algorithmic efficiency beats brute-force scaling</li><li><strong>GRPO (Group Relative Policy Optimization)</strong> eliminates the need for critic networks, simplifying RL training while maintaining performance</li><li><strong>Complete methodology disclosed</strong>: four-stage training pipeline, distillation recipes, and intermediate checkpoints all open-sourced</li></ul><p><strong>Bottom line</strong>: This isn’t just model release — it’s a reproduction guide that democratizes frontier AI research.</p><p>In 2026, DeepSeek dropped something unexpected: they transformed their R1 research paper from a traditional results showcase into a comprehensive <strong>open-source reproduction manual</strong>. After spending an entire evening dissecting the updated 86-page document, one thing became clear — this level of transparency is unprecedented in the field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*YUVOiMhFLHQ3cpt8.jpg" /></figure><h3>The Radical Move: Publishing What Doesn’t Work</h3><p>Academic papers follow an unspoken rule: showcase success, bury failures. Pick any top-tier conference paper, and you’ll find the same narrative arc: “<em>We propose method A, achieving B% improvement over baseline.</em>” Clean. Linear. No messy detours.</p><p>DeepSeek broke this convention by documenting their <strong>dead ends</strong> in detail.</p><h3>Why Process Reward Models (PRM) Failed</h3><p>The intuition behind PRMs is compelling — if we want models to reason, why not score each reasoning step? The reality proved far more complex:</p><ul><li><strong>Defining “a step” in general reasoning tasks</strong> is fundamentally ambiguous</li><li><strong>Verifying step correctness</strong> requires either unreliable automated labeling or non-scalable human annotation</li><li><strong>Model-based PRMs trigger reward hacking</strong> — the model learns to game the reward signal rather than actually reason</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*tXdWcZ7dVpnU8wkm.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*5QNOSC3Jp0HDg36s.jpg" /></figure><h3>The MCTS Dead End</h3><p>Monte Carlo Tree Search, famously used in AlphaGo, seemed like a natural fit. But language models present a different challenge:</p><ul><li><strong>Search space explodes exponentially</strong> — tens of thousands of possible tokens at each position</li><li><strong>Training a reliable value model</strong> to guide search creates a chicken-and-egg problem</li></ul><p>In most labs, these explorations would remain classified information. DeepSeek chose to share them publicly. This decision has profound implications — future researchers can bypass these dead ends entirely, and the insights from these failures become community knowledge.</p><p>Anyone who’s worked with reinforcement learning knows it’s <strong>ten times trickier</strong> than supervised learning. Reward shaping, exploration-exploitation balance, training instability debugging — each issue can stall progress for weeks. DeepSeek just handed the community a detailed map of mines to avoid.</p><h3>The $294K Question: What This Price Tag Really Means</h3><p>The updated paper provides granular resource consumption data:</p><ul><li><strong>R1-Zero phase</strong>: 64×8 H800 GPUs, ~198 hours</li><li><strong>R1 training phase</strong>: Same configuration, ~80 hours</li><li><strong>SFT dataset construction</strong>: ~5,000 GPU hours</li><li><strong>Total estimated cost: $294,000</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*hmQYCqX3jwa8gIu2.jpg" /></figure><p>For context, OpenAI’s GPT-4 training reportedly cost north of <strong>$100 million</strong> (though OpenAI never confirms these figures). Even with conservative estimates, we’re talking about an order of magnitude difference.</p><h3>Important Caveats</h3><p>This $294K figure specifically covers H800 rental costs for the R1/R1-Zero phases. Earlier small-scale experiments with A100s and preparatory work aren’t fully accounted for, so it’s not a complete lifecycle cost. Performance-wise, DeepSeek-R1 excels on many benchmarks but doesn’t dominate across every task.</p><p><strong>Even with these qualifications, the cost efficiency is remarkable.</strong></p><p>This demonstrates that <strong>algorithmic efficiency</strong> offers far more headroom than we imagined. The industry’s default answer to every problem — “not good enough? Add more parameters! Need better results? Add more data! Training unstable? Add more GPUs!” — deserves serious reconsideration.</p><p>While $294K remains out of reach for individual researchers, it shifts AI development from “only for tech giants” to “accessible for well-funded research institutions.” DeepSeek effectively lowered the barrier to entry by an order of magnitude.</p><h3>GRPO: The Technical Core You Need to Understand</h3><p>If you remember one thing from this article, make it <strong>Group Relative Policy Optimization (GRPO)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*CzIMTefa1OTpw5hc.jpg" /></figure><p>Traditional PPO (Proximal Policy Optimization) has a persistent challenge when applied to language models — it <strong>requires a critic network to estimate value functions</strong>. Training this critic is difficult, and keeping it synchronized with the policy network often leads to instability.</p><p>GRPO’s core insight: <strong>eliminate the critic entirely and compare responses within groups</strong>.</p><h3>How It Works</h3><p>For a given prompt, generate multiple responses. Rank them by reward, then update the policy based on relative performance within the group.</p><p>A response’s advantage isn’t its absolute reward — it’s its <strong>relative standing within the group</strong>.</p><h3>Why This Matters</h3><ol><li><strong>No value model (critic) required</strong> — dramatically simplifies training architecture</li><li><strong>Insensitive to absolute reward scale</strong> — only relative ranking matters</li><li><strong>Naturally multi-task friendly</strong> — different reward scales across tasks aren’t problematic</li></ol><p>This concept isn’t entirely novel — variants of REINFORCE have explored similar territory. But GRPO’s real contribution is <strong>validation at scale</strong>. PPO can approximate GRPO under certain hyperparameter settings (like specific GAE λ values), but it’s brittle and difficult to tune. DeepSeek proved GRPO works reliably at production scale, which is itself a significant contribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*cPruhHhLw2XDUmq4.jpg" /></figure><p>The paper also details their reward design:</p><ul><li><strong>Correctness rewards</strong> for accurate outputs</li><li><strong>Safety rewards</strong> for aligned behavior</li><li><strong>Language consistency rewards</strong> to prevent mid-reasoning language switching (addressing user feedback about unexpected English mixing in multilingual contexts)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*IFETqTDVswvEdE0u.jpg" /></figure><h3>The Four-Stage Training Pipeline: Teaching Models to Actually Think</h3><p>DeepSeek structures their training into four distinct phases, each with clear objectives:</p><h3>Stage 1: Cold Start</h3><p><strong>Supervised Fine-Tuning (SFT) with high-quality step-by-step reasoning data</strong> to teach the model the format of structured thinking.</p><p>The data volume is modest but quality is paramount — primarily long Chain-of-Thought samples. The paper candidly notes this stage makes reasoning <strong>appear more human-like</strong> as an <strong>engineering heuristic</strong>, not because the model achieves human intelligence. We shouldn’t over-trust outputs just because they “look thoughtful.”</p><h3>Stage 2: Reasoning-Focused RL</h3><p>This is the core phase. <strong>GRPO reinforces reasoning abilities</strong> on math and coding tasks using approximately <strong>26,000 math problems and 17,000 coding problems</strong> as RL prompts.</p><p>The key challenge: how do you define “good reasoning”?</p><p>DeepSeek chose an elegantly simple approach: <strong>only evaluate final answer correctness, without constraining the reasoning process itself</strong>.</p><p>This seems counterintuitive. Won’t models just guess randomly?</p><p>Their rationale: constraining the process means facing all the PRM challenges mentioned earlier — defining correct steps, labeling, preventing reward hacking.</p><p>Instead, <strong>let the model explore freely</strong>. As long as final answers are correct, the intermediate methodology doesn’t matter. Surprisingly, reasoning strategies the model “discovers” independently prove more robust than hand-crafted ones.</p><h3>Stage 3: Rejection Sampling</h3><p>Use the Stage 2 model to <strong>generate numerous responses across broader tasks</strong>, then filter high-quality samples with a reward model for another SFT round.</p><p>This step <strong>distills RL-learned capabilities to more general scenarios</strong>.</p><h3>Stage 4: All-Scenario RL</h3><p>Run RL across all task types with added safety constraints. This final polish ensures comprehensive capability coverage.</p><h3>Intermediate Checkpoints: Hidden Treasures</h3><p>The paper releases performance data from multiple training checkpoints — a goldmine for understanding <strong>how capabilities emerge</strong>.</p><p>One fascinating phenomenon: the model’s “aha moment.” Before a certain training threshold, reasoning appears mechanical and rote. Past that critical point, the model suddenly exhibits <strong>self-reflection and error correction</strong>.</p><p>This emergence is highly non-linear. It’s not “1,000 steps = 1% improvement, 2,000 steps = 2% improvement.” Instead, performance plateaus, then suddenly jumps.</p><p>This explains why RL is so effective for reasoning — it doesn’t “teach” specific knowledge but rather <strong>activates latent reasoning capacity</strong>. In a sense, models “learn” reasoning during pretraining but don’t “realize” they possess this ability. RL flips the switch.</p><h3>Distillation: The Practical Path for Resource-Constrained Teams</h3><p>DeepSeek didn’t just open-source R1 — they released a full family of distilled models (1.5B, 7B, 8B, 14B, 32B, 70B) with detailed distillation methodology:</p><p><strong>R1 generates high-quality reasoning data → SFT on smaller models → (Optional) lightweight RL fine-tuning</strong></p><p><strong>Distillation is dramatically more efficient than training RL from scratch.</strong></p><p>The reason is straightforward — RL exploration is expensive, with most sampling being ineffective. But with a “teacher” model producing high-quality data, you can learn directly without wasteful exploration.</p><p>The paper reports that <strong>R1-distilled Qwen-7B even outperforms earlier native-RL versions</strong> on math and coding benchmarks.</p><p><strong>This is a game-changer for resource-limited individuals and small labs.</strong></p><p>You don’t need hundreds of GPU-hours running RL. Use DeepSeek’s open models to generate data, distill onto your base model, and achieve substantial reasoning improvements.</p><h3>What This Really Means for Open-Source AI</h3><p>Let me share a personal take.</p><p>DeepSeek’s update signals a new era for the open-source AI community.</p><p>The old playbook: Meta releases Llama with weights only. No training details. Reproduction requires guesswork.</p><p>The new playbook: DeepSeek publishes <strong>complete technical details</strong>, <strong>training procedures</strong>, <strong>data recipes</strong>, and <strong>failure experiences</strong>.</p><p>This isn’t “open source” in the traditional sense — it’s <strong>“open book”</strong>, a graduate-level tutorial with full transparency.</p><p>Some might ask: aren’t they worried about being copied?</p><p>I think DeepSeek understands a crucial truth — <strong>in AI, speed matters more than secrets</strong>.</p><p>Today’s closely-guarded technique will likely be independently discovered in three months. Rather than playing defense against competitors, it’s better to run faster. And true open-source — genuine, comprehensive open-source — helps you <strong>build ecosystems, attract talent, and create positive feedback loops</strong>.</p><p>This is why I believe DeepSeek’s potential extends beyond their models (though they are impressive). It’s their chosen path — <strong>trading openness for technical leadership</strong> — that represents the only viable strategy to challenge the OpenAI-Anthropic duopoly. So far, this approach is proving remarkably effective.</p><p>Some argue DeepSeek open-sources because they haven’t found viable monetization, making openness a fallback strategy. There’s truth to this. Business models remain a significant challenge for open-source AI. Giving away your best work for free inherently limits revenue compared to closed-source alternatives.</p><p>But remember: <strong>technical authority converts to commercial value</strong>. Linux, Android, Kubernetes — the companies behind these open-source projects eventually found their commercial niche.</p><p>Whether DeepSeek can follow this path remains to be seen. But right now, <strong>they’ve given the community an invaluable gift</strong>.</p><h3>Final Thoughts</h3><p>The updated paper spans 86 pages with extremely high information density. Nearly every chapter contains actionable insights, particularly the RL training sections — details you won’t find elsewhere.</p><p>The magic of open-source communities lies in knowledge flow. Today’s confusion might be tomorrow’s clarity, shared by someone working on similar problems.</p><p>The AI industry in 2026 is proving even more dynamic than anticipated. DeepSeek continues to demonstrate both technical excellence and strategic vision.</p><p>And the rest of us? We get to build on their foundation.</p><p><em>If you found this analysis valuable, consider following for more deep dives into AI systems and engineering. The frontier is moving fast, and transparency like this doesn’t come often.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0467d1d6e11c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DeepSeek’s mHC Architecture Quietly Disrupts a 10-Year Deep Learning Constant]]></title>
            <link>https://medium.com/@ljingshan6/deepseeks-mhc-architecture-quietly-disrupts-a-10-year-deep-learning-constant-d4c5921315c2?source=rss-324a5242cbda------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4c5921315c2</guid>
            <category><![CDATA[deepseek]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[llm-architecture]]></category>
            <dc:creator><![CDATA[Jingshan Li]]></dc:creator>
            <pubDate>Wed, 07 Jan 2026 22:16:01 GMT</pubDate>
            <atom:updated>2026-01-07T22:16:01.361Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A manifold-constrained redesign of residual connections delivers 7+ point benchmark gains while adding only 6.7% training overhead.</strong></p><h3>TL;DR</h3><ul><li><strong>The problem</strong>: ByteDance’s Hyper-Connections (HC) promised richer residual flows, but training collapsed at scale — signals were amplified 3000× in some cases.</li><li><strong>The solution</strong>: DeepSeek constrains residual matrices to <em>doubly stochastic matrices</em>, guaranteeing spectral norm ≤ 1 and composability under multiplication.</li><li><strong>Why it matters</strong>: This elegant mathematical constraint enables stable training at 27B scale while preserving HC’s expressivity gains.</li><li><strong>Bottom line</strong>: mHC achieves +7.2 points on BBH, +6.9 on DROP, and +7.1 on GSM8K — all from restructuring how layers connect, not adding parameters.</li></ul><h3>Nobody Touches Residual Connections. DeepSeek Did.</h3><p>Residual connections have ruled deep learning since ResNet in 2015. The formula is burned into every practitioner’s brain:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*k5jgixDZ1UyiiIeqqRNHEg.png" /></figure><p>For a decade, nobody touched it. <strong>Why mess with perfection?</strong></p><p>The identity mapping property is simply too good — signals flow from shallow to deep layers without modification, decay, or amplification. Gradients backpropagate the same way. Stable, reliable, boring.</p><p>Then ByteDance proposed Hyper-Connections (HC) in 2024: <em>What if we expand that single residual stream into n parallel streams, mixed by learnable matrices?</em></p><p>The idea is compelling. The original residual connection is essentially a 1×1 “matrix” — just the scalar 1. HC replaces it with learnable n×n matrices, dramatically increasing topological complexity <strong>without adding FLOPs</strong> (just small matrix operations).</p><p>HC showed promise in small-scale experiments.</p><p><strong>Then they scaled up. And it exploded.</strong></p><h3>Why Hyper-Connections Fail at Scale</h3><blockquote><strong><em>🚨 The smoking gun</em></strong><em>: At ~12k training steps, a 27B HC model’s loss suddenly spiked. Gradient norms went haywire.</em></blockquote><p>The reason isn’t mysterious once you think about it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*14oXKsiEGQ6w0YXm" /><figcaption>HC exhibits training instability at scale 27B: the relative loss gap compared to mHC abruptly widens around step 12k, accompanied by pronounced fluctuations in gradient norm.</figcaption></figure><p>When you multiply layer-wise residual matrices across L layers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*HVvyaEh6rdkG_G4bnweZ6g.png" /></figure><p>These matrices are <em>unconstrained</em>. The composite mapping can diverge in any direction.</p><p>The paper measures something called “Amax Gain Magnitude” — in HC, this value hit <strong>3000</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*zPwVWu8P8W4zmaF8" /><figcaption>The residual mapping of HC deviates significantly from the identity mapping when combined across single and cross-layers, with Amax Gain Magnitude exhibiting extreme peaks (reaching magnitudes of 3000), corresponding to the risk of explosion/vanishing of forward signals and backward gradients.</figcaption></figure><p>That means signals were amplified 3000× passing through the residual stream. In large-scale training, this is a prelude to explosion.</p><h3>The mHC Solution: Doubly Stochastic Matrices</h3><p>DeepSeek’s fix is mathematically elegant:</p><blockquote><strong><em>Constrain residual matrices to lie on the manifold of doubly stochastic matrices.</em></strong></blockquote><h3>What Are Doubly Stochastic Matrices?</h3><p>A “perfectly balanced” matrix where:</p><ul><li>All elements are non-negative</li><li><strong>Every row sums to 1</strong></li><li><strong>Every column sums to 1</strong></li></ul><p>Example of a 3×3 doubly stochastic matrix:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*2Da2Py7S5v83K9UY" /></figure><p>This structure has an inherent “energy conservation” property — <strong>it cannot arbitrarily amplify or shrink signals.</strong></p><h3>Why This Choice Is Genius</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v4od_GZee_2mcz9vJMs44Q.png" /></figure><h3>The Beautiful Generalization</h3><blockquote><em>When residual stream width n=1, the doubly stochastic constraint degenerates to scalar 1 — the original identity mapping.</em></blockquote><p><strong>mHC doesn’t abandon ResNet. It wraps ResNet into a larger framework.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*rRqalORevWmkxg1_" /><figcaption>Representative single-layer/composite mapping visualisations for HC and mHC; forward signal gain (row sum) and reverse gradient gain (column sum) are simultaneously annotated in the figure. The mHC mapping more closely approaches the stable propagation target of ‘forward-reverse gain ≈ 1’.</figcaption></figure><h3>Sinkhorn Iteration: Elegant Projection Algorithm</h3><p>Theory is nice. But <strong>how do you ensure matrices stay on the doubly stochastic manifold during training?</strong></p><p>Enter a classic algorithm: <strong>Sinkhorn-Knopp iteration</strong>.</p><p>The intuition is like ping-pong:</p><pre>1. Normalize each row (row sums → 1)<br>2. Normalize each column (column sums → 1)<br>3. But now row sums aren&#39;t 1 anymore... normalize again<br>4. Repeat, back and forth</pre><p><strong>Remarkably, this converges.</strong> Theoretically requires infinite iterations, but ~20 iterations suffice in practice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*Z62xQL6bVu_9CP60" /></figure><p>The formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*80FQcmBEFbQxeFUz14pSJQ.png" /></figure><p>Where Tr is row normalization and Tc is column normalization.</p><blockquote><strong><em>💡 Key detail</em></strong><em>: Doubly stochastic matrices require non-negative elements. What if the original matrix has negatives? DeepSeek applies elementwise exponentiation first — $e^x$ is always positive.</em></blockquote><h3>Why Sinkhorn Is Perfect for Deep Learning</h3><p>AdvantageImpact<strong>Fully differentiable</strong>Gradients backpropagate directly, no special handling<strong>Highly parallelizable</strong>Pure matrix operations, GPU-friendly<strong>Fast convergence</strong>20 iterations is negligible on modern hardware</p><p>DeepSeek takes it further: they pack the entire Sinkhorn iteration into a single CUDA kernel, recomputing during backward pass on-chip rather than storing intermediate results. Saves HBM bandwidth and memory.</p><h3>Engineering Excellence: The 6.7% Overhead Story</h3><p><strong>A great idea without efficient implementation is worthless.</strong></p><p>One reason HC never achieved widespread adoption (beyond instability) was <strong>speed</strong>. Traditional residual connections read/write O(C) elements per layer. HC expands this to O(nC). On GPUs, <strong>compute isn’t the bottleneck — memory bandwidth is.</strong> This extra I/O compounds at scale.</p><h3>How mHC Solves This</h3><blockquote><strong><em>Aggressive Kernel Fusion</em></strong></blockquote><p>Merge scattered small operations into one large kernel. Data reads from HBM once, writes once — all intermediate computation happens in on-chip memory. They implemented mixed-precision fused kernels (bfloat16 compute + float32 accumulation) using TileLang, even deferring RMSNorm’s division to after matrix multiplication (mathematically equivalent, saves one memory round-trip).</p><blockquote><strong><em>Selective Recomputation</em></strong></blockquote><p>This sounds counterintuitive: <em>Why “recompute”? Why not just store results?</em></p><p><strong>Because storing intermediate results consumes memory.</strong> In large-scale training, memory is often the tightest constraint — it directly determines batch size.</p><p>Those small mHC matrix operations (e.g., 32×32 matmuls) are blazingly fast to recompute. But storing all intermediates occupies substantial memory.</p><p>“Space for time” or “time for space”? mHC chooses the latter — minimal recomputation overhead for larger batches and higher throughput.</p><p>They even derived the optimal recomputation block size:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/196/1*-19QzzOyecjivfKhyViNAw.png" /></figure><p>This formula specifies how many layers to pack into one recomputation unit for time-space optimality. Concise, elegant, theoretically grounded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*BWxI7zp-l6GAvmg5" /><figcaption>mHC’s division between “activated storage” and “reverse recomputation” within consecutive Lr layers, and the derivation of peak memory usage and optimal recomputation block size based on this division.</figcaption></figure><blockquote><strong><em>Distributed Training Integration</em></strong></blockquote><p>DeepSeek-V3 uses a pipeline parallelism strategy called DualPipe. mHC needed seamless integration:</p><ul><li>Critical Fpost,res kernels run on dedicated high-priority CUDA streams</li><li>Attention deliberately avoids persistent kernels, allowing mHC operations to preempt when needed</li><li>Recomputation logic fully decoupled from pipeline communication</li></ul><h3>The Result?</h3><blockquote><strong><em>n=4 mHC adds only 6.7% training time overhead.</em></strong></blockquote><p>Consider what 6.7% buys you: +7 points on BBH, +7 points on GSM8K, rock-solid training stability. <strong>This trade-off is absurdly favorable.</strong></p><h3>Benchmark Results: Complete Domination</h3><p>27B model results are frankly outrageous:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*f7bITIFgOEO_Ty6m" /><figcaption>Comparison of Model 27B’s zero/few-shot performance across 8 downstream benchmarks. mHC outperforms the baseline on most tasks and surpasses HC on multiple tasks.</figcaption></figure><p><strong>mHC beats baseline across all 8 benchmarks</strong>, and outperforms unstable HC on most tasks.</p><blockquote><strong><em>📊 Key insight</em></strong><em>: +7.2 points on BBH at 27B scale is remarkable. This comes purely from restructuring residual topology — no additional parameters, no extra data, no training procedure changes.</em></blockquote><p>Stability matters even more. mHC’s loss curve is as smooth as baseline’s; gradient norms stay stable. HC’s loss spike at ~12k steps? <strong>In production training, such instabilities are catastrophic.</strong></p><p>Scaling experiments tell the same story: from 3B to 9B to 27B, mHC maintains its advantage over baseline. <strong>This isn’t small-model overfitting — it’s genuine architectural improvement.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*L6ezi9a_Y-S45ac5" /><figcaption>mHC’s scaling characteristics: its relative advantage over the baseline remains consistent across compute scaling (compute-optimal configurations for varying computational budgets) and token scaling (training process trajectories).</figcaption></figure><h3>Bigger Picture: What mHC Reveals About Deep Learning</h3><h3>Residual Connections Still Have Room to Evolve</h3><p>Before mHC, I assumed residual connections were a “solved problem.” He Kaiming’s <em>Identity Mappings in Deep Residual Networks</em> explained the theory perfectly. Just copy the pattern, move on.</p><p>mHC proves that even the most fundamental, seemingly “perfect” designs have room for generalization. The key is finding the right constraint — one that expands expressivity while preserving good properties.</p><p>Doubly stochastic matrices hit the sweet spot between “freedom” and “stability.” <strong>Elegant leverage.</strong></p><h3>DeepSeek’s Systems Engineering Is World-Class</h3><p>From V2’s MLA to V3’s DualPipe to mHC’s kernel optimization, DeepSeek demonstrates systems engineering at the international frontier.</p><p>Algorithmic innovation matters. But efficiently landing innovations matters equally. Many good academic ideas fail to propagate because overhead is too high. <strong>mHC constraining overhead to 6.7% is genuine engineering excellence.</strong></p><blockquote><em>We’re no longer in the era where “a good idea gets you a top venue paper.” You need to train it, quantize it, deploy it. Otherwise your innovation collects dust in a PDF.</em></blockquote><h3>Macro Design May Be the Next Goldmine</h3><p>Recent years have focused on micro design: attention variants (MQA, GQA, MLA), FFN structures (MoE, GLU). This is like polishing individual bricks to perfection.</p><p>But macro design — how layers connect, how information flows — has been relatively ignored. This is the building’s structural framework.</p><p><strong>Maybe we’ve been using cutting-edge bricks to build the most traditional house.</strong></p><p>DenseNet proposed dense connections years ago but was abandoned due to memory overhead. Hardware is stronger now, engineering techniques have advanced. Perhaps it’s time to revisit this direction.</p><h3>The Takeaway</h3><blockquote><strong><em>The “obvious defaults” in deep learning are often the biggest breakthrough opportunities.</em></strong></blockquote><p>Residual connections were one. LayerNorm might be another. Softmax could be next.</p><p>mHC is a rare “algorithm + systems” dual-hardcore paper. Beautiful mathematical insight paired with solid engineering execution.</p><p>DeepSeek is relentless. They found new possibilities in residual connections. What’s next? LayerNorm? Softmax?</p><p><strong>I’ll be watching.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4c5921315c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recursive Language Models Could Redefine How LLMs Handle Long Context]]></title>
            <link>https://medium.com/@ljingshan6/recursive-language-models-could-redefine-how-llms-handle-long-context-f0a85a7f8b6d?source=rss-324a5242cbda------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0a85a7f8b6d</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[gpt]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Jingshan Li]]></dc:creator>
            <pubDate>Mon, 05 Jan 2026 20:34:57 GMT</pubDate>
            <atom:updated>2026-01-05T20:34:57.135Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A simple paradigm shift — treating input as an environment to navigate, not content to read — delivers 91% accuracy where GPT-5 previously failed.</strong></p><h3>TL;DR</h3><ul><li><strong>The core insight</strong>: Instead of cramming million-token prompts into a Transformer, let the model interact with input programmatically — slicing, searching, and querying it like a codebase.</li><li><strong>Why it works</strong>: REPL-based interaction sidesteps the O(N²) attention bottleneck and eliminates “context rot” entirely.</li><li><strong>Recursive sub-calls</strong>: Models can self-orchestrate task decomposition, spawning sub-LLM calls through code — true agentic behavior.</li><li><strong>Bottom line</strong>: Long context isn’t a Transformer architecture problem; it’s an interface design problem. RLM may be one of the most important Agent paradigm shifts of 2026.</li></ul><h3>A Deceptively Simple Idea That Actually Works</h3><p>When I first saw MIT’s Recursive Language Models paper, I expected another long-context trick — clever positional encoding, maybe some sparse attention magic.</p><p>I was wrong.</p><p>The core idea can be summarized in one sentence:</p><blockquote><strong><em>Don’t feed massive prompts directly into neural networks. Treat them as external environments and let the model query them programmatically.</em></strong></blockquote><p>Here’s how it works in practice:</p><ol><li>Load the user’s prompt as a Python variable in a REPL environment</li><li>Tell the model: “Your input is now this variable. Write code to peek at it, slice it, regex-search it.”</li><li>Allow the model to recursively spawn sub-LLM calls to handle subtasks</li></ol><p>That’s it. That’s the entire method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*FZ3AjQZRcILjrwd2.jpg" /><figcaption>Schematic of the Recursive Language Model (RLM) paradigm: RLM treats ultra-long input prompts as variables within a REPL environment, selectively reading information through procedural operations (peek/slice/match/decompose), whilst recursively triggering submodel invocations to accomplish divide-and-conquer and aggregation; The model’s external interface remains input string → output answer (Source: Zhang et al., arXiv:2512.24601v1, Fig. 3; CC BY 4.0)</figcaption></figure><p>The results? <strong>GPT-5 fails completely on 10M+ token inputs due to context limits. With RLM, it achieves 91% accuracy.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*0N7KwetbT3C4bRLp.jpg" /><figcaption>Foundational Model vs RLM: Performance Degradation Comparison Across Input Length and Task Complexity. Across the S-NIAH, OOLONG, and OOLONG-Pairs tasks, as input expanded from 213,213 to 218,218 tokens, the foundational GPT-5 exhibited faster performance degradation; RLM degraded more slowly and could process input ranges exceeding the 272K context window. (Source: Zhang et al., arXiv:2512.24601v1, Fig. 3; CC BY 4.0)</figcaption></figure><p>GPT-5’s 272K context window waves a white flag at 10 million tokens. RLM lets it fight again — and win.</p><h3>Why This Paradigm Shift Is So Effective</h3><p>For years, the long-context race has been a single-track competition: <em>How do we make Transformers “see” more tokens?</em></p><p>Every major advancement — RoPE, ALiBi, sparse attention mechanisms like Longformer and BigBird, compression techniques like Infini-Attention — follows the same logic: <strong>optimize the neural network itself to handle longer sequences</strong>.</p><p>But here’s the question nobody was asking:</p><blockquote>Why must neural networks directly “see” these tokens at all?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A9oDGSo711Y31A4XjRgxAg.png" /></figure><p>When you face a million-line codebase, do you read it line by line from top to bottom?</p><p>Of course not.</p><p>You check the directory structure. You grep for keywords. You jump to relevant files. You use IDE search to pinpoint what matters.</p><p><strong>You navigate information with symbolic tools, not by scanning every character with your eyes.</strong></p><p>That’s exactly what RLM does. It shifts the model from a <em>reading paradigm</em> to a <em>navigating paradigm</em>.</p><h3>Why the REPL Environment Matters</h3><p>An ablation study in the paper reveals something interesting: <em>RLM with REPL vs. RLM with REPL without sub-calls</em>.</p><p>Key findings:</p><ol><li><strong>Simply letting models interact with prompts through code</strong> (peeking, slicing, regex matching) already delivers massive performance gains</li><li><strong>Adding recursive sub-call capability</strong> provides further improvements on information-dense tasks</li></ol><p>The first point is intuitive. Consider finding a specific piece of information in a 1-million-token document:</p><ul><li><strong>Traditional LLM</strong>: Encode all 1 million tokens, let attention find the relevant parts</li><li><strong>RLM</strong>: Run print(len(prompt)), regex-search for keywords, read only the relevant paragraphs</li></ul><p>One is O(N²) attention computation. The other is O(N) string search.</p><p><strong>These aren’t even in the same league.</strong></p><p>There’s a phenomenon called <em>context rot</em> — as context length increases, the model’s “attention” to each token gets diluted. With a million tokens, the needle you’re looking for drowns in an ocean of hay.</p><p>The REPL environment enables precise, selective information access. <strong>It bypasses context rot entirely.</strong></p><h3>Recursive Sub-Calls: The Real Core of the Design</h3><p>Recursive sub-calls mean the model can write code like this in the REPL:</p><pre>results = []<br>for chunk in split_into_chunks(prompt, size=1000):<br>    answer = sub_llm_call(f&quot;Summarize key information: {chunk}&quot;)<br>    results.append(answer)<br>final_answer = sub_llm_call(f&quot;Based on the following, answer: {results}&quot;)</pre><p>The model is <strong>orchestrating its own multi-call pipeline through code</strong>.</p><p>In other words: <strong>the model designs its own task decomposition strategy</strong>.</p><p>Previously, we used LangChain or DSPy to orchestrate multiple LLM calls — pre-designed pipelines, fixed scaffolding.</p><p>With RLM, the model decides how to break down problems, how to allocate subtasks, how to aggregate results.</p><p>Isn’t this… <em>actual agent behavior</em>?</p><p>Consider one striking result from the paper: On the OOLONG-Pairs task (which requires pairwise information aggregation), GPT-5’s direct F1 score is 0.04 — essentially random guessing. With RLM, it reaches 58%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*9GLWXYxMJltWTq-a.jpg" /><figcaption>(Source: Zhang et al., arXiv:2512.24601v1, Fig. 3; CC BY 4.0)</figcaption></figure><p>The reason? This task’s information density grows <strong>quadratically</strong> with input length. Every additional chunk doubles the number of pairs to consider.</p><p>Pure attention can’t handle quadratic dependency relationships at scale. But RLM can explicitly enumerate all pairs in code, then dispatch them to sub-LLMs for processing.</p><p><strong>Programmatic control flow handles complex information dependencies that neural networks simply can’t manage natively.</strong></p><h3>Omar Khattab’s Consistent Philosophy</h3><p>One of the paper’s authors is Omar Khattab, creator of DSPy.</p><p>If you’re familiar with DSPy, you’ll notice that RLM shares its philosophical DNA:</p><blockquote><strong><em>Don’t force neural networks to brute-force every problem. Let them collaborate with symbolic tools.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*tjAZlv3_uDXBudM8.jpg" /></figure><p>DSPy uses programming language paradigms to orchestrate LLM calls. RLM uses a REPL to let LLMs interact with input data.</p><p>Both stem from the same insight: <strong>Pure end-to-end neural networks have limitations. Symbolic systems can fill those gaps.</strong></p><p>Looking at the broader trajectory, <strong>symbolic computation might be making a comeback — not replacing neural networks, but serving as their external scaffolding</strong>.</p><h3>Limitations Worth Noting</h3><p><strong>1. Cost Variance Is Unpredictable</strong></p><p>Median cost is similar to base models, but 95th percentile costs can be several times higher. In production, RLM might be a “bomb” — most requests are cheap, but occasionally one explodes your budget.</p><p>You can’t predict how large the model’s self-constructed task strategy will be. This poses real challenges for system stability and cost control.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*lQoMsCkn_FskX4BM.jpg" /><figcaption>Long-tail distribution of RLM costs (quantile perspective): Total API costs for RLM and baseline methods displayed at the 25th/50th/75th/95th quantiles. RLM achieves comparable or lower median costs than the baseline, yet exhibits significant increases at high quantiles (tail), reflecting the high variance cost risk associated with longer trajectories. (Source: Zhang et al., arXiv:2512.24601v1, Fig.3; CC BY 4.0)</figcaption></figure><p><strong>2. Worse Performance on Short Contexts</strong></p><p>For shorter inputs, RLM actually underperforms direct model calls. The orchestration overhead isn’t worth it for simple queries. You’d need a router to decide when to use RLM versus direct inference.</p><p><strong>3. Limited Recursion Depth</strong></p><p>The paper only tests depth-1 recursion — sub-calls are direct LLM calls that don’t recurse further. Would deeper recursion help? Would costs explode exponentially? These questions remain unanswered.</p><p><strong>4. Heavy Dependency on Code Generation Quality</strong></p><p>RLM fundamentally requires models to write correct Python code for task handling. If code generation fails, the entire chain collapses.</p><p>The paper uses GPT-5 and Qwen3-Coder-480B — both elite code-generation models. Results with weaker models may suffer significantly.</p><h3>Where This Could Go Next</h3><p>Several research directions seem particularly promising:</p><p><strong>RLM + RL Training</strong></p><p>The current RLM is purely an inference-time strategy with no additional training. But the paper notes that models sometimes make “inefficient” decisions — redundant validation calls, suboptimal decomposition strategies. RL optimization for REPL usage could squeeze out additional performance gains.</p><p><strong>Async Sub-Call Optimization</strong></p><p>Current implementation is synchronous — each sub-call blocks until results return. But many subtasks are naturally parallelizable. How much latency could async/await-style sub-calls eliminate?</p><p><strong>Expanded Tool Access</strong></p><p>The REPL currently only supports Python. Natural extensions include database queries, vector retrieval, and external API calls. Then models could operate not just on string variables, but on the entire external world.</p><p>Perhaps a stepping stone toward general-purpose agents.</p><h3>The Bigger Picture</h3><p>The most valuable contribution of this paper isn’t a technique. It’s a <strong>reconceptualization of the relationship between LLMs and input data</strong>.</p><p>Previously, we thought of LLMs as functions: <em>input → output</em></p><p>RLM offers a different perspective: <strong>LLMs should be agents, and inputs are part of the environment they interact with.</strong></p><p>This perspective shift has unexpected implications.</p><p>The answer to long context might not lie in Transformer architecture improvements. It might lie in the interface between Transformers and symbolic systems.</p><p>2026 just started, and this paper already feels like a best paper candidate.</p><p><em>If you’re building agent systems or working on long-context applications, RLM’s paradigm is worth serious consideration. The future of LLM capabilities might be less about bigger context windows and more about smarter interaction patterns.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0a85a7f8b6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>