Proceedings

StructureBench: A Unified Benchmark Suite for Multi-Scenario Structured Generation Tasks with On-Device Models

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 2400-2408.

https://doi.org/10.24963/ijcai.2026/267

Abstract

Structured output generation is increasingly critical for real-world AI systems, particularly in on-device settings where small language models (0.5B–8B parameters) must produce machine-executable outputs under strict latency and privacy constraints. Although constrained decoding provides formal guarantees of structural validity without retraining, its effectiveness across different tasks, models, and constraint formalisms remains insufficiently understood. We introduce StructureBench, a comprehensive benchmark for structured generation on edge devices, covering JSON and tool-call generation, code synthesis, mathematics, science, and domain-specific languages, and evaluating over 11 on-device language and vision–language models spanning 0.5B–8B parameters. StructureBench systematically compares prompt-based generation with three widely used constrained decoding frameworks—Outlines, XGrammar, and Guidance—and adopts decoupled metrics to separately assess structural validity and semantic correctness. Our experiments show that constrained decoding consistently enforces syntactic validity, but does not reliably improve semantic accuracy and may even degrade performance for smaller models or complex grammars. These findings reveal clear task- and model-dependent boundaries for effective constrained decoding and highlight the need for scenario-aware adaptation in on-device structured generation. We release StructureBench at https://github.com/Str-Ben/StructureBench.

  1. [Abdin et al., 2024] Marah Abdin, Jyoti Aneja, Hany Awadalla, Ahmed Awadallah, et al. Phi-3 technical report: A highly capable language model locally on your phone, 2024.
  2. [Ascend-Tribe, 2025] Ascend-Tribe. Openpangu- embedded-1b model. https://ai.gitcode.com/ascend-tribe/ openpangu-embedded-1b-model, 2025. GitCode reposi- tory, accessed 2026-01-20. Link
  3. [Banarescu et al., 2013] Laura Banarescu, Claire Bonial, Shu Cai, Madalina Georgescu, Kira Griffitt, et al. Abstract meaning representation for sembanking. In Proceedings of the 7th Linguistic Annotation Workshop and Interop- erability with Discourse, pages 178-186, Sofia, Bulgaria, August 2013. Association for Computational Linguistics.
  4. [Cai et al., 2023] Tianle Cai, Xuezhi Wang, Tengyu Ma, Xinyun Chen, and Denny Zhou. Large language models as tool makers. arXiv preprint arXiv:2305.17126, 2023.
  5. [Chen et al., 2021] Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, et al. Evaluating large language models trained on code, 2021.
  6. [Chen et al., 2025a] Hanting Chen, Yasheng Wang, Kai Han, Dong Li, Lin Li, Zhenni Bi, Jinpeng Li, Haoyu Wang, Fei Mi, Mingjian Zhu, Bin Wang, Kaikai Song, Yifei Fu, Xu He, Yu Luo, Chong Zhu, Quan He, Xueyu Wu, Wei He, Hailin Hu, Yehui Tang, Dacheng Tao, Xinghao Chen, Yunhe Wang, et al. Pangu embedded: An efficient dual- system llm reasoner with metacognition, 2025.
  7. [Chen et al., 2025b] Junyi Chen, Shihao Bai, Zaijun Wang, Siyu Wu, Chuheng Du, Hailong Yang, Ruihao Gong, Shengzhong Liu, Fan Wu, and Guihai Chen. Pre 3 : En- abling deterministic pushdown automata for faster struc- tured LLM generation. In Wanxiang Che, Joyce Nabende, Ekaterina Shutova, and Mohammad Taher Pilehvar, edi- tors, Proceedings of the 63rd Annual Meeting of the As- sociation for Computational Linguistics (Volume 1: Long Papers), pages 11253-11267, Vienna, Austria, July 2025. Association for Computational Linguistics.
  8. [Chen et al., 2025c] Junyi Chen, Chuheng Du, Renyuan Liu, Shuochao Yao, Dingtian Yan, Jiang Liao, Shengzhong Liu, Fan Wu, and Guihai Chen. Tokenflow: Responsive llm text streaming serving under request burst via preemptive scheduling. arXiv preprint arXiv:2510.02758, 2025.
  9. [Dong et al., 2024] Yixin Dong, Charlie F Ruan, Yaxing Cai, Ruihang Lai, Ziyi Xu, Yilong Zhao, and Tianqi Chen. Xgrammar: Flexible and efficient structured generation engine for large language models. Proceedings of Machine Learning and Systems 7, 2024.
  10. [Erez, 2016] Shinan Erez. Lark: A parsing toolkit for python. https://github.com/lark-parser/lark, 2016. GitHub repository, accessed 2026-01-20. Link
  11. [Geng et al., 2025] Saibo Geng, Hudson Cooper, Michał Moskal, Samuel Jenkins, Julian Berman, Nathan Ranchin, Robert West, Eric Horvitz, and Harsha Nori. Json- schemabench: A rigorous benchmark of structured outputs for language models. arXiv preprint arXiv:2501.10868, 2025.
  12. [Guidance AI, 2023] Guidance AI. Guidance: A lan- guage model programming framework. https://github. com/guidance-ai/guidance, 2023. Accessed: 2024-12-18. Link
  13. [Hu et al., 2019] J. Edward Hu, Huda Khayrallah, Ryan Culkin, Patrick Xia, Tongfei Chen, Matt Post, and Ben- jamin Van Durme. Improved lexically constrained de- coding for translation and monolingual rewriting. In Jill Burstein, Christy Doran, and Thamar Solorio, editors, Pro- ceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguis- tics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 839-850, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. [interstellarninja and Teknium, 2025] interstellarninja and Teknium. Hermes function calling dataset v1. https://huggingface.co/NousResearch/ hermes-function-calling-v1, 2025. Link
  14. [Kadlčík et al., 2023] Marek Kadlčík, Michal Štefánik, Ondřej Sotolář, and Vlastimil Martinek. Calc-x and calcformers: Empowering arithmetical chain-of-thought through interaction with symbolic systems. In Proceedings of the The 2023 Conference on Empirical Methods in Nat- ural Language Processing: Main track, Singapore, Singa- pore, December 2023. Association for Computational Lin- guistics.
  15. [Li et al., 2024] Zekun Li, Zhiyu Zoey Chen, Mike Ross, Patrick Huber, Seungwhan Moon, Zhaojiang Lin, Xin Luna Dong, Adithya Sagar, Xifeng Yan, and Paul A Crook. Large language models as zero-shot dialogue state tracker through function calling. arXiv preprint arXiv:2402.10466, 2024.
  16. [linxy, 2018] linxy. Latex ocr (hugging face dataset). https: //huggingface.co/datasets/linxy/LaTeX OCR, 2018. Hug- ging Face Datasets, accessed 2026-01-20. Link
  17. [Meyer et al., 2024] Yev Meyer, Marjan Emadi, Dhruv Nathawani, Lipika Ramaswamy, Kendrick Boyd, Maarten Van Segbroeck, Matthew Grossman, Piotr Mlocek, and Drew Newberry. Synthetic-Text-To-SQL: A synthetic dataset for training language models to generate sql queries from natural language prompts, April 2024.
  18. [Patil et al., 2025] Shishir G. Patil, Huanzhi Mao, Charlie Cheng-Jie Ji, Fanjia Yan, Vishnu Suresh, Ion Stoica, and Joseph E. Gonzalez. The berkeley function calling leader- board (bfcl): From tool use to agentic evaluation of large language models. In Forty-second International Confer- ence on Machine Learning, 2025.
  19. [Roy et al., 2023] Subhro Roy, Samuel Thomson, Tongfei Chen, Richard Shin, Adam Pauls, Jason Eisner, and Ben- jamin Van Durme. Benchclamp: A benchmark for eval- uating language models on syntactic and semantic pars- ing. Advances in Neural Information Processing Systems, 36:49814-49829, 2023.
  20. [Scholak et al., 2021] Torsten Scholak, Nathan Schucher, and Dzmitry Bahdanau. Picard: Parsing incrementally for constrained auto-regressive decoding from language mod- els. arXiv preprint arXiv:2109.05093, 2021.
  21. [Singh, 2023] Shivalika Singh. Cheques sample data (hugging face dataset). https://huggingface.co/datasets/ shivalikasingh/cheques sample data, 2023. Link
  22. [Tang et al., 2024] Xiangru Tang, Yiming Zong, Jason Phang, Yilun Zhao, Wangchunshu Zhou, Arman Cohan, and Mark Gerstein. Struc-bench: Are large language mod- els good at generating complex structured tabular data? In Kevin Duh, Helena Gomez, and Steven Bethard, editors, Proceedings of the 2024 Conference of the North Amer- ican Chapter of the Association for Computational Lin- guistics: Human Language Technologies (Volume 2: Short Papers), pages 12-34, Mexico City, Mexico, June 2024. Association for Computational Linguistics.
  23. [Team, 2025b] MiniCPM Team. Minicpm4: Ultra-efficient llms on end devices, 2025.
  24. [Tow et al., 2024] Jonathan Tow, Marco Bellagente, Dakota Mahan, and Carlos Riquelme. Stablelm 3b 4e1t, 2024.
  25. [Wang et al., 2025] Shuaiqi Wang, Vikas Raunak, Arturs Backurs, Victor Reis, Pei Zhou, Sihao Chen, Longqi Yang, Zinan Lin, Sergey Yekhanin, and Giulia Fanti. Struct- bench: A benchmark for differentially private structured text generation, 2025.
  26. [Weininger, 1988] David Weininger. Smiles, a chemical lan- guage and information system. 1. introduction to method- ology and encoding rules. Journal of Chemical Informa- tion and Computer Sciences, 28(1):31-36, 1988.
  27. [Willard and Louf, 2023] Brandon T Willard and Rémi Louf. Efficient guided generation for large language mod- els. arXiv preprint arXiv:2307.09702, 2023.
  28. [Yang et al., 2025] An Yang, Anfeng Li, Baosong Yang, Be- ichen Zhang, et al. Qwen3 technical report, 2025.
  29. [Zhang et al., 2024] Peiyuan Zhang, Guangtao Zeng, Tian- duo Wang, and Wei Lu. Tinyllama: An open-source small language model, 2024.
  30. [Zhuo et al., 2024] Terry Yue Zhuo, Minh Chien Vu, Jenny Chim, Han Hu, Wenhao Yu, Ratnadira Widyasari, Imam Nur Bani Yusuf, Haolan Zhan, Junda He, Indraneil Paul, et al. Bigcodebench: Benchmarking code generation with diverse function calls and complex instructions. arXiv preprint arXiv:2406.15877, 2024.
  31. [Zuo et al., 2024] Max Zuo, Francisco Piedrahita Velez, Xi- aochen Li, Michael L. Littman, and Stephen H. Bach. Planetarium: A rigorous benchmark for translating text to structured planning languages, 2024.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards