ConSequence: Synthesizing Logically Constrained Sequences for Electronic Health Record Generation

Brandon Theodorou, Shrusti Jain, Cao Xiao, Jimeng Sun
12/10/2023
7 citations
cs.LGcs.AIcs.CL

Official code: btheodorou/KnowledgeInfusion (1 star, Python, MIT, last commit 2025-11-19).

Abstract

Generative models can produce synthetic patient records for analytical tasks when real data is unavailable or limited. However, current methods struggle with adhering to domain-specific knowledge and removing invalid data.

Show full abstract

We present ConSequence, an effective approach to integrating domain knowledge into sequential generative neural network outputs. Our rule-based formulation includes temporal aggregation and antecedent evaluation modules, ensured by an efficient matrix multiplication formulation, to satisfy hard and soft logical constraints across time steps. Existing constraint methods often fail to guarantee constraint satisfaction, lack the ability to handle temporal constraints, and hinder the learning and computational efficiency of the model. In contrast, our approach efficiently handles all types of constraints with guaranteed logical coherence. We demonstrate ConSequence's effectiveness in generating electronic health records, outperforming competitors in achieving complete temporal and spatial constraint satisfaction without compromising runtime performance or generative quality. Specifically, ConSequence successfully prevents all rule violations while improving the model quality in reducing its test perplexity by 5% and incurring less than a 13% slowdown in generation speed compared to an unconstrained model.

View on arXivView PDF

Code Implementations(1)

MIT
10PythonFeb 6, 20231 years agoMIT

Similar Papers

Cite this paper

@article{theodorou2023consequence,
  title  = {ConSequence: Synthesizing Logically Constrained Sequences for Electronic Health Record Generation},
  author = {Brandon Theodorou and Shrusti Jain and Cao Xiao and Jimeng Sun},
  year   = {2023},
  eprint = {2312.05964},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.05964v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.05964.svg)](https://codeofpaper.com/paper/2312.05964)

Discussion