Skip to main content
QUICK REVIEW

[Paper Review] Circuit Complexity of Hierarchical Knowledge Tracing and Implications for Log-Precision Transformers

Naiming Liu, Richard Baraniuk|arXiv (Cornell University)|Mar 25, 2026
Advanced Graph Neural NetworksComputer Science0 citations
TL;DR

This paper analyzes hierarchical prerequisite propagation through circuit complexity to understand what log-precision transformers can compute on deep concept hierarchies, with theoretical barriers and empirical tests showing structure-aware supervision helps recover hierarchical computation.

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 $\mathsf{TC}^0$, we formalize prerequisite-tree tasks including recursive-majority mastery propagation. Unconditionally, recursive-majority propagation lies in $\mathsf{NC}^1$ via $O(\log n)$-depth bounded-fanin circuits, while separating it from uniform $\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 \emph{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.

Motivation & Objective

  • Formalize prerequisite propagation on balanced concept trees under natural mastery rules.
  • Determine unconditional computational upper bounds and barriers for hierarchical knowledge tracing tasks.
  • Connect hierarchical prerequisite reasoning to circuit complexity and transformer limitations.
  • Empirically assess whether standard transformers learn hierarchical prerequisite propagation or rely on shortcut correlations.
  • Provide guidance for structure-aware objectives and iterative mechanisms in prerequisite-sensitive KT models.

Proposed method

  • Define prerequisite trees with leaves as input mastery bits and internal nodes computing MAJ_k of their children.
  • Show KT_MAJ lies in NC^1 due to depth d = Theta(log n) with fixed k.
  • Discuss monotone ALL/ANY prerequisite rules and derive depth hierarchy results for monotone threshold circuits.
  • Relate KT_MAJ to logspace-uniform TC^0 and discuss implications for log-precision transformers.
  • Conduct empirical experiments with transformer encoders on recursive-majority trees to assess whether they learn structure-dependent computation or rely on permutation-invariant shortcuts.
  • Introduce structure scaffolding (level-tagged inputs and auxiliary subtree supervision) to test whether explicit hierarchy and intermediate targets elicit hierarchical propagation.

Experimental results

Research questions

  • RQ1Can recursive-majority prerequisite propagation on balanced trees be computed within NC^1 and separated from uniform TC^0?
  • RQ2Do log-precision transformers inherently fail to compute hierarchical prerequisite propagation, or can they learn it under structural supervision?
  • RQ3Does making hierarchical structure explicit and adding intermediate supervision enable structure-dependent computation in transformers?
  • RQ4What are the limitations of monotone threshold circuit models for representing hierarchical prerequisite reasoning, and what do they imply for transformer capabilities?
  • RQ5How does empirical behavior of transformers align with theoretical circuit-complexity bounds on hierarchical knowledge tracing tasks?

Key findings

  • KT_MAJ on balanced k-ary trees with fixed k is in NC^1, but separating it from TC^0 remains open.
  • Alternating ALL/ANY prerequisite structures yield a strict depth hierarchy for monotone threshold circuits, indicating resistance to shallow computation under monotonicity.
  • Under root-only supervision, transformers learn permutation-invariant shortcuts that track leaf sums rather than exact hierarchical propagation.
  • Explicit subtree boundaries with auxiliary supervision can drive near-perfect hierarchical propagation at depths 3–4, showing structure-dependent computation is achievable with appropriate training signals.
  • At deeper depths (e.g., depth 6), even scaffolded models may struggle within fixed capacity and training budgets, highlighting limits of current architectures for long prerequisite chains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.