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. Your private critique is not published; only the Apart team reads it. If you agree below, we share your review with grantmaking.ai (opens in new tab) and the Transformative AI Fund so strong projects can be funded.

Not shown on this page.

Shown on this page, without your name.

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

Share my name publicly on grantmaking.ai *
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