mlsanityData to 14 Oct 2026

LogicIF: Towards Complex Logic Instruction Following

arXiv 2508.09125 ↗First posted 12 Aug 2025cs.CL cs.LGcited by 2

On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks

Abstract (arXiv)

Instruction following has catalyzed the recent era of Large Language Models (LLMs) and is the foundational skill underpinning more advanced capabilities such as reasoning and agentic behaviors. As tasks grow more challenging, the logic structures embedded in natural language instructions becomes increasingly intricate. However, how well LLMs perform on such logic-intensive instructions remains under-explored. We propose Logic Instruction Following (LogicIF), a task requiring models to precisely follow and simulate every logic step within complex instructions. To generate these instructions, we construct LogicIFGen, a scalable, automated framework for generating verifiable instructions from code functions, which can naturally express rich logic such as conditions, loops, nesting, and function calls. Using this framework, we curate a collection of complex code functions to construct LogicIFEval, a benchmark comprising 426 verifiable, human-examined, logic-rich instructions. Our experiments demonstrate that current state-of-the-art LLMs still struggle to correctly follow the instructions in LogicIFEval. Most LLMs can only follow fewer than 60% of the instructions, revealing significant deficiencies in their capacity to handle instructions that involve complex logic structures. To further demonstrate the efficacy of our framework, we collect an extensive set of code functions across a wide range of logic difficulties to generate LogicIFTrain, a fully synthesized training set featuring 27,324 verifiable instructions. Our results show that a model trained on LogicIFTrain using reinforcement learning significantly outperforms the base model on both in-domain and out-of-domain benchmarks. All the data, codes and models are released at https://github.com/mianzhang/LogicIF.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 32 of its 43 references that are in the map. First posted on arXiv 12 Aug 2025.

Builds on

32 of 43 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025AGENTIF: Benchmarking Instruction Following of Large Language Models in Agentic Scenarios22 May
  2. 2025SOPBench: Evaluating Language Agents at Following Standard Operating Procedures and Constraints11 Mar

Other references · 30

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2023Let's Verify Step by Stepcited by 3,789
  6. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
  7. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
  8. 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
  9. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  10. 2023Instruction-Following Evaluation for Large Language Modelscited by 1,228
  11. 2023Evaluating Large Language Models at Evaluating Instruction Followingcited by 302
  12. 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 300
18 more
  1. 2025ZebraLogic: On the Scaling Limits of LLMs for Logical Reasoningcited by 201
  2. 2025Generalizing Verifiable Instruction Followingcited by 194
  3. 2024Benchmarking Complex Instruction-Following with Multiple Constraints Compositioncited by 152
  4. 2024InFoBench: Evaluating Instruction Following Ability in Large Language Modelscited by 135
  5. 2023FollowBench: A Multi-level Fine-grained Constraints Following Benchmark for Large Language Modelscited by 117
  6. 2023The Impact of Large Language Models on Scientific Discovery: a Preliminary Study using GPT-4cited by 112
  7. 2025When Thinking Fails: The Pitfalls of Reasoning for Instruction-Following in LLMscited by 53
  8. 2024LIFBench: Evaluating the Instruction Following Performance and Stability of Large Language Models in Long-Context Scenarioscited by 33
  9. 2025Scaling Reasoning, Losing Control: Evaluating Instruction Following in Large Reasoning Modelscited by 28
  10. 2025How Many Instructions Can LLMs Follow at Once?cited by 20
  11. 2025Incentivizing Reasoning for Advanced Instruction-Following of Large Language Modelscited by 17
  12. 2024Code Simulation Challenges for Large Language Modelscited by 15
  13. 2025LIFEBench: Evaluating Length Instruction Following in Large Language Modelscited by 12
  14. 2025Enhancing LLM-Based Code Generation with Complexity Metrics: A Feedback-Driven Approachcited by 10
  15. 2020An Empirical Validation of Cognitive Complexity as a Measure of Source Code Understandabilitycited by 7
  16. 2025Code Simulation as a Proxy for High-order Tasks in Large Language Modelscited by 7
  17. 2025L0-Reasoning Bench: Evaluating Procedural Correctness in Language Models via Simple Program Executioncited by 5
  18. 2025IFEvalCode: Controlled Code Generationcited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026LogicSkills: A Structured Benchmark for Formal Reasoning in Large Language Models
  2. 2025ReasonIF: Large Reasoning Models Fail to Follow Instructions During Reasoning
  3. 2026QMFOL: Benchmarking Large Language Model Reasoning via Quantifiable Monadic First-Order Logic Test Case Generation
  4. 2023Ada-Instruct: Adapting Instruction Generators for Complex Reasoning
  5. 2026IndicIFEval: A Benchmark for Verifiable Instruction-Following Evaluation in 14 Indic Languages
  6. 2024LogicAsker: Evaluating and Improving the Logical Reasoning Ability of Large Language Models
  7. 2026Neuro-Symbolic Verification on Instruction Following of LLMs
  8. 2026ImpRIF: Stronger Implicit Reasoning Leads to Better Complex Instruction Following