betaFeedback

WorksComputer Science

DiSARM: Diverse and Surprising Association Rule Mining with Large Language Models

Abstract

Exploratory Data Analysis (EDA) aims to discover informative patterns in large datasets. For transactional data, Association Rule Mining (ARM) is an established approach that facilitates EDA by efficiently generating candidate patterns. Beyond efficient mining, identifying informative rules has also been extensively studied through both objective and subjective interestingness measures. Recent advances in Large Language Models (LLMs) offer new opportunities for assessing subjective interestingness using world knowledge. Nevertheless, relying solely on LLMs raises concerns about scalability and statistical reliability. Building on prior ARM research, we propose a hybrid framework, DiSARM, that leverages the world knowledge of LLMs to assess the subjective interestingness of rules, while maintaining statistical reliability and promoting diversity among the selected rules. Across three transactional datasets, experiments demonstrate that DiSARM effectively combines statistical reliability with surprise and diversity, offering a promising approach to ADE from transactional data.

Introduction

With the unprecedented growth of data, there is an increased need for methods to analyze large datasets. Exploratory Data Analysis (EDA) aims to discover informative patterns in vast datasets, helping analysts to identify useful knowledge. However, because EDA requires both knowledge of the dataset and domain expertise, the exploration process is time-consuming and requires human supervision. As a result, an emerging body of work focuses on Automated Data Exploration (ADE), which aims to automate the process of EDA and reduce the workload of human analysts.

For transactional data, Association Rule Mining (ARM) is a widely adopted approach to discover association relationships between items [1]. Classical ARM algorithms, such as Apriori [2] and FP-Growth [14], utilize user-provided support and confidence thresholds to efficiently search large transactional databases and discover associations as clearly interpretable rules. ARM has been applied to various fields, including recommendation engines [29] (Maulana and Rohman 2025), customer behavior [17, 38], enterprise architecture [34, 35], and healthcare [20, 16]. Its ability to efficiently discover interpretable patterns makes ARM a promising approach for generating candidate patterns that can support ADE.

Beyond efficient mining, identifying interesting associations among the discovered rules has also been extensively studied, and research has shown that rules can be evaluated using both objective and subjective interestingness measures [11]. Objective interestingness measures quantify statistical strengths of associations in a dataset, such as reliability and generality [41, 13]. Subjective interestingness measures, on the other hand, relate to the benefit acquired by using the discovered pattern, as well as surprisingness and novelty [27, 37].

Recent advances in Large Language Models (LLMs) offer opportunities to evaluate the subjective interestingness of generated patterns in ADE. In contrast to classical mining algorithms, LLMs can utilize existing world knowledge to reason whether an association is expected or surprising. Recent studies have explored LLM-based automated data exploration through agentic approaches [30, 32, 33], while others incorporate external domain knowledge into hypothesis generation [28].

Nevertheless, directly applying LLMs in data exploration systems presents some key limitations.

(1) Scalability. A dataset may contain millions of records of raw data, which can overwhelm the LLM’s context window. Relying on sampling methods risks overlooking infrequent but potentially significant patterns that are only observable when analyzing the entire dataset. (2) Reliability. Data exploration systems relying on LLMs may contain hallucinated information and logical inconsistencies [42], while reliability and repeatability are not guaranteed [25]. These limitations suggest that LLMs exhibit better performance when evaluating a set of carefully generated patterns instead of searching for raw associations from scratch.

Extending previous ARM research, we propose DiSARM, a hybrid framework that leverages the world knowledge of LLMs to assess the subjective interestingness of association rules, while maintaining statistical reliability and promoting diversity among the selected rules. As illustrated in Figure 1, classical mining techniques are first applied to the dataset to efficiently extract association rules supported by the dataset. Internal validation is then applied to filter out unreliable rules and enhance generalizability. For the remaining rules, an LLM-based evaluator measures subjective interestingness, leveraging its existing world knowledge to assess the association holistically. Finally, candidate rules are presented as vector embeddings to

Figure 1. Overview of DiSARM. Transaction data is split into mining, validation, and holdout sets. Candidate rules are extracted and analyzed to produce a final subset of statistically sound rules that are both surprising and diverse.

identify semantic similarities and reduce redundancies, and DPP is applied to select a compact and mutually diverse subset of top-kk rules.

Across three transactional datasets, experimental results demonstrate that DiSARM achieves substantially greater surprise and diversity than classical ARM baselines while retaining stronger statistical validity than LLM baselines. Ablation studies further highlight the complementary contributions of each component, demonstrating the framework’s ability to deliver statistically reliable, surprising, and diverse patterns for ADE.

Related Work

Early studies on ARM focused on discovering association rules efficiently and selecting measures to improve statistical validity in the mining data. Further research has focused on more subjective measures of association rules. More recently, LLMs provide opportunities to incorporate external knowledge and discover more subjectively interesting insights.

Mining for Interesting Association Rules

Due to the vast number of rules generated by ARM methods, many studies have explored methods for identifying interesting association rules. One direction focuses on objective interestingness, which measures statistical strengths of relationships among attributes in a dataset [41]. Another direction focuses on subjective interestingness, such as eliciting user-defined characteristics of interesting rules [23, 27], and incorporating user preferences into the selection of interestingness measures [26]. Some studies apply ontology-based techniques and incorporate large-scale knowledge bases to discover novel patterns [6, 19], while algorithms have also been developed to extract rules for specific applications [9, 10].

LLM-based EDA Systems

Autonomous systems are increasingly being developed to conduct exploratory data analysis with limited human guidance. Some studies explore applying LLM-based systems to data science workflows, which convert user requests into executable code [15, 36, 39]. Other works take on a text-to-SQL approach [31, 8]. More recent works go a step further, producing natural and coherent human-readable insights [43, 33]. InsightPilot [30] is an LLM-based automated data exploration system, in which the insight engine provides accurate insights to avoid hallucination, while the LLM selects appropriate actions and drives the exploration process. QUIS [32] introduces a fully automated EDA framework that consists of two stages: insight generation and question generation. Other studies combine LLMs with data-driven agents to review existing literature and generate novel hypotheses [28].

Methodology

Overview of DiSARM

This work aims to discover association rules that are not only statistically supported by the data but also surprising and diverse. To this end, we propose DiSARM, a novel framework consisting of four main stages. First, candidate association rules are extracted by mining algorithms with minimum support and confidence thresholds. Next, internal validation is conducted to filter out rules that are not statistically significant. An LLM judge evaluates the remaining rules to assess their levels of surprise. Then, the diversity selection stage selects the top-kk rules that balance surprise and diversity. During evaluation, the final selected rules are further validated on a holdout set of transactions.

Candidate Rule Mining

We use classical mining algorithms to reliably generate candidate association rules. In association mining, the problem can be formally stated as follows: Let I={i1,i2,…,im}I = \{i_1, i_2, \ldots, i_m\} be a set of items. Let TT be a database containing a set of transactions, where each transaction tt is a set of items such that t⊆It \subseteq I. An association rule takes the form X→YX \to Y, where X⊂IX \subset I, Y⊂IY \subset I, and X∩Y=∅X \cap Y = \emptyset.

Numerous algorithms have been proposed that apply user-specified minimum support and minimum confidence thresholds. The rule X→YX \to Y holds in the transaction set TT with confidence cc if c%c\% of transactions in TT that support XX also support YY. The rule has support ss in TT if s%s\% of the transactions in TT contain X∪YX \cup Y. Although Apriori [2] is among the most widely implemented algorithms, we adopt FP-Growth because of its efficiency on large transactional datasets. FP-Growth uses a divide-and-conquer method to reduce the search space by recursively constructing conditional pattern bases, substantially reducing search costs [14]. These algorithms extract candidate association rules between items in a large database of transactions, avoiding the risk exceeding an LLM’s context window.

Internal Validation

We split each dataset into a 70% mining set, a 10% internal validation set, and a 20% holdout set. The mining and internal validation sets are available to the framework, whereas the holdout set remains unseen until the final evaluation.

Even though classical ARM algorithms generate rules that satisfy minimum support and confidence thresholds on the mining data, they do not guaranty generalizability to unseen data. In our initial experiments, especially for smaller datasets, a large portion of the top kk rules selected through surprise evaluation and diversity selection do not pass statistical validation on the holdout set. To mitigate this, we introduce an internal validation stage before surprise and diversity selection.

To assess generalizability, we compute lift on the validation set for each selected rule "IF [A] THEN [B]". A validation lift value greater than 1 indicates a positive association, and the occurrence of the antecedent increases the likelihood of the consequent in the unseen data.

For each rule, we test the null hypothesis H0:A⊥BH_0: A \perp B against the one-sided alternative H1:AH_1: A and BB are positively associated. We construct a contingency table (Table 1) describing the presence or absence of the antecedent (A) and consequent (B) across transactions in the validation set. A one-sided Fisher’s exact test with the alternative hypothesis that A and B are positively associated is applied.

B (n2n_2)Without B (N−n2N-n_2)
A (n1n_1)kkn1−kn_1-k
Without A (N−n1N-n_1)n2−kn_2-kN−n1−n2+kN-n_1-n_2+k

Table 1. Contingency Table for Fisher’s Exact Test

We compute the pp-value using a one-sided Fisher’s exact test, summing the hypergeometric probabilities for co-occurrences greater than or equal to the observed count kk:

p(R)=∑x=kmin⁡(n1,n2)(n1x)(N−n1n2−x)(Nn2)(1)p(R)=\sum_{x=k}^{\min(n_1,n_2)}\frac{\binom{n_1}{x}\binom{N-n_1}{n_2-x}}{\binom{N}{n_2}} \tag*{(1)}

Additionally, because multiple rules are evaluated for each method, testing every rule independently at p≤0.05p \le0.05 would increase the expected number of false positives (Type I errors). To counter this effect, we control the Benjamini-Hochberg false discovery rate (FDR), defined as the expected proportion of false rejections among all rejected hypotheses [4]. For each method, let mm denote the number of candidate rules with sorted pp-values: p(1)≤p(2)≤⋯≤p(m)p_{(1)} \le p_{(2)} \le\cdots\le p_{(m)}. At α=0.05\alpha=0.05, we find k=max⁡{i:p(i)≤imα}k=\max\{i:p_{(i)}\le\frac{i}{m}\alpha\}, We then reject the null hypothesis for p(1),…,p(k)p_{(1)},\ldots,p_{(k)} and achieve the Benjamini-Hochberg adjusted pp-values.

We formally define a rule as statistically validated if it satisfies both of the following criteria on the validation data:

q≤0.05andlift⁡validation>1,q \le0.05 \quad\text{and}\quad\operatorname{lift}_{\mathrm{validation}}>1,

where qq denotes the Benjamini-Hochberg adjusted pp-value. The first condition requires that the association remain statistically significant after correcting for multiple comparisons, while the second requires that the direction of the association remains positive on the unseen data. Only rules that satisfy both conditions are preserved.

Surprise Evaluation

Association mining algorithms produce a large number of candidate rules that satisfy objective interestingness criteria. However, these measures do not capture whether a rule is unexpected given common world knowledge. We define surprise as a form of subjective interestingness, measured by how difficult an association would have been to anticipate based on ordinary knowledge of consumer behavior. A statistically strong association may still appear obvious to a human analyst, such as the association "customers who purchase cereal are inclined to also purchase milk", and is therefore unlikely to be considered surprising.

To capture subjective interestingness, we deploy an LLM-based evaluator to allocate a surprise score of 1 to 5 for each candidate association rule, depending on how difficult the rule is to anticipate given existing world knowledge. The evaluator is prompted to explain whether a potential relationship underlying the hypothesis can be anticipated and provide a step-by-step explanation to support the score given. This explanation encourages the model to explicitly reason whether the relationship between the antecedent and consequent is already predictable from common knowledge.

Prompt 1: Prompt of Surprise Evaluation.

You are an expert Data Science LLM Judge evaluating association rules derived from transactional data. Your task is to rate how surprising the given association rule is. Surprise is defined as how difficult the association would have been to anticipate before seeing the data, based on ordinary knowledge of consumer behavior. Here is the rule: {rule_string}. Please rate the association from 1 (The association is immediately expected from common knowledge) to 5 (Highly unexpected and genuinely difficult to anticipate from ordinary knowledge alone), using the format:

{"surprise_assessment": "<one brief sentence of explanation>","surprise_score": <integer: 1 to 5>}

Diversity Selection

Selecting rules based on statistical strength or surprise can still result in a set of semantically similar or redundant rules, as association rules may differ in phrasing but express similar relationships. Therefore, we introduce a diversity selection stage based on Determinantal Point Processes (DPPs) to select the final top-kk rules.

First, each candidate rule is converted into a natural-language sentence and embedded using the pretrained Sentence-BERT model all-MiniLM-L6-v2. Semantic similarity between rules ii and jj is quantified using cosine similarity SijS_{ij}:

Sij=eiTej∥ei∥2∥ej∥2,(2)S_{ij} = \frac{\mathbf{e}_i^{\mathsf{T}}\mathbf{e}_j}{\lVert\mathbf{e}_i\rVert_2\lVert\mathbf{e}_j\rVert_2}, \tag*{(2)}

where eie_i and eje_j denote the corresponding rule embeddings.

To construct the DPP kernel, candidate rules are ranked according to their surprise scores obtained from the previous stage, with lift and confidence used as successive tie-breakers. The quality weight for rule ii is calculated as:

qi=exp⁡(α(1−pin−1)),(3)q_i = \exp\left(\alpha\left(1-\frac{p_i}{n-1}\right)\right), \tag*{(3)}

where pip_i denotes the zero-based quality rank of rule ii, nn is the number of candidate rules, and α\alpha is set to 0.5. Following the quality-weighted DPP formulation [24], the kernel is defined as:

Lij=qiSijqj.(4)L_{ij} = q_iS_{ij}q_j. \tag*{(4)}

We then seek to approximately solve the following optimization problem:

Y∗≈arg max⁡Y⊆R,∣Y∣=k det⁡(LY),(5)Y^* \approx\underset{Y\subseteq\mathcal{R},\lvert Y\rvert=k}{\operatorname{arg\,max}}\ \det(L_Y), \tag*{(5)}

where R\mathcal{R} denotes the candidate rule set and LYL_Y is the principal submatrix of LL corresponding to subset YY. We employ fast greedy maximum a posteriori (MAP) inference [7] to approximate the optimal subset. This allows the framework to select a set of mutually dissimilar rules while prioritizing those with high subjective surprise.

Experiments

To evaluate the performance of DiSARM, we conduct experiments using GPT-5.1 and implement various classical ARM and LLM baselines, selecting the top-kk rules with k=10k = 10. We investigate the following key questions through experiments:

  • RQ1: What advantages does DiSARM offer over classical statistics and LLM baselines?

  • RQ2: To what extent can DiSARM identify rules that are more surprising and diverse while maintaining statistical validity?

  • RQ3: How effective is the LLM-based surprise evaluation in selecting rules that contain information considered unexpected with respect to general common sense?

  • RQ4: How does diversity selection contribute to reducing redundancy of the selected rules?

Datasets

We conduct experiments on three transactional datasets: Instacart (3,346,083 transactions) [18], Retail Market Basket Transactions Dataset (7,501 transactions) [3], and Groceries Market Basket Dataset (9,835 transactions) [12].

Evaluation Metrics and Holdout Validation

We evaluate the discovered association rules using a holdout dataset, assessing their statistical soundness, surprise, and diversity.

Soundness. Although classical ARM algorithms generate rules that satisfy minimum support and confidence thresholds on the mining data, these criteria do not guarantee generalizability to unseen data. To assess whether the discovered associations are not simply LLM hallucinations or local noise, we report support, confidence, and lift on the holdout set. For the association rule "IF [A] THEN [B]", the metrics are defined as:

Support⁡(A⇒B)=P(A∪B),\operatorname{Support}(A \Rightarrow B) = P(A \cup B),
Confidence⁡(A⇒B)=P(A∪B)P(A),\operatorname{Confidence}(A \Rightarrow B) = \frac{P(A \cup B)}{P(A)},
Lift⁡(A⇒B)=P(A∪B)P(A)P(B).\operatorname{Lift}(A \Rightarrow B) = \frac{P(A \cup B)}{P(A)P(B)}.

Furthermore, we report the significance rate, defined as the percentage of the final selected rules that are statistically validated on the unseen holdout set, satisfying the following criteria:

q≤0.05andlift⁡holdout>1.q \le0.05 \quad\text{and} \quad\operatorname{lift}_{\mathrm{holdout}} > 1.

Surprise. We use GPT-5.1 as the LLM-based surprise scorer to identify candidate rules that are likely to contain subjectively interesting information. For evaluation, we use Gemini-3.1-Pro as an independent LLM judge to assess the level of surprise in the final selected rules. We select Gemini-3.1-Pro, developed by Google, to provide an independent evaluation using a model from a different provider. This separation reduces dependence on a single model family and allows for an external assessment of surprise.

Diversity. We evaluate the diversity of the final selected rule set using Jaccard distance. Each association rule is represented by the union of the items appearing in its antecedent and consequent. For two rules rir_i and rjr_j, their Jaccard distance is defined as:

dJ(ri,rj)=1−∣ri∩rj∣∣ri∪rj∣,(6)d_J(r_i,r_j) = 1 - \frac{\lvert r_i \cap r_j \rvert}{\lvert r_i \cup r_j \rvert}, \tag*{(6)}

which measures the overlap between the two sets. We report the mean pairwise Jaccard distance across all pairs of selected rules. A higher value indicates rules share fewer common items and are less redundant. While DPP in the diversity selection stage utilizes vector embeddings and cosine similarity, Jaccard distance provides an item-level assessment of diversity.

Baselines

Classical ARM baselines. While our approach aims to discover rules that are subjectively interesting given prior world knowledge, many existing metrics aim to evaluate objective interestingness, such as a rule’s structure, predictive performance, and statistical significance. Although classical ARM algorithms prune rules using support and confidence thresholds, other metrics capture different and sometimes contrasting aspects of interestingness [40].

For the classical ARM baselines, we select rules based on lift, Piatetsky-Shapiro’s (PS) measure, or J-Measure (J):

Lift⁡(A⇒B)=P(A∩B)P(A)P(B),\operatorname{Lift}(A \Rightarrow B) = \frac{P(A \cap B)}{P(A)P(B)},
PS⁡(A⇒B)=P(A∩B)−P(A)P(B),\operatorname{PS}(A \Rightarrow B) = P(A \cap B) - P(A)P(B),
J⁡(A⇒B)=P(A)[P(B∣A)log⁡2P(B∣A)P(B)+P(¬B∣A)log⁡2P(¬B∣A)P(¬B)].\operatorname{J}(A \Rightarrow B) = P(A)\left[P(B \mid A)\log_{2}\frac{P(B\mid A)}{P(B)} + P(\neg B \mid A)\log_{2}\frac{P(\neg B\mid A)}{P(\neg B)}\right].

Lift measures the strength of an association relative to the expected co-occurrence under independence. PS measures the difference between the observed and the expected co-occurrence probabilities under independence, and has been found to outperform lift when noisy products are filtered out [22]. J-Measure is an information-theoretic measure that quantifies the information the antecedent provides about the consequent [5]. After generating candidate rules using FP-Growth, we rank and select rules according to each of these established objective interestingness metrics.

Results

In this section, we compare DiSARM with classical ARM and LLM baselines to evaluate its ability to balance statistical validity, surprise, and diversity. For the data split, we use five random seeds: 42, 943, 3136, 4799, and 8315, and report the mean and standard deviation values of each metric over the five runs. Results are detailed in Table 2–Table 4.

MethodSupportConfidenceLiftSignificance RateSurpriseJaccard Distance
Classical Lift0.001±0.0000.001 \pm0.0000.33±0.010.33 \pm0.0173.05±1.2173.05 \pm1.211.00±0.001.00 \pm0.001.00±0.001.00 \pm0.000.74±0.000.74 \pm0.00
Classical PS0.014±0.0000.014 \pm0.0000.28±0.010.28 \pm0.012.52±0.162.52 \pm0.161.00±0.001.00 \pm0.001.00±0.001.00 \pm0.000.89±0.010.89 \pm0.01
Classical J-Measure0.005±0.0000.005 \pm0.0000.34±0.010.34 \pm0.0142.37±2.5742.37 \pm2.571.00±0.001.00 \pm0.001.00±0.001.00 \pm0.000.88±0.020.88 \pm0.02
Serial Standard0.007±0.0010.007 \pm0.0010.11±0.010.11 \pm0.012.47±0.442.47 \pm0.440.98±0.050.98 \pm0.051.02±0.041.02 \pm0.040.93±0.030.93 \pm0.03
Serial Surprise0.000±0.0000.000 \pm0.0000.03±0.030.03 \pm0.034.58±5.264.58 \pm5.260.44±0.290.44 \pm0.293.38±0.823.38 \pm0.820.99±0.010.99 \pm0.01
DiSARM0.002±0.0000.002 \pm0.0000.26±0.000.26 \pm0.003.97±0.033.97 \pm0.031.00±0.001.00 \pm0.002.00±0.002.00 \pm0.000.93±0.000.93 \pm0.00

Table 2. Comparison of DiSARM against classical ARM and LLM baselines on Instacart.

MethodSupportConfidenceLiftSignificance RateSurpriseJaccard Distance
Classical Lift0.020 ± 0.0040.30 ± 0.022.28 ± 0.050.98 ± 0.051.06 ± 0.090.90 ± 0.03
Classical PS0.054 ± 0.0030.34 ± 0.011.74 ± 0.051.00 ± 0.001.12 ± 0.040.69 ± 0.02
Classical J-Measure0.040 ± 0.0030.37 ± 0.012.04 ± 0.061.00 ± 0.001.10 ± 0.000.82 ± 0.02
Serial Standard0.033 ± 0.0050.26 ± 0.041.54 ± 0.020.84 ± 0.111.04 ± 0.090.88 ± 0.03
Serial Surprise0.001 ± 0.0000.09 ± 0.051.12 ± 0.380.02 ± 0.054.04 ± 0.470.98 ± 0.01
DiSARM0.018 ± 0.0020.28 ± 0.021.81 ± 0.020.84 ± 0.061.64 ± 0.150.97 ± 0.01

Table 4. Comparison of DiSARM against classical ARM and LLM baselines on Groceries.

Comparison with Classical ARM Baselines (RQ1-1). The three classical ARM baselines achieve the strongest statistical validity. Their significance rates do not drop below 0.92, and the Lift and J-measure baselines achieve a significantly higher holdout lift. However, these statistically strong rules are considerably less surprising and diverse than those selected by DiSARM. On Instacart, all three baselines receive a surprise score of 1.00, compared with 2.00 for DiSARM. DiSARM also achieves a Jaccard distance of 0.95 on Retail, higher than the classical ARM baselines, which range from 0.71 to 0.87. These results indicate that objective interestingness measures used by classical ARM baselines are effective at identifying statistically strong rules. However, DiSARM achieves substantially higher surprise and diversity at the cost of some holdout lift and statistical significance on smaller datasets.

Comparison with LLM Baselines (RQ1-2). The LLM baselines reveal a trade-off between statistical validity and surprise. Serial Standard achieves relatively high statistical validity but low surprise scores. For example, it achieves a significance rate of 0.98 on Instacart, while its surprise score remains at 1.02. This suggests that sequential rule generation without explicit surprise selection does not consistently lead to highly unexpected rules. In contrast, Serial Surprise achieves the highest surprise scores among all compared methods, with 3.38 on Instacart, 4.28 on Retail, and 4.04 on Groceries. It also obtains high Jaccard distances of 0.99, 0.95, and 0.98, respectively. However, its significance rate drops to 0.44 on Instacart, 0.10 on Retail, and only 0.02 on Groceries. These findings underline the difficulty of achieving both subjective surprise and statistical validity through LLM-based association mining alone.

MethodSupportConfidenceLiftSignificance RateSurpriseJaccard Distance
Classical Lift0.019±0.0010.019 \pm0.0010.27±0.010.27 \pm0.012.31±0.112.31 \pm0.110.92±0.080.92 \pm0.081.40±0.121.40 \pm0.120.87±0.010.87 \pm0.01
Classical PS0.047±0.0010.047 \pm0.0010.31±0.010.31 \pm0.011.63±0.051.63 \pm0.050.96±0.090.96 \pm0.091.88±0.081.88 \pm0.080.71±0.030.71 \pm0.03
Classical J-Measure0.029±0.0030.029 \pm0.0030.32±0.010.32 \pm0.012.11±0.092.11 \pm0.090.98±0.050.98 \pm0.051.72±0.111.72 \pm0.110.87±0.030.87 \pm0.03
Serial Standard0.031±0.0020.031 \pm0.0020.22±0.030.22 \pm0.031.58±0.141.58 \pm0.140.62±0.180.62 \pm0.181.60±0.351.60 \pm0.350.88±0.040.88 \pm0.04
Serial Surprise0.002±0.0010.002 \pm0.0010.19±0.020.19 \pm0.021.98±0.641.98 \pm0.640.10±0.140.10 \pm0.144.28±0.364.28 \pm0.360.95±0.070.95 \pm0.07
DiSARM0.022±0.0010.022 \pm0.0010.29±0.020.29 \pm0.021.65±0.081.65 \pm0.080.74±0.110.74 \pm0.112.78±0.362.78 \pm0.360.95±0.010.95 \pm0.01

Table 3. Comparison of DiSARM against classical ARM and LLM baselines on Retail.

Analysis of the Proposed Method (RQ2). The overall results illustrated in Table 2-Table 4 show that DiSARM achieves a more balanced combination of statistical validity, surprise, and diversity. Compared with the classical ARM baselines, it yields more surprising and diverse rules, whereas compared with Serial Surprise, its selected rules have substantially higher statistical significance. For example, on Instacart, DiSARM achieves a significance rate of 1.00, a surprise score of 2.00, and a Jaccard distance of 0.93. These results indicate that the proposed framework does not maximize any single metric individually. Instead, by combining classical association rule mining with LLM-based surprise evaluation and diversity selection, it identifies rules that are simultaneously statistically supported, subjectively surprising, and mutually diverse.

Human Evaluation

To assess the agreement between Gemini-3.1-Pro and human judgments of surprise, we conduct a human evaluation of the association rules selected by DiSARM and the baseline methods using random seed 42. Across all methods and datasets, a total of 240 rules are selected, corresponding to 170 distinct rules. Each distinct rule is assigned a human surprise score on a scale of 1 to 5, following the evaluation instructions detailed in Appendix § 9. Across all datasets, the evaluation yields a Pearson correlation coefficient of r=0.72r = 0.72 (p=4.89×10−28p = 4.89 \times10^{-28}) and a Spearman’s rank correlation coefficient of ρ=0.67\rho= 0.67 (p=1.14×10−23p = 1.14 \times10^{-23}). Positive correlations are also observed across all datasets. These results indicate consistent positive alignment between human judgments and surprise scores assigned by Gemini-3.1-Pro, which supports the use of our LLM-as-a-judge framework as an estimated measure of subjective interestingness.

Ablation Study

In this section, we conduct ablation experiments by removing either surprise evaluation or diversity selection from the proposed methodology. Results are shown in Figure 2.

Comparison of significance rate, surprise scores evaluated by Gemini-3.1-Pro, and mean pairwise Jaccard distance across three settings

Figure 2. Comparison of significance rate, surprise scores evaluated by Gemini-3.1-Pro, and mean pairwise Jaccard distance across three settings: DiSARM, without surprise evaluation, and without diversity selection.

Effectiveness of Surprise Evaluation (RQ3). To evaluate the effectiveness of LLM-based surprise evaluation evaluation, we compare DiSARM with one that removes the surprise evaluation stage. Across all three datasets, removing surprise evaluation decreases the surprise score from Gemini-3.1-Pro. In particular, the surprise score decreases from 2.00 to 1.30 on Instacart. These results indicate that the LLM-based filtering stage effectively places greater emphasis on rules that are judged to be more surprising and less consistent with everyday expectations.

We observe that removing surprise evaluation generally increases the Jaccard distance, since the remaining diversity selection component directly favors dissimilar rules. Conversely, the significance rate remains comparable to that of the proposed method across the three datasets, indicating that surprise evaluation does not have a clear negative impact on statistical validity.

Effectiveness of Diversity Selection (RQ4). We next evaluate the role of diversity selection by removing it while retaining surprise evaluation. The surprise score is generally higher with diversity selection removed, but the Jaccard distance decreases consistently across all three datasets. For example, DiSARM achieves a Jaccard distance of 0.93 on Instacart, but removing diversity selection reduces it to 0.667.

Although optimizing for diversity compromises the surprise score, DiSARM maintains relatively high surprise while producing a more diverse set of rules. The significance rate remains broadly comparable across the three settings, indicating that this trade-off is achieved without a clear loss in statistical validity.

Overall, the ablation results demonstrate that surprise evaluation and diversity selection are two complementary stages. Combining both components provides a balance between surprise and diversity while maintaining statistical significance on the holdout data.

Conclusion

This paper focuses on association rule mining for discovering surprising and diverse top-kk insights. We propose a framework that employs classical ARM algorithms to extract statistically supported rules while incorporating LLM-based surprise evaluation and diversity subset selection. By comparing the proposed framework with classical ARM baselines, including Lift, PS, and J-Measure, as well as LLM baselines, we show that DiSARM achieves a balance among statistical validity, subjective surprise, and diversity.

Limitations

This work introduces a novel framework that extracts and selects association rules using classical ARM algorithms and an LLM-as-a-judge approach, achieving a balance among statistical validity, subjective surprise, and mutual diversity. However, several limitations remain. i) Requiring statistical significance and minimum support and confidence thresholds improves validity, but rarer associations may fail validation and be neglected despite containing potentially surprising information. ii) As surprise is an inherently subjective and culturally dependent concept, its evaluation cannot be treated as ground truth. Even with human evaluation, surprise scores should be viewed as a representation of subjective interestingness, and conclusions should be interpreted as relative rather than absolute.

AI Assistance Disclosure

AI assistants were utilized to support in code development and manuscript editing. The authors thoroughly reviewed and verified all generated content.

Implementation Details

We implement FP-Growth using the mlxtend library (version 0.25.0). The minimum support thresholds are set to 0.001 for Instacart and 0.01 for Retail and Groceries, while the minimum confidence threshold is set to 0.3 across all datasets. GPT-5.1 and Gemini-3.1-Pro are accessed through OpenRouter. As both are proprietary models, their exact parameter counts are not publicly disclosed. Rule embeddings are generated using all-MiniLM-L6-v2, which contains approximately 22.7 million parameters, through the sentence-transformers library (version 5.6.0).

Human Evaluation Details

To evaluate subjective interestingness, we manually score the level of surprise for the final selected association rules. The following is the instructions and rubric used for scoring:

Instruction 1: Instructions of Human Evaluation for Surprise.

Your task is to rate the level of surprise of a given association rule.

Surprise Definition: How difficult would this association have been to anticipate before seeing the data?

Surprise Scale:

1 (Obvious): Immediately expected from common knowledge or a direct conventional relationship between the items.

2 (Expected): The specific pairing is not inevitable, but the items have a clear shared category, use, consumption context, or shopping relationship that makes the association fairly predictable.

3 (Moderately Surprising): The association would not be an immediate prediction, but a reasonable connection between the items is readily apparent.

4 (Surprising): The association would normally be difficult to predict beforehand, although a plausible connection can be found upon closer consideration.

5 (Highly Surprising): The items have little or no obvious behavioral, functional, or consumption-related relationship, making the association genuinely difficult to anticipate without seeing the data.

Prompts for LLM Baselines

Prompt 2 and Prompt 3 present the detailed prompts for Serial Standard and Serial Surprise, respectively. Bold text highlights the modifications made for the Serial Surprise prompt.

Prompt 2: Prompt of Serial Standard. You are an expert data analyst performing exploratory analysis of market-basket transaction data. You will receive an HTML table containing a random subset of market baskets. Each row represents one transaction, and products purchased together are separated by the "|" character. Your task is to directly inspect the HTML table and generate exactly {k} product association rules. Each rule must have the form: IF [product A] THEN [product B].

Return valid JSON using this structure:

{ "rules": [ { "antecedent": "product A", "consequent": "product B", "rule_string": "IF [product A] THEN [product B]", "reasoning": "<one brief sentence describing why this association appears plausible from the supplied transactions>" } ] }

Prompt 3: Prompt of Serial Surprise.

You are an expert data analyst performing exploratory analysis of market-basket transaction data. You will receive an HTML table containing a random subset of market baskets. Each row represents one transaction, and products purchased together are separated by the "|" character. Your task is to directly inspect the HTML table and generate exactly k unexpected association rules. Focus on pairs that co-occur but lack an obvious or commonly expected relationship, but should also be statistically significant given the subset of market baskets. Each rule must have the form: IF [product A] THEN [product B].

Return valid JSON using this structure:

{ "rules": [ { "antecedent": "product A", "consequent": "product B", "rule_string": "IF [product A] THEN [product B]", "reasoning": "<one brief sentence stating why this association is unexpected yet present in the data>" } ] }

References

  1. [1]Rakesh Agrawal, Tomasz Imielinski, and Arun N. Swami. 1993. Mining association rules between sets of items in large databases. In Proceedings of the 1993 ACM SIGMOD International Conference on Management of Data, Washington, DC, USA, May 26-28, 1993, pages 207–216. ACM Press.
  2. [2]Rakesh Agrawal and Ramakrishnan Srikant. 1994. Fast algorithms for mining association rules in large databases. In VLDB’94, Proceedings of 20th International Conference on Very Large Data Bases, September 12-15, 1994, Santiago de Chile, Chile, pages 487–499. Morgan Kaufmann.
  3. [3]Wasiq Ali. 2025. Retail market basket transactions dataset. Kaggle.
  4. [4]Yoav Benjamini and Yosef Hochberg. 1995. Controlling the false discovery rate: A practical and powerful approach to multiple testing. Journal of the Royal Statistical Society: Series B (Methodological), 57(1):289–300.DOI
  5. [5]Julien Blanchard, Fabrice Guillet, Régis Gras, and Henri Briand. 2005. Using information-theoretic measures to assess association rule interestingness. In Proceedings of the 5th IEEE International Conference on Data Mining (ICDM 2005), 27-30 November 2005, Houston, Texas, USA, pages 66–73. IEEE Computer Society.DOI
  6. [6]Abhilash C.B. and Kavi Mahesh. 2023. Ontology-based data interestingness: A state-of-the-art review. Natural Language Processing Journal, 4:100021.DOI
  7. [7]Laming Chen, Guoxin Zhang, and Eric Zhou. 2018. Fast greedy MAP inference for determinantal point process to improve recommendation diversity. In Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, December 3-8, 2018, Montréal, Canada, pages 5627–5638.arxiv.org/abs/1709.05135
  8. [8]Zhoujun Cheng, Tianbao Xie, Peng Shi, Chengzu Li, Rahul Nadkarni, Yushi Hu, Caiming Xiong, Dragomir Radev, Mari Ostendorf, Luke Zettlemoyer, Noah A. Smith, and Tao Yu. 2023. Binding language models in symbolic languages. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net.arxiv.org/abs/2210.02875
  9. [9]Edith Cohen, Mayur Datar, Shinji Fujiwara, Aristides Gionis, Piotr Indyk, Rajeev Motwani, Jeffrey D. Ullman, and Cheng Yang. 2001. Finding interesting associations without support pruning. IEEE Trans. Knowl. Data Eng., 13(1):64–78.
  10. [10]Róbert Csalódi, Zsolt Bagyura, and János Abonyi. 2023. Time-dependent sequential association rule-based survival analysis: A healthcare application. MethodsX, 12.
  11. [11]Ahmed Sharaf Eldin, Eman Ibrahim Salem, Nissreen Abdelghaffar El-Saber, and Khalid Aly Eldrandaly. 2026. Objective and subjective measures for extracting interesting association rules: a survey. Iran J. Comput. Sci., 9(1):32.DOI
  12. [12]Michael Hahsler, Kurt Hornik, and Thomas Reutterer. 2005. Implications of probabilistic data modeling for mining association rules. In From Data and Information Analysis to Knowledge Engineering, Proceedings of the 29th Annual Conference of the Gesellschaft für Klassifikation e.V., University of Magdeburg, March 9-11, 2005, Studies in Classification, Data Analysis, and Knowledge Organization, pages 598–605. Springer.DOI
  13. [13]Wilhelmiina Hämäläinen and Matti Nykänen. 2008. Efficient discovery of statistically significant association rules. In Proceedings of the 8th IEEE International Conference on Data Mining (ICDM 2008), December 15-19, 2008, Pisa, Italy, pages 203–212. IEEE Computer Society.DOI
  14. [14]Jiawei Han, Jian Pei, and Yiwen Yin. 2000. Mining frequent patterns without candidate generation. In Proceedings of the 2000 ACM SIGMOD International Conference on Management of Data, May 16-18, 2000, Dallas, Texas, USA, pages 1–12. ACM.
  15. [15]Sirui Hong, Yizhang Lin, Bang Liu, Bangbang Liu, Binhao Wu, Ceyao Zhang, Danyang Li, Jiaqi Chen, Jiayi Zhang, Jinlin Wang, Li Zhang, Lingyao Zhang, Min Yang, Mingchen Zhuge, Taicheng Guo, Tuo Zhou, Wei Tao, Robert Tang, Xiangtao Lu, and 9 others. 2025. Data interpreter: An LLM agent for data science. In Findings of the Association for Computational Linguistics: ACL 2025, pages 19796–19821, Vienna, Austria. Association for Computational Linguistics.arxiv.org/abs/2402.18679
  16. [16]Nan Hu. 2022. Sentiment analysis of texts on public health emergencies based on social media data mining. Computational and Mathematical Methods in Medicine, 2022:1–7.DOI
  17. [17]Ioan Daniel Hunyadi, Nicolae Constantinescu, and Oana-Adriana Ticleanu. 2025. Efficient discovery of association rules in e-commerce: Comparing candidate generation and pattern growth techniques. Applied Sciences, 15(10).DOI
  18. [18]Instacart. 2017. Instacart market basket analysis. Kaggle.
  19. [19]Fadilul-lah Yassaanah Issahaku, Ke Lu, Fang Xianwen, Sumaiya Bashiru Danwana, and Husein Mohammed Bandago. 2024. An overview of semantic-based process mining techniques: trends and future directions. Knowl. Inf. Syst., 66(10):5783–5827.
  20. [20]Noor Zaman Jhanjhi. 2024. Comparative analysis of frequent pattern mining algorithms on healthcare data. In 2024 IEEE 9th International Conference on Engineering Technologies and Applied Sciences (ICETAS), pages 1–10. IEEE.DOI
  21. [22]Martin Kirchgessner, Vincent Leroy, Sihem Amer-Yahia, and Shashwat Mishra. 2016. Testing interestingness measures in practice: A large-scale analysis of buying patterns. In 2016 IEEE International Conference on Data Science and Advanced Analytics, DSAA 2016, Montreal, QC, Canada, October 17-19, 2016, pages 547–556. IEEE.arxiv.org/abs/1603.04792
  22. [23]Mika Klemettinen, Heikki Mannila, Pirjo Ronkainen, Hannu Toivonen, and A. Inkeri Verkamo. 1994. Finding interesting rules from large sets of discovered association rules. In Proceedings of the Third International Conference on Information and Knowledge Management (CIKM’94), Gaithersburg, Maryland, USA, November 29 - December 2, 1994, pages 401–407. ACM.DOI
  23. [24]Alex Kulesza and Ben Taskar. 2012. Determinantal point processes for machine learning. Found. Trends Mach. Learn., 5(2-3):123–286.
  24. [25]Rafal Labedzki, Patryk Miziula, Hubert Rutkowski, Szymon Betlewski, Cezary Depta, Szymon Janowski, Jaroslaw Kochanowicz, and Jan Kanty Milczek. 2026. Business utility of large language models as exploratory data analysis agents. CoRR, abs/2606.00051.arxiv.org/abs/2606.00051
  25. [26]Philippe Lenca, Patrick Meyer, Benoît Vaillant, and Stéphane Lallich. 2008. On selecting interestingness measures for association rules: User oriented description and multiple criteria decision aid. European Journal of Operational Research, 184(2):610–626.DOI
  26. [27]Bing Liu, Wynne Hsu, Shu Chen, and Yiming Ma. 2000. Analyzing the subjective interestingness of association rules. IEEE Intell. Syst., 15(5):47–55.DOI
  27. [28]Haokun Liu, Yangqiaoyu Zhou, Mingxuan Li, Chenfei Yuan, and Chenhao Tan. 2025. Literature meets data: A synergistic approach to hypothesis generation. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2025, Vienna, Austria, July 27 - August 1, 2025, pages 245–281. Association for Computational Linguistics.
  28. [29]Jianli Liu and Quan Zhang. 2025. Association rule algorithm based personalized recommendation system for e-commerce platforms. In 2025 3rd International Conference on Data Science and Information System (ICDSIS), pages 1–7.DOI
  29. [30]Pingchuan Ma, Rui Ding, Shuai Wang, Shi Han, and Dongmei Zhang. 2023. Insightplot: An LLM-empowered automated data exploration system. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, EMNLP 2023 - System Demonstrations, Singapore, December 6-10, 2023, pages 346–352. Association for Computational Linguistics.DOI
  30. [31]Pingchuan Ma and Shuai Wang. 2021. Mt-teql: evaluating and augmenting neural nlib on real-world linguistic and schema variations. Proc. VLDB Endow., 15(3):569–582.
  31. [32]Abhijit Manatkar, Ashlesha Akella, Parthivi Gupta, and Krishnasuri Narayanam. 2024. QUIS: question-guided insights generation for automated exploratory data analysis. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: EMNLP 2024 - Industry Track, Miami, Florida, USA, November 12-16, 2024, pages 1523–1535. Association for Computational Linguistics.
  32. [33]Alberto Sánchez Pérez, Alaa Boukhary, Paolo Papotti, Luis Castejón Lozano, and Adam Elwood. 2025. An llm-based approach for insight generation in data analysis. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL 2025 - Volume 1: Long Papers, Albuquerque, New Mexico, USA, April 29 - May 4, 2025, pages 562–582. Association for Computational Linguistics.
  33. [34]Carlos Roberto Pinheiro, Sérgio Guerreiro, and Henrique S. Mamede. 2024. A survey on association rule mining for enterprise architecture model discovery. Bus. Inf. Syst. Eng., 66(6):777–798.DOI
  34. [35]Carlos Roberto Pinheiro, Sérgio Guerreiro, and Henrique São Mamede. 2021. Automation of enterprise architecture discovery based on event mining from api gateway logs: State of the art. In 2021 IEEE 23rd Conference on Business Informatics (CBI), volume 02, pages 117–124.
  35. [36]Bo Qiao, Liqun Li, Xu Zhang, Shilin He, Yu Kang, Chaoyun Zhang, Fangkai Yang, Hang Dong, Jue Zhang, Lu Wang, Minghua Ma, Pu Zhao, Si Qin, Xiaoting Qin, Chao Du, Yong Yu, Qingwei Lin, Saravan Rajmohan, and Dongmei Zhang. 2023. Taskweaver: A code-first agent framework. CoRR, abs/2311.17541.arxiv.org/abs/2311.17541
  36. [37]B. Shekar and Rajesh Natarajan. 2004. A framework for evaluating knowledge-based interestingness of association rules. Fuzzy Optim. Decis. Mak., 3(2):157–185.
  37. [38]Tanvinur Rahman Siam, Masum Ahmed Mozumder, Sabbir Ahmed Sakib, Mohammad Shamsul Arefin, and Ahmed Wasif Reza. 2025. Mining association rules optimizing customer purchase behavior in e-commerce transactions. In 2025 International Conference on Quantum Photonics, Artificial Intelligence, and Networking (QPAIN), pages 1–6.DOI
  38. [39]Maijun Sun, Ruijian Han, Binyan Jiang, Houdouo Qi, Defeng Sun, Yancheng Yuan, and Jian Huang. 2024. LAMBDA: A large model based data agent. CoRR, abs/2407.17535.arxiv.org/abs/2407.17535
  39. [40]Pang-Ning Tan, Vipin Kumar, and Jaideep Srivastava. 2002. Selecting the right interestingness measure for association patterns. In Proceedings of the Eighth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, July 23–26, 2002, Edmonton, Alberta, Canada, pages 32–41. ACM.
  40. [41]Pang-Ning Tan, Vipin Kumar, and Jaideep Srivastava. 2004. Selecting the right objective measure for association analysis. Information Systems, 29(4):293–313. Knowledge Discovery and Data Mining (KDD 2002).DOI
  41. [42]Raquib Bin Yousuf, Harith Laxman, Vitaliy Shkremetko, Eunice Son, Shambhavi Verma, Brian O’Leary, Venkatesh Subramony, Sylvain Nazef, Jacquelyn Elias, Ron Coddington, Chris Contakes, Michael Riley, and Naren Ramakrishnan. 2026. Dataweave: Deploying human-llm analytics for exploratory structured data analysis. Preprint, arXiv:2610.02679.
  42. [43]Yangqiaoyu Zhou, Haokun Liu, Tejes Srivastava, Hongyuan Mei, and Chenhao Tan. 2024. Hypothesis generation with large language models. In Proceedings of the 1st Workshop on NLP for Science (NLP4Science), pages 117–139, Miami, FL, USA. Association for Computational Linguistics.

Paper details

vlnc:W_edyzf47e
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

AI assistants

View statement
Looking for related papers…
Contents