[논문 리뷰] Say Anything but This: When Tokenizer Betrays Reasoning in LLMs
이 논문은 토크나이제이션의 비고유성이 LLM이 토큰 ID를 바꿔도 디코딩된 텍스트가 동일하게 남는 팬텀 편집을 초래할 수 있음을 보여주며, 오픈 소스 모델 전반에 걸친 토크나이저로 인한 추론 취약성을 드러낸다.
Large language models (LLMs) reason over discrete token ID sequences, yet modern subword tokenizers routinely produce non-unique encodings: multiple token ID sequences can detokenize to identical surface strings. This representational mismatch creates an unmeasured fragility wherein reasoning processes can fail. LLMs may treat two internal representations as distinct "words" even when they are semantically identical at the text level. In this work, we show that tokenization can betray LLM reasoning through one-to-many token ID mappings. We introduce a tokenization-consistency probe that requires models to replace designated target words in context while leaving all other content unchanged. The task is intentionally simple at the surface level, enabling us to attribute failures to tokenizer-detokenizer artifacts rather than to knowledge gaps or parameter limitations. Through analysis of over 11000 replacement trials across state-of-the-art open-source LLMs, we find a non-trivial rate of outputs exhibit phantom edits: cases where models operate under the illusion of correct reasoning, a phenomenon arising from tokenizer-induced representational defects. We further analyze these cases and provide a taxonomy of eight systematic tokenizer artifacts, including whitespace-boundary shifts and intra-word resegmentation. These findings indicate that part of apparent reasoning deficiency originates in the tokenizer layer, motivating tokenizer-level remedies before incurring the cost of training ever-larger models on ever-larger corpora.
연구 동기 및 목표
- 서브워드 토크나이제이션 아티팩트가 LLM의 추론을 저해하는 원인을 동기 부여하고 진단한다.
- 토크나이제이션 일관성 프로브를 도입해 토크나이저로 인한 실패를 실제 지식 격차와 구분한다.
- 여러 개의 오픈 소스 LLM에서 토크나이저에 의한 팬텀 편집의 발생력을 정량화한다.
- 비고유 표현을 초래하는 토크나이저 아티팩트의 분류 체계를 제시하고 완화 전략을 평가한다.
제안 방법
- 다른 텍스트를 고정한 채 표적 단어를 대체하는 토크나이제이션 일관성 작업을 정의한다.
- XSUM 뉴스 기사에서 비중지 단어의 5%를 샘플링해 교체 대상으로 괄호로 표시한다.
- 사이즈 변형에 걸쳐 10개의 오픈소스 LLM의 표면적 변화 없이 치환을 수행하는 능력을 평가한다.
- 입력/출력 토큰 ID와 디토큰화된 텍스트를 기준으로 결과를 Unchanged(변경 없음), Replaced(대체), 또는 Different(다름)로 분류한다.
- Different 분류를 분석해 여덟 가지 토크나이저 아티팩트 유형을 식별한다.
- 문제 토큰 시퀀스를 제거하는 영향력을 평가하기 위해 토큰 ID 마스킹 중재를 적용한다.
실험 결과
연구 질문
- RQ1LLM은 디토큰화되어 같은 단어로 보이는 서로 다른 토큰 ID 시퀀스를 실제 편집이나 의미 변화로 간주하는가?
- RQ2최신 오픈 소스 LLM에서 팬텀 편집을 유발하는 토크나이저-유도 인공물은 무엇인가?
- RQ3토큰화를 재훈련하지 않고도 문제 토큰 ID를 마스킹해 토크나이저로 인한 추론 실패를 완화할 수 있는가?
- RQ4모델 크기가 실제 치환과 토크나이저로 인한 실패 간의 균형에 어떤 영향을 주는가?
- RQ5추론 작업에 대한 토크나이저 인지적 해결책이나 완화책의 실용적 경로는 무엇인가?
주요 결과
- 토큰 ID가 바뀌었으나 표면 텍스트가 변하지 않는 팬텀 편집이 11,000회의 실험과 10개의 모델에서 비근거 없이 나타난다.
- 토크나이저 인공물에는 공백 경계 이동, 공백의 분리/재연결, 개행 문자 대체, 어절 내 재세분화, 고유명사 분리, 형태소 분할, 약어, 복수형/소유 접미 토큰 등이 포함된다.
- 모델 크기가 토크나이저 유발 실패를 완전히 해결하지 못하며, 더 큰 모델도 비고유 토큰 표현으로 인해 Still Different 범주를 보인다.
- 문제 토큰 ID를 마스킹하면 모델 간 Different 범주가 대략 0-5%로 크게 감소해 이 문제가 주로 토크나이저 주도임을 시사한다.
- 사후 완화책은 토크나이저 인공물에 의해 가려진 기저 추론 능력이 모델에 있음을 보여주어 토크나이저 인식 대응책의 필요성을 시사한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.