MAE: More Adaptive Video Encoder for Consistent Low Latency in High-Quality Real-Time Communication
Hua Meng (Hong Kong University of Science and Technology), Yufan Zhuang (Hong Kong University of Science and Technology), Yasna Noushirvani (Hong Kong University of Science and Technology), Xiangjie Huang (Hong Kong University of Science and Technology), Zili Meng (Hong Kong University of Science and Technology)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 2 · Reliability Through Verification
Overview
Real-time communication (RTC) applications—ranging from video conferencing and cloud gaming to remote surgery—have become a foundational pillar of modern internet infrastructure, commanding a market valued at over $11 billion in 2024. Despite decades of networking research and protocol optimization, user experience remains plagued by frustrating latency spikes and playback stalls. Large-scale production data reveals that the 99th percentile (P99) latency in RTC sessions frequently exceeds 200 milliseconds. In practical terms, this translates to an average of one stall every 30 seconds, severely degrading conversational fluidity and interactivity.

Key moments
- 0:00 Introduction and real-time communication latency problem
- 2:00 RTC pipeline analysis and why downstream solutions fail
- 4:00 Key insight: Encoder is the bottleneck in reaction time
- 6:00 How current encoders use virtual buffers to manage bitrates
- 8:30 MAE design: Dynamic virtual buffer size for quick adaptation
- 10:30 Leveraging congestion control algorithm internal states for pre-reaction
- 13:30 Performance results, stall reduction, and quality comparison
- 15:00 Takeaways and conclusion
MAE: More Adaptive Video Encoder for Consistent Low Latency in High-Quality Real-Time Communication
Speakers: Hua Meng (Hong Kong University of Science and Technology); Yufan Zhuang (Hong Kong University of Science and Technology); Yasna Noushirvani (Hong Kong University of Science and Technology); Xiangjie Huang (Hong Kong University of Science and Technology); Zili Meng (Hong Kong University of Science and Technology)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=Rtjr_5AHOEY
Overview
Real-time communication (RTC) applications—ranging from video conferencing and cloud gaming to remote surgery—have become a foundational pillar of modern internet infrastructure, commanding a market valued at over $11 billion in 2024. Despite decades of networking research and protocol optimization, user experience remains plagued by frustrating latency spikes and playback stalls. Large-scale production data reveals that the 99th percentile (P99) latency in RTC sessions frequently exceeds 200 milliseconds. In practical terms, this translates to an average of one stall every 30 seconds, severely degrading conversational fluidity and interactivity.
This talk, presented at USENIX NSDI by researchers from the Hong Kong University of Science and Technology, introduces MAE (More Adaptive video Encoder), a novel systems framework designed to achieve consistent low latency in high-quality RTC. The core thesis of the research is that existing latency reduction efforts have largely focused on the wrong components of the network pipeline. While prior work predominantly targets routers, transport sockets, and congestion control algorithms, MAE identifies the video encoder itself as the primary bottleneck. By treating the encoder as an uncoordinated black box, traditional systems fail to react quickly enough to bandwidth fluctuations, resulting in severe packet accumulation and delay spikes.
MAE solves this fundamental mismatch without requiring modifications to underlying video codecs, congestion control algorithms (CCAs), or network protocols. By dynamically modulating the encoder's internal virtual buffer size and leveraging internal signals from existing transport congestion controllers, MAE achieves an 86% reduction in stall ratio while preserving perceptual video quality. This work matters to infrastructure engineers and system designers because it demonstrates that significant performance gains in distributed real-time systems can be unlocked through cross-component coordination rather than wholesale architectural replacement.
Background
▶ Watch: Introduction and real-time communication latency problem (0:00)
To understand why real-time communication systems still suffer from chronic stalling after more than 20 years of development, one must examine the end-to-end RTC pipeline as a fluid transport system. Data originates at the video source (the encoder), travels through transport sockets and shared network routers, and finally reaches the receiver. Under ideal conditions, the average latency across this pipeline sits comfortably around 20 milliseconds, well below the threshold of human perception. However, because the internet relies on shared networking infrastructure, available bandwidth fluctuates dynamically, occasionally dropping by factors as large as 50x.
When downstream bandwidth suddenly contracts, data accumulates within the network buffers. Over the years, systems researchers have attempted to mitigate this by modifying router queuing disciplines and transport protocols to make them more sensitive to bandwidth drops. While these interventions successfully drain downstream packet queues, they fundamentally misallocate responsibility. As the speakers analogize, pinching a water hose in the middle only drains the downstream section while data continues to accumulate behind the pinch point. The bottleneck is merely shifted from downstream routers to upstream sources.
Empirical profiling of standard frameworks like WebRTC reveals that the encoder accounts for over 77% of the total reaction time when bandwidth drops occur. Commercial video encoders typically require more than 200 milliseconds to adjust their output bitrate, triggering end-to-end latency surges of up to 800 milliseconds. This sluggishness stems from how encoders manage video frame complexity. Because natural video content exhibits variable spatial and temporal complexity, forcing an encoder to adhere to a strict, flat target bitrate for every frame would severely degrade quality during complex scenes and waste bandwidth during static scenes.
To resolve this tension, standard encoders utilize an internal mechanism called a virtual buffer. The virtual buffer acts as a reservoir, adaptively borrowing bytes from static, low-complexity frames and allocating them to high-complexity frames. While this buffer optimization is beneficial during stable network conditions, it becomes catastrophic during a bandwidth drop. Even when the target bitrate is reduced, the virtual buffer continues to permit large frame size overshoots, injecting excessive data into an already congested network and generating massive delay spikes.
Key Findings
▶ Watch: Key insight: Encoder is the bottleneck in reaction time (4:00)
The central discovery of the MAE research is that the sluggish reaction time of modern video encoders is the primary root cause of P99 playback stalls in RTC, and that this bottleneck can be eliminated by granting the encoder dynamic awareness of network congestion states. Rather than accepting the encoder as an opaque black box governed solely by static target bitrate allocations, MAE introduces mechanisms to control frame-level overshoots precisely when network degradation is detected or anticipated.
Benchmarking across diverse networking environments—including Wi-Fi, Ethernet, and cellular topologies—demonstrates that MAE substantially outperforms traditional WebRTC baselines. The headline findings and quantitative results include:
- Stall Reduction: MAE reduces the overall session stall ratio by 86% compared to standard WebRTC configurations.
- Quality Preservation: Compared to conservative baseline strategies that completely eliminate virtual buffers (preventing all overshoots at the cost of severe video degradation), MAE achieves an 11% improvement in perceptual video quality by retaining buffering capacity during stable network periods.
- Protocol Agnosticism: MAE successfully integrates with alternative transport congestion controllers such as Copa, yielding a 47% reduction in stall ratio without any algorithmic redesign of the underlying CCA.
- Zero Resource Overhead: Because MAE reuses existing internal states and parameters, it introduces negligible CPU, memory, or encoding-time overhead, maintaining resource utilization parity with standard benchmark frameworks.
- Minimal Bandwidth Penalty: Aggressive latency control introduces a minor bandwidth trade-off, reducing overall throughput utilization by at most 4%.
Technical Deep Dive
▶ Watch: MAE design: Dynamic virtual buffer size for quick adaptation (8:30)
The architecture of MAE centers on two primary technical innovations: dynamic virtual buffer sizing and congestion control state reuse for pre-reaction.
Dynamic Virtual Buffer Size Management
In traditional video coding, the virtual buffer size is maintained at a relatively large, fixed capacity to maximize compression efficiency and visual fidelity. When a bandwidth drop occurs, the encoder gradually steps down its target bitrate, but the large virtual buffer continues to authorize large frame sizes, resulting in data accumulation.
MAE addresses this by introducing a runtime-adjustable virtual buffer size linked directly to network stability:
- Stable State: When the network is stable, MAE maintains a large virtual buffer, allowing the encoder to shift bytes freely and sustain high video quality.
- Detection State: Upon sensing a bandwidth drop, MAE dynamically shrinks the virtual buffer size so that it matches the target bitrate exactly, completely suppressing frame overshoots. This prevents new data accumulation and allows the transport pipeline to drain existing queues rapidly.
- Recovery State: Once monitoring indicates that latency has returned to acceptable baseline levels, MAE gradually restores the virtual buffer to its larger capacity, smoothly recovering video quality.
Pre-Reactive Signaling via CCAs
Relying solely on reactive bitrate adjustments after a drop is detected leaves a window of vulnerability. To achieve proactive latency control, MAE taps into the internal states of existing transport congestion control algorithms (CCAs). Modern CCAs continuously monitor network metrics such as packet delay and loss, evaluating them against internal thresholds to determine when congestion is occurring.
Rather than modifying the primary threshold—which would improperly restrict packet output rates and lead to underutilized bandwidth—MAE introduces a secondary, fractional threshold (e.g., half the standard threshold). When network latency exceeds this pre-warning threshold, the transport layer sends a lightweight signal to the encoder. This triggers a pre-reaction phase where the encoder preemptively limits its virtual buffer overshoot capacity before a full bandwidth drop is officially declared. Consequently, the rate of data accumulation slows down smoothly, cushioning the transition when the actual drop signal arrives.
Experimental Setup & Results
▶ Watch: Leveraging congestion control algorithm internal states for pre-reaction (10:30)
The evaluation of MAE was conducted using rigorous end-to-end emulation and real-world network traces spanning multiple transport layers and physical media types.
- Testbeds and Environments: The framework was implemented and tested within the WebRTC framework and evaluated across heterogeneous network conditions, including congested Wi-Fi access points, variable cellular networks (4G/5G), and wired Ethernet links with injected jitter and bandwidth throttling.
- Baselines: MAE was benchmarked against standard commercial WebRTC configurations (relying on default encoder rate control and virtual buffer management) as well as conservative zero-overshoot encoders that disable buffering entirely.
- Metrics: Performance was assessed using a two-dimensional optimization plane balancing latency (measured via P99 frame delivery delays and stall frequencies) against video quality (quantified via perceptual quality metrics). Secondary evaluation vectors included CPU utilization, memory footprint, encoding time, and overall bandwidth utilization efficiency.
- Headline Results: Across all tested modalities, MAE established a superior Pareto frontier. While conservative zero-overshoot baselines successfully mitigated latency spikes, they suffered from noticeable degradation in video fidelity during complex motion scenes. Conversely, default WebRTC maintained high quality during stable periods but experienced severe P99 latency spikes during bandwidth contractions. MAE successfully bridged this gap, delivering the low-latency profile of conservative models alongside the high-fidelity visual output of unconstrained encoders. Furthermore, extending MAE to alternative CCAs like Copa confirmed its generalizability, proving that the technique is not tightly coupled to a single congestion control implementation.
Practical Implications
▶ Watch: Takeaways and conclusion (15:00)
For infrastructure teams, video streaming architects, and real-time communication platform deployers, MAE offers a highly actionable blueprint for improving user experience without incurring massive engineering costs. Because MAE is implemented as an algorithmic wrapper and coordination mechanism rather than a breaking change, it requires zero modifications to existing encoders, congestion control algorithms, or wire protocols.
Deployers can integrate MAE into existing WebRTC stacks by simply exposing internal hooks between transport socket congestion monitors and encoder virtual buffer controls. This makes the technique immediately viable for large-scale production environments where swapping out underlying hardware encoders or proprietary video codecs (such as libvpx, OpenH264, or hardware-accelerated NVENC/AMF blocks) is impractical.
However, practitioners must navigate certain tradeoffs. While MAE's 4% maximum throughput penalty is negligible for most interactive applications, systems engineers tuning real-time pipelines must carefully calibrate the pre-reaction thresholds. Setting the pre-warning trigger too aggressively could result in premature quality throttling during transient network jitter, whereas setting it too conservatively would fail to prevent initial delay spikes.
Key Takeaways
- Encoder Bottleneck: The slow response time of video encoders—not downstream routers or transport sockets—is the primary root cause of P99 playback stalls in real-time communication.
- The Danger of Over-the-Air Overshoots: Standard virtual buffers permit frame-size overshoots that inject excess data into degrading networks, triggering severe delay accumulation.
- Dynamic Virtual Buffering: MAE eliminates latency spikes by dynamically shrinking the virtual buffer to match target bitrates during congestion events and expanding it during stable periods to preserve quality.
- Transport State Reuse: By listening to internal pre-warning thresholds within existing congestion control algorithms, MAE enables pre-reactive encoder adjustments without altering outgoing packet pacing.
- Plug-and-Play Integration: The framework requires no modifications to underlying encoders, CCAs, or network protocols, achieving an 86% reduction in stall ratio while maintaining full backward compatibility and negligible resource overhead.
About the Speaker(s)
Hua Meng is a researcher at the Hong Kong University of Science and Technology (HKUST), presenting this work on behalf of a collaborative research team that includes Yufan Zhuang, Yasna Noushirvani, Xiangjie Huang, and Zili Meng, all affiliated with HKUST. Their collective research focuses on networked systems, real-time communication protocols, and machine learning-driven systems optimization.
Reviews
→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)
All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)