cs.LGMar 25, 2026

Circuit Complexity of Hierarchical Knowledge Tracing and Implications for Log-Precision Transformers

Authors: Naiming Liu, Richard Baraniuk, Shashank Sonkar

Organizations: Rice University · University of Central Florida

Abstract

Knowledge tracing models mastery over interconnected concepts, often organized by prerequisites. We analyze hierarchical prerequisite propagation through a circuit-complexity lens to clarify what is provable about transformer-style computation on deep concept hierarchies. Using recent results that log-precision transformers lie in logspace-uniform TC0\mathsf{TC}^0, we formalize prerequisite-tree tasks including recursive-majority mastery propagation. Unconditionally, recursive-majority propagation lies in NC1\mathsf{NC}^1 via O(log⁡n)O(\log n)-depth bounded-fanin circuits, while separating it from uniform TC0\mathsf{TC}^0 would require major progress on open lower bounds. Under a monotonicity restriction, we obtain an unconditional barrier: alternating ALL/ANY prerequisite trees yield a strict depth hierarchy for monotone threshold circuits. Empirically, transformer encoders trained on recursive-majority trees converge to permutation-invariant shortcuts; explicit structure alone does not prevent this, but auxiliary supervision on intermediate subtrees elicits structure-dependent computation and achieves near-perfect accuracy at depths 3--4. These findings motivate structure-aware objectives and iterative mechanisms for prerequisite-sensitive knowledge tracing on deep hierarchies.

Figures & tables

Explore similar work

CardsList
  1. Transformers Provably Learn to Internalize Chain-of-Thought

    May 27, 2026Yixiao Huang, Hanlin Zhu, Zixuan Wang +4TransformerCoT Reasoning

  2. Ceiling of a Task: When Can a Transformer Succeed Without Its Chain of Thought?

    Sep 27, 2026Jiashu He, Jinxuan Fan, Xiao Xiao +2LLM Reasoning

  3. Revisiting Padded Transformer Expressivity: Which Architectural Choices Matter and Which Don't

    May 28, 2026Anej Svete, William Merrill, Ryan Cotterell +1Transformer ExpressivityTransformer