LAI #153: What Keeps a Deep Network From Falling Apart?
From the publisher’s feed, collected in the ZeroLabs newsroom.
DeepSeek’s mHC, loss spikes that aren’t failures, faster ML cold starts on Kubernetes, agent deployment on Microsoft Foundry, and Bahdanau attention.Good morning, AI enthusiasts!A loss spike doesn’t mean your training run is failing. A smooth loss curve doesn’t mean it’s healthy. To read a run correctly, you need to know what actually keeps a network stable and which signals show trouble early.Here’s what you’ll learn this week:How DeepSeek’s mHC keeps the residual path stableHow to tell normal training instability from a run that’s failingWhich of four Kubernetes setups cut a heavy Python ML service’s startup timeTwo ways to deploy LangGraph, CrewAI or OpenAI Agents SDK agentsHow Bahdanau attention taught translation models where to look, years before TransformersPlus: Meta’s research on a model that improves its own memory, a prompt fix for models that stop halfway through a task, a community poll on how long you’d wait for 40% cheaper inference, and a community project for running teams of coding agents.Let’s get into it!What’s AI Weeklyhttps://medium.com/media/f300b189c4673f1840862816be61a443/hrefThis week in What’s AI, I am walking through Meta’s Self-Improving Memory. Self-Improving Memory is research from Meta’s RAM team where one model, Kimi K2.6, improves how it manages its own memory in two steps. First, a meta agent of the same model reads the agent’s past runs and rewrites the two prompts that say what to read from memory and what to save (harness optimization). Then the model is fine-tuned with LoRA on its best runs, with the optimized prompts swapped back to the generic ones, so part of the gain moves into its weights (harness distillation). We will cover the training, experiment, memory designs, the loop, the prompts, and what you can take away for your own systems. Read the full article here or watch the video on YouTube.AI Tip of the DayAnthropic researchers found that Claude Fable 5.2 likes to stop halfway through a job. It may list the remaining work, offer to continue, or stop after a recoverable error, such as a timeout, especially at low and medium effort.Anthropic recommends adding explicit persistence instructions to the system prompt:“Please avoid stopping while you still owe work the user asked for. Be persistent and do not stop unless needed.”“If you notice yourself inviting the user to redirect you or offering to wait, instead proceed on the next part of the task.”The rest of the prompt tells the model to continue through normal errors and timeouts instead of handing them back to the user. When Anthropic replayed the same coding sessions at medium effort, about half as many ended with unfinished work.Claude Code already sends these instructions to Fable 5.2. If you run Fable 5.2 in another harness, you may not have them, so you can copy the full prompt from Anthropic’s guide. Anthropic also reports about 30% more output tokens with these instructions, so account for the added cost.The same model can finish a task in Claude Code and stop halfway in another application because the harness gives it different instructions for persistence, errors, and when to stop. This is one of the reasons AI Engineering for Production spends so much time on the system around the model: the prompts, tools, state, permissions, stopping rules, and evaluation that determine how reliably the model works.More than 10,000 people picked up our first book, Building LLMs for Production. The new book picks up from there with a much larger focus on agents and the engineering around increasingly capable models. You can join the waitlist to hear the release date first.— Louis-François Bouchard, Towards AI Co-founder & Head of CommunityBlack Friday for the community: 40% off Agent Engineering + a year of MentorshipThe engineers many of you know from our Discord can now be behind you all year.What: Agent Engineering (two production agents, several mini projects) + 12 months of MentorshipPrice: $719.40 instead of $1,398 with the code blackfriday40, so you save $678.60Until: Sunday, December 6, 11:59 p.m. EasternThat’s $1.97 a day, with a 30-day money-back guarantee.👉 Join us for the year at 40% offLearn AI Together Community Section!Featured Community post from the DiscordWrongh built Yggdrasil, an open-source system for running larger projects through teams of Claude Code and Codex agents. You work through one main session, which delegates to a project manager, team leads, and worker agents, while plans, decisions, approvals, and progress are recorded in a tracker. The workflow is inspired by PRINCE2 and includes approval points, separate working copies for agent teams, and support for work that can continue while you are away within limits you set. If you already use Claude Code or Codex and want a more structured way to hand off longer projects, check it out and support a fellow community member. If you have any questions or feedback, share it in the thread!AI poll of the week!A 40% cost reduction is enough for most of you to accept some extra latency, but not much. 59% would either keep the fastest option or wait no more than 15 minutes.That suggests cheaper, slower inference has a clear place for work that can run asynchronously, but latency still matters for anything interactive. I would queue tasks such as research, evaluation, and overnight workflows, but probably not wait 15 minutes for something that breaks the flow of my work.What AI work would you wait a few hours for if it cut costs by 40%, and what would you always pay more to get immediately? Let’s talk in the thread!Collaboration OpportunitiesThe Learn AI Together Discord community is flooding with collaboration opportunities. If you are excited to dive into applied AI, want a study partner, or even want to find a partner for your passion project, join the collaboration channel! Keep an eye on this section, too — we share cool opportunities every week!1. Flashbulbeni13 is working on a process automation system and is looking for collaborators who can help build it. If this is something you would like to contribute to, connect with them in the thread!2. Jz2462 is building an open-source study workspace and is looking for collaborators to help with canvas UX, local OCR, and E2E tests. If you have a few hours every week to work on projects, reach out to them in the thread!3. Mesmoiron is part of a team, and for their small incubator idea, they are looking for people who really like to build and test new ideas in the space of AI agents, chatbots, ML, etc. If this is your space, contact them in the thread!Meme of the week!Meme shared by bin4ry_d3struct0rTAI Curated SectionArticle of the weekDeepSeek’s mHC explained: The Highway Inside Every Transformer and the One Rule That Keeps It Stable by ManjeetkumarThis article explains how DeepSeek’s mHC constrains the mixing matrices to be doubly stochastic and why that keeps the residual path stable. It covers Birkhoff’s theorem, Sinkhorn-Knopp normalization, and NumPy examples that track signal gain across layers. It also includes DeepSeek’s 27B results, where mHC beat the standard model on all eight benchmarks with about 6.7% additional training overhead.Our must-read articles1. From 101s to 27s: Four Ways to Boot a Heavy Python ML Service Faster on Kubernetes by Aaryan KangteA heavy Python ML service can spend most of its startup time downloading dependencies before the application starts. This article tests four deployment setups for the same PaddleOCR GPU service and measures startup time for each one. Moving the libraries to EFS removes the large image download, but Python imports become slower because thousands of small files have to cross the network. The final setup keeps large native libraries on EFS, moves small files and compiled bytecode to local disk, and reduces startup on a fresh node from about 101 seconds to 27 seconds.2. Bring Your Own Framework: Two Ways to Deploy AI Agents with Microsoft Foundry by KatakamvivekMicrosoft Foundry supports agents built with frameworks such as LangGraph, Semantic Kernel, CrewAI, and the OpenAI Agents SDK. This article explains two deployment options. Hosted agents run as containers on Foundry-managed compute, while external agents stay on services such as AKS, Container Apps, or Azure Functions and send traces to Foundry through OpenTelemetry. It covers identity, tracing, evaluation, state, endpoint security, and the operational differences between the two setups.3. Bahdanau Attention Finally Explained: How Neural Translation Learned Where to Look by Tilak VarmaEarly neural machine-translation systems compressed the source sentence into one fixed-length vector, which caused performance to drop on longer sentences. This article explains how Bahdanau attention uses a bidirectional encoder and an alignment network to score source positions and build a different context for each decoding step. It walks through the calculations with a small example and a NumPy implementation, then covers the original WMT ’14 results. It also explains the difference between Bahdanau’s additive attention and the attention used later in Transformers.4. The Other Side of Gradient Descent by HayananLoss curves can oscillate or spike during successful training, while smooth curves can still hide problems. This article covers the Edge of Stability, catapult phases, river-valley dynamics, and grokking to explain why temporary instability can appear during optimization. It also covers Softmax Collapse, PaLM training spikes, and delayed divergence caused by growing logits under low-precision training. The article suggests tracking the largest output logits together with loss to help tell normal training behavior from a run that is starting to fail.If you are interested in publishing with Towards AI, check our guidelines and sign up. We will publish your work to our network if it meets our editorial policies and standards.LAI #153: What Keeps a Deep Network From Falling Apart? was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.