Real-Time Messaging with Hybrid-State Architectures: Optimizing Latency and Cost in Generative AI-Enhanced Real-Time Messaging at the Edge

Read full text
Authors: Maheshkumar Mole
Cited by: 0
References: 8

Abstract

Real-time messaging applications are rapidly integrating generative artificial intelligence capabilities, yet the prevailing cloud-only inference paradigm presents significant challenges in terms of cost, latency, and user privacy. As messaging platforms scale to serve millions of concurrent users, routing every user utterance through large cloud-hosted language models creates a Thundering Herd effect on centralized GPU clusters, inflating token costs and degrading time-to-first-token performance. Simultaneously, transmitting all raw user text to remote servers amplifies privacy exposure, particularly for sensitive data categories such as personally identifiable information and criminal justice information. This article proposes a hybrid-state architecture built upon a novel distributed inference protocol termed "speculative edge decoding." In this architecture, lightweight Small Language Models deployed on client devices handle simple tasks and generate draft token sequences, while Large Language Models hosted in the cloud perform verification passes rather than full generative inference. The system has a complexity router that automatically sorts incoming prompts and sends them to the right inference tier. It also has a dynamic low-rank adapter loading mechanism for task-specific specialization on the edge and trusted execution environments for secure cloud-side inference. Experimental evaluation in simulated high-load environments demonstrates substantial reductions in cloud infrastructure costs alongside markedly faster end-to-end response times, without meaningful degradation in response quality as measured by standard automated metrics. The article affirms that the future of scalable AI-enhanced messaging lies not in exclusive cloud dependence but in the intelligent orchestration of cloud and edge resources.

Fields of Study & Subjects

IoT and Edge/Fog Computing Topic Modeling Natural Language Processing Techniques

Publication details

Journal / source
International Journal of Computational and Experimental Science and Engineering
Volume
12
Issue
1
Publication date
5 March 2026
Language
EN