추측 실행으로 온디바이스 음성 에이전트의 도구 지연 숨기기
Hiding Tool Latency in On-Device Cascaded Voice Agent through Speculative Execution
음성 비서는 음성 인식, LLM 추론, 외부 도구 실행을 차례로 처리해 도구 지연이 사용자가 말을 끝낸 뒤에야 발생한다. 이 연구는 말하는 도중의 부분 인식 결과로 도구 호출을 미리 예측해 실행하는 방식을 제안하고, 안드로이드 실측에서 응답 시작 시간이 줄었다고 보고한다.
논문 초록을 바탕으로 정리했습니다. 논문 전체의 실험 조건과 한계까지 검토한 심층 리뷰는 아닙니다.
논문 원문 읽기 ↗연구 문제
도구를 사용하는 음성 비서는 보통 음성 인식, LLM 추론, 외부 도구 실행을 순서대로 처리한다. 그래서 사용자가 말을 마치고 LLM이 필요한 도구 호출을 파악한 뒤에야 도구 실행 시간이 더해진다. 이 직렬 구조가 전체 응답 지연을 키우는 원인으로 지목된다. 이 연구는 이런 구조를 가진 온디바이스 캐스케이드 음성 에이전트를 대상으로 한다.
제안한 방법
핵심은 추측적 도구 실행이다. Predictor 모듈이 음성 인식이 진행되는 동안 부분 인식 결과를 보고 도구 호출을 미리 예측한다. 그 도구를 바로 실행해 결과를 캐시에 저장하고, 나중에 이 결과를 LLM 프롬프트에 넣어 더 빨리 답하게 한다.
사용자가 말하다가 내용을 고치면 예측이 틀릴 수 있다. 이를 줄이려고 규칙 기반 검증 절차를 두어 유효한 캐시 결과만 골라 주입한다. 또 LLM이 직접 도구를 호출할 수 있는 기능을 그대로 남겨 두었다. 따라서 최악의 경우에도 지연은 기존 직렬 방식을 넘지 않는다고 설명한다.
결과
완전히 구현한 안드로이드 음성 비서에서 실시간으로 측정해 평가했다. 응답의 첫 소리가 나오기까지 걸리는 시간의 중앙값은 5.79초에서 4.60초로 줄었다. 표준편차도 3.49초에서 2.81초로 감소해 응답 지연을 더 예측하기 쉬워졌다고 한다.
초록에는 예측 정확도, 검증 규칙의 세부 성능, 사용한 도구 종류, 실험 조건 같은 정보가 나오지 않는다. 이런 부분은 초록만으로 판단할 수 없다.
근거로 읽은 영문 초록
Tool-augmented speech assistants typically serialize automatic speech recognition, large language model inference, and external tool execution. As a result, tool latency is incurred only after the user has finished speaking and the LLM has identified the required tool calls. We present speculative tool execution for on-device cascaded voice agents, which predicts tool requests from partial ASR hypotheses and initiates tool execution while speech is still being received, thereby reducing end-to-end response latency. Our approach introduces a Predictor module that anticipates tool calls during speech recognition, executes them speculatively, and caches the results. The cached outputs are then injected into the LLM prompt, enabling faster responses. Additionally, to mitigate errors caused by user self-corrections during speech, we employ a rule-based validation mechanism that selectively injects only valid cached results. As a final safeguard, the LLM retains the ability to issue tool calls directly, ensuring that the latency of our framework is upper-bounded by the baseline serial execution pipeline in the worst case. We evaluate our method using live measurements from a fully implemented Android voice assistant. Our approach reduces the median time-to-first-audio from 5.79,s to 4.60,s and decreases the standard deviation from 3.49,s to 2.81,s, resulting in more predictable response latency.