arXiv:2610.37316cs.AIOct 2026

Manuscript Offprint

arXiv:2610.37316

ReForest: Interpretability Meets Reasoning in Isolation Forest

Juyoung Seo, Geonwoo Bang, Dongho Kim, Moohong Min

Juyoung Seo 1^{1}, Geonwoo Bang 1^{1}, Dongho Kim 2^{2}, and Moohong Min 3∗^{3*}

1^{1} Department of Computer Education, Sungkyunkwan University, Seoul, Korea {tjwndud04, g7199}@g.skku.edu

2^{2} Department of Immersive Media Engineering, Sungkyunkwan University, Seoul, Korea

dp19753@g.skku.edu

3^{3} Department of Computer Education/Social Innovation Convergence Program, Sungkyunkwan University, Seoul, Korea

iceo@skku.edu

Abstract. Statistical anomaly detection methods like Isolation Forest are efficient but suffer from a critical semantic gap. They identify numerical rarities but fail to understand the contextual meaning of data, often missing subtle, context-dependent anomalies. Conversely, Large Language Models possess strong semantic reasoning capabilities but are prohibitively expensive and slow for large-scale deployment. To bridge this gap, we propose ReForest, a novel framework that synergizes the statistical efficiency of Isolation Forest with the reasoning power of LLMs. ReForest transforms the latent decision paths of Isolation Forest into natural-language explanations, enabling an LLM to refine anomaly detection through an uncertainty-aware dynamic ensemble. This approach allows the model to adaptively weigh statistical and semantic signals based on uncertainty-driven instance-level confidence. Extensive experiments on four real-world datasets (Healthcare, Finance) demonstrate that ReForest significantly outperforms baselines, achieving an average 21% improvement in Recall and a 10% gain in F1-score. Our framework not only improves detection performance but also enhances model transparency by grounding semantic narratives in statistical evidence, providing interpretable rationales essential for high-stakes decision-making.

Keywords: Anomaly Detection · Large Language Models · Isolation Forest · Explainable AI

1 Introduction

Anomaly detection is a cornerstone of modern data analytics, underpinning critical applications such as fraud detection in banking, intrusion detection in cybersecurity, and disease diagnosis in healthcare [1][1]. Traditional statistical methods, particularly Isolation Forest (IForest) [2][2], have been widely adopted due to their

∗^{*} Corresponding author.

J. Seo et al.

linear scalability and effectiveness in identifying numerical outliers. These methods operate on the premise that anomalies are “few and different,” isolating them in fewer steps than normal instances.

However, statistical methods face a fundamental limitation: the semantic gap [3]. They treat features as abstract numbers, ignoring the rich semantic context and relationships inherent in real-world data. For example, in an HR dataset, a “25-year-old employee with a $100k salary” might be statistically rare (an outlier), but semantically valid if their role is “Senior Developer” in a high-cost region. Conversely, a “30-year-old Intern” might be numerically normal but contextually anomalous. Purely statistical models often miss these context-dependent anomalies (False Negatives) or flag valid rare cases as anomalies (False Positives), lacking the reasoning capability to distinguish between the two.

Large Language Models (LLMs) [4,5] have recently emerged as powerful tools for reasoning and pattern recognition, with their pre-trained world knowledge enabling contextual understanding that statistical models lack. However, applying LLMs directly to anomaly detection faces critical challenges. Processing large-scale datasets with LLMs is computationally expensive and slow, making them impractical for real-time applications [6]. Moreover, without statistical grounding, LLMs may generate plausible but incorrect justifications for anomalies, leading to unreliable predictions [7].

To address these challenges, we introduce ReForest, a hybrid framework that combines the efficiency of Isolation Forest with the reasoning capabilities of LLMs. Unlike previous approaches that use fixed ensembles or expensive all-LLM pipelines, ReForest introduces three key innovations:

  1. Path-Aware LLM Integration: We explicitly extract the isolation paths (the sequence of rules that led IForest to flag a sample) and translate them into natural language narratives. This provides the LLM with a statistical grounding, asking it to validate the reason for isolation rather than just the raw data.

  2. Uncertainty-Aware Dynamic Ensemble: We propose a novel weighting mechanism that dynamically adjusts the influence of the statistical model and the LLM based on instance-level uncertainty. When the statistical model is confident, the system prioritizes efficiency; when it is uncertain (borderline cases), it relies more heavily on the LLM's semantic reasoning.

  3. Dual-View Explainability: Our framework provides interpretable explanations from both statistical and semantic perspectives, offering users transparent insights into why a sample is flagged as anomalous through both isolation paths and natural language reasoning.

Extensive experiments on four real-world datasets demonstrate that ReForest effectively bridges the semantic gap. Our method successfully identifies subtle anomalies that statistical methods miss, achieving substantial improvements in Recall while maintaining comparable precision and strong F1-scores across diverse domains. Furthermore, our efficient screening mechanism significantly re-duces computational costs compared to pure LLM approaches, making semantic anomaly detection practical for large-scale applications.