RheoSampling: 확률적 동적-트리 투기적 디코딩에서 원-핫(one-hot) 딜레마 해결
RheoSampling: Resolving the One-Hot Dilemma in Stochastic Dynamic-Tree Speculative Decoding
한국어 초록
투기적 디코딩(speculative decoding)은 여러 토큰을 병렬로 초안 작성하여 LLM 추론을 가속하며, 트리 기반 방법은 계층 구조를 통해 효율을 더욱 높인다. EAGLE-3와 같은 동적 트리 방법은 결정론적 top-K 확장과 전역 가지치기를 통해 탐욕 디코딩(greedy decoding)에서 우수한 성능을 보인다. 그러나 확률적 디코딩(T>0)에서는 이 메커니즘이 초안 분포를 원-핫(one-hot) 확률로 붕괴시켜 수락률이 급격히 떨어진다. 이로 인해 딜레마가 생긴다: 동적 트리 방법은 문맥 인식 토폴로지를 유지하기 위해 확률적 샘플링을 희생하고, 정적 트리 방법은 문맥 비의존 구조로 확률적 샘플링은 유지한다. 문제는 동일한 확률 분포가 서로 상충하는 두 과업—트리 구성과 토큰 검증—에 쓰이기 때문에 발생한다. 이러한 결합은 결과적인 확률 과정 때문에 무작위성을 직접 주입하기 어렵게 만든다. 우리는 이 두 역할을 분리하여 해결한다: RheoSampling은 초안 분포에서 샘플링한 토큰에 대해 트리 확장 및 가지치기용 대리(proxy) 확률과 검증용 실제 샘플링 확률을 각각 부여한다. 구체적으로, 결정론적 top-K 슬롯 사이에 샘플링된 토큰을 주입하고 구성 단계와 검증 단계에서 서로 다른 확률로 처리하여, RheoSampling을 문맥 인식 top-K 구성과 확률적 샘플링을 모두 갖추면서 무손실을 유지하는 최초의 동적 트리 방법으로 만든다. 무손실 보장은 확률적 트리 공간을 다루기 쉬운 동치류로 압축하는 동치류 분석을 통해 정립한다. OT(최적 수송) 기반 검증 전략과 희소 초안(sparse draft) 메커니즘이 이론적 이득이 실제 효율로 이어지도록 한다. LLM과 벤치마크 전반의 실험에서 최신 동적 트리 방법 대비 수락률과 속도 향상(speedup) 개선을 보여준다. 이 프레임워크는 확률적 트리 구조를 분석하는 템플릿을 제공할 수 있다.
원문 초록
Speculative decoding accelerates LLM inference by drafting multiple tokens in parallel, with tree-based methods further improving efficiency through hierarchical structures. Dynamic-tree methods such as EAGLE-3 perform well under greedy decoding via deterministic top-K expansion and global pruning. However, in stochastic decoding (T>0), this mechanism collapses the draft distribution into one-hot probabilities, causing a severe drop in acceptance rate. This creates a dilemma: dynamic-tree methods sacrifice stochastic sampling to preserve context-aware topology, while static-tree methods preserve stochastic sampling with context-agnostic structures. The issue arises because the same probability distribution is used for two conflicting tasks: constructing the tree and verifying tokens. This coupling makes direct injection of randomness challenging due to the resulting stochastic process. We resolve this by decoupling these roles: RheoSampling assigns a token sampled from the draft distribution a proxy probability for tree expansion and pruning alongside its true sampling probability for verification. Specifically, we inject a sampled token among the deterministic top-K slots and treat it with different probabilities during construction and verification, making RheoSampling the first dynamic-tree method with both context-aware top-K construction and stochastic sampling while maintaining losslessness. We establish the lossless guarantee through an equivalence-class analysis that compresses the stochastic tree space into tractable classes. An OT-based verification strategy and a sparse draft mechanism ensure that theoretical gains translate into practical efficiency. Experiments across LLMs and benchmarks demonstrate improvements in acceptance rate and speedup over state-of-the-art dynamic tree methods. This framework may provide a template for analyzing stochastic tree structures.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2609.21827v2제출 시각 미확인
- arXiv:2609.21827v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.