Abstract
dc:description.abstractMuch of the world's information is stored in structured databases, yet accessing these data typically requires expertise in formal query languages and knowledge of underlying database schemas. This thesis investigates machine learning methods for enabling user-targeted question answering over structured data, focusing on two complex domains: The OpenStreetMap geospatial database and the MIMIC-III medical database. Three overarching themes guide the contributions: user-targeting, which prioritizes the needs of end users by adapting system behavior to their expertise and context; interpretability, which ensures that model outputs are transparent and verifiable; and grounding, which connects model outputs to verifiable external sources such as database execution results or established medical consensus definitions. For the geospatial domain, we present two complementary approaches to semantic parsing, i.e., translating natural language questions into executable formal queries over a structured database. First, we address the challenge of ambiguity in natural language queries by developing an interactive system that detects uncertainty in parser outputs and initiates clarification dialogues with users. This approach implements user-targeting by refusing to make arbitrary assumptions about user intent, instead engaging with users to refine their queries. Training on these dialogues yields significant improvements in parsing accuracy. Second, we study execution-grounded semantic parsing for translating natural language into OverpassQL, the query language used by the OpenStreetMap community. To support this task, we introduce OverpassNL, a dataset of 8,500 natural language inputs paired with real-world Overpass queries collected from OpenStreetMap users. We establish evaluation protocols that combine a task-specific similarity metric operating on surface form, syntax and key-value semantics with execution-based accuracy, verifying generated queries by running them against the live OpenStreetMap database. We demonstrate that GPT-4 with in-context examples outperforms finetuned sequence-to-sequence models. Self-refinement, where execution feedback is appended to the prompt to iteratively improve generated queries, further reduces errors. While the thesis question remains the same, the medical domain changes the form of the answer from executable queries to forecasts, similarity judgments and rule-based diagnostic explanations. For the medical domain, we propose a paradigm shift for early syndrome prediction. Rather than directly predicting diagnostic labels, we forecast clinical variables and deterministically apply medical consensus definitions to these predictions. This ``prediction of causes'' approach yields interpretable outputs grounded in the same criteria clinicians use. Our investigation of encoder-decoder architectures reveals that dense encoders combined with iterative multi-step decoders trained via student forcing achieve optimal performance for long-term clinical time series forecasting. Building on the forecasting model and learned representations introduced above, we next address the question of patient similarity by applying compositionality to clinical time series. By decomposing patient trajectories into segments, embedding them using pretrained forecasters and clustering to discover latent physiological states, we develop a data augmentation technique that synthesizes new time series by recombining segments with similar symbolic representations. This approach is grounded in the compositional structure of clinical trajectories and designed for medical researchers who require augmentation methods that preserve clinical plausibility. The compositional approach demonstrates superior performance compared to random mixing baselines. Finally, we unify natural language with medical prediction by teaching large language models to diagnose sepsis according to the Sepsis-3 consensus definition. Finetuning on verbalized instantiations of the inference process achieves near-perfect derivation correctness for the deductive rules of the consensus definition, demonstrating that LLMs can reliably learn complex clinical logic when appropriately structured. The remaining difficulty lies in the inductive step of forecasting future clinical variables for downstream diagnosis. In a multimodal extension, we address this bottleneck by providing the language model with representations from the forecasting model introduced earlier, improved through compositional augmentation. This design supports interpretability by requiring the model to verbalize intermediate rule applications rather than simply outputting a label. The methods developed in this thesis contribute to narrowing the accessibility gap between structured databases and the users who need them. By maintaining a consistent focus on user-targeting, interpretability and grounding, the work offers systems that users can understand, verify and ultimately trust; not as replacements for human expertise, but as tools that support human capabilities and facilitate better decisions.
Degree
thesis:*- Level thesis:degree_level
- thesis.doctoral
- Department thesis:degree_department
- Neuphilologische Fakultät
- Grantor dc:publisher
- Universität Heidelberg
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Staniek, Michael
- Advisor dc:contributor.advisor
-
- Riezler, Stefan
Rights
dc:rights.accessrights- Statement dc:rights.accessrights
-
- free
- Language dc:language.dcterms_iso639_2
- eng