Timothy Nguyen
We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Transformer based large-language models (LLMs) display extreme proficiency with language yet a precise understanding of how they work remains elusive. One way of demystifying transformer predictions would be to describe how they depend on their context in terms of simple template functions. This paper takes a first step in this direction by considering families of functions (i.e. rules) formed out of simple N -gram based statistics of the training data. By studying how well these rulesets approximate transformer predictions, we obtain a variety of novel discoveries: a simple method to detect overfitting during training without using a holdout set, a quantitative measure of how transformers progress from learning simple to more complex statistical rules over the course of training, a model-variance criterion governing when transformer predictions tend to be described by N -gram rules, and insights into how well transformers can be approximated by N -gram rulesets in the limit where these rulesets become increasingly complex. In this latter direction, we find that for 79% and 68% of LLM next-token distributions on TinyStories and Wikipedia, respectively, their top-1 predictions agree with those provided by our N -gram rulesets.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2407.12034")
get_code_for_paper("2407.12034")
have("2407.12034")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2407.12034.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2407.12034)
Connect an agent — have() is free.