A Human-guided AI approach for Symbolic Cumulant Calculation

Bingye Yang, Jiashun Jin, Yumou QiuAI4Research @ ICML 2026

TL;DR

Calculating high-order multivariate cumulants is a combinatorial nightmare that quickly exhausts both human patience and standard computing power. This paper introduces hugAI (human-guided AI), a framework that combines a novel graph-theoretic formula with structured LLM prompting to derive simplified symbolic formulas for these cumulants with massive speedups over traditional brute-force methods.

What Problem Does This Paper Address?

In probability and statistics, cumulants are essential tools for understanding the shape of distributions (think mean, variance, skewness, and kurtosis). While univariate cumulants are straightforward, multivariate cumulants—which describe the relationships between multiple variables—become exponentially difficult to calculate as the order increases.

The classical "Speed formula" used to derive these expressions relies on set partitions. The number of possible partitions is defined by Bell numbers, which grow at an alarming rate (e.g., for a 10th-order cumulant, you are looking at over 115,000 partitions). Directly asking an AI to solve these (the "brute-force" approach) is slow, inefficient, and often results in unsimplified, messy expressions. The authors sought a way to make this symbolic calculation both computationally feasible and mathematically "clean."

Methods

The authors developed a three-pillar approach called hugAI:

  1. Theoretical Framework (FLAGs): Instead of using the standard Speed formula, they discovered a new Speed-type formula based on Fully Labeled Admissible Graphs (FLAGs). By using graph theory and combinatorics, they can group many redundant partitions into "isomorphic classes." This means the AI only needs to work on a few representative cases rather than every single possible partition.
  2. Structured Prompting: The task is broken down into three distinct steps (prompts) for the AI:
  3. Prompt 1: Generate non-isomorphic FLAGs for a fixed set of nodes.
  4. Prompt 2: Enumerate all ways to "split" the indices of the variables.
  5. Prompt 3: Calculate specific coefficients and redundancies, then aggregate the results into a final symbolic expression.
  6. Code Execution: Finally, the AI writes and executes Python code to produce the Symbolic and Explicit Formula (SEF).

The study primarily utilized GPT, but also benchmarked the approach using Gemini and DeepSeek.

Datasets

As this is a paper focused on symbolic mathematics and algorithmic efficiency, it does not use traditional "big data" training sets. Instead, the authors evaluated their method using three specific mathematical "benchmark cases" where the ground truth is known:

  • Case 1: Multivariate Normal Distribution (where all cumulants of order > 2 are zero).
  • Case 2: IID Exponential Distribution (where mixed cumulants vanish).
  • Case 3: Poisson Mixture Model (where mixed cumulants have a known simple form, $\lambda_0$).

Key Insights and Ideas

  • Isomorphism as a Filter: The most powerful idea here is using graph isomorphism to reduce the search space. By identifying "indistinguishable" nodes in a graph, the authors prevent the AI from wasting time on redundant calculations.
  • The "Most Simplified" SEF: Traditional methods often produce long strings of terms that need further algebraic simplification. Because the FLAG framework works on distinct symbolic moment products, the output is naturally the most compact version of the formula.
  • Human-in-the-Loop vs. Brute Force: The paper demonstrates that LLMs struggle with "brute force" math but excel when a human provides a rigorous logical "skeleton" (the graph theory) and asks the AI to handle the tedious symbolic manipulation and coding.

Key Results

  • Significant Speedup: In a test of trivariate cumulants with a multiplicity of [4, 4, 4], the brute-force approach took 89.2 seconds, while the hugAI approach took only 2.87 seconds—a roughly 30x improvement.
  • LLM Comparison: ChatGPT and DeepSeek successfully navigated all three prompt steps to produce correct results. Gemini also showed success, though the paper notes that different LLMs have varying levels of symbolic reasoning capability.
  • Practical Application: The authors successfully used their derived formulas to compute Edgeworth expansions (a way to approximate probability distributions), showing that their method can handle the complex coefficients required for high-dimensional statistics.

Limitations and Future Work

  • Theoretical Dependency: The method relies entirely on the human-derived FLAG framework. If the underlying graph theory isn't perfectly defined for a new type of problem, the AI cannot "invent" its way out of it.
  • LLM Variability: Not all LLMs are created equal. The authors noted that while top-tier models succeeded, applying the same prompts to "weaker" models might require even more fine-grained "micro-prompts" to avoid reasoning errors.
  • Future Directions: The authors suggest that this "human-guided" paradigm could be extended to other areas of symbolic computation in mathematics and physics where combinatorial explosion currently limits progress.

Summary updated

BibTeX
@inproceedings{yang2026human,
  author = {Bingye Yang and Jiashun Jin and Yumou Qiu},
  title = {{A Human-guided AI approach for Symbolic Cumulant Calculation}},
  booktitle = {AI4Research @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=xkpFPx3ihq},
}
Figure