When a very energetic quark or gluon leaves a collision, it sprays into a narrow cone of particles called a jet. Physicists want to know which kind of particle started the jet, and charm quarks are the hardest case. A charm jet sits between light-quark jets and bottom-quark jets in mass and decay length, so classifiers confuse it with both. Charm jets also arise in two physically different ways. A charm quark can come directly from the hard collision ("prompt"), or a gluon can split into a charm–anticharm pair partway through the jet's development. Rare-coupling searches such as boosted $H \to c\bar{c}$ need to tell these two origins apart. Today's taggers learn this distinction from simulation labels, and the simulators disagree most strongly on the gluon-splitting part.
We propose to treat a jet's flavor as a hidden history rather than a single label. A jet is repeatedly split into two branches, forming a tree. At each split, a flavor-changing step either happens or does not, with probabilities taken from perturbative QCD splitting rates computed at next-to-leading order. Per-branch tagger scores then serve as noisy observations of the flavor at each node. The number of possible flavor histories grows exponentially with tree size. That is the same size explosion that database researchers face when they expand a logical query into every case it covers. Their solution is to share intermediate results instead of listing cases, and we borrow it. The payoff is a tagger that separates prompt charm from gluon-splitting charm and reports calibrated probabilities. Its dependence on the simulator is reduced to a handful of physical parameters, each with a theory uncertainty band, and those parameters can be fitted directly on real collision data.
Core Claim
Our claim is that separating prompt charm from gluon-splitting charm is best posed as a probabilistic query over the jet's clustering tree. In this formulation, (a) the flavor-transition probabilities come from higher-order QCD rather than from a black-box simulator, (b) the query is evaluated in factorized form, so its cost is linear in tree size even though the space of histories is exponential, and (c) the few free physics parameters, chiefly the $g \to c\bar{c}$ rate and its angular shape, can be fitted on unlabeled real data. We expect this tagger to lose some raw separation power in-simulation relative to an end-to-end network. Its advantage should appear under generator shift, where the end-to-end network inherits whichever simulator trained it.
Concretely, let the groomed jet tree have $n$ internal nodes. Let $f_v$ be the latent flavor at node $v$, drawn from a small set that includes light, gluon, charm, and bottom. Let $s_v$ be the heavy-flavor tagger score measured on the branch at $v$, and let $\theta$ be the splitting-rate parameters evaluated at renormalization scale $\mu$. The likelihood of the observed scores is
$$ P(s \mid \text{tree}, \theta, \mu) = \sum_{f} \prod_{v} K\!\left(f_v \to f_{c_1(v)}, f_{c_2(v)} \mid z_v, \Delta R_v; \theta, \mu\right) \prod_{v} p(s_v \mid f_v), $$
Here $K$ is the splitting kernel, which depends on the momentum fraction $z_v$ and opening angle $\Delta R_v$ at node $v$, and $c_1(v), c_2(v)$ are the two children of $v$. The sum runs over all $F^n$ flavor assignments for $F$ flavor states. Summing children before parents, as in message passing on a tree, reduces the cost to $O(nF^3)$, because each node combines one parent state with two child states. Questions such as "does some node above the grooming cut undergo $g \to c\bar{c}$?" are disjunctions over nodes. The analogous disjunctive axioms are exactly what cause double-exponential blow-up in flat query rewritings. These questions become ratios of two such factorized sums.
Relation to Prior Work
The physics motivation comes from Disentangling heavy flavor at colliders. That paper separates prompt $Q \to Qg$ from $g \to Q\bar{Q}$ using Soft Drop declustering and a flavor-centered cone algorithm (FlavorCone). It also documents large disagreements between PYTHIA and HERWIG++ on gluon-splitting kinematics. Its conclusions are generator-level, and its classification is a hard algorithmic rule. We keep its tree-based view and its generator comparison, but replace the hard rule with a likelihood whose ingredients carry theory uncertainties. Soft drop removes soft wide-angle radiation, and at $\beta=0$ it eliminates non-global logarithms, which makes groomed observables calculable. We use it to define which nodes enter the tree, so that the kernels $K$ are applied where perturbation theory holds. The case for next-to-leading-order kernels rather than leading-order ones follows the general lesson of Supersymmetric NLO QCD corrections to resonant slepton production: in that setting, moving to NLO halves the scale uncertainty and shifts rates by up to 35%. Those numbers come from a different process, so they motivate testing LO against NLO kernels here rather than predicting the size of the effect.
On the tagging side, Heavy-flavour jet identification at the CMS experiment for Run 2 documents the intermediate charm gap. Particle Transformer for Jet Tagging is the strongest end-to-end competitor. It is an attention network over particles with pairwise kinematic features, trained on truth labels. Jet Topics avoids ill-defined parton labels by demixing samples with different flavor fractions. Our model shares its goal of learning from data mixtures, but it adds structure along the emission tree instead of treating each jet as one mixture draw. RINO uses renormalization-group ideas only as a data-augmentation heuristic and targets top quarks. We instead put explicit perturbative rates inside the model.
The database literature supplies the lens and the method. Deciding FO-Rewritability in EL shows that flat first-order rewritings can grow triple-exponentially. A tetrachotomy of ontology-mediated queries with a covering axiom shows that a single disjunctive axiom, analogous to "heavy flavor is charm or bottom," yields double-exponential flat rewritings. Small Datalog Query Rewritings for EL and Practical Datalog Rewriting for Existential Rules avoid the blow-up by introducing shared intermediate predicates. Drewer, the system in the second paper, reduces 624-atom rewritings to 37–80 atoms on OpenGALEN2. We do not claim the factorization trick is new, since it is ordinary dynamic programming on trees. We claim that the flavor-origin question has exactly this structure, and that writing it as a compiled query over the tree is what makes theory-constrained, data-fitted inference practical at the scale of the roughly 178M read-only jets in Aspen Open Jets. Because that archive is read-only, we rule out the combined approach of Conjunctive Query Answering in EL using a Database System, which requires writing a materialized model into the database.
Research Program
The first component is the kernel library. It contains LO and NLO massive splitting probabilities for $q \to qg$, $g \to gg$, $g \to c\bar{c}$, $g \to b\bar{b}$, and $Q \to Qg$, with charm and bottom masses and with the rates evaluated at scales varied by factors of two, which gives an explicit uncertainty band. The second component is the emission model $p(s_v \mid f_v)$. It is a small calibrated density on per-subjet displaced-vertex and track features, trained once on simulation and then allowed a per-flavor shift parameter when fitted to data. The third component is the query compiler. It turns a flavor question expressed as a logical formula over nodes into two factorized sums. Existential or disjunctive questions become complements of universal products, so they never require enumeration. The fourth component is a fitting stage. It maximizes the tree likelihood over $\theta$ on unlabeled data, holding the kernel shapes within their scale bands, and reports the fitted $g \to c\bar{c}$ rate against the band. A fitted value outside the band is itself a physics finding.
Baselines
The naive reference is the tagging approach that Disentangling heavy flavor argues against: standard anti-$k_t$ jets with the per-jet charm score thresholded, and no origin modeling. This baseline shows how much origin separation any tree-based method adds.
The strongest structural baseline is FlavorCone from Disentangling heavy flavor at colliders. That paper reports a 30–40% improvement over anti-$k_t$ in discriminating heavy-flavor splitting from non-splitting configurations. No absolute AUC or rejection value was found on Lacuna for this task. We will therefore reimplement FlavorCone on identical samples and report its AUC ourselves.
The strongest learned baseline is Particle Transformer, trained as a multi-class classifier with prompt-charm, splitting-charm, bottom, and light classes. It gets the same training jets and the same hyperparameter search budget as our emission model plus fitting stage. Its only reported numbers on Lacuna are for other tasks: 86.1% accuracy on JetClass and a 70% background-rejection gain on top tagging, both from Particle Transformer for Jet Tagging. No reported result was found on Lacuna for ParT on prompt versus gluon-splitting charm.
We also include a Jet Topics demixing baseline fitted on the same data mixtures. For ablations, we replace the theory kernels with freely learned transition tables, which isolates the contribution of the higher-order physics. We swap NLO kernels for LO kernels. We freeze $\theta$ at simulation values instead of fitting it. Finally, we compare brute-force enumeration against factorized evaluation, both to confirm exactness and to measure runtime.
Beating ParT in-distribution is not required. The model counts as a success if, when trained on PYTHIA and tested on HERWIG, it loses less rejection at 50% prompt-charm efficiency than ParT does, while staying within a stated margin of ParT in-distribution. It must also beat FlavorCone in both settings.
Why not just…?
Why not just train Particle Transformer with origin labels? This is the real threat. In-simulation, it will probably win. RINO reports 15–26% accuracy losses for supervised taggers under domain shift (RINO), and the generators disagree precisely on $g \to c\bar{c}$ (Disentangling heavy flavor). A network trained on one generator's labels should therefore inherit that generator's bias. The cross-generator experiment decides this question. If ParT degrades no more than our model does, the proposal's main advantage disappears, and we will report that outcome.
Why not just use FlavorCone with a standard tagger on each cone? FlavorCone makes a hard geometric decision and yields no probability or uncertainty. It also needs well-reconstructed hadron flight directions, which its authors leave as an open experimental problem. Our model degrades gracefully when vertices are ambiguous, because the per-node scores are treated as noisy. The head-to-head AUC comparison and a vertex-smearing stress test will settle whether this matters in practice.
Why not just enumerate histories? Groomed trees are small. This is a fair objection. After Soft Drop at $\beta=0$, the primary branch is short. We will measure the distribution of tree sizes on JetClass and Aspen Open Jets and report enumeration runtime directly. If enumeration is cheap for most jets, the factorization matters only for the full-tree and multi-jet queries, and we will say so rather than overstate it.
Why not just use Jet Topics demixing? Demixing needs samples with differing flavor fractions and treats each jet as one draw from a mixture. With four or more origin classes, finding enough independent mixtures becomes the bottleneck. Our tree likelihood extracts origin information within each jet. The demixing baseline tests whether that extra structure adds anything.
Proposed Experiments
Training and in-distribution tests use PYTHIA-generated jets with $p_T > 450$ GeV, matching the regime of the CMS boosted charm search (Inclusive search for a boosted Higgs boson…). The central shift test evaluates on HERWIG samples. Metrics are prompt-versus-splitting AUC, rejection at fixed efficiency, the charm–bottom confusion rate, expected calibration error, and CPU time per jet.
The first decisive check is the cross-generator gap relative to ParT. The second is the ablation contrasting theory kernels with learned kernels: if the learned kernels transfer equally well, the higher-order physics is not doing the work. The third is a data fit on Aspen Open Jets. There we extract the $g \to c\bar{c}$ rate and ask whether it lies inside the NLO scale band, and whether the LO band is too wide or misplaced to be informative. The fourth is a scaling study. It compares factorized evaluation against enumeration on nested disjunctive queries over full, ungroomed trees, and reports how query cost grows with depth, analogous to the atom-count comparisons in Practical Datalog Rewriting for Existential Rules.
References
- Disentangling heavy flavor at colliders
- Soft drop
- Supersymmetric NLO QCD corrections to resonant slepton production and signals at the Fermilab Tevatron and the CERN LHC
- Heavy-flavour jet identification at the CMS experiment for Run 2
- Particle Transformer for Jet Tagging
- Jet Topics: Disentangling Quarks and Gluons at Colliders
- RINO: Renormalization Group Invariance with No Labels
- Deciding FO-Rewritability in EL
- A tetrachotomy of ontology-mediated queries with a covering axiom
- Small Datalog Query Rewritings for EL
- Practical Datalog Rewriting for Existential Rules
- Aspen Open Jets: Unlocking LHC Data for Foundation Models in Particle Physics
- Conjunctive Query Answering in EL using a Database System
- Inclusive search for a boosted Higgs boson and observation of the Z boson decaying to charm quarks with the CMS experiment