The primary obstacle to the safe application of artificial intelligence (AI) in sensitive fields such as healthcare and law is the phenomenon of Large Language Models (LLM) hallucinations, which produce fluent yet factually incorrect or illogical outputs. This paper investigates hallucinations as reasoning failures, distinguishing between factual inaccuracies and flawed logical derivations. We examine the limitations of current interpretability tools including Retrieval-Augmented Generation (RAG), attention mechanisms, SHapley Additive exPlanations (SHAP), and Local Interpretable Model-agnostic Explanations (LIME), which often fail to identify the root causes of these errors. To address this gap, we analyze reasoning in LLMs through two complementary paradigms: deterministic rule-based and stochastic data-driven approaches. We argue that hybrid reasoning techniques can improve the accountability and transparency of model behavior. A real-world use case in decision support systems illustrates the risks associated with transparent reasoning in high-stakes applications. We also present a comparative framework to evaluate the ability of common explainability techniques to detect and account for hallucinated outputs. Finally, we suggest useful techniques to improve trustworthiness, such as training data attribution, confidence calibration, and prompt-based abstention mechanisms. Our results highlight how crucial reasoning-aware explainability is as a starting point for ensuring that LLMs behavior complies with safety, dependability, and responsible AI deployment standards.
This paper presents TwinP2G, a software application for optimal planning of investments in power-to-gas (PtG) systems. TwinP2G provides simulation and optimization services for the techno-economic analysis of user-customized energy networks. The core of TwinP2G is based on power flow simulation; however it supports energy sector coupling, including electricity, green hydrogen, natural gas, and synthetic methane. The framework provides a user-friendly user interface (UI) suitable for various user roles, including data scientists and energy experts, using visualizations and metrics on the assessed investments. An identity and access management mechanism also serves the security and authorization needs of the framework. Finally, TwinP2G revolutionizes the concept of data availability and data sharing by granting its users access to distributed energy datasets available in the EnerShare Data Space. These data are available to TwinP2G users for conducting their experiments and extracting useful insights on optimal PtG investments for the energy grid.