CREST:为基于检索的推测解码有效压缩数据存储
CREST: Effectively Compacting a Datastore For Retrieval-Based Speculative Decoding
AI总结:
本文提出 CREST,通过仅存储最小且最常见的 n-gram 子集压缩 REST 的检索数据存储,在 HumanEval 和 MT Bench 上同时降低存储开销并提高推测解码接受长度。
摘要:
我们提出 CREST(Compact Retrieval-Based Speculative Decoding,紧凑型基于检索的推测解码),这是对 REST 的重新设计,使其能够被有效地“压缩”。REST 是一种用于推测解码的草拟技术,其方法是从数据存储中检索目标 LLM 最近生成的 n 个 token 的精确 n-gram 匹配。CREST 的核心思想是只在数据存储中保存最小、最常见的 n-gram 的一个子集,以期用更少的存储空间获得相当的性能。我们发现,存储 n-gram 子集既减少了存储空间,又提升了性能。在 HumanEval 和 MT Bench 基准测试中,CREST 以少 10.6–13.5 倍的存储空间达到与 REST 相同的已接受 token 长度;在相同存储空间下,其接受长度比 REST 高 16.5–17.1%。
英文摘要:
We present CREST (Compact Retrieval-Based Speculative Decoding), a redesign of REST that allows it to be effectively "compacted". REST is a drafting technique for speculative decoding based on retrieving exact n-gram matches of the most recent n tokens generated by the target LLM from a datastore. The key idea of CREST is to only store a subset of the smallest and most common n-grams in the datastore with the hope of achieving comparable performance with less storage space. We found that storing a subset of n-grams both reduces storage space and improves performance. CREST matches REST's accepted token length with 10.6-13.5x less storage space and achieves a 16.5-17.1% higher acceptance length than REST using the same storage space on the HumanEval and MT Bench benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。