arXiv:2610.41089cs.AIOct 2026

Manuscript Offprint

arXiv:2610.41089

CIRCE Divines LLM Task Complexity from Constraint Structure

Chenhao Hong, Jiakai Xu, Kaushiki Singh, Yusen Zhang, Eugene Wu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Estimating whether a problem is too complex for a large language model (LLM) before the model attempts it can guide model routing, how to allocate test-time compute, and suggest the need for new tools to aid the agent. While existing estimators rely on the problem text, LLM-annotated task difficulty labels, or signals obtained after a model attempts to solve the problem, such as its hidden states, none explicitly leverage the constraint structure inherent in the problem: the variables to assign and how the constraints over them interact.

We introduce CIRCE,1^{1} which extracts a problem’s structure by using a cheap LLM to construct a Constraint Intermediate Representation that deterministically compiles into the constraint graph. Across seven reasoning benchmarks (including SAT, logic, and math) and four LLMs, even a randomly initialized GNN encoder improves predictions of LLM response correctness, reducing negative log-likelihood from 0.465 to 0.423 and increasing AUROC from 0.691 to 0.727 relative to the strongest baseline for each metric.

1 Introduction

Large language models (LLMs) are increasingly asked to solve complex problems in which constraints create dependencies among decisions. These problems include constraint satisfaction (e.g., arranging wedding seating while keeping some guests together and others apart), resource management and scheduling (e.g., assigning staff to shifts while respecting availability and coverage requirements), logical entailment (e.g., determining whether an expense qualifies for reimbursement under a company’s policy), and database editing under integrity constraints (e.g., deleting a customer record without leaving orders linked to a nonexistent customer). Although task success may be

assessed from an LLM’s result, it remains difficult to predict in advance whether a particular problem is too complex for the model to solve reliably.

Complexity estimation predicts the probability that a given LLM will answer a problem correctly under a fixed inference protocol (prompting and generation settings). Estimates made before generation can support model routing (Chen et al., 2023; Ong et al., 2025), allocation of test-time compute (Snell et al., 2024), and abstention on likely failures (Kamath et al., 2020).

Existing approaches use text embeddings of the problem (Pacchiardi et al., 2025), LLM-generated ratings of required abilities such as logical reasoning and domain knowledge (Zhou et al., 2026), or the target model’s internal activations (Zhu et al., 2025). The latter requires internal model access unavailable in proprietary model APIs. These approaches also do not explicitly represent the problem’s variables and interacting constraints.

Constraint structure helps predict computational difficulty: random 3-SAT formulas are hardest near a critical clause-to-variable ratio (Mitchell et al., 1992), and SATzilla uses structural features to predict runtimes and select the solver expected to be fastest (Xu et al., 2008). Constraint structure also guides LLM task decomposition (Zhou et al., 2025).

We therefore ask: (1) does constraint structure predict LLM response correctness, and (2) can it be recovered reliably from problem text?

One challenge is that natural-language problems often do not specify variables and constraints explicitly, and LLM-generated constraint graphs are unreliable: only 136 of 200 Hamiltonian path graphs are correct in our evaluation (68.0%; Table 3). Our key observation is that an LLM need only describe the variables, constraints, and query in an intermediate representation, which a deterministic compiler converts into a graph.

We introduce Constraint Intermediate Represen-

1^{1}Code will be released at https://github.com/hchenhao/CIRCE.

tation for Complexity Estimation (CIRCE), a workflow built on this separation of semantic extraction and graph construction. On the Hamiltonian path, this approach raises correctness to 92.5%. We develop 41 handcrafted graph features (CIRCE-Stats) and find that richer feature sets generally improve prediction. To capture interactions beyond aggregate statistics, we also use a graph neural network (CIRCE-GNN). We compare frozen encoders with random initialization or self-supervised pretraining on separate unlabeled problems. A lightweight, model-specific predictor maps either representation to the probability of a correct response.

We evaluate CIRCE against four prediction baselines and a constant predictor on seven reasoning benchmarks and four LLMs. Five-fold cross-validation over 200 problems per benchmark fits each predictor on approximately 160 training problems, with ten responses per problem supplying correctness labels. Relative to the strongest baseline overall for each metric, the pretrained variant reduces average negative log-likelihood of response correctness by 9.5% (0.465 to 0.421) and increases AUROC by 3.9 percentage points (0.691 to 0.730). Even a frozen, randomly initialized GNN encoder outperforms every baseline on average and nearly matches the pretrained variant. These results show that constraint structure recovered from text is a useful signal for predicting LLM failures before generation. Text-to-SQL and program synthesis are promising targets for future evaluation.