ResearchResearch paperLarge Language Models1 source · Oct 21, 2026

Metamodel-Guided LLM Decoding for Consistent DSL Generation

We present MeMoDecode: a decoding framework that enforces a DSL's concrete syntax, abstract syntax, and well-formedness constraints jointly.

Key points

  • Large language models (LLMs) are increasingly used to generate software engineering artifacts written in domain-specific languages (DSLs).
  • Correct DSL instances usually must comply with not only the concrete syntax but also the abstract syntax defined by a metamodel augmented with semantic well-formedness constraints.
  • Specifically, whenever the LLM generates a complete metamodel concept, MeMoDecode incrementally maps the current output to a partial model and verifies whether it can still be completed into a consistent instance.
  • These results show that metamodel-guided decoding is an effective approach for enforcing DSL consistency during decoding across diverse DSLs and LLM scales.

Sources (1)

  • [1]Metamodel-Guided LLM Decoding for Consistent DSL Generation
    arXiv (AI, ML, NLP, CV, robotics, multi-agent) · Oct 21, 01:49 PM
    We present MeMoDecode: a decoding framework that enforces a DSL's concrete syntax, abstract syntax, and well-formedness constraints jointly.
    Large language models (LLMs) are increasingly used to generate software engineering artifacts written in domain-specific languages (DSLs).

Extractive summary: sentences quoted from the sources.

Before this

  1. Oct 20, 2026BitMTP: When Multi-Token Prediction Meets Low-Bit Large Language Models
  2. Oct 20, 2026Hallucinations of Large Language Models in Cross-Language Code Translation: Phenomena and Mitigation
  3. Oct 20, 2026CovNav: Conformal Prediction-Guided Adaptive Inference for Object Goal Navigation
  4. Oct 20, 2026Do Diffusion LLMs Scale? Testing Mercury 3 + Decide
  5. Oct 19, 2026Introducing Clairic, a new System One class of extraction models
  6. Oct 19, 2026Push-based KV transfer to improve TTFT and TPOT for disaggregated inference in vLLM

Related