Introduction
Traditional table-based Question Answering (QA) systems, such as those employing Natural Language to SQL (NL2SQL), are primarily designed for deterministic retrieval. They excel at answering factual questions like "What was the revenue in Q3?" where the answer resides in a specific cell. However, real-world decision-making often requires reasoning under uncertainty—for example, "How likely is a shipment delay if the warehouse is in Region A?"
Deterministic SQL is ill-equipped for these probabilistic "likelihood" queries. Conversely, Large Language Models (LLMs) prompted with raw tabular data frequently suffer from hallucinations or fail to generalize when reasoning becomes complex. To address these challenges, researchers from Megagon Labs and Adobe introduced LUCARIO, a large-scale benchmark for probabilistic QA, and Auto-BN, a neuro-symbolic framework that combines the statistical rigor of Bayesian Networks (BNs) with the linguistic flexibility of LLMs.
The Auto-BN Framework
The Auto-BN framework bridges the gap between structured data and natural language by separating mathematical inference from linguistic interpretation. The pipeline consists of four main stages:
- Bayesian Network Construction: The system automatically induces a BN directly from tabular data, capturing statistical dependencies between columns without manual expert intervention.
- Query Translation: An LLM acts as a translator, converting natural language questions into formal probabilistic queries compatible with the BN.
- Inference Engine: The system executes the formal query against the induced BN using exact inference (variable elimination) to calculate a precise probability.
- Answer Generation: Finally, the LLM takes the calculated probability and verbalizes it into a coherent, natural language response.
By grounding reasoning in a symbolic probabilistic model, Auto-BN avoids the "black box" reasoning errors typical of pure neural approaches.
The LUCARIO Benchmark
To evaluate probabilistic reasoning at scale, the authors developed LUCARIO, a benchmark built upon the BIRD dataset. LUCARIO represents a significant advancement over previous benchmarks in terms of scale and complexity, featuring 10 real-world large-scale tables (averaging ~486k rows) across diverse domains such as finance, sports, and healthcare.
A key contribution of LUCARIO is its linguistic variety. It includes 6,280 question-answer pairs across four distinct types: Exact (matching BN states), Shifted (alternative ranges), Certain (single values), and Natural (free-form language). This variety tests the system's ability to map diverse linguistic expressions to the underlying statistical structure.
Key Insights and Results
The study confirms that factual retrieval methods like NL2SQL and raw LLM prompting are insufficient for probabilistic tasks. NL2SQL often fails because it searches for exact record matches rather than identifying statistical patterns. Furthermore, the authors found that providing the LLM with a small, curated set of "high-impact insights"—identified via Markov Blanket analysis—drastically improved performance. These insights act as a "cheat sheet" of the most critical correlations in the data.
The Auto-BN framework (using GPT-4o) emerged as the superior approach:
- Accuracy: It achieved 38.2% $Acc_{0.02}$ (predictions within ±0.02 of the ground truth), nearly doubling the performance of factual LLM-only baselines.
- Error Reduction: It maintained a notably low Mean Absolute Error (MAE) of 0.103, demonstrating higher calibration than retrieval-based methods.
- Robustness: While NL2SQL performance degraded as questions became more "natural," Auto-BN remained robust by focusing on mapping concepts to the underlying Bayesian structure.
Limitations and Future Work
The authors acknowledge several areas for improvement. The system learns purely from the provided data; if a causal factor is "latent" (unrecorded), the BN cannot account for it. Additionally, while BNs capture statistical dependencies, they may conflate correlation with causation without external semantic knowledge. Future research will explore integrating external knowledge graphs to refine learned structures and improving the LLM's ability to handle highly ambiguous linguistic expressions.
Summary updated