arXiv:2608.02376v2 cs.DB

토큰 네이티브 스토리지: 에이전트의 언어로 읽고 쓰기

Token-Native Storage: Read and Write in your Agent's Language

Kumar Shivendu

제출 2026-08-03

한국어 초록

검색 및 데이터베이스 엔진은 여전히 인간을 위해 만들어진 형식인 UTF-8로 텍스트를 저장합니다. 하지만 해당 텍스트를 읽고 쓰는 작업이 점점 늘어나는 시스템(임베더, 리랭커, 언어 모델 에이전트)은 문자가 아닌 토큰(token) ID로 작동하므로, 매번 접근할 때마다 둘 사이를 변환하는 비용을 지불해야 합니다. 에이전트가 저장된 텍스트의 주요 판독자이자 작성자가 됨에 따라, 본 논문에서는 토큰 네이티브 스토리지(token-native storage), 즉 모델의 자체 바이트 쌍 인코딩(BPE) 토큰 ID로 텍스트를 유지하는 방식을 제안합니다. r50k ID를 uint16으로 패킹하는 것만으로도 압축 없이 영어에서 UTF-8보다 2.25배 우수하며, 그 위에 엔트로피 코더(entropy coder)를 적용하면 3.30배에 도달합니다. 6개의 토크나이저와 3개의 말뭉치(영어, 코드, 힌디어)에 걸쳐 토큰 ID를 압축한 결과는 말뭉치로 학습된 zstd 딕셔너리를 포함한 모든 바이트 코덱과 대등하거나 이를 능가했습니다. 두 가지 발견이 이러한 주장을 더욱 뒷받침합니다. 첫째, BPE는 빈도 대신 병합 순서로 토큰 번호를 매기는데, 빈도순으로 재정렬하면 일반 정수 코덱(streamvbyte)으로도 디코딩 속도를 약 7배 높이면서 엔트로피 코더의 압축률을 대부분 회복할 수 있으며, 이는 AI 연구소가 어휘집(vocabulary)을 배포하는 방식에 대한 거의 비용이 들지 않는 변경 사항입니다. 둘째, 모델은 텍스트가 아닌 토큰 ID를 읽기 때문에, 토큰 네이티브 스토리지는 읽을 때마다 다시 토큰화(tokenization)하는 대신 ID를 직접 넘겨줍니다. 유일한 요구 사항은 읽는 주체와 쓰는 주체가 토크나이저를 공유해야 한다는 점인데, 오늘날 서로 다른 모델 패밀리는 종종 서로 다른 토크나이저를 사용하므로, 본 논문에서는 과거 ASCII와 UTF-8이 텍스트를 표준화했던 것처럼 공개된 공유 어휘집의 표준화를 제안합니다.

원문 초록

Search and database engines still store text as UTF-8, a format built for humans. But the systems that increasingly read and write that text (embedders, rerankers, and language-model agents) work with token IDs, not characters, so every access pays to translate between the two. As agents become the primary readers and writers of stored text, we argue for token-native storage: keep the text as the model's own byte-pair-encoding (BPE) token IDs. Packing r50k IDs as uint16 already beats UTF-8 by 2.25x on English with no compression, and an entropy coder on top reaches 3.30x. Across six tokenizers and three corpora (English, code, Hindi), compressing token IDs matches or beats every byte codec, even a corpus-trained zstd dictionary. Two findings sharpen the case. BPE numbers tokens by merge order instead of frequency, and re-ranking by frequency lets a plain integer codec (streamvbyte) recover most of the entropy coder's ratio while decoding ~7x faster, a near-free change to how AI labs publish vocabularies. And because a model reads token IDs, not text, a token-native store hands over the IDs directly instead of re-tokenizing on every read. The only requirement is that reader and writer share a tokenizer, and different model families often use different ones today, so we argue for standardization: a published, shared vocabulary, the way ASCII and UTF-8 standardized text.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2608.02376v2제출 시각 미확인
  2. arXiv:2608.02376v1제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.