Coordinated Networking for On-Device Agent-Augmented Real-Time Communication

summary

Video file (mp4)

The gist

The gist The HAFS framework coordinates concurrent human and agent flows through an app-guided multi-flow transport to guarantee both high live video streaming quality and low agent response latency.

In short

HAFS coordinates concurrent human video streaming and agent context flows using an app-guided transport layer. It solves flow contention by controlling sending rates based on frame queuing delays and schedules agent contexts to minimize response time, leading to 1.5x higher video quality and a 31% reduction in agent latency.

Key concepts

Human-agent flow contention
This occurs when human video flows use delay-based control while agent context flows use loss-based control. This mismatch causes the human video stream to experience queuing delays because the two types of traffic are not managed together.
App-guided multi-flow transport
HAFS uses a unified app layer orchestrator to jointly manage sending rates for both live video and agent context flows based on their specific application needs. This allows for fine-grained control over how these different data types share the network resources effectively.
Frame-level queuing-aware rate control
The system adjusts the agent's sending rate based on how much delay is currently building up at the video frame level. It ramps up the total sending speed until it gets close to the frame deadline, ensuring high video quality while respecting time constraints.
Multi-agent flow scheduling
This component determines which agent context flows should be sent first within a shared bandwidth allocation. It uses a two-machine flow shop problem formulation to schedule transmissions, aiming to minimize the total time required for all agent responses.

Terminology used across episodes

This episode discusses

The paper

Coordinated Networking for On-Device Agent-Augmented Real-Time Communication · Read on arXiv

Goodsol Lee, Juheon Yi, Jinglu Wang, Haowen Xu, Saewoong Bahk, Yan Lu

Seoul National University · Microsoft Research Asia

AI agents are enabling a new paradigm of agent-augmented real-time communication (RTC), where humans focus on high-level collaboration, while agents autonomously retrieve, analyze, and generate information in real time to support their interactions. These apps enable new experiences across various domains: for example, when corporate employees co-author a legal document, their agents can discuss and draft on their behalf, sparing them the burden of manually reviewing each other's work. As existing cloud-based agents suffer from privacy risks and unscalable server costs, on-device agent-augmented RTC offers a promising alternative. However, this on-device paradigm introduces a new networking challenge: contention between concurrent traffic flows generated by humans (for live video streaming) and agents (for sending context files for analysis). We design HFS, a framework to ensure both high live video quality and low agent response latency in agent-augmented RTC apps. We achieve the goal through an app-guided multi-flow transport approach, where a unified app-layer orchestrator jointly controls the sending rates of live video and agent context flows based on their heterogeneous app requirements. Our prototype built atop WebRTC and llama.cpp demonstrates that HAFS outperforms baselines, achieving 1.5x higher video quality while reducing agent response time by 31%.

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: We're looking at the paper: "Coordinated Networking for On-Device Agent-Augmented Real-Time Communication".

Jane: Here's the gist of the paper. The gist The HAFS framework coordinates concurrent human and agent flows through an app-guided multi-flow transport to guarantee both high live video streaming quality and low agent response latency.

Tom: On-device agent-augmented real-time communication (RTC) offers a promising alternative to cloud-based agents by addressing privacy risks and unscalable server costs, especially with the rise of Small Language Models (SLMs) that can run on-device while achieving comparable accuracy through task-specific fine-tuning The core challenge introduced by this paradigm is coordinating concurrent, heterogeneous network flows generated by humans (for live video streaming) and agents (for sending context files for analysis) Design Challenges HAFS is designed to solve two key challenges in on-device agent-augmented RTC apps 1.

Jane: Human-agent flow contention involves human video flows using delay-based congestion control and agent context flows using loss-based congestion control, which causes the human video flow to suffer from queuing delays 2.

Tom: Multi-agent flow contention occurs when multiple contexts need to be streamed concurrently, leading to inter-stream contention and inflated queuing delays that increase agent response time HAFS Approach HAFS addresses these challenges via an app-guided multi-flow transport approach where a unified app-layer orchestrator jointly controls the sending rates of live video and agent context flows based on their heterogeneous app requirements This approach is enabled by modern RTC architectures where end-to-end paths are split into sender–SFU and SFU–receiver links with significantly shorter RTTs, allowing for precise per-flow rate control akin to in-network scheduling The framework consists of two key components: 1.

Title and authors: Tom: So, "Coordinated Networking for On-Device Agent-Augmented Real-Time Communication." The authors are Goodsol Lee, Juheon Yi, Jinglu Wang, Haowen Xu, Saewoong Bahk, and Yan Lu from Seoul National University and Microsoft Research Asia.

Jane: They’re trying to solve the problem introduced by on-device agent-augmented real-time communication where humans focus on high-level collaboration while agents handle the heavy lifting of retrieving and analyzing information in real time.

Lu: The core challenge they highlight is that as existing cloud-based agents face privacy risks and server costs, this on-device approach is promising, but it introduces a new networking challenge: contention between concurrent traffic flows generated by humans for live video streaming and agents for sending context files for analysis.

Meng: So they are tackling the issue of coordinating these heterogeneous flows—video and context—on the same device network.

Lalam: They propose HAFS, which is this framework designed to ensure both high live video quality and low agent response latency in these agent-augmented RTC apps.

The paper's summary: Tom: The summary says HAFS efficiently coordinates heterogeneous flows to guarantee those two things we talked about earlier. It’s all about making fine-grained scheduling decisions based on the different app requirements of the video and agent flows.

Jane: They achieve this by using modern RTC architectures where end-to-end paths are split into sender–SFU and SFU–receiver links with significantly shorter RTTs, which lets them do precise per-flow rate control similar to in-network scheduling.

Lu: The framework has two main components: the human-agent flow coordinator controls the sending rates of both flows to simultaneously maximize video quality and agent throughput by ramping up the aggregate rate until frame-level queuing delay approaches, but without exceeding, the app-specified frame deadline.

Meng: That sounds like a sophisticated way to manage that trade-off between quality and latency right at the frame level.

Lalam: And then there’s the multi-agent flow coordinator which schedules the transmission order of concurrent agent flows within that allocated rate to minimize agent response time by formulating it as a two-machine flow shop problem.

The paper's improvements: Tom: They introduce several key design ideas to manage this contention. First, they have frame-level queuing-aware agent rate control which controls the agent rate based on the video frame-level queuing delay using a Dual feedback-based frame Queuing Estimator that combines RTP feedback packets with SCTP’s per-packet ACKs to compute total frame-level queuing.

Jane: That's clever because it directly links how much delay the video flow is experiencing to how fast the agent flows are allowed to send data.

Lu: They also have this agent-probed bandwidth for video rate control, where they leverage the received rate of agent context flows as an available bandwidth capacity estimate, which allows the CCA to ignore delay increases and accelerate recovery, resolving what they call the slow recovery problem of conventional delay-based RTP CCAs.

Meng: So instead of waiting for a delay signal to tell them how fast to ramp up, they use the agent's actual throughput as a proxy for capacity. That sounds more proactive.

Lalam: Plus, they have lightweight response length prediction from prebuilt KV cache by performing a single-step LLM decoding using prebuilt KV caches to predict the expected response length, which is then used by the multi-agent flow coordinator to determine transmission order.

Conclusion: Tom: So, to wrap up on "Coordinated Networking for On-Device Agent-Augmented Real-Time Communication," HAFS successfully coordinates concurrent human and agent flows through an app-guided multi-flow transport that uses the heterogeneous flows’ app-layer semantic requirements to make fine-grained scheduling decisions.

Jane: The evaluation shows this framework significantly outperforms baselines, achieving one point five times higher video quality while reducing agent response time by thirty-one percent across various devices and LLMs.

Lu: It also notes that the framework's effectiveness is robust to prediction errors in response length because the scheduling relies on the relative ordering of decoding latencies rather than absolute values, which is important for future work on dynamic optimization of KV cache granularity per input context.

Meng: From a deployment standpoint, it’s interesting because they state that HAFS incurs negligible system-level overheads compared to raw methods; CPU utilization stays within five percent of raw, and energy per query is significantly lower than raw prefill methods when amortized across sessions.

Lalam: Exactly. In the conclusion of this work on "Coordinated Networking for On-Device Agent-Augmented Real-Time Communication," they show that HAFS successfully coordinates concurrent human and agent flows through an app-guided multi-flow transport, which leverages heterogeneous flows’ app-layer semantic requirements to make fine-grained scheduling decisions while also enabling easy deployment in commercial RTC frameworks.

Tom: It really shows how you can keep the latency low while maintaining high video quality without needing massive server infrastructure. So, what does this mean for us next?

Jane: It means that for people using these new on-device AI apps, they can expect a much smoother experience where the video doesn't stutter just because an agent is busy thinking.

Lu: Future work looks at things like dynamic optimization of KV cache granularity per input context and exploring selective KV cache fusion techniques to preserve cross-attention when required.

Meng: For me, the scalability challenge they mention regarding managing all agent context flows as individual transport buffers might require integrating offloading KV caches to hierarchical storage.

Lalam: And remember, the framework's effectiveness is robust to prediction errors in response length because the scheduling relies on the relative ordering of decoding latencies rather than absolute values.

Tom: We'll be looking at how these in-network mechanisms coordinate throughput and delay-oriented transports close that gap with HAFS.

Jane: That’s what we’re going to look at next, as we talk about how this architecture compares to other things out there.

More episodes

← Home