Skip to content
Sprint projectJun 3, 2024

Handcrafting a Network to Predict Next Token Probabilities for the Random-Random-XOR Process

Rick Goldstein

Submitted to Computational Mechanics Hackathon. Sprint projects are early-stage work by participants, not Apart Research publications.

Read the report

Report: Handcrafting a Network to Predict Next Token Probabilities for the Random-Random-XOR Process

Code (opens in new tab)
Share

For this hackathon, we handcrafted a network to perfectly predict next token probabilities for the Random-Random-XOR process. The network takes existing tokens from the process's output, computes several features on these tokens, and then uses these features to calculate next token probabilities. These probabilities match those from a process simulator (also coded for this hackathon). The handcrafted network is our core contribution and we describe it in Section 3 of this writeup.

Prior work has demonstrated that a network trained on the Random-Random-XOR process approximates the 36 possible belief states. Our network does not directly calculate these belief states, demonstrating that networks trained on Hidden Markov Models may not need to comprehend all belief states. Our hope is that this work will aid in the interpretability of neural networks trained on Hidden Markov Models by demonstrating potential shortcuts that neural networks can take.

Reviews

Judging this Sprint?

Review this project

Your public critique appears on this page without your name. Reviews of strong projects are shared with funders, as you choose below.

Not shown on this page.

Shown on this page, without your name.

Only the Apart team reads this, and funders if you agree below.

Decline to score

Only when the quality of the writing makes the work impossible to follow. Say why in your private critique; nothing shows on this page.

Sharing your name *

When we share a strong project with funders, your name, scores and public critique go with it, confidentially; this choice is only about whether your name is public. If you think this project deserves funding, please also endorse it: that carries the most weight.

Share my private critique with funders *

No public critique yet.

Cite this project

@misc{goldstein2024handcrafting,
  title = {{Handcrafting a Network to Predict Next Token Probabilities for the Random-Random-XOR Process}},
  author = {Rick Goldstein},
  year = {2024},
  month = jun,
  note = {Submitted to Computational Mechanics Hackathon, an Apart Research Sprint},
  howpublished = {\url{https://apartresearch.com/sprints/projects/handcrafting-a-network-to-predict-next-token-probabilities-for-the-random-random-xor-process}},
  url = {https://apartresearch.com/sprints/projects/handcrafting-a-network-to-predict-next-token-probabilities-for-the-random-random-xor-process}
}

Build something like this at the next Sprint

AI Collusion Research Sprint · Oct 23 - 25, 2026