cs.AIOct 4, 2026

Do LLMs Understand Sequential Structure? A Controlled Study of Inference and Generation

Authors: Jerry Wang, Zhengxiang Wang, Ting Yu Liu, Hsin-Ling Hsu, Yi-Cheng Lai, Tengfei Ma

Organizations: University of Illinois Urbana-Champaign · Stony Brook University · National Chengchi University

Abstract

Large language models (LLMs) are increasingly used as interactive agents and simulators, yet it remains unclear whether they can recover latent sequential structure beyond surface action frequencies. This distinction is critical for behavioral simulation, where actions are often shaped by prior context rather than marginal frequencies alone. We study this question using controlled two-player Rock--Paper--Scissors interactions and a one-player stochastic n-gram continuation task. Across these experiments, we test whether LLMs can identify latent strategies, follow simple Markov rules, and sustain higher-order conditional dependencies. Our framework separates distribution matching from conditional rule following. Results show that longer context does not improve identification, correct recognition does not ensure faithful simulation, and higher-order dependencies substantially degrade rule recovery. Apparent behavioral fidelity can therefore mask incorrect generative mechanisms.

Figures & tables

Appendix figures & tables31 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Large language models replicate and predict human cooperation across experiments in game theory

    Nov 6, 2025Andrea Cera Palatsi, Samuel Martin-Gutierrez, Ana S. Cardenal +1LLM EvaluationGame Theory

  2. Why Do LLMs Struggle in Strategic Play? Broken Links Between Observations, Beliefs, and Actions

    Apr 30, 2026Jan Sobotka, Mustafa O. Karabag, Ufuk TopcuImperfect-Information GamesLLM Interpretability

  3. Reasoning Capabilities of Large Language Models. Lessons Learned from General Game Playing

    Feb 22, 2026Maciej Świechowski, Adam Żychowski, Jacek MańdziukLLM ReasoningLLM Evaluation