惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
Martin Fowler
Martin Fowler
爱范儿
爱范儿
IT之家
IT之家
Last Week in AI
Last Week in AI
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
aimingoo的专栏
aimingoo的专栏
G
Google Developers Blog
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
The Cloudflare Blog
MyScale Blog
MyScale Blog
T
The Blog of Author Tim Ferriss
Hugging Face - Blog
Hugging Face - Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
The GitHub Blog
The GitHub Blog
腾讯CDC
Microsoft Security Blog
Microsoft Security Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Local Gradient Accumulation Speeds Training 1.7
Papers Mache · 2026-06-21 · via DEV Community

Papers Mache

PACI removes the bubbles that cripple asynchronous pipeline parallelism and shaves as much as 1.69× off time‑to‑accuracy compared with the fastest synchronous flush baseline. The paper demonstrates this gain on GPT‑2 Medium pre‑training while preserving the same peak memory usage. By locally accumulating gradients, PACI limits how far a micro‑batch can drift from the current weight version, so the pipeline stays fully busy without any global synchronization.

Before PACI, the dominant strategy was the 1F1B‑flush schedule: it guarantees forward/backward weight consistency but forces empty slots whenever stages wait for gradients to return. Asynchronous alternatives avoided those idle cycles but required heavyweight tricks such as weight stashing, version prediction, or duplicate parameter copies, and they often suffered from unstable training dynamics. The community therefore treated bubble‑free execution as a trade‑off against convergence reliability.

PACI matches the stability and final perplexity of synchronous 1F1B‑flush, retains the same peak memory footprint, achieves fully utilized pipeline throughput, and improves training time‑to‑accuracy by up to 1.69× over the fastest flush baseline [1]. In the reported GPT‑2 Medium experiments the method reduced the wall‑clock time to reach a target perplexity by 1.69×, showing that bounded inconsistency can be exchanged for substantial efficiency without sacrificing model quality.

The throughput advantage extends beyond the flush baseline: “the resulting comparison shows the main scaling implication of PACI: it reaches the throughput regime of ZB‑2p, and in several cases exceeds it, while retaining the memory footprint of 1F1B‑flush and ZB‑1p” [1]. This means that a single 8‑stage pipeline can run as fast as a two‑process ZeRO‑2 configuration, yet without the extra memory overhead those configurations normally impose.

The study is limited to a single GPT‑style pre‑training workload and an 8‑stage pipeline; it does not explore very deep pipelines, encoder‑only models, or training regimes with extreme learning‑rate schedules. Moreover, the bound on version drift is tied to the chosen accumulation window, so tuning may be required when the pipeline depth or micro‑batch size changes dramatically. This suggests that PACI’s benefits need validation on a broader suite of architectures before it can be declared a universal replacement for flush schedules.

If the reported speedups hold across other model families, engineering teams can obtain roughly a 40 % reduction in hardware cost per trained model (corresponding to the 1.69× speedup) by swapping their current 1F1B implementation for PACI, without buying extra GPUs or increasing memory. The practical path is clear: replace the flush synchronizer with the local‑accumulation wrapper shipped in the authors’ repository and re‑run the standard time‑to‑accuracy benchmark to confirm the expected gain.

References

  1. Breaking the Bubble: Asynchronous Pipeline Parallel Training with Bounded Weight Inconsistency