Architecting Full-Duplex Audio-Visual AI Agents and Attention Prediction Practices

    Real-time interactive systems are shifting from turn-based dialogue to full-duplex agents capable of continuous listening, viewing, and responding. This article explores the core architectural design, engineering trade-offs, and observability solutions for full-duplex audio-visual agents. It also delves into how eye-tracking and attention prediction models complement the system by interpreting user states, ensuring seamless and context-aware interactions.

    Architecting Full-Duplex Audio-Visual AI Agents and Attention Prediction Practices

    Real-time interactive systems are undergoing a paradigm shift: evolving from turn-based dialogue, where the user finishes speaking before the system responds, to full-duplex agent forms capable of “continuous listening, continuous viewing, and responding at any time.” This shift demands significantly more from the underlying architecture than traditional speech recognition plus text generation. This article focuses on the core technologies of full-duplex audio-visual agents, outlining key architectural design points, engineering trade-offs, and observability solutions, while further discussing how eye-tracking/attention prediction models fill the critical gap of “understanding user states.”

    1. The Core Challenges of Full-Duplex Interaction

    Traditional voice interaction typically follows a serial pipeline: Voice Activity Detection -> Recognition -> Understanding -> Generation -> Synthesis. While this approach works acceptably in turn-based dialogues, it exposes three main issues when the agent is required to simultaneously listen, watch, and speak:

    1. Latency Accumulation: When multiple models are called serially, end-to-end latency increases linearly with the chain length, making it impossible to support the sub-second response rhythm required in natural conversation.
    2. State Fragmentation: Processing voice and visual inputs separately and then stitching them together leads to misaligned context. For instance, if a user speaks while holding up an insurance policy, the system might generate a voice-only response before visual processing is complete.
    3. Difficulty in Interruption Handling: Full-duplex requires the system to continuously receive audio while speaking, distinguishing between user backchannels (“yes,” “hmm”) and substantive corrections (“no, it’s 4 not 9”). The former should not interrupt, while the latter must immediately halt and correct the response.

    Therefore, the core of designing a full-duplex system is not simply “adding a vision model,” but rather redesigning the concurrency relationships among perception, understanding, and generation.

    2. A Unified Multimodal Real-Time Pipeline

    A viable approach is to stop building separate call chains for voice and vision. Instead, use a unified runtime and ordered connections to treat audio streams, images, and camera frames as integral parts of the same model input sequence. This yields three benefits:

    • Time Alignment: Multimodal inputs queue on the same timeline, allowing the model to naturally know “what the user was showing while saying this.”
    • Reduced Synchronization Complexity: There is no need to maintain cross-modal session state machines at the application layer, reducing race conditions and context loss.
    • Easier Base Model Replacement: Decoupling the pipeline layer from the model layer allows integration with general large models that support real-time multimodal inputs, without separate adaptation for each modality.

    In engineering implementation, a simple event bus can represent this pipeline:

    1. class MultimodalStreamBus:
    2. def __init__(self, model_client):
    3. self.model_client = model_client
    4. self.timeline = [] # [(timestamp, kind, payload)]
    5. def push_audio(self, ts, chunk):
    6. self._emit(ts, "audio", chunk)
    7. def push_frame(self, ts, frame, source="camera"):
    8. # Enqueue visual frame after downsampling/scaling
    9. self._emit(ts, "image", frame)
    10. def _emit(self, ts, kind, payload):
    11. self.timeline.append((ts, kind, payload))
    12. self.model_client.send(ts, kind, payload)

    The key is that events must carry a unified clock timestamp and be delivered in order, preventing model misjudgments caused by out-of-order visual frames.

    3. Resource Strategy Prioritizing Voice Continuity

    In real-world network environments, both bandwidth and compute are scarce resources. If a multimodal system does not restrict video frames, visual input can easily squeeze the audio pathway, causing stuttering and dropped words. A widely adopted trade-off in the industry is “voice priority”:

    1. Limit Visual Frame Rate: Camera input is restricted to a maximum of one frame per second. In full-duplex conversation, visual information changes much slower than audio; a low frame rate is sufficient to capture key actions like a user showing a document or pointing at the screen.
    2. Device-Side Preprocessing: Images are scaled down on the terminal side to a long edge of about 768 or 1024 pixels, significantly reducing transmission and inference costs while preserving readable details necessary for document verification or remote troubleshooting.
    3. Bandwidth-Adaptive Frame Dropping: When the network is congested, prioritize audio transmission and drop stale video frames. Video frames have a “freshness” attribute—the value of an outdated frame approaches zero, so it is better to drop it than queue it.
    4. In-Band Priority Marking: Set higher transmission priorities for audio segments, while allowing visual segments to be delivered on a best-effort basis.

    The essence of this strategy is to treat “perceptual completeness” and “conversational continuity” differently: the former can be degraded, while the latter cannot be sacrificed.

    4. Observability: Letting the System “See What It Sees”

    The hardest issues to troubleshoot in multimodal agents are often “what the model actually saw.” Developers need a set of tools to record on the same timeline:

    • The reception and consumption time of audio segments;
    • The reception, scaling, and delivery status of each image frame;
    • Frames that were dropped or replaced, and the reason (stale, insufficient bandwidth, resolution adjustment);
    • The moment the model generated a response and the triggering input.

    With such timeline replay, developers can compare “what the model actually saw” with “what the user was showing at the time” to locate silent failures in the visual pipeline. For example, if a user holds up an ID during a conversation but the system fails to mention it, the replay can show whether that frame was scaled to an unreadable size, dropped due to congestion, or delivered after the response was generated.

    A practical record structure might look like this:

    1. @dataclass
    2. class FrameEvent:
    3. ts_received: float
    4. ts_emitted: float
    5. resolution: tuple
    6. status: str # "delivered" | "dropped_stale" | "dropped_bw"
    7. drop_reason: str

    Writing these events to a logging service or monitoring platform, combined with conversation-level tracing, enables cross-modal, full-pipeline debugging.

    5. Distinguishing Speakers from Ambient Noise: “Auditory Attention” in Full-Duplex

    In scenarios like inside a car, a hospital, a noisy street, or multiple people speaking simultaneously, mere text transcription is far from enough. The system needs to continuously determine:

    • Who the sound is coming from and whether they are speaking to the agent;
    • Whether background TV noise, children talking, or bystander conversations are relevant to the current task;
    • Whether the speaker’s tone, hesitations, or correction signals imply a need to adjust the response strategy.

    This is essentially a form of “auditory attention” modeling. The input is not just audio features, but also speaker characteristics, sound source direction cues (e.g., from microphone arrays), and conversational context. The output is not just conversational text, but also a decision on “whether this speech requires a response.” This decision directly dictates the accuracy of full-duplex interruption logic—misjudging a backchannel as an interruption makes the system seem erratic, while missing a correction results in irrelevant answers.

    6. Eye-Tracking/Attention Prediction: Understanding User States from Behavioral Signals

    If full-duplex audio solves “accurate listening,” visual attention models solve “comprehensible viewing.” Eye-tracking prediction models infer the shift and concentration of attention by analyzing the user’s gaze points, saccadic trajectories, and fixation duration. Its technical value is reflected in:

    1. Conversational State Perception: If a user frequently looks away or wanders their gaze across specific screen areas, it may indicate distraction, confusion, or information seeking. The agent can use this to decide whether to slow down, repeat key points, or proactively ask.
    2. Multimodal Coreference Resolution: When a user says “Is this correct?” while looking at a specific document area, the eye-tracking signal provides strong constraints for coreference resolution, making it more reliable than pure voice context.
    3. Human-Computer Collaboration Quality Assessment: In remote guidance or equipment troubleshooting scenarios, attention trajectories help assess whether the user is following the operational instructions, allowing dynamic adjustment of the explanation granularity.
    4. Accessibility and Fatigue Monitoring: A decline in long-term gaze stability may indicate fatigue, which can be used for safety-related alerts.

    Common inputs for attention modeling include gaze point coordinate sequences, pupil size, and head pose. The common modeling approach treats this as a time-series prediction or sequence labeling problem, combined with conversational context to determine whether the current attention state is “task-focused,” “distracted,” or “shifting.” It is important to note that these models serve as auxiliary signals and should jointly make decisions with audio and visual content, rather than independently triggering behaviors.

    7. Application Scenarios and Engineering Implementation

    Typical deployment scenarios for these full-duplex multimodal agents include:

    • Remote Equipment Troubleshooting: The user describes a fault while showing the device’s status via camera; the agent watches, listens, and guides synchronously.
    • Document and Receipt Verification: The user presents an ID or insurance policy, and the system instantly verifies the information during the conversation, immediately asking follow-up questions if inconsistencies are found.
    • Insurance Claims and Surveys: Communicating while capturing live scene footage, where attention and voice context jointly determine the follow-up strategy.
    • In-Car and Medical Assistants: Maintaining accurate capture of commands in noisy, multi-speaker environments while avoiding misresponses to ambient noise.

    When implementing, it is recommended to follow this sequence: first establish full-duplex voice (interruption, backchannel recognition, speaker diarization), then overlay low-frame-rate vision, and finally introduce behavioral signals like attention for fine-grained scheduling. Each step should be accompanied by observability; otherwise, multimodal issues will manifest in extremely subtle ways.

    8. Conclusion

    The technical core of full-duplex audio-visual agents can be summarized in three points: a unified, ordered multimodal pipeline ensures perceptual alignment; a voice-priority adaptive resource strategy ensures uninterrupted conversation; and replay-level observability ensures issues are locatable. Building on this, eye-tracking/attention prediction models provide another dimension for the system to understand user states, making responses not just “correct,” but “appropriate.” As real-time multimodal large models and edge-side inference capabilities mature, continuous perception and real-time generation natural interactions will move from demos to scaled deployment in production environments.