How Adaptive Computation Time (ACT) works in OpenMythos
mainOpenMythos uses ACTHalting to implement adaptive compute. At each loop iteration, a linear layer calculates a scalar halting probability per position.
As the loop progresses, these probabilities are accumulated. When the cumulative sum exceeds the cfg.act_threshold, the position stops contributing to the loop. The final output is an ACT-weighted sum of the hidden state h across all iterations, allowing easy tokens to exit early while hard tokens receive full loop depth.