FillerTokens
No description available
Install / Use
/learn @JacobPfau/FillerTokensREADME
Let's Think Dot by Dot: Hidden Computation in Transformer Language Models
Chain-of-thought responses from language models improve performance across most benchmarks. However, it remains unclear to what extent these performance gains can be attributed to human-like task decomposition or simply the greater computation that additional tokens allow. We show that transformers can use meaningless filler tokens (e.g., '......') in place of a chain of thought to solve two hard algorithmic tasks they could not solve when responding without intermediate tokens. However, we find empirically that learning to use filler tokens is difficult and requires specific, dense supervision to converge. We also provide a theoretical characterization of the class of problems where filler tokens are useful in terms of the quantifier depth of a first-order formula. For problems satisfying this characterization, chain-of-thought tokens need not provide information about the intermediate computational steps involved in multi-token computations. In summary, our results show that additional tokens can provide computational benefits independent of token choice. The fact that intermediate tokens can act as filler tokens raises concerns about large language models engaging in unauditable, hidden computations that are increasingly detached from the observed chain-of-thought tokens.
Our paper is here
Setup
pip install -r requirements.txt
Example Usage
python -m scripts.data_match3 --name minidata --length 10 --train_samples 100000
python -m scripts.run_match3 -dn minidata -e 1 -de minidata -ma P -m 'llama' -cc llama_d384l4h6.json
Citation
If you use our work, consider citing it using the below!
@article{pfau2024lets,
title={Let's Think Dot by Dot: Hidden Computation in Transformer Language Models},
author={Jacob Pfau and William Merrill and Samuel R. Bowman},
year={2024},
eprint={2404.15758},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
