THE INVESTIGATION
Stop depth updates per token
Apply a shared update until each token reaches its threshold or budget.
LLM ArchitectureArchitecture builds
What’s going wrong
Implement solve(data). Each token is an integer state. At each depth step, add increment to every active token, then halt a token if its updated state is at least threshold. Tokens already at or above threshold halt before any updates. Run at most max_steps. Return {"states": final states, "steps": update counts per token}. Threshold, increment and max_steps are nonnegative integers; max_steps may be zero. This deterministic policy illustrates per-token halting, not a learned halting mechanism.
Expected behavior
Apply a shared update until each token reaches its threshold or budget.
Reproduction
01 Tokens halt at different depths
{"states": [0, 2, 5], "increment": 2, "threshold": 5, "max_steps": 4}{"states": [6, 6, 5], "steps": [3, 2, 0]}02 Budget stops unfinished tokens
{"states": [0, 3], "increment": 1, "threshold": 8, "max_steps": 2}{"states": [2, 5], "steps": [2, 2]}03 One update
{"states": [0, 2], "increment": 1, "threshold": 2, "max_steps": 1}{"states": [1, 2], "steps": [1, 0]}Before you begin
- Python lists and matrix multiplication
Need a nudge?
Reveal one investigation hint at a time. Try each clue before opening the next.
The bug is intentional. Run the starter code to see it fail, then work toward a fix. Difficulty is provisional.
Ready when you are
Every fix starts with a failing test.
Read the report, then sign in to start your investigation.