<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Nara, Japan
* Corresponding author.
†These authors contributed equally.
$ andre.melo@huawei.com (A. Melo); jef.pan@huawei.com (J. Z. Pan)</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Schema-Constrained Grammar-Guided Generation of GQL Queries from Natural Language</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>André Melo</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jef Z. Pan</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Semple St.</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>BL Edinburgh</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>United Kingdom</string-name>
        </contrib>
      </contrib-group>
      <pub-date>
        <year>2025</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0001</lpage>
      <abstract>
        <p>Graph databases provide a robust foundation for storing and querying knowledge graphs, making them wellsuited for powering intelligent personal assistants. Translating natural language into graph query languages (NL2GQL) enables these assistants to answer user queries by leveraging personal data stored as graphs. To preserve user privacy, on-device processing is preferred, but it comes with strict computational and memory constraints. A major challenge in this setting is ensuring that generated queries comply with user-specific, often custom, graph schemata. In this paper, we explore the business value and challenges of NL2GQL translation in a privacy-sensitive, resource-constrained setting, and propose grammar-guided generation with incorporated schema constraints as a potential solution to address these challenges.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;grammar guided generation</kwd>
        <kwd>schema constrained generation</kwd>
        <kwd>knowledge graphs</kwd>
        <kwd>question answering</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Large Language Models (LLMs) are powerful tools ofering advanced capabilities in understanding and
generating natural language, which makes them ideal for personal assistant applications (e.g. Apple’s
Siri and Huawei’s Celia). LLMs also have the ability to translate natural language (NL) into structured
query languages, such as Graph Query Language (GQL) 1, enabling users to access and manipulate
structured data without needing to understand complex query syntax. This allows on-device user
information, which can be structured as a knowledge graph [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], to be used for answering complex
personal questions, e.g., “What was the book my mom gave to my sister at her birthday last year?”, which
may require the connection of cross-application personal information from contacts, events, pictures,
documents, etc. In such personal settings, on-device inference is essential to ensure privacy. This
imposes strict resource requirements, limiting the size of the models that can be used. Whilst open
weights models can translate NL queries with some success, their smaller versions (around 7B or less)
struggle to generate correct and syntactically valid queries [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>Additionally, the generated query also needs to comply with the graph schema. The usual approach
for generating schema-compliant queries with LLMs is to add the relevant schema definition to the
prompt context, which can substantially increase the context size and therefore the inference time.
Alternatively, one could fine-tune a model to generate queries following a given graph schema. However,
diferent users may have diferent schemata, thereby requiring a generic umbrella schema for all users,
or fine-tuning the model for each user’s schema. The model would also have to be updated every time
there are changes to the schema. Adding a separate specialised model for the query translation is
another option, but it is not memory eficient, which is a major issue in the on-device setting.</p>
      <p>Grammar-constrained generation can enhance the LLM’s graph query generation capabilities and
improve the syntactic accuracy without requiring any fine-tuning or additional specialised models.
Moreover, by creating custom grammar extensions, the schema information, or parts of it, can be
integrated into the GQL grammar itself. This allows the LLM to generate schema-compliant queries
of-the-bat and reduces or eliminates the need to provide the schema definition within the query
translation prompt, thereby reducing compute and response time.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>
        There are several works NL2SQL queries using grammar, with the generation of the query’s abstract
syntax tree (AST) in a top-down manner [
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ]. That means the model has to directly generate AST
nodes, which requires special training data and vocabulary. These works later incorporate schema
information to generate terminal nodes in the tree. Other methods rely on the LLM to generate valid
queries, featuring refinement and correction prompting pipelines to progressively improve the query [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
This is prohibitively expensive and may require several prompting steps with long contexts. It also
does not guarantee syntax compliance and it is highly sensitive to the LLM’s capabilities. Liang et al.
ifne-tunes LLMs for both the query language and the application schema [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], however, this is inherently
expensive, requiring fine-tuning for each new schema, and requiring training data to be available.
      </p>
      <p>
        More recently, SGU-SQL [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] reached state-of-the-art NL2SQL results with syntax-based decomposition
to progressively generate SQL queries. It establishes connections between user queries and database
schema and decomposes the complex generation task using syntax-based prompting. Zhout et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]
report low syntactic accuracy on NL2GQL translation with in-context schema declaration and no
schemaconstrained generation. Whilst Netz et al. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] show that adding grammar-constrained generation to a
model leads to substantial improvement in syntax accuracy, however, they report increase in runtime.
To the best of our knowledge, there has been no works using grammar-guided generation, where the
schema information is incorporated directly into the grammar itself.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Schema-Constrained Grammar-Guided Generation</title>
      <p>
        Grammar-guided generation enables LLMs to generate output conforming to a given grammar. It has
become increasingly popular, with specialized open-source systems such as transformersCFG [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]
syncode [10] and outlines [11] enabling support of custom context-free-grammars (CFGs). XGrammar [12]
improves decoding eficiency and inference runtime by dividing the vocabulary into context-independent
tokens that can be pre-checked and context-dependent tokens that need to be interpreted during runtime.
At the same time, popular LLM inference frameworks, such Llama.cpp, are also able to do rule-based
constrained decoding, not only with regex and custom JSON schemata, but also with GBNF 2 support,
which also enables use of custom CFGs.
      </p>
      <sec id="sec-3-1">
        <title>3.1. Schema-Constrained Grammar Extension</title>
        <p>The existence of grammar-constrained generation frameworks supporting custom CFG definitions
provides invaluable opportunities for the query translation problem. A custom extended query
language grammar including schema information is able to enforce both syntactic accuracy and schema
compliance at decoding time. Moreover, a subset of the target GQL language can be used, in case the
whole language syntax is not needed for a given use case. E.g., if the graph is meant to support question
answering only, the parts of the GQL’s language used for creation, update and deletion can be ignored.</p>
        <p>In order to enable the schema-constrained grammar extension, the original query language grammar
needs to be modified to include placeholders for the schema components. Those would then be expanded
in order to include the input schema information, which can be done fully automatically. The dificulty
and manual efort required is the inclusion of placeholders into the source query language grammar,
which is done once per query language.</p>
        <p>The placeholders in the example are for node type ${node}, property ${prop} and relation ${rel}. Those
are expanded by iterating over the schema components provided as input. Given the schema below, the</p>
        <sec id="sec-3-1-1">
          <title>2https://github.com/ggml-org/llama.cpp/blob/master/grammars/README.md</title>
          <p>schema-constrained grammar rules (right column) can be generated from the definition with placeholder
(left). The rules names with more than one placeholder, e.g., ${rel}_${prop}, allowing the expressions
of schema dependencies. In the example 3, plays_for_properties only allows points_scored and position as
defined in the schema. This also allows property datatypes to be enforced according to the schema.</p>
          <p>CREATE TAG ‘Player‘ (‘name‘ string NULL, ‘birthday‘ date NULL, ‘birthplace‘ string NULL, ‘retired‘ boolean NULL)
CREATE TAG ‘Team‘ (‘name‘ string NULL, ‘city‘ string NULL)
CREATE EDGE ‘PLAYS_FOR‘ (‘position‘ string NULL, points_scored int64 NULL)</p>
          <p>CREATE EDGE ‘TEAM_MATE‘ (‘start_year‘ int64 NULL, ‘end_year‘ int64 NULL)
relationship_label_props: ${rel}_label_props relationship_label_props: plays_for_label_props | team_mate_label_props
${rel}_label_props: ${rel}_label ${rel}_properties? plays_for_label_props: "PLAYS_FOR" plays_for_properties?
${rel}_properties: "{" ${rel}_property_list "}" plays_for_properties: ":" "{" plays_for_property_list "}"
${rel}_property_list: ${rel}_property ("," ${rel}_property)* plays_for_property_list: plays_for_property ("," plays_for_property)*
${rel}_property: ${rel}_${prop} plays_for_property: plays_for_position | plays_for_points_scored
${node}_${prop}: ${node}_${prop}_label ":" ${node}_${prop}_value plays_for_position: "position" ":" STRING
plays_for_points_scored: "points_scored" ":" INT
team_mate_label_props: "TEAM_MATE" team_mate_properties?</p>
          <p>The context-free grammar constraining the output does not ensure context-dependent compliance.
Therefore, parts of the query that depend on context, e.g. variable references, could potentially violate
the schema. Similarly, the literals in may require a post-processing step using the AST to ensure they
are correctly grounded against the graph data.</p>
        </sec>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Graph Schema Compliance and Data Grounding Post-processing</title>
        <p>Syntactic correction allows the generation of the query’s AST, which can be used in a post-processing
step to support the validation and correction of variable references and query literals. For instance,
given the schema definition, property assertion and GQL query below, the query’s AST can be used
to resolve the v2 variable ad identify it refers to a Team and that it is accessing the property birthplace.
Since, according to the schema, birthplace is not a property for Team, the schema violation is detected.</p>
        <p>CREATE TAG ‘Team‘ (‘name‘ string NULL, ‘city‘ string NULL)
(p:{name: “Michael Jordan”})-[PLAYS_FOR]-&gt;(t:{city: “Washington D.C”})</p>
        <p>MATCH (v1:Player{name:”Jordan”})-[:PLAYS_FOR]-&gt;(v2:Team) WHERE v2.birthplace = “D.C.” RETURN v2.name
The AST can also be used for literal grounding by identifying the kind property being referenced in
the literal expressions. E.g., in a string equality expression it is important to check whether the string
used in the expression is not incorrect due to a typo or a match is missed due to usage of synonyms or
abbreviations not contained in the graph. In the example above, "Jordan" can be checked against player
names in the data graph to identify potential corrections, e.g. "Michael Jordan". This can substantially
increase the query execution performance, as wrong query literals can lead to wrong results.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion and Future Research Directions</title>
      <p>Integrating semantic knowledge-graph schemata into grammar has the potential to have a high impact
on personal assistants, as it enables low-resource on-device natural language to graph query language
translation. However, there are several challenges to overcome and questions to research. It has been
shown that making the grammar too restrictive may hinder performance [13], therefore researching
how to best incorporate the schema information into the grammar is important. Another interesting
research topic is the incorporation of online parsing and observed context-dependent schema violations
into the decoding process. Backtracking [14] strategies to deal with detected violations could be used to
enable more comprehensive schema compliance. Finally, tools and best-practice guidelines for extending
grammars with schema information need to be researched and developed.</p>
      <sec id="sec-4-1">
        <title>3The example follows the Lark syntax and team_mate is not extended due to space restrictions</title>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Declaration on Generative AI</title>
      <p>Either:
The author(s) have not employed any Generative AI tools.</p>
      <p>Or (by using the activity taxonomy in ceur-ws.org/genai-tax.html):
During the preparation of this work, the author(s) used X-GPT-4 and Gramby in order to: Grammar and
spelling check. Further, the author(s) used X-AI-IMG for figures 3 and 4 in order to: Generate images.
After using these tool(s)/service(s), the author(s) reviewed and edited the content as needed and take(s)
full responsibility for the publication’s content.
[10] S. Ugare, T. Suresh, H. Kang, S. Misailovic, G. Singh, Syncode: Llm generation with grammar
augmentation, 2024. arXiv:2403.01632.
[11] B. T. Willard, R. Louf, Eficient guided generation for large language models, arXiv preprint
arXiv:2307.09702 (2023).
[12] Y. Dong, C. F. Ruan, Y. Cai, R. Lai, Z. Xu, Y. Zhao, T. Chen, Xgrammar: Flexible and eficient
structured generation engine for large language models, 2025. URL: https://arxiv.org/abs/2411.
15100. arXiv:2411.15100.
[13] L. Beurer-Kellner, M. Fischer, M. Vechev, Guiding llms the right way: fast, non-invasive constrained
generation, in: Proceedings of the 41st International Conference on Machine Learning, ICML’24,
JMLR.org, 2024.
[14] Y. Zhang, J. Chi, H. Nguyen, K. Upasani, D. M. Bikel, J. E. Weston, E. M. Smith,
Backtracking improves generation safety, in: The Thirteenth International Conference on
Learning Representations, ICLR 2025, Singapore, April 24-28, 2025, OpenReview.net, 2025. URL:
https://openreview.net/forum?id=Bo62NeU6VF.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>L.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Du</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Guo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <article-title>A question-answering assistant over personal knowledge graph</article-title>
          ,
          <source>in: Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval</source>
          , SIGIR '24,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2024</year>
          , p.
          <fpage>2708</fpage>
          -
          <lpage>2712</lpage>
          . URL: https://doi.org/10.1145/3626772.3657665. doi:
          <volume>10</volume>
          .1145/3626772.3657665.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>L.</given-names>
            <surname>Shi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Tang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <surname>A</surname>
          </string-name>
          <article-title>Survey on Employing Large Language Models for Text-to-SQL Tasks, arXiv e-prints (</article-title>
          <year>2024</year>
          ) arXiv:
          <fpage>2407</fpage>
          .15186. doi:
          <volume>10</volume>
          .48550/arXiv.2407.15186. arXiv:
          <volume>2407</volume>
          .
          <fpage>15186</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>B.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Shin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Polozov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Richardson</surname>
          </string-name>
          , RAT-SQL:
          <article-title>Relation-aware schema encoding and linking for text-to-SQL parsers</article-title>
          , in: D.
          <string-name>
            <surname>Jurafsky</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Chai</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          <string-name>
            <surname>Schluter</surname>
          </string-name>
          , J. Tetreault (Eds.),
          <article-title>Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, Association for Computational Linguistics</article-title>
          , Online,
          <year>2020</year>
          , pp.
          <fpage>7567</fpage>
          -
          <lpage>7578</lpage>
          . URL: https://aclanthology.org/
          <year>2020</year>
          .acl-main.
          <volume>677</volume>
          /. doi:
          <volume>10</volume>
          .18653/v1/
          <year>2020</year>
          .acl-main.
          <volume>677</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>R.</given-names>
            <surname>Cao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , H. Xu,
          <string-name>
            <given-names>J.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Ma</surname>
          </string-name>
          , L. Chen,
          <string-name>
            <given-names>K.</given-names>
            <surname>Yu</surname>
          </string-name>
          ,
          <article-title>Astormer: An AST structure-aware transformer decoder for text-to-sql</article-title>
          ,
          <source>CoRR abs/2310</source>
          .18662 (
          <year>2023</year>
          ). URL: https://doi.org/10.48550/arXiv.2310.18662. doi:
          <volume>10</volume>
          .48550/ARXIV.2310.18662. arXiv:
          <volume>2310</volume>
          .
          <fpage>18662</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Tian</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Ni</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Yin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Ji</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Qiu</surname>
          </string-name>
          , G. Ye, H. Chai,
          <fpage>3</fpage>
          -
          <lpage>NL2GQL</lpage>
          :
          <article-title>A model coordination and knowledge graph alignment approach for NL2GQL</article-title>
          , in: Y.
          <string-name>
            <surname>Al-Onaizan</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Bansal</surname>
            ,
            <given-names>Y.-N.</given-names>
          </string-name>
          <string-name>
            <surname>Chen</surname>
          </string-name>
          (Eds.),
          <source>Findings of the Association for Computational Linguistics: EMNLP</source>
          <year>2024</year>
          ,
          <article-title>Association for Computational Linguistics</article-title>
          , Miami, Florida, USA,
          <year>2024</year>
          , pp.
          <fpage>13679</fpage>
          -
          <lpage>13692</lpage>
          . URL: https://aclanthology.org/
          <year>2024</year>
          .findings-emnlp.
          <volume>800</volume>
          /. doi:
          <volume>10</volume>
          .18653/v1/
          <year>2024</year>
          .findings-emnlp.
          <volume>800</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Liang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Tan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Xie</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Tao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Lan</surname>
          </string-name>
          , W. Qian,
          <article-title>Aligning large language models to a domain-specific graph database for nl2gql</article-title>
          ,
          <source>in: Proceedings of the 33rd ACM International Conference on Information and Knowledge Management</source>
          , CIKM '24,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2024</year>
          , p.
          <fpage>1367</fpage>
          -
          <lpage>1377</lpage>
          . URL: https://doi.org/10.1145/3627673.3679713. doi:
          <volume>10</volume>
          .1145/3627673.3679713.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Q.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Dong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Huang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Huang</surname>
          </string-name>
          ,
          <article-title>Structure-guided large language models for text-to-SQL generation</article-title>
          ,
          <year>2025</year>
          . URL: https://openreview.net/forum?id=ReKWjKvkJE.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>L.</given-names>
            <surname>Netz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Reimer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Rumpe</surname>
          </string-name>
          ,
          <article-title>Using grammar masking to ensure syntactic validity in llm-based modeling tasks</article-title>
          ,
          <source>in: Proceedings of the ACM/IEEE 27th International Conference on Model Driven Engineering Languages and Systems</source>
          , MODELS Companion '
          <volume>24</volume>
          ,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2024</year>
          , p.
          <fpage>115</fpage>
          -
          <lpage>122</lpage>
          . URL: https://doi.org/10.1145/3652620.3687805. doi:
          <volume>10</volume>
          .1145/3652620.3687805.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>S.</given-names>
            <surname>Geng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Josifoski</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Peyrard</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>West</surname>
          </string-name>
          ,
          <article-title>Grammar-constrained decoding for structured NLP tasks without finetuning</article-title>
          , in: H.
          <string-name>
            <surname>Bouamor</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Pino</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          Bali (Eds.),
          <source>Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing</source>
          , Association for Computational Linguistics, Singapore,
          <year>2023</year>
          . URL: https://aclanthology.org/
          <year>2023</year>
          .emnlp-main.
          <volume>674</volume>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>