Reproduce “LLM StructCore: Schema-Guided Reasoning Condensation and Deterministic Compilation” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Serhii Zabolotnii

LLM StructCore proposes a two-stage system to automate Case Report Form (CRF) filling from clinical notes, utilizing a large language model for initial information condensation and a deterministic compiler for schema enforcement and vocabulary normalization. The system achieved a macro-F1 score of 0.63 on the CL4Health 2026 Dyspnea CRF test set, exhibiting 100% JSON parse success for LLM outputs and demonstrating compatibility with smaller models for local deployment.

Key insights

  • Decomposing clinical information extraction into an LLM-based condensation followed by deterministic compilation significantly enhances output format stability, reliability, and explainability for sensitive applications.
  • Implementing Schema-Guided Reasoning (SGR) with a simple, flat 9-key JSON schema for initial LLM outputs achieves 100% JSON parse success, even with quantized smaller models, without requiring complex grammar-constrained decoding.
  • A fully deterministic compiler in Stage 2, incorporating strict rules for schema enforcement and false-positive gating, consistently outperforms LLM-based approaches for final CRF generation, ensuring reproducibility and enabling edge AI deployment.
  • The pipeline's design demonstrates language-agnostic capabilities, allowing competitive performance across multiple languages (English and Italian) with minimal language-specific engineering.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.