Manuscript Offprint
arXiv:2610.05844PhaseMatcher: Autoregressive Phase-Set Identification with Spectral Decomposition
ABSTRACT
Recovering complete phase sets from powder X-ray diffraction (PXRD) is challenging when weak-phase peaks overlap stronger signals. A natural strategy is to identify phases iteratively, removing the contribution of each identified phase from the observed pattern before predicting the next. However, even after a phase is correctly identified, misestimating its contribution can distort the residual and cause subsequent errors. We introduce PhaseMatcher, an autoregressive framework for complete phase-set identification with physics-guided spectral decomposition. After each phase prediction, PhaseMatcher re-estimates the contributions of all selected phases and the residual from the original observation and all selected reference patterns, accounting for physically plausible variation between reference patterns and the corresponding phase contributions in the observation. The resulting residual guides subsequent phase identification, while a separate stopping module determines when the phase set is complete. On synthetic mixtures and controlled mixtures constructed from measured single-phase patterns, PhaseMatcher improves complete-set identification over the evaluated baselines. On PhaseMix-135K, it also estimates contributions and residuals more accurately than scalar subtraction.
1 INTRODUCTION
Powder X-ray diffraction (PXRD) provides a fingerprint of crystalline materials. It helps identify minerals, track phase evolution in batteries, characterize catalysts, and determine whether synthesis produced the target material. For a single-phase sample, identification resembles object or speaker recognition: material identity is inferred from a characteristic signal. Multiphase samples present an additional challenge. Their reflections overlap in one pattern, strong phases can obscure weak minor phases, and the number of contributing phases is unknown. Periodic Labs' recent deployment of AI for XRD analysis highlights the importance of reliable phase identification in evaluating synthesis outcomes and guiding autonomous experimentation (Szymanski et al., 2023; Periodic Labs, 2026).
Recent methods address this problem through sequential identification, source decomposition, or refinement-based search. XRD-AutoAnalyzer identifies phases through probabilistic branching and profile subtraction (Szymanski et al., 2021). XDecomposer predicts an unordered set of component patterns (Gao et al., 2026), while PhaseDifformer recursively decomposes mixtures with optional reference guidance (Ito et al., 2026). DARA and RADAR-PD evaluate phase combinations through physical refinement (Fei et al., 2026; Yadav et al., 2026). These approaches motivate a complementary direction: learning phase-identity sequences together with a spectral explanation that is jointly estimated as the selected set grows.
The key difficulty is that correct phase identification does not guarantee accurate contribution estimation. Peak shifts, broadening, and relative-intensity changes can make an observed contribution differ from its library reference. In sequential subtraction, overestimating a contribution can remove evidence of unidentified phases, while underestimating it leaves already explained intensity in the residual. When the model selects another overlapping phase, its reference provides additional information for jointly estimating the selected contributions. This creates a feedback loop: selected phase identities provide reference patterns for explaining the original observation, and the resulting residual informs the next identity prediction.
We introduce PhaseMatcher, an autoregressive framework that couples phase-identity prediction with reference-conditioned spectral decomposition. It predicts each phase from the current residual and selected-phase history, then re-estimates all selected contributions using the original observation and their reference patterns. Physics-guided feature adaptation accounts for zero shift, strain, and broadening; nonnegative allocation conserves observed intensity across the selected phases and the residual. The updated residual guides the next phase prediction. A separate STOP head uses the original observation and phase history to decide when the set is complete, allowing background and noise to remain.
On PhaseMix-135K and controlled mixtures constructed from measured RRUFF patterns, PhaseMatcher improves complete-set identification over the evaluated baselines and produces more accurate residuals with slower error growth when the correct phases are supplied.
Our contributions are threefold:
• Joint phase identification and spectral decomposition. PhaseMatcher couples history-conditioned phase prediction with reference-conditioned spectral decomposition and a separate STOP decision for phase sets of unknown size.
• Contribution re-estimation and residual updating. PhaseMatcher re-estimates the contributions of all selected phases and the residual from the original observation and all selected references as the selected set expands.
• Identification and reconstruction evaluation. On PhaseMix-135K and controlled mixtures constructed from measured RRUFF single-phase patterns, PhaseMatcher improves complete-set identification over the evaluated baselines. On PhaseMix-135K, automatic and correct-phase experiments show lower contribution and residual errors than Scalar, while the physics-guidance ablation shows lower contribution and residual MAE before the phase set is complete.
2.1 LIBRARY SEARCH AND RESIDUAL MATCHING
Oviedo et al. (2019) classify crystallographic dimensionality and space group from XRD patterns using physics-informed data augmentation. XQueryer learns single-structure retrieval over 100,315 candidates (Cao et al., 2025b). XRD-AutoAnalyzer handles mixtures through probabilistic branching, reference fitting and subtraction, and residual-based termination (Szymanski et al., 2021). PhaseMatcher builds on residual matching by jointly estimating selected contributions from the original observation and their references.
2.2 SOURCE DECOMPOSITION AND IDENTITY ASSIGNMENT
XDecomposer predicts an unordered set of phase contributions and activity scores without a known phase count (Gao et al., 2026). PhaseDifformer recursively splits a mixture into a component and a phase-reduced mixture, optionally using reference retrieval (Ito et al., 2026). In speech separation, VoiceFilter uses a reference utterance to condition the mask for a target speaker (Wang et al., 2019). PhaseMatcher conditions joint PXRD decomposition on selected library references, using each predicted identity to explain the observation and the resulting residual to guide the next prediction.
2.3 CONSTRAINT-GUIDED SEARCH AND REFINEMENT
DARA explores hypotheses from user-provided or element-filtered references and validates them with Rietveld refinement (Fei et al., 2026). RADAR-PD uses elemental information or a known major phase to restrict candidates, followed by recursive Rietveld validation (Yadav et al., 2026). These methods use physical fitting to assess candidate explanations of the observation. PhaseMatcher instead incorporates reference-based physical constraints directly into phase-contribution and residual estimation, while scoring the full phase library without external candidate filtering.
3 PHASEMATCHER
PhaseMatcher constructs a phase set by alternating identity prediction and reference-conditioned contribution re-estimation (Figure 1).
(a) Language autoregression

(b) Phase autoregression
Figure 1: Autoregressive construction of a phase set. (a) A language model predicts one token at a time until STOP. (b) PhaseMatcher predicts one phase at a time until STOP, updating the residual after each phase prediction.
3.1 SEQUENTIAL PHASE-SET IDENTIFICATION
Let index a library of reference patterns . Given an observation normalized to unit maximum, PhaseMatcher predicts an unknown-cardinality set . After selections, records the ordered history and contains its distinct library IDs. Initially, , , and the residual query is .
The Phase Head uses and to score the full library. The STOP Head uses the original observation and the same history to output a STOP logit. Their logits jointly define the action distribution. This separates the spectral evidence for an additional phase from the decision that the set is complete: background and noise can remain even after every phase has been identified. Figure 2 shows the resulting loop; Appendix B.1 details the shared encoder and head architectures (Figure 6).
A phase action appends its ID to and triggers residual updating. A STOP action returns ; STOP has no library ID or reference pattern. For a path with phase predictions,
Sequence-to-set models derive set distributions from sequence models (Tang et al., 2022). We use a fixed training order and evaluate the predicted identities as an unordered set.
(a) PhaseMatcher

(b) Joint contribution re-estimation

Figure 2: PhaseMatcher identifies phases while jointly re-estimating contributions. (a) Identification and contribution re-estimation loop. (b) Sequential subtraction fixes each earlier contribution, while joint re-estimation recomputes all selected contributions.
3.2 REFERENCE-CONDITIONED CONTRIBUTION RE-ESTIMATION
For a nonempty history of length , let collect the selected references. The decomposition module computes
Here, estimates the contribution of library ID after selections. Every update starts from and re-estimates all selected contributions , unlike sequential scalar subtraction (Figure 2b). Figure 3 details the module.
Physical adaptation. Reference–observation variation motivates adapting reference features before intensity allocation (Rietveld, 1969; Cao et al., 2025a). Separate multiscale encoders process the observation and each selected reference. Local observation–reference correlations predict a shared zero shift in input-grid bins; correlations and pooled features predict phase-specific isotropic strain and broadening weights . At each output angle , we resample the reference features at the source coordinate
Here, , where is the input grid's angular spacing; all angles use radians. The broadening weights combine the resampled features with locally smoothed versions. These operations warp and smooth reference features along the angular axis; they do not modify crystal structures.
(a) Physical parameters

(b) Intensity allocation

Figure 3: Reference-conditioned spectral decomposition. (a) Physical-parameter prediction. (b) Reference-conditioned allocation of observed intensity to phase contributions and the residual.
Joint intensity allocation. Averaging the adapted reference features at the coarsest scale along the angular axis gives one token per selected phase. Self-attention exchanges information among these tokens. Contribution and residual decoders combine the resulting set context with observation features and unpooled multiscale reference features. Their outputs determine phase scores and a residual score at each angular bin .
A softmax across the t selected phases and the residual produces fractions
(4)
Nonnegative fractions ensure nonnegative contributions and residuals. Their sum equals one, so allocation conserves observed intensity at every bin:
The next identity decision uses the max-normalized residual
Appendix B specifies the network architecture and physical transformations.
3.3 JOINT TRAINING AND SET INFERENCE
Training proceeds through single-phase pretraining, joint phase identification and decomposition, and joint training with STOP. The first stage trains the spectrum encoder and phase-identity representations on individual reference spectra using classification cross-entropy:
These parameters initialize the shared spectrum encoder and phase table for multiphase identification.
Stage two orders true phases by decreasing mixture weight; for each phase target, the history contains its preceding phases. The initial query is the observation; every later query comes from applied to that observation and the prefix references. Next-phase cross-entropy supervises histories with a remaining phase. Spectral decomposition supervision covers every nonempty prefix, including complete histories:
The decomposition loss constrains contribution intensity and shape, source allocation, and residual shape. Next-phase gradients also pass through the normalized residual into , training the update for subsequent identification. Appendix B defines its seven weighted terms and the construction of conservative training targets.
The third stage initializes from the final second-stage checkpoint and adds the STOP Head. Incomplete histories target the next phase; complete histories target STOP. We average cross-entropy from the joint action distribution separately over phase-target and STOP-target steps, while continuing decomposition supervision:
All are nonnegative weights. Training samples phase candidates; inference scores the complete library. Appendix B gives initialization, optimization, and sampling settings.
Inference. Inference masks already-selected IDs and prevents STOP before the first phase. A path ends at STOP or the safety cap . Greedy selects the highest-scoring valid action at each step. Beam retains and expands paths by cumulative action log probability; each path independently maintains its history and recomputes its residual from the original observation. Both strategies use the same checkpoint. Appendix B.6 specifies path completion, ranking, and the masks that apply only at inference; Figure 7 illustrates the search paths.
4 EXPERIMENTS
4.1 EXPERIMENTAL SETUP
PhaseMix-135K contains approximately 12.14 million training and 100,000 test mixtures, with 135,258 Materials Project structure records as library candidates (Jain et al., 2013). RRUFF mixtures draw from a library of 740 measured single-phase references (Lafuente et al., 2015), with 100,000 training and 7,400 test samples. Both benchmarks construct one- to four-phase mixtures with spectral perturbations, background, and noise. We train separately on each benchmark and test on held-out phase-level perturbations. Appendix A details construction and splits.
We compare iterative database matching, XDecomposer (Gao et al., 2026), PhaseDifformer (Ito et al., 2026), and scalar-subtraction PhaseMatcher (Scalar). The source-decomposition baselines are trained or fine-tuned on each benchmark and map generated components to identities by full-library retrieval. Scalar retains the identification architecture but fits a coefficient in for each selected reference, subtracts the scaled reference from the current residual, clips negative intensities to zero, and max-normalizes the remainder. It uses this update during both training and inference and shares the full model's single-phase initialization. Appendices C and B give baseline protocols and training settings.
Exact-set@1 measures complete-set identification. We also report phase recall, phase-count accuracy, and the top-ten candidate hit rate (Exact-set@10), with order-independent comparison of library IDs. All methods search the full library without being given each test mixture's phase identities or phase count. Greedy and Beam use the same checkpoint, with beam width 10. Appendix D.1 defines the metrics and candidate conventions.
4.2 COMPLETE PHASE-SET IDENTIFICATION
PhaseMatcher achieves the highest complete-set accuracy among the evaluated baselines on both benchmarks (Table 1). The full model improves Exact-set@1 over Scalar by 9.17/12.41 percentage points under Greedy/Beam on PhaseMix-135K and 22.62/23.20 points on RRUFF mixtures.
Table 1: Complete-set identification on both benchmarks. For iterative matching, Exact-set@10 uses Beam-10; the other metrics use Greedy. A dash denotes an unreported metric.
| Method | Exact-set@1 (%) | Phase recall (%) | Count acc. (%) | Exact-set@10 (%) |
|---|---|---|---|---|
| (a) PhaseMix-135K | ||||
| PhaseDiffermer | 4.06 | 34.90 | 44.33 | - |
| Iterative database matching | 13.85 | 49.98 | 24.39 | 15.86 |
| XDecomposer | 14.63 | 51.10 | 34.95 | 18.52 |
| PhaseMatcher, scalar Greedy | 67.98 | 88.22 | 87.59 | - |
| PhaseMatcher, scalar Beam | 69.57 | 88.47 | 86.07 | 88.79 |
| PhaseMatcher, Greedy | 77.15 | 91.50 | 93.11 | - |
| PhaseMatcher, Beam | 81.98 | 93.59 | 94.35 | 94.73 |
| (b) RRUFF mixtures | ||||
| PhaseDiffermer | 2.12 | 47.04 | 37.51 | - |
| Iterative database matching | 24.47 | 66.32 | 33.66 | 28.49 |
| XDecomposer | 15.46 | 56.52 | 35.27 | 18.11 |
| PhaseMatcher, scalar Greedy | 56.66 | 82.97 | 65.51 | - |
| PhaseMatcher, scalar Beam | 57.39 | 83.16 | 64.77 | 78.86 |
| PhaseMatcher, Greedy | 79.28 | 92.47 | 86.35 | - |
| PhaseMatcher, Beam | 80.59 | 93.07 | 86.69 | 93.72 |
From one to four phases, the Greedy advantage over Scalar grows from 1.10 to 14.54 percentage points on PhaseMix-135K and from 2.43 to 31.32 on RRUFF mixtures (Table 2). The weakest-phase recall advantage over Scalar is largest at low intensity shares and increases with spectral overlap within the weak-phase subset (Appendix D.7).
Table 2: Identification by phase count on both benchmarks.
| Exact-set@1 / Phase recall (%) | 1 phase | 2 phases | 3 phases | 4 phases |
|---|---|---|---|---|
| (a) PhaseMix-135K | ||||
| PhaseDiffermer | 24.18 / 72.43 | 7.77 / 47.18 | 0.28 / 31.08 | 0.01 / 22.26 |
| Iterative database matching | 54.21 / 81.22 | 26.44 / 60.43 | 8.19 / 47.92 | 1.70 / 38.49 |
| XDecomposer | 72.17 / 74.67 | 29.21 / 59.21 | 5.23 / 49.47 | 0.00 / 42.37 |
| PhaseMatcher, scalar Greedy | 93.80 / 93.96 | 84.09 / 91.70 | 69.28 / 88.50 | 52.50 / 84.84 |
| PhaseMatcher, scalar Beam | 95.72 / 95.79 | 86.64 / 93.06 | 71.75 / 89.31 | 52.88 / 83.72 |
| PhaseMatcher, Greedy | 94.90 / 95.02 | 87.64 / 93.65 | 77.70 / 91.75 | 67.04 / 89.37 |
| PhaseMatcher, Beam | 97.43 / 97.44 | 92.23 / 95.98 | 84.67 / 94.36 | 70.98 / 90.85 |
| (b) RRUFF mixtures | ||||
| PhaseDiffermer | 7.43 / 91.08 | 6.01 / 59.66 | 0.59 / 42.63 | 0.00 / 33.03 |
| Iterative database matching | 64.05 / 95.81 | 42.50 / 76.55 | 20.50 / 64.20 | 8.55 / 55.41 |
| XDecomposer | 82.03 / 84.46 | 34.32 / 66.79 | 1.26 / 53.66 | 0.03 / 46.54 |
| PhaseMatcher, scalar Greedy | 95.95 / 97.30 | 81.55 / 90.98 | 56.22 / 82.93 | 34.73 / 75.42 |
| PhaseMatcher, scalar Beam | 97.57 / 98.65 | 84.05 / 91.96 | 55.99 / 82.73 | 35.07 / 75.20 |
| PhaseMatcher, Greedy | 98.38 / 98.92 | 92.64 / 96.52 | 81.67 / 93.27 | 66.05 / 88.22 |
| PhaseMatcher, Beam | 99.05 / 99.46 | 94.19 / 97.16 | 83.33 / 93.84 | 67.13 / 88.84 |
4.3 CONTRIBUTION AND RESIDUAL RECONSTRUCTION
We evaluate contribution and residual reconstruction on all 100,000 PhaseMix-135K test samples under automatic identification and with correct phases supplied. Figure 4 reports cosine similarity and mean absolute error (MAE) by phase count, using the observation's intensity scale (Appendix D.3).
(a) Automatic identification

(b) Correct phases supplied

True number of phases
Figure 4: Contribution and residual quality by phase count. (a) Automatic Greedy predictions at termination. (b) Both methods receive all correct phases. Residual targets subtract the correctly selected true contributions from the observation and clip at zero; both methods use the same target in (b).
Automatic identification. PhaseMatcher achieves higher cosine and lower MAE for both contributions and residuals at every phase count (Figure 4a). From one to four phases, terminal residual MAE rises from 0.00509 to 0.00891 for Scalar and from 0.00055 to 0.00141 for PhaseMatcher. Table 3 compares other baselines. Scalar's decreasing absolute contribution MAE accompanies increasing relative intensity error (Appendix D.3).
Correct phases supplied. With the same correct phases supplied in decreasing-weight order, PhaseMatcher achieves higher contribution and residual cosine and lower MAE than Scalar at every phase count (Figure 4b). At four phases, contribution cosine is 0.9958 versus 0.9060 and residual cosine is 0.9753 versus 0.3518; joint scalar refitting remains worse on a 1,000-sample subset (Appendix D.5). Across sequential updates (Figure 9), residual MAE in four-phase samples rises by 2.08% for PhaseMatcher versus 12.40% for Scalar from the second to the third update, while cosine falls by 0.0141 versus 0.1994. Across incomplete histories, PhaseMatcher reduces residual MAE by 92.22% relative to Scalar.
Table 3: Automatic contribution reconstruction on PhaseMix-135K. Beam uses the first-ranked path.
| Method | Cosine similarity ↑ | MAE (10-4) ↓ |
|---|---|---|
| PhaseDiffermer | 0.4683 | 64.6040 |
| XDecomposer | 0.6319 | 32.8429 |
| PhaseMatcher, scalar Greedy | 0.8807 | 32.4846 |
| PhaseMatcher, scalar Beam | 0.8701 | 32.5473 |
| PhaseMatcher, Greedy | 0.9735 | 3.4209 |
| PhaseMatcher, Beam | 0.9765 | 3.0280 |
4.4 EFFECT OF PHYSICS GUIDANCE
We compare the full model with a model retrained without physics guidance (Appendix D.6). Both models receive the same correct phases sequentially and retain nonnegative, intensity-conserving allocation.
Without physics guidance
With physics guidance
(a) 2 phases
n = 20,000
(b) 3 phases
n = 30,000
(c) 4 phases
n = 40,000

Update step
Update step
Update step
Figure 5: Physics guidance across sequential updates. (a–c) Two-, three-, and four-phase samples with correct phases supplied. Contribution scores average the selected phases within each sample; open markers denote the complete set.
Contribution cosine similarity differs little between models, but physics guidance lowers contribution MAE at every step (Figure 5). Before all phases are supplied, contribution and residual MAE decrease by 16.4% and 21.6%, respectively, improving estimates for subsequent identification.
For four-phase samples, residual MAE is 22.9% and 21.0% lower after the second and third updates, with higher residual cosine. After the final update, contribution MAE remains lower, but residual MAE is slightly higher and its cosine nearly unchanged. Benefits are thus clearest before completion, when residuals guide further identification. In this training comparison, Greedy and Beam also gain 0.36 and 0.62 percentage points in Exact-set@1 (Appendix D.6).
5 CONCLUSION
PhaseMatcher couples sequential identification and reference-conditioned decomposition: each selected identity supplies a reference, and the updated residual guides the next prediction. It jointly re-estimates selected contributions and the residual from the original observation as the set grows. On PhaseMix-135K and RRUFF-based mixtures, the full model improves complete-set identification over Scalar. With correct phases supplied, it yields more accurate residuals with slower error growth; physics guidance improves reconstruction. Future work will study experimental transfer and reinforcement learning for phase selection and stopping.
REPRODUCIBILITY STATEMENT
Appendix A specifies the reference libraries, mixture construction, perturbations, splits, and stored fields. Appendix B gives the architecture, losses, optimization schedules, and inference procedures; Appendix C documents the baseline protocols. Appendix D.1 defines the metrics and reports the complete evaluation breakdowns. We plan to release the implementation, configuration files, and data-generation and evaluation scripts after acceptance.
AI USE STATEMENT
We used OpenAI tools (ChatGPT and Codex) to assist with method implementation and preprocessing code development. These tools also provided feedback on experimental design and supported result analysis and interpretation. We used generative AI to create and revise scientific illustrations, assist with literature searches, and draft, translate, and edit the manuscript. The authors reviewed all AI-assisted text, code, figures, and analyses. The authors take responsibility for the final text, code, figures, experimental results, and scientific claims.
REFERENCES
Sung-June Baek, Aaron Park, Young-Jin Ahn, and Jaebum Choo. Baseline correction using asymmetrically reweighted penalized least squares smoothing. Analyst, 140(1):250–257, 2015. doi:10.1039/C4AN01061B.
Bin Cao, Yang Liu, Zinan Zheng, Ruifeng Tan, Jia Li, and Tong-Yi Zhang. SimXRD-4M: Big simulated X-ray diffraction data and crystal symmetry classification benchmark. In The Thirteenth International Conference on Learning Representations, 2025a. URL https://openreview.net/forum?id=mkuB677eMM.
Bin Cao, Zinan Zheng, Yang Liu, Longhan Zhang, Lawrence W.-Y. Wong, Lu-Tao Weng, Jia Li, Haoxiang Li, and Tong-Yi Zhang. XQueryer: An intelligent crystal structure identifier for powder X-ray diffraction. National Science Review, 12(12):nwaf421, 2025b. doi: 10.1093/nsr/nwaf421.
Yuxing Fei, Matthew J. McDermott, Christopher L. Rom, Shilong Wang, and Gerbrand Ceder. Dara: Automated multiple-hypothesis phase identification and refinement from powder X-ray diffraction. Chemistry of Materials, 38(3):1364–1376, 2026. doi: 10.1021/acs.chemmater.5c02820.
Hanyu Gao, Bin Cao, Yunyue Su, Tong-Yi Zhang, and Qiang Liu. XDecomposer: Learning prior-free set decomposition for multiphase X-ray diffraction. arXiv preprint arXiv:2605.05866, 2026.
Yusei Ito, Naoya Chiba, Tatsunori Taniai, Ryo Igarashi, Yuta Suzuki, Kotaro Saito, Yoshitaka Ushiku, and Kanta Ono. Enabling single-observation decomposition of multi-phase X-ray diffraction patterns via generative deep learning. npj Computational Materials, 12:238, 2026. doi:10.1038/s41524-026-02087-w.
Anubhav Jain, Shyue Ping Ong, Geoffroy Hautier, Wei Chen, William Davidson Richards, Stephen Dacek, Shreyas Cholia, Dan Gunter, David Skinner, Gerbrand Ceder, and Kristin A. Persson. Commentary: The Materials Project: A materials genome approach to accelerating materials innovation. APL Materials, 1(1):011002, 2013. doi: 10.1063/1.4812323.
Barbara Lafuente, Robert T. Downs, Hexiong Yang, and Nate Stone. The power of databases: The RRUFF project. In Highlights in Mineralogical Crystallography, pp. 1–30. De Gruyter, 2015. doi: 10.1515/9783110417104-003.
Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=Bkg6RiCqY7.
Shyue Ping Ong, William Davidson Richards, Anubhav Jain, Geoffroy Hautier, Michael Kocher, Shreyas Cholia, Dan Gunter, Vincent L. Chevrier, Kristin A. Persson, and Gerbrand Ceder. Python Materials Genomics (pymatgen): A robust, open-source python library for materials analysis. Computational Materials Science, 68:314–319, 2013. doi: 10.1016/j.commatsci.2012.10.028.
Felipe Oviedo, Zekun Ren, Shijing Sun, Charles Setten, Zhe Liu, Noor Titan Putri Hartono, Savitha Ramasamy, Brian L. DeCost, Siyu I. P. Tian, Giuseppe Romano, Aaron Gilad Kusne, and Tonio Buonassisi. Fast and interpretable classification of small X-ray diffraction datasets using data augmentation and deep neural networks. npj Computational Materials, 5:60, 2019. doi: 10.1038/s41524-019-0196-x.
Periodic Labs. Building labs that learn. Periodic Labs News, September 2026. URL https://periodic.com/news/building-labs-that-learn.
Hugo M. Rietveld. A profile refinement method for nuclear and magnetic structures. Journal of Applied Crystallography, 2(2):65–71, 1969. doi: 10.1107/S0021889869006558.
Nathan J. Szymanski, Christopher J. Bartel, Yan Zeng, Qingsong Tu, and Gerbrand Ceder. Probabilistic deep learning approach to automate the interpretation of multi-phase diffraction spectra. Chemistry of Materials, 33(11):4204–4215, 2021. doi: 10.1021/acs.chemmater.1c01071.
Nathan J. Szymanski, Bernardus Rendy, Yuxing Fei, Rishi E. Kumar, Tanjin He, David Milsted, Matthew J. McDermott, Max Gallant, et al. An autonomous laboratory for the accelerated synthesis of inorganic materials. Nature, 624:86–91, 2023. doi: 10.1038/s41586-023-06734-w.
Longtao Tang, Ying Zhou, and Yu Yang. Sequence-to-set generative models. In Advances in Neural Information Processing Systems, volume 35, 2022. URL https://openreview.net/forum?id=0dt8wdYIAV.
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, volume 30, 2017. URL https://proceedings.neurips.cc/paper/7181-attention-is-all-you-need.
Quan Wang, Hannah Muckenhirn, Kevin Wilson, Prashant Sridhar, Zelin Wu, John R. Hershey, Rif A. Saurous, Ron J. Weiss, Ye Jia, and Ignacio Lopez Moreno. VoiceFilter: Targeted voice separation by speaker-conditioned spectrogram masking. In Proceedings of Interspeech 2019, pp. 2728–2732, 2019. doi: 10.21437/Interspeech.2019-1101.
Lalit Yadav, Yongqiang Cheng, and Mathieu Doucet. Automated multiphase identification and refinement in powder diffraction using mismatch-tolerant machine learning. arXiv preprint arXiv:2605.12478, 2026.
A DATASETS AND DATA REPRESENTATION
A.1 REFERENCE LIBRARIES AND MIXTURE SPLITS
PhaseMix-135K uses 135,258 structure records from a fixed Materials Project snapshot (Jain et al., 2013). We retain each record as a distinct candidate ID without deduplication. Multiple records can describe the same physical phase; evaluation therefore compares library IDs. We calculate Cu Kα reflections with pymatgen (Ong et al., 2013) and render Gaussian reference profiles with full width at half maximum (FWHM) 0.10°. The RRUFF benchmark uses 740 measured single-phase references (Lafuente et al., 2015) after asymmetrically reweighted penalized least squares (arPLS) background correction (Baek et al., 2015); Appendix D gives its evaluation protocol.
Both datasets use 3,501 angular points from 10° to 80° at 0.02° spacing. Each mixture draws distinct library IDs and weights from Dirichlet(1). The manifest orders the selected IDs by decreasing weight. Each reference ID has five independently perturbed phase profiles, termed realizations, assigned to training, validation, and test splits. Table 4 summarizes sample counts and the observation-realization split.
Table 4: Reference libraries and mixture manifests. Realizations index observation profiles of the same library ID.
| Quantity | PhaseMix-135K | RRUFF mixtures | Convention |
|---|---|---|---|
| Reference IDs | 135,258 | 740 | Full candidate library at inference |
| Training mixtures | 12,135,258 | 100,000 | Observation realizations 0, 1, 2 |
| Validation mixtures | 100,000 | 7,400 | Observation realization 3 |
| Test mixtures | 100,000 | 7,400 | Observation realization 4 |
| Test | 10,000 | 740 | One selected ID |
| Test | 20,000 | 1,480 | Two distinct IDs |
| Test | 30,000 | 2,220 | Three distinct IDs |
| Test | 40,000 | 2,960 | Four distinct IDs |
A.2 PHASE-LEVEL AND MIXTURE-LEVEL VARIATION
Phase-level perturbations change peak positions, widths, and relative intensities. Mixture-level effects then apply one shared measurement state to the weighted sum. Table 5 separates these operations. The phase-level generator adds no zero shift, background, or additive noise and normalizes each output to unit maximum. For RRUFF, the same procedure adds variation to measured reference spectra; its sampled parameters describe incremental changes, not the specimen's original microstructure.
Table 5: Data-construction parameters. denotes independent uniform sampling. Peak-relative quantities use the maximum of the mixture before background and noise.
| Level | Parameter | Distribution / setting | Operation |
|---|---|---|---|
| Reference | Gaussian FWHM | Clean theoretical profile rendering | |
| Phase | Wavelength in perturbation formulas | Scherrer broadening and thermal attenuation | |
| Phase | Crystallite size | nm | Gaussian broadening; Scherrer width at |
| Phase | Isotropic strain | Bragg-law coordinate warp | |
| Phase | Thermal root-mean-square displacement | Å | Angle-dependent intensity attenuation |
| Phase | Relative-intensity envelope | Six anchors from | Linear interpolation of multiplicative modulation |
| Mixture | Global zero shift | One shift for all components | |
| Mixture | Extra instrumental FWHM | Shared Gaussian broadening | |
| Mixture | Background peak ratio | Cubic Bernstein background | |
| Mixture | Background shape | Four coefficients from | Max-normalized background shape |
| Mixture | Noise standard-deviation ratio | Independent zero-mean Gaussian noise at each bin |
Training uses phase realizations 0 to 2, validation uses realization 3, and testing uses realization 4. After adding measurement effects, the generator clips negative observed intensities and divides the observation by its maximum. It divides every component contribution by this same maximum, preserving their relative intensities.
Two audits quantify the PhaseMix-135K variation. Across 50,000 phase profiles from 10,000 sampled IDs, the median clean-to-perturbed cosine is 0.9148 and rises to 0.9788 after the best local shift within ten bins. Among 855,820 matched clean peaks, 97.30% move by at most 0.1°. Across 10,000 realization-4 mixtures, median cosines are 0.9301 for clean versus phase-perturbed mixtures, 0.9181 for clean versus final observations, and 0.9799 for phase-perturbed mixtures versus final observations.
A.3 STORED ARRAYS AND TRAINING-BATCH FIELDS
The pipeline stores reference banks and mixture manifests separately. A manifest specifies identities and weights; the loader generates the observed mixture and supervision tensors. Table 6 gives the PhaseMix-135K array schema. Let , , , and denote the number of mixtures in a split. Phase IDs directly index reference-bank rows, matching Section 3.1. The array entry .npy maps each row to its Materials Project record ID.
Table 6: PhaseMix-135K arrays on disk. Clean and perturbed banks use separate directories. A split prefix is train, val, or test.
| Array | Shape | Type | Meaning |
|---|---|---|---|
| Clean patterns.npy | float32 | Candidate reference spectra | |
| Perturbed patterns.npy | float16 | Five observation profiles per ID | |
| entry.npy | Unicode | Record IDs in reference-row order | |
| axis_two_theta.npy | float32 | Angular grid in degrees | |
| s_ids.npy | int32 | Selected library-row IDs | |
| s_weights.npy | float32 | Mixture weights | |
| s_counts.npy | uint8 | Number of valid components |
Table 7 describes a joint-training batch of size . For a sample with phases, valid array positions on the four-slot component axis are . Prefix index counts selected phases; index 0 denotes the empty history. The targets array stores the phase IDs at positions and the termination marker at position . It encodes STOP as integer solely for storage; STOP has no phase-library ID or reference-bank row. The loader pads unused ID and target positions with , and unused spectra and weights with zeros. Floating-point tensors use float32 and integer tensors use int64.
Table 7: Joint-training batch fields. Common-scale spectra share the observation's maximum as denominator. True contributions and residuals supply supervision; the Phase Head receives a model-generated residual.
| Field | Batched shape | Meaning / use |
|---|---|---|
| mixture | Max-normalized observation | |
| phase_ids | True IDs in decreasing-weight order;padding -1 | |
| phase_weights | Mixture weights; padding 0 | |
| counts | True phase count | |
| targets | phase IDs, a termination marker, then padding -1 | |
| reference_patterns | Clean references for the true history | |
| observation_realization_ids | Observation realization per phase; padding -1 | |
| experimental_observation_parameters | Shared measurement parameters listed below | |
| mixture_common | Same observation as mixture | |
| component_contributions | Weighted, perturbed phase spectra on the common scale, before prefix-specific capping | |
| residual_patterns_common | True-prefix residual targets on the common scale | |
| residual_patterns | Independently max-normalized target copies; not the learned residual query | |
| observation_scale | Observation maximum before normalization |
The eight measurement parameters are the global zero shift, extra instrumental FWHM, background peak ratio, noise standard-deviation ratio, and four Bernstein coefficients, in that order. Single-phase pretraining instead returns a spectrum of shape and an ID vector of shape .
For a nonempty true history , let denote the stored common-scale contribution for library ID . Here, indexes positions within the history. Let . At each bin, training constructs conservative targets
These operations act pointwise. Capping the selected sum preserves component ratios where noise makes the nominal contribution exceed the observation. The remainder retains unselected contributions and unexplained intensity, including background and noise. The same measurement draw defines every prefix of one sample.
B MODEL ARCHITECTURE AND TRAINING
B.1 NETWORK CONFIGURATION
Table 8 specifies the spectrum encoder, prediction heads, and spectral decomposition network. The encoder and prediction heads use Transformer layers (Vaswani et al., 2017). For batch size , spectrum length , and selected references, decomposition receives observations of shape and references of shape ; masks exclude padded references. A shared shift and phase-specific strain warp reference features; smoothing weights adapt their widths.
Table 8: Network configuration. The shared spectrum encoder produces 219 tokens of width 512 from a 3,501-point spectrum. The classifier size below refers to PhaseMix-135K.
| Module | Configuration |
|---|---|
| Spectrum encoder: convolutions | Four stride-two layers; kernels 15, 11, 7, 5; channels 256, 512, 512, 512; projection to width 512 |
| Spectrum encoder: Transformer | Learned positional embeddings; 3 layers; 8 heads; feed-forward width 2,048; dropout 0.05 |
| Single-phase classifier | Learned attention pooling; normalized feature and classifier rows; learned logit scale; 135,258 512 class matrix |
| Phase Head / STOP Head | 6 / 2 Transformer decoder layers; width 512; 8 heads; feed-forward width 2,048; dropout 0.05 |
| Decomposition encoders | Separate observation and reference pyramids; input channels and ; channels 24, 48, 96, 192 |
| Local correlation | One cosine-similarity table per observation–reference pair: 8 angular regions and offsets to bins; output |
| Physical-parameter heads | Set-shared zero shift , bounded by 10 input-grid bins; phase-specific isotropic strain in ; convex weights over identity, 3-bin, and 7-bin smoothing kernels |
| Phase-set self-attention | Angular mean pooling of the adapted coarsest reference features gives tokens; 2 layers, 4 heads, no slot-position embeddings; output has the same shape |
| Contribution / residual decoders | Bottleneck block and 3 linear-interpolation upsampling steps with same-scale input fusion; widths 192, 96, 48, 24; kernel-1 outputs give contribution-allocation logits and residual logits |
| Residual convolution block | Kernels 7 and 5; group normalization; Gaussian error linear unit (GELU); identity or kernel-1 skip projection |
| Intensity allocation | Concatenate logits to and apply softmax over sources at each bin |
Local correlation uses and partitions the input grid at indices . Integer shifts use zero padding without wraparound. Averaging the correlation tables over valid references and angular regions gives a 21-offset vector for shared-shift prediction. The shift head adds learned corrections to the scaled correlations; softmax weights over offsets give the predicted shift.
Self-attention exchanges information across the pooled phase tokens. Their masked mean supplies a 192-dimensional set representation per sample, invariant to reference order; phase outputs permute with their references. Multiplying source fractions by the observation gives nonnegative contribution spectra and one remainder, with shapes and . Their sum conserves observed intensity pointwise, as in Equation 5.
Prediction heads. The two heads share the spectrum encoder, phase-identity table, and history embedding. Their history input is , formed from a learned beginning-of-sequence (BOS) vector and the selected phase-table rows, with learned positional embeddings. Empty history contains only BOS, which is an input token, not a phase or output action. Both decoders apply causal self-attention to this sequence. The Phase Head cross-attends to residual tokens; the STOP Head cross-attends to original-observation tokens. Each head reads its last decoder output. The Phase Head applies a learned linear projection to obtain query ; for library embedding , its logit is
The STOP Head applies a scalar linear readout to its last decoder output. Figure 6 shows the shared encoder and the two decoder architectures: its query corresponds to above, and V denotes the phase-library representation indexed by .

Figure 6: Dual-head network architecture. The upper panel shows the shared encoder and each head's inputs and outputs. The lower panels expand the decoder layers into causal self-attention, cross-attention, and feed-forward blocks.
B.2 SEVEN-TERM SPECTRAL DECOMPOSITION SUPERVISION
Both joint stages supervise every nonempty true-history prefix, including the complete set. Equation 10 defines target contributions for the selected references, their sum , and the residual . Let , , and denote the predictions, with the same local index . Table 9 defines the seven terms and their internal weights :
The outer weight in the joint objective scales this entire sum.
Table 9: Spectral decomposition loss terms and internal weights. All intensity comparisons use the common observation scale.
| Term | Definition | |
|---|---|---|
| Component intensity | 1 | Weighted pointwise SmoothL1 between and ; transition parameter 0.02; point weight . Padding masks exclude absent references. |
| Component shape | 0.1 | Mean cosine distance between and over valid references with nonzero target norm. |
| Total selected-phase intensity | 2 | Weighted SmoothL1 between and , with transition parameter 0.02 and point weight . |
| Source allocation | 1 | Kullback–Leibler divergence from target fractions to predicted fractions. Point weight ; bins with have zero weight. |
| Integrated selected-phase intensity | 0.1 | Mean . |
| Residual shape | 0.2 | Cosine distance between max-normalized and . |
| Physical-deformation regularization | Mean over valid phases of , with in input-grid bins. Kernel index denotes identity, 3-bin, and 7-bin smoothing, respectively. |
A bar denotes max-normalization of the corresponding target spectrum. The total selected-phase intensity terms compare the summed contributions of all selected phases. Weighted pointwise terms divide the weighted error sum by the sum of point weights. Cosine terms exclude targets with norm at most and return zero when no target qualifies. Physical-deformation regularization penalizes shift and strain away from zero and assigns a larger penalty to wider smoothing kernels. Source allocation already enforces pointwise conservation, so training adds no conservation penalty.
B.3 THREE-STAGE OPTIMIZATION
All three stages use AdamW (Loshchilov & Hutter, 2019); Table 10 gives the PhaseMix-135K training configuration. Stage one scores all library IDs. Each joint-training batch instead uses all positive IDs and at most 8,192 embedding-hard and random negative proposals before deduplication. Inference scores the full library.
The sampler draws 32,768 library IDs uniformly without replacement and ranks them by their maximum cosine similarity to any batch-positive ID, using detached current phase embeddings. It combines the top 4,096 with 4,096 uniformly sampled proposals and all batch-positive IDs, then removes duplicates.
With sampled candidates, target IDs map to candidate columns ; stage three appends STOP at column . Full-library inference uses phase columns and STOP at . STOP has no phase embedding or reference spectrum.
Table 10: PhaseMix-135K three-stage training. Outer loss weights are all 1. Batch-size products give GPU count, per-GPU batch size, and accumulation steps where applicable.
| Setting | Single-phase pretraining | Multiphase joint training | Joint training with STOP |
|---|---|---|---|
| Trainable modules | Spectrum encoder and classifier | Encoder, phase table, Phase Head, decomposition | Stage-two modules and STOP Head |
| Initialization | New model | Single-phase encoder and class matrix; new Phase Head and decomposition parameters | Final stage-two weights |
| Objective | Phase cross-entropy | ||
| Optimizer | AdamW | AdamW | Fresh AdamW |
| Initial learning rate | in both parameter groups | in both parameter groups | |
| Weight decay | 0.01 | ||
| Training duration | 500 epochs; 66,500 updates | 120,000 updates | 40,000 updates |
| Effective batch size | 1,024 (4 × 256; no accumulation) | 126 (7 × 18) | 224 (7 × 16 × 2 accumulation) |
| Precision | bfloat16 (BF16) mixed | BF16 mixed | BF16 mixed |
| Scheduler metric | Training loss | Validation fixed-count Exact-set@1 | Validation Greedy Exact-set@1 |
| Scheduler interval | Every epoch | Every 2,000 updates, after validation | Every 2,000 updates, after validation |
| Plateau setting | Multiply by 0.6; patience 4 | Halve after 4 non-improving validations (patience 3) | Same as stage two |
| Relative threshold | |||
| Minimum learning rate | |||
| Checkpoint for next stage / evaluation | Epoch 499 | Final step 120,000 | Final step 40,000 |
Single-phase pretraining uses clean references and cross-entropy with label smoothing 0.05; its final learning rate is . The token encoder and class matrix initialize the shared encoder and phase table. The attention-pooling layer and logit scale are used only for pretraining.
Stage-two validation supplies each sample's true phase count and retrieves exactly phases before computing Exact-set@1. This metric monitors identification with a known count; stage-three validation uses Greedy with STOP to evaluate count prediction as well.
B.4 RRUFF TRAINING
PhaseMatcher initializes from RRUFF single-phase pretraining, then trains identification and decomposition jointly before adding STOP supervision. Both joint stages use the seven-term decomposition loss, AdamW with weight decay , BF16 mixed precision, and initial learning rate in both parameter groups. The learning rate halves after four non-improving validations, down to . Training scores all 740 identities. The phase and STOP stages process approximately 224,000 and 160,000 training examples in total, respectively, counting repeated samples. The final STOP checkpoint supplies Greedy and Beam evaluation.
B.5 SCALAR TRAINING WITH SUBTRACTION-GENERATED RESIDUALS
Each scalar model shares its dataset's single-phase initialization and mixture splits with the corresponding decomposition model. It generates every training residual from the original observation by following the true prefix with bounded subtraction, including the complete prefix. Thus the same [0, 1] coefficient bound, nonnegative clipping, and query normalization apply during training and inference. Phase-stage training uses next-phase cross-entropy; STOP-stage training adds STOP cross-entropy with both outer weights equal to one. There is no decomposition network or decomposition loss.
Table 11: Scalar PhaseMatcher optimization. Both datasets use AdamW, weight decay , initial learning rate , and BF16 mixed precision.
| Setting | PhaseMix-135K | RRUFF mixtures |
|---|---|---|
| Phase-stage updates / batch size | 120,000 / 128 | 1,750 / 128 |
| STOP-stage updates / batch size | 40,000 / 224 | 1,250 / 128 |
| Checkpoint for STOP / evaluation | Final phase / final STOP | Final phase / final STOP |
The PhaseMix-135K scheduler uses the joint-stage settings in Table 10. On RRUFF, the phase and STOP budgets correspond to approximately 224,000 and 160,000 sample presentations, respectively, matching those of the decomposition model.
B.6 JOINT-TRAINING AND INFERENCE ALGORITHMS
Algorithm 1 uses true histories in decreasing-weight order, denoted for target set . Next-phase cross-entropy backpropagates through the normalized residual into spectral decomposition.
Let , and let return selected-phase contributions and a remainder from the original observation and all clean references in history . Each nonempty prefix batch contributes its mean decomposition loss, weighted by its number of samples. Phase and STOP cross-entropies average their respective supervised steps separately.
Algorithm 1 One joint-training batch (stage two or three)
Input: observations , ordered true-ID sequences of length , true contributions, and stage .
1 Sample one candidate set containing all batch-positive IDs and negative proposals. 2 Initialize phase-loss list , STOP-loss list , weighted decomposition sum , and prefix count . 3 For : 4 Select samples ; let contain the first IDs of (the empty sequence when ). 5 If , set each residual query . 6 If : compute and set . 7 Construct prefix targets using Equation 10; compute batch loss using Table 9. 8 Accumulate and ; end if. 9 For each requiring a target ( or ): 10 Compute phase logits from and over the sampled candidate set. 11 If , append the STOP logit from and . 12 If , append cross-entropy for the candidate column of to . 13 Otherwise, append cross-entropy for STOP to . 14 Set . 15 If , add . 16 Backpropagate through both prediction and decomposition; update parameters after the configured gradient accumulation.
Training computes cross-entropy over the sampled phase candidates, with STOP appended in stage three. Already-selected phases remain competing classes; STOP also competes at nonterminal steps, including the empty history. These incorrect actions receive negative supervision through cross-entropy. Algorithm 2 masks repeated selections and empty-history STOP before normalizing inference probabilities.
Algorithm 2 Greedy and Beam inference with spectral decomposition
Input: normalized observation x, full reference library, maximum count , and width W (1 for Greedy; 10 for Beam).
State: an ordered history H, its residual query r, and cumulative action log probability s.
1 Initialize active paths and completed paths .
2 While A is nonempty:
3 Initialize next active candidates .
4 For each :
5 Compute phase logits from r, H and the STOP logit from x, H.
6 Mask IDs already in H; mask STOP if ; mask all phase actions if .
7 Apply log-softmax to the remaining valid actions.
8 For each of this path's top W valid actions a with log probability :
9 If , append to F.
10 Otherwise, append a to H to form ; obtain remainder from ; append to C.
11 Set A to the top W paths in C and retain the top W paths in F, each ranked separately by cumulative score.
12 Return F in decreasing score order.
Beam ranks paths by cumulative log probability without length normalization or unordered-set deduplication. Thus, width 10 retains up to ten completed paths, which can represent fewer than ten distinct phase sets. If Greedy’s best phase and STOP logits tie, it selects the phase.
Figure 7 illustrates the search paths for Greedy and Beam.
(a) Greedy

(b) Beam
Figure 7: (a) Greedy follows one path. (b) Beam expands multiple paths. Solid and dashed arrows denote retained and discarded branches; this illustration uses width three.
C BASELINE IMPLEMENTATIONS AND EVALUATION SETTINGS
C.1 ITERATIVE DATABASE MATCHING
The baseline ranks the complete reference library against the current residual by cosine similarity and selects the highest-scoring unused ID. The library contains 135,258 references for PhaseMix-135K and 740 for RRUFF. It estimates the selected reference's intensity scale by bounded nonnegative least squares (NNLS). This fit preserves peak positions, widths, and relative intensities while minimizing the pointwise squared error between the residual and the scaled reference.
For the current residual r and nonzero reference p, the coefficient has the closed-form solution
The upper bound of 1 is an additional constraint of this baseline. The coefficient scales spectral intensity and does not directly represent a mass or volume fraction. The baseline subtracts , clips negative intensity, and repeats for at most four phases without residual renormalization. For PhaseMix-135K, validation realization 3 selects a residual-maximum threshold of 0.22 and a next-phase cosine threshold of 0.625. For RRUFF, all 7,400 validation mixtures select thresholds of 0.12 and 0.55, respectively. Both searches use a residual-threshold grid from 0 to 0.30 in steps of 0.01 and a cosine-threshold grid from 0 to 0.90 in steps of 0.025. Validation exact-set accuracy selects the pair; count accuracy, phase recall, and smaller thresholds break ties. Each realization-4 test uses its frozen validation thresholds.
Greedy supplies this baseline’s Exact-set@1, phase recall, and count accuracy in Table 1; Beam-10 supplies Exact-set@10. Each Beam path maintains its own residual and expands up to ten unused references by full-library cosine similarity, with the same bounded subtraction and validation thresholds. The search always selects a first phase; later expansions require the cosine threshold. Paths finish at the residual threshold, when no candidate meets the cosine threshold, or after four phases. At each depth, the search retains up to ten unfinished paths by cumulative cosine. A separate pool ranks completed paths by mean per-step cosine, retains the highest score for each unordered set, and returns up to ten unique sets. Lexicographically smaller ID tuples break ties. Any returned set matching the target counts as an Exact-set@10 hit.
C.2 SCALAR PHASEMATCHER
This comparator keeps the PhaseMatcher backbone and replaces spectral decomposition with bounded scalar subtraction. It fits the same bounded coefficient as iterative database matching and computes , then . A reference with squared norm at most receives coefficient zero. Each coefficient scales one reference without changing its peak positions or widths. Both PhaseMix-135K and RRUFF models construct training queries with this same transition, applied to true histories ordered by mixture weight. The final phase-stage checkpoint initializes STOP training, and the final STOP checkpoint supplies both Greedy and Beam evaluation. Appendix B.5 lists the training budgets.
C.3 XDECOMPOSER
We use the official four-slot architecture with its reconstruction, activity, and mixture-consistency losses (Gao et al., 2026). A matched masked autoencoder pretrains on PhaseMix-135K training realizations before four-slot decomposition training. For set identification, validation Exact-set@1 selects the retrieval rule and activity threshold separately for each dataset. Both datasets select pure cosine retrieval, with thresholds 0.870 for PhaseMix-135K and 0.868 for RRUFF. A slot is active when its probability strictly exceeds the selected threshold. We retrieve the 20 highest-cosine references for each active source from the complete library and merge duplicate Top-1 identities for Exact-set@1, phase recall, and count accuracy.
For Exact-set@10, we expand active slots sequentially and sum their candidate scores. Repeated identities within a tuple collapse to one unordered set; different tuples producing the same set retain their maximum cumulative score. After each slot, only the ten highest-scoring unique sets survive. Ties use descending lexicographic order of sorted ID tuples. When no slot is active, the sole hypothesis is the empty set.
The alternative retrieval rule reranks the same 20 candidates by , where is first-difference cosine. The gate inspects the candidate's three strongest bins: a bin is valid if it is below of the candidate maximum or has predicted-source support above of the source maximum within five bins. The gate passes when the valid-bin count is at least the smaller of two and the number of strong bins. This rule and the released activity threshold 0.8 are included in the validation comparison and fixed-configuration test controls in Appendix C.3.1.
Training and checkpoint selection. The PhaseMix-135K masked autoencoder completes 2,000 epochs, with its checkpoint selected by validation reconstruction loss. The decomposition stage freezes this encoder and trains for 106,000 optimizer updates. RRUFF instead initializes from an encoder and decomposition network pretrained on clean Materials Project mixtures, then fine-tunes all parameters on the augmented RRUFF training set. Table 12 gives both decomposition-training budgets. Each uses a fresh AdamW optimizer, linear warmup followed by cosine decay, 32-bit floating-point precision (FP32), and an exponential moving average (EMA) with decay 0.999. Validation loss selects the EMA checkpoint; the selected checkpoints occur at the final update in both runs.
Table 12: XDecomposer decomposition training and RRUFF fine-tuning.
| Setting | PhaseMix-135K | RRUFF mixtures |
|---|---|---|
| Optimizer updates | 106,000 | 13,380 (30 epochs) |
| Global batch size | 1,024 | 224 |
| Peak learning rate | ||
| Warmup updates | 2,120 | 429 |
| Encoder | Frozen | Fine-tuned |
| Selected update | 106,000 | 13,380 |
C.3.1 CONFIGURATION SELECTION AND RETRIEVAL CHECKS
Validation-based configuration selection. We compare cosine retrieval and the reranking above on all 100,000 PhaseMix-135K and 7,400 RRUFF validation observations. The search covers 181 activity thresholds: [0, 1] in increments of 0.01, augmented by [0.75, 0.95] in increments of 0.002. Validation Exact-set@1 selects the retrieval rule and threshold; ties favor proximity to 0.8, then cosine retrieval. The selected configuration is fixed for all test identification results.
Table 13: XDecomposer configuration comparison on the validation sets (%).
| Dataset | Retrieval | Threshold | Exact-set@1 | Phase recall | Count acc. |
|---|---|---|---|---|---|
| PhaseMix-135K | Reranked | 0.800 | 11.015 | 46.180 | 46.392 |
| Cosine | 0.800 | 13.904 | 53.340 | 46.179 | |
| Cosine | 0.850 | 14.572 | 51.850 | 38.569 | |
| Cosine | 0.870 | 14.680 | 51.101 | 34.952 | |
| Reranked | 0.870 | 11.652 | 44.232 | 35.092 | |
| RRUFF | Cosine | 0.800 | 14.608 | 59.303 | 44.986 |
| Cosine | 0.850 | 15.378 | 57.052 | 38.000 | |
| Cosine | 0.868 | 15.608 | 56.202 | 34.784 | |
| Reranked | 0.866 | 12.797 | 49.909 | 35.514 |
Fixed-configuration test controls. Table 14 compares the validation-selected configurations with fixed threshold-0.8 controls using the same checkpoints and test observations. Validation-based selection improves test Exact-set@1 on both datasets, while count accuracy decreases.
Component retrieval versus complete-set recovery. For a component-level diagnostic, we align predicted slots to true contribution spectra using XDecomposer's permutation-invariant matching,
Table 14: XDecomposer test configurations (%). Selected rows supply the main identification tables.
| Dataset | Retrieval, threshold | Exact-set@1 | Phase recall | Count acc. | Exact-set@10 |
|---|---|---|---|---|---|
| PhaseMix-135K | Reranked, 0.800 | 10.87 | 46.16 | 46.22 | 14.15 |
| Cosine, 0.870 (selected) | 14.63 | 51.10 | 34.95 | 18.52 | |
| RRUFF | Cosine, 0.800 | 14.49 | 59.54 | 44.47 | 17.36 |
| Cosine, 0.868 (selected) | 15.46 | 56.52 | 35.27 | 18.11 | |
| Reranked, 0.800 | 12.07 | 52.73 | 45.00 | 16.86 |
retrieve each matched source against all 740 RRUFF references by cosine similarity, and average retrieval hits over true components within each sample. This diagnostic omits activity filtering, as does the released RRUFF component evaluator. The automatic phase recall and Exact-set@1 columns use the validation-selected threshold 0.868 and deduplicated predicted set.
Table 15: RRUFF component retrieval and automatic set recovery (%).
| Phase count | Paper component Top-1 | Our component Top-1 | Phase recall | Exact-set@1 |
|---|---|---|---|---|
| 2 | 65.31 ± 2.62 | 78.41 | 66.79 | 34.32 |
| 3 | 53.49 ± 1.48 | 61.17 | 53.66 | 1.26 |
| 4 | 41.90 ± 1.74 | 51.96 | 46.54 | 0.03 |
The original study uses 662 RRUFF profiles, five identity folds, separate models for two to four phases, and fold-specific retrieval (Gao et al., 2026); ours uses one model for one to four phases, 740 profiles, held-out observation realizations, and full-library retrieval. Table 15 provides component-level context across these protocols. Within our evaluation, component retrieval is substantially higher than complete-set accuracy, which requires every identity to be correct.
Two additional checks separate input compatibility and slot selection. Retrieving the true perturbed contributions directly gives component Top-1 and Top-10 over all 7,400 mixtures. For the reranked-retrieval control, replacing threshold-0.8 slot selection with the highest-activity slots, where is the true count, raises Exact-set@1 from to . Duplicate identities and source-retrieval errors remain possible with the correct slot count.
C.4 PHASEDIFFORMER
We evaluate the full pipeline of unguided and reference-guided diffusion predictors and a confidence estimator (Ito et al., 2026), using the released network architecture at commit afaccfff188a. We train all three modules from random initialization separately on each dataset. All PhaseDifformer results in the main text use the coefficient-target protocol below. Table 17 specifies its benchmark adaptations; Table 18 compares it with a peak-height-target protocol.
We use coefficient targets to follow the released implementation's representation of component spectra through Gaussian basis coefficients (Ito et al., 2026). For our perturbed spectra, we fit non-negative coefficients after peak filtering and select each dataset's Gaussian width using remaining-spectrum relative error on validation samples. Target fitting and recursive spectrum reconstruction share this basis.
The predictors minimize noise mean squared error over valid peaks. Confidence training freezes their validation-selected checkpoints and minimizes blended-prediction noise error plus 0.005 times candidate binary cross-entropy (BCE), over all five retrieved candidates. Adam uses a global batch of 256, 426 warmup updates, and gradient clipping at 1.0. Predictor learning rates follow cosine decay after warmup; the confidence learning rate then remains constant. Diffusion loss on a fixed, phase-count-balanced validation subset of 512 mixtures selects each raw, non-EMA checkpoint (Table 16).
Table 16: PhaseDifformer training. Budgets apply to each dataset; the last column lists selected steps for PhaseMix-135K / RRUFF. All intervals count optimizer updates.
| Module | Updates | Peak LR | Val. interval | Selected step |
|---|---|---|---|---|
| Unguided predictor | 213,000 | 2,000 | 142,000 / 78,000 | |
| Guided predictor | 213,000 | 2,000 | 78,000 / 98,000 | |
| Confidence estimator | 7,100 | 500 | 7,100 / 7,100 |
Coefficient targets. Training samples mixture manifests with replacement and uses the realization split in Appendix A. Peaks of the observed mixture with normalized height at least 0.01 define the Gaussian basis locations. We fit nonnegative Gaussian coefficients to each true perturbed contribution. We also fit a nuisance component to the signed difference between the observation and the sum of true contributions. The fast iterative shrinkage-thresholding algorithm (FISTA) uses 2,000 iterations and a normalized projected-gradient tolerance of 0.002. Both observed peak-height conditions and coefficient targets use the observed dense-spectrum maximum as their scale.
Each predictor-training example randomly selects one true contribution for removal. The remaining-pattern target sums the other phase coefficients and the nuisance coefficients; single-phase examples retain the total coefficient target. Additional peak-position and relative-height perturbations have standard deviations and 0.1, respectively, applied after label fitting without refiltering the peak support. Confidence training masks each true library match with probability 0.25 before retrieving five candidates. Each candidate uses a remaining-pattern target that removes its matched true phase, or the randomly selected phase when there is no match; single-phase targets again retain the total. Validation applies no candidate dropout.
Table 17: PhaseDifformer coefficient-target protocol and benchmark adaptations.
| Item | Setting |
|---|---|
| Observation generation | Seeds: 20260826 for PhaseMix-135K and 20260909 for RRUFF.PhaseMix-135K shares mixture identities and weights across baselines; differing observation seeds produce different noise realizations. |
| Gaussian representation | Filter-first NNLS targets; FWHM 0.125° on PhaseMix-135K and 0.15° on RRUFF, shared by target fitting and inference rendering. |
| Normalization | Observed dense-spectrum maximum, rather than a ground-truth coefficient scale.Remaining coefficients are rendered before forming subsequent peak-height conditions. |
| Peak augmentation | Position standard deviation 0.1° follows the paper, rather than the released configuration's 1.0°; relative-height standard deviation is 0.1. |
| Confidence objective | Noise error plus 0.005 candidate BCE over all five candidates; the released configuration uses zero diffusion weight and its top-candidate path. |
| Diffusion and clipping | The denoising diffusion probabilistic model (DDPM) uses all 1,000 indices for training and sampling, 0, . . . , 999. Generated coefficients are nonnegative, without a peak-height upper bound. |
| Recursive filtering | Apply the 0.01 threshold on the original normalized observation scale before per-step normalization; the retained peak support only shrinks. |
| Stopping reference | NNLS-representable observation; final component amplitudes instead fit the actual observation. |
| Evaluation output | Full-library retrieval maps generated sources to a phase set for identification metrics. The original paper evaluates decomposition recovery. |
Inference and set output. Peak-position matching retrieves 15 candidate guides from the complete library. The highest candidate confidence blends guided and unguided noise predictions; confidence below 0.5 disables guidance. Sampling iterates indices 999 through 0, with fixed variance and no added noise at index 0. We restore the predicted remaining coefficients to the current scale, subtract them from the current coefficients, and clip negative values to zero to obtain the extracted-component coefficients. Rendering the remaining coefficients supplies the next peak-height condition.
Let denote the NNLS reconstruction of the observation on its detected-peak basis. At each recursive step, contains previously extracted spectra and the newly predicted remaining spectrum. The stopping error is
Recursion stops when the extracted coefficient maximum is below 0.01 or , accepting the predicted remainder as the final component. It otherwise continues, retaining at most four components. Final NNLS amplitude fitting compares the generated spectra with the actual observation and removes zero-norm outputs. Full-library cosine retrieval assigns each nonzero source its top-ranked identity; deduplication yields one predicted set. Contribution scores use these generated spectra, not their retrieved references. Evaluation uses one diffusion sample per observation without being given the mixture's phase identities or phase count; Exact-set@10 remains unevaluated.
Protocol comparison. Table 18 also retains a peak-height-target protocol with FWHM 0.3°, peak-height output clipping, and sampling indices 999, ..., 1. The protocols additionally differ in augmentation, normalization, and recursive preprocessing. This comparison concerns complete protocols, not an isolated target-representation ablation.
Table 18: PhaseDifformer protocol comparison. The coefficient-target protocol supplies all main-text results.
| Dataset | Protocol | Exact-set@1 (%) | Phase recall (%) | Count acc. (%) |
|---|---|---|---|---|
| PhaseMix-135K | Peak height | 4.84 | 29.09 | 38.21 |
| Coefficient (main) | 4.06 | 34.90 | 44.33 | |
| RRUFF mixtures | Peak height | 8.27 | 42.51 | 27.46 |
| Coefficient (main) | 2.12 | 47.04 | 37.51 |
D SUPPLEMENTARY EVALUATION
D.1 EVALUATION METRICS
Phase-set identification. For test samples, let be the nonempty target set and the th ranked predicted set. Each set contains library record IDs and ignores prediction order. Let be the number of returned candidates, and let denote an indicator. We compute
An empty candidate list returns the empty set and fails Exact-set@10. All metrics report percentages and average over the relevant samples. Appendix C specifies candidate construction.
Contribution-pattern reconstruction. Predicted and target contributions use the observation's maximum intensity as their common normalization denominator. Individual components retain their relative amplitudes. For two length- patterns and , define
Here, measures spectral shape agreement and is mean absolute error (MAE). For sample with predicted and true components, we pad the shorter list with zero patterns to length . Denote the padded predictions and targets by and . A maximum-weight one-to-one assignment selects
where contains all permutations of indices. The evaluator solves this assignment with scipy.optimize.linear_sum_assignment on the negative cosine matrix, independently of library IDs. Both metrics use this same assignment:
Zero padding includes missing and extra components in the scores. Any pair containing a zero pattern has cosine zero, including a pair of two zero patterns. Each sample contributes equally after averaging its paired components.
Residual reconstruction. Residuals are compared on the common observation scale before query normalization. MAE uses from Equation 16. Residual cosine uses the normalized dot product clipped to : it excludes cases with target norm at most and assigns zero when only the predicted norm is at most . Figure 4 averages one terminal state per sample within each phase-count group. The stepwise controlled comparison treats each observation–history pair as one case and averages within each history group. Appendices D.3 and D.4 define the respective targets.
D.2 ADDITIONAL IDENTIFICATION RESULTS
Table 2 reports Exact-set@1 and phase recall by phase count on both benchmarks. Table 19 adds count accuracy and Exact-set@10 for Scalar with Beam-10 on RRUFF.
Table 19: Additional Scalar Beam-10 metrics on RRUFF mixtures.
| Phase count | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| Count accuracy (%) | 98.78 | 90.41 | 64.50 | 43.65 |
| Exact-set@10 (%) | 100.00 | 94.80 | 81.04 | 63.99 |
D.3 AUTOMATIC IDENTIFICATION AND RECONSTRUCTION
We score automatically predicted contributions on all 100,000 PhaseMix-135K test observations. PhaseMatcher uses its final selected set and the first-ranked path for Beam. Scalar's contribution at each step is the actual intensity removed after clipping, restored to the original observation scale. XDecomposer uses active source slots at threshold 0.870; PhaseDifformer uses generated spectra after amplitude fitting and zero-source removal. All sources are paired with targets by Equation 17.
Targets are the perturbed, weighted contributions from data generation, before the conservative capping used in training (Equation 10). Table 20 reports phase-count groups and includes XDecomposer's threshold-0.8 control.
Table 21 summarizes PhaseDifformer's generated-source quality on both complete test sets using the same checkpoints and outputs as its identification results.
Table 20: Automatic contribution reconstruction by phase count on PhaseMix-135K.
| Cosine / MAE () | 1 phase | 2 phases | 3 phases | 4 phases |
|---|---|---|---|---|
| PhaseDiffermer | 0.5464 / 31.47 | 0.5061 / 49.37 | 0.4548 / 65.94 | 0.4400 / 79.50 |
| XDecomposer () | 0.9270 / 10.66 | 0.7428 / 24.98 | 0.6239 / 32.27 | 0.5597 / 39.50 |
| XDecomposer () | 0.9342 / 13.74 | 0.7323 / 27.56 | 0.6062 / 33.99 | 0.5253 / 39.40 |
| PhaseMatcher, scalar Greedy | 0.9233 / 49.99 | 0.9052 / 36.06 | 0.8828 / 30.62 | 0.8561 / 27.72 |
| PhaseMatcher, scalar Beam | 0.9239 / 50.20 | 0.9050 / 36.11 | 0.8754 / 30.64 | 0.8352 / 27.78 |
| PhaseMatcher, Greedy | 0.9969 / 2.63 | 0.9848 / 3.20 | 0.9740 / 3.73 | 0.9616 / 3.50 |
| PhaseMatcher, Beam | 0.9998 / 2.41 | 0.9902 / 2.86 | 0.9792 / 3.34 | 0.9617 / 3.03 |
Table 21: PhaseDiffermer automatic contribution reconstruction.
| Dataset | Test mixtures | Cosine similarity | MAE () |
|---|---|---|---|
| PhaseMix-135K | 100,000 | 0.4683 | 64.6040 |
| RRUFF mixtures | 7,400 | 0.4189 | 125.7769 |
Residual targets and phase-count comparison. For automatic Greedy inference, we score each observation at termination. Given predicted set , target set , and true contribution for ID , the residual target is
Only correctly selected IDs are removed from this target, so unselected phases remain and the two methods may have different target residuals. With all correct phases supplied in decreasing-weight order, both targets become . Automatic contributions use the assignment in Equation 17; supplied-phase contributions are paired by identity.
Table 22 lists the values in Figure 4 for all test observations, grouped by phase count.
Table 22: Contribution and residual reconstruction by phase count. Each setting includes 10,000, 20,000, 30,000, and 40,000 samples for one through four phases. MAE is in units of .
| Method | Phases | Contribution | Residual | ||
|---|---|---|---|---|---|
| Cosine | MAE | Cosine | MAE | ||
| Automatic Greedy, at termination | |||||
| Scalar | 1 | 0.9233 | 49.9854 | 0.3770 | 50.8714 |
| Scalar | 2 | 0.9052 | 36.0601 | 0.3724 | 67.4130 |
| Scalar | 3 | 0.8828 | 30.6208 | 0.3719 | 79.6533 |
| Scalar | 4 | 0.8561 | 27.7196 | 0.3714 | 89.0785 |
| PhaseMatcher | 1 | 0.9969 | 2.6302 | 0.9488 | 5.4876 |
| PhaseMatcher | 2 | 0.9848 | 3.2005 | 0.9150 | 8.1836 |
| PhaseMatcher | 3 | 0.9740 | 3.7273 | 0.8715 | 11.5505 |
| PhaseMatcher | 4 | 0.9616 | 3.5010 | 0.8374 | 14.1280 |
| All correct phases supplied | |||||
| Scalar | 1 | 0.9226 | 50.4298 | 0.3514 | 50.1147 |
| Scalar | 2 | 0.9156 | 36.2338 | 0.3487 | 66.0129 |
| Scalar | 3 | 0.9105 | 30.6628 | 0.3508 | 77.4167 |
| Scalar | 4 | 0.9060 | 27.5469 | 0.3518 | 86.0234 |
| PhaseMatcher | 1 | 1.0000 | 2.4018 | 0.9870 | 2.0867 |
| PhaseMatcher | 2 | 0.9977 | 2.8260 | 0.9806 | 3.1298 |
| PhaseMatcher | 3 | 0.9958 | 3.2736 | 0.9735 | 4.1274 |
| PhaseMatcher | 4 | 0.9958 | 2.6630 | 0.9753 | 4.4941 |
Absolute and relative contribution errors. Contribution MAE averages errors on the observation scale, so it depends on component amplitudes and the number of matched or padded components.
To distinguish absolute error from intensity-relative error, we also compute
This uses the same automatic assignment as contribution cosine and MAE. Scalar’s values rise from 0.3524 to 0.3665, 0.3767, and 0.3866 across one through four phases; PhaseMatcher’s are 0.0197, 0.0334, 0.0450, and 0.0487. Thus, Scalar’s decreasing absolute contribution MAE does not indicate improving relative reconstruction. To assess signal left unexplained at termination, we separately compare the final residual with for every sample. This complete-set-target MAE is 0.007615 for Scalar and 0.000481 for PhaseMatcher; it is distinct from the selected-set residual MAE plotted in Figure 4a.
An automatic trajectory with joint re-estimation. Figure 8 shows test sample 792, whose true IDs are A = 122743 and B = 22943. Both methods first select A. Scalar then selects the incorrect record 121323 and stops; PhaseMatcher selects B and stops. At 76.30°, the true A contribution is 0.017405, while Scalar removes 0.028732 and keeps this estimate fixed. After selecting B, PhaseMatcher jointly re-estimates A as 0.016523 using both references. Its full-spectrum A MAE decreases from 0.00018425 to 0.00013155, a 28.61% reduction. The first residual supplies B's prediction.
Automatic Greedy example 792: true phases A = 122743, B = 22943
(a) Library references
(b) First contribution estimate

(d) Residual after selecting A
(c) A after subsequent selections
(e) Residual at termination
Scalar
A -> wrong ID 121323 -> STOP
PhaseMatcher
A -> B -> STOP
No true IDs or counts supplied.
Original observation scale.
(a-c): local window.
Figure 8: Automatic Greedy trajectories for a selected two-phase sample. (a) Library references. (b,c) A's first and final contributions. (d) The residual after A. (e) Terminal residuals, shown against the common complete-set background/noise target. The local windows in (a–c) use unchanged reference or observation scales. Neither method receives the mixture's phase identities or phase count.
D.4 RESIDUAL QUALITY ACROSS SEQUENTIAL UPDATES
We supply both methods with the correct phases in decreasing mixture-weight order for all 100,000 test observations. Evaluating every nonempty selection step gives 300,000 sample-step pairs: 200,000 before all phases are supplied and 100,000 after completion. After supplying the first t phases (a prefix of length t), contribution targets are the actual perturbed, weighted spectra , and the residual target is
Metrics use the original observation scale before query normalization and pair contributions by identity. Scalar follows the bounded update in Appendix C; PhaseMatcher re-estimates all selected contributions. Complete-set residuals include background and noise.
Table 23: Residual reconstruction under identical true-phase histories.
| History | Update | Cosine similarity | MAE () |
|---|---|---|---|
| Incomplete | Scalar | 0.6634 | 65.6803 |
| Incomplete | PhaseMatcher | 0.9928 | 5.1114 |
| Complete | Scalar | 0.3508 | 75.8484 |
| Complete | PhaseMatcher | 0.9770 | 3.8705 |
Table 24 and Figure 9 follow each phase-count group through successive updates.
Scalar’s residual MAE increases at every update, while PhaseMatcher shows smaller increases at intermediate steps and lower MAE after the final update. Its residual cosine similarity also decreases less at each update. For four-phase samples, MAE grows by 45.00% and 12.40% across Scalar’s first two transitions, compared with 24.81% and 2.08% for PhaseMatcher. At the final transition, Scalar’s MAE rises another 2.36%, while PhaseMatcher’s falls by 27.62%. These trends measure the quality of the residual left for subsequent identification. Individual earlier contributions need not improve monotonically: their mean error can increase at intermediate updates even though PhaseMatcher’s residual remains more accurate than Scalar’s.
(a) Residual MAE

(b) Residual cosine similarity





Figure 9: Residual quality with the same correct phases supplied sequentially. (a) MAE on a shared logarithmic scale. (b) Cosine similarity on a shared linear scale. Each column follows a fixed group of two-, three-, or four-phase samples; points are test-set means and open markers denote the complete set.
Table 24: Residual reconstruction by total phase count and true-history length . MAE uses the original observation scale.
| Samples | Scalar | PhaseMatcher | ||||
|---|---|---|---|---|---|---|
| Cosine | MAE () | Cosine | MAE () | |||
| 1 | 1 | 10,000 | 0.3514 | 50.1147 | 0.9870 | 2.0867 |
| 2 | 1 | 20,000 | 0.6855 | 51.0897 | 0.9962 | 3.3403 |
| 2 | 2 | 20,000 | 0.3487 | 66.0129 | 0.9806 | 3.1298 |
| 3 | 1 | 30,000 | 0.8002 | 51.5527 | 0.9982 | 4.1955 |
| 3 | 2 | 30,000 | 0.5347 | 71.7535 | 0.9902 | 4.7662 |
| 3 | 3 | 30,000 | 0.3508 | 77.4167 | 0.9735 | 4.1274 |
| 4 | 1 | 40,000 | 0.8552 | 51.5652 | 0.9987 | 4.8735 |
| 4 | 2 | 40,000 | 0.6586 | 74.7716 | 0.9949 | 6.0828 |
| 4 | 3 | 40,000 | 0.4592 | 84.0404 | 0.9808 | 6.2091 |
| 4 | 4 | 40,000 | 0.3518 | 86.0234 | 0.9753 | 4.4941 |
Joint re-estimation of an initially misallocated peak. Figure 10 illustrates a selected two-phase test sample (index 2; library IDs 44463 and 115478 for A and B). At , both the reference and true contribution of A are zero, but PhaseMatcher initially allocates 0.06637 intensity to A. Adding B changes this estimate to 0.00004 and yields a B contribution of 0.28088, close to its target of 0.27976. Scalar assigns zero to A at this point from the first step, but estimates B as 0.03589 after its selection. This example shows how joint re-estimation changes an initial allocation when the model adds B; Scalar already avoids that particular A error. The A contribution's full-spectrum MAE decreases from to . These values use the original observation scale.
(a) Library references

(b) Joint re-estimation of A
(c) B after selection
References retain their library scale; contributions retain the observation scale. No local renormalization.
Figure 10: Joint re-estimation of an initially misallocated peak in a selected PhaseMix test sample under the true history A, then A/B. (a) Reference spectra. (b) Initial and re-estimated A contributions. (c) B contributions after selection. Vertical dotted lines mark ; reference and contribution intensities retain their respective original scales.
A fixed removal error limits the next contribution. Figure 11 shows a second selected two-phase test sample (index 60; A/B library IDs 94533/97753). Both references contain intensity near 55.72°. At this point, the true A contribution is 0.06637; Scalar and PhaseMatcher initially estimate 0.08328 and 0.07755, respectively. Both over-allocate intensity to A and reduce the signal available for B. After B joins, Scalar retains its A estimate and assigns only 0.01543 to B, whose true contribution is 0.03111. PhaseMatcher jointly re-estimates A as 0.06630 and estimates B as 0.03132. Across the full spectrum, its A MAE decreases from to .
To isolate the effect of the first removal, we replace Scalar’s removed A contribution with the true A contribution and repeat its unchanged second-step fit. The coefficient bounds, nonnegative clipping, reference B, and query normalization remain unchanged. B’s estimate at 55.72° increases to 0.02761. This intervention confirms that the initial over-removal contributes to the second-step underestimate. Both selected examples illustrate how contributions can change when the model adds another reference; Table 24 reports residual quality over the full test set.
(a) Reference overlap

(b) Initial A estimates
(d) A after adding B
(e) B estimates
(c) Residual after A
(f) Correcting the first removal

Figure 11: Initial over-allocation and subsequent joint re-estimation in a selected PhaseMix sample. (a) References. (b,c) Initial A estimates and residuals. (d,e) Joint A and B estimates after adding B. (f) Scalar’s B estimate when the first removal uses true A. Dotted lines mark 55.72°. References retain their library scale; contributions and residuals retain the observation scale.
D.5 JOINT SCALAR REFITTING WITH CORRECT PHASES
We compare sequential scalar subtraction, joint scalar refitting, and PhaseMatcher on 1,000 PhaseMix-135K test samples, randomly selecting 250 per phase count (seed 20260916). Each method receives correct phases in decreasing-weight order, yielding 2,500 nonempty prefixes. Targets and contribution pairing follow Appendix D.4; Table 25 averages scores over all 2,500 sample-step pairs.
Sequential subtraction uses the bounded, clipped, normalized transition in Appendix C. Joint scalar refitting instead returns to the original observation x at every step. With selected references as columns of , it solves
We use bounded-variable least squares with tolerance . All selected coefficients are refitted, but each reference retains its spectral shape.
Sequential contribution scores use the actual clipped removal. To check sensitivity to this convention, we also proportionally clip jointly fitted contributions wherever their sum exceeds the observation:
with multiplier one when the denominator is zero. This leaves the joint residual unchanged and makes .
Table 25: Correct-phase reconstruction on the 1,000-sample subset. MAE is in units of .
| Update | Contribution | Residual | ||
|---|---|---|---|---|
| Cosine ↑ | MAE ↓ | Cosine ↑ | MAE ↓ | |
| Sequential scalar | 0.9202 | 40.5222 | 0.5336 | 65.0384 |
| Joint scalar | 0.8909 | 51.3037 | 0.5330 | 64.7952 |
| Joint scalar, proportional clipping | 0.9222 | 39.9904 | 0.5330 | 64.7952 |
| PhaseMatcher | 0.9983 | 3.6447 | 0.9874 | 4.2546 |
Joint scalar refitting reduces residual MAE by only 0.37% relative to sequential subtraction. Proportional clipping improves its contribution scores, but the gap to PhaseMatcher remains: PhaseMatcher has 90.89% lower contribution MAE than the clipped joint fit and 93.43% lower residual MAE. For four-phase samples, joint and sequential scalar residual errors remain close throughout the updates (Table 26). These results show that fitting scale coefficients alone does not recover the contribution and residual quality of reference-conditioned spectral decomposition on this subset.
Table 26: Residual MAE () over the 250 four-phase samples.
| Update | Step 1 | Step 2 | Step 3 | Step 4 |
|---|---|---|---|---|
| Sequential scalar | 51.6661 | 74.1393 | 82.7750 | 84.8074 |
| Joint scalar | 51.6661 | 73.5152 | 82.2667 | 84.9592 |
| PhaseMatcher | 4.8220 | 5.8917 | 6.1350 | 4.3864 |
D.6 PHYSICS GUIDANCE IMPROVES RECONSTRUCTION
Both models start from the same single-phase checkpoint and use the same PhaseMix-135K splits. We retrain the ablated model for 120,000 phase-stage updates followed by 40,000 STOP-stage updates and evaluate the final STOP checkpoint on all 100,000 test samples. The phase-stage batch sizes are 126 for the full model and 128 for the ablation; both use an effective STOP-stage batch size of 224. The comparison uses one training run per configuration.
Table 27 reports identification and contribution reconstruction from automatically predicted sets, using the metrics in Appendix D.1. In this comparison, the full model has 9.0% lower contribution MAE with Greedy and 11.3% lower MAE with Beam-10. Exact-set@1 increases by 0.36 and 0.62 percentage points, respectively.
Stepwise reconstruction with correct phases supplied. We apply the correct-phase evaluation in Appendix D.4 to both final checkpoints, covering the same 300,000 prefixes. References enter as an ID-sorted set; outputs are mapped back to their identities for scoring. Contribution metrics
Table 27: Physics-guidance ablation on PhaseMix-135K. Contribution scores use the first-ranked predicted set.
| Model | Search | Exact-set (%) | Phase recall (%) | Contribution | ||
|---|---|---|---|---|---|---|
| @1 | @10 | Cosine | MAE () | |||
| Without physics guidance | Greedy | 76.79 | - | 91.37 | 0.9725 | 3.7602 |
| Full model | Greedy | 77.15 | - | 91.50 | 0.9735 | 3.4209 |
| Without physics guidance | Beam-10 | 81.36 | 94.49 | 93.31 | 0.9738 | 3.4133 |
| Full model | Beam-10 | 81.98 | 94.73 | 93.59 | 0.9765 | 3.0280 |
average over selected phases within each sample, then over samples in each phase-count and step group. Table 29 includes the single-phase results omitted from Figure 5.
Table 28 aggregates the 200,000 incomplete and 100,000 complete prefixes separately. Physics guidance reduces contribution MAE by 16.4% for incomplete prefixes and 10.7% for complete prefixes, with corresponding residual MAE reductions of 21.6% and 5.2%. Contribution MAE is lower at every phase-count/step combination; contribution cosine differs only slightly and is not uniformly higher. Residual MAE is lower at all incomplete steps. At the final four-phase step, it instead increases from to , while residual cosine is nearly equal. Complete-set residuals retain background and noise rather than serving another true-phase prediction.
Table 28: Correct-phase reconstruction with and without physics guidance, averaged over all test prefixes of each type. MAE is in units of .
| History | Physics guidance | Contribution | Residual | ||
|---|---|---|---|---|---|
| Cosine | MAE | Cosine | MAE | ||
| Incomplete | Without | 0.9988 | 5.3124 | 0.9895 | 6.5233 |
| Incomplete | With | 0.9989 | 4.4417 | 0.9928 | 5.1121 |
| Complete | Without | 0.9964 | 3.1938 | 0.9734 | 4.0841 |
| Complete | With | 0.9966 | 2.8534 | 0.9770 | 3.8709 |
Table 29: Contribution and residual reconstruction. Metric pairs: without physics guidance (left), full model (right). denotes phase count; MAE uses units of .
| Step | Contribution | Residual | |||
|---|---|---|---|---|---|
| Cosine | MAE | Cosine | MAE | ||
| 1 | 1 | 1.0000 / 1.0000 | 2.7705 / 2.4017 | 0.9836 / 0.9870 | 2.4554 / 2.0867 |
| 2 | 1 | 0.9997 / 0.9998 | 4.3979 / 3.5523 | 0.9950 / 0.9962 | 4.1862 / 3.3406 |
| 2 | 2 | 0.9977 / 0.9977 | 3.2255 / 2.8268 | 0.9750 / 0.9806 | 3.6667 / 3.1297 |
| 3 | 1 | 0.9995 / 0.9997 | 5.4680 / 4.3406 | 0.9975 / 0.9982 | 5.3233 / 4.1959 |
| 3 | 2 | 0.9988 / 0.9987 | 4.5791 / 3.9769 | 0.9861 / 0.9902 | 6.0940 / 4.7667 |
| 3 | 3 | 0.9957 / 0.9958 | 3.6703 / 3.2748 | 0.9665 / 0.9735 | 4.6790 / 4.1276 |
| 4 | 1 | 0.9994 / 0.9995 | 6.3130 / 4.9769 | 0.9983 / 0.9987 | 6.2102 / 4.8740 |
| 4 | 2 | 0.9987 / 0.9987 | 5.5393 / 4.6957 | 0.9924 / 0.9949 | 7.8877 / 6.0839 |
| 4 | 3 | 0.9975 / 0.9976 | 4.9753 / 4.5215 | 0.9716 / 0.9808 | 7.8627 / 6.2103 |
| 4 | 4 | 0.9955 / 0.9958 | 2.9264 / 2.6635 | 0.9752 / 0.9753 | 4.2540 / 4.4949 |
Newly added contributions. Figure 12 separately scores only the contribution of the phase added at the current step. Its MAE is lower with physics guidance at all incomplete steps; the final four-phase step is slightly worse. Cosine differences are small and mixed. This newest-phase statistic is distinct from the all-selected-phase average used in the main figure.
Without physics guidance
With physics guidance
(a) 2 phases
n = 20,000
(b) 3 phases
n = 30,000
(c) 4 phases
n = 40,000

Figure 12: Newly added phase contributions with correct phases supplied. (a–c) Two-, three-, and four-phase test samples. Points are sample means; open markers denote the last update. Cosine axes are zoomed.
D.7 IDENTIFICATION ACROSS WEAK-PHASE INTENSITY AND SPECTRAL OVERLAP
We stratify the main-table predictions for all 90,000 multiphase PhaseMix-135K test mixtures, comparing PhaseMatcher and Scalar under Greedy with the three external baselines. True contribution spectra define the same groups for all methods; all predictions are included.
Intensity and overlap definitions. Let be the weighted, perturbed contribution of true phase i before background and noise are added. We define its integrated intensity share and the weakest phase as
The share measures diffraction intensity, not mass fraction. Spectral overlap measures the cosine similarity between the weakest contribution and the sum of the remaining contributions:
Larger o indicates greater similarity to the remaining signal, rather than a percentage of coincident peaks. Weakest-phase recall is the fraction of mixtures for which the weakest true phase ID appears in the predicted set.
Grouping and uncertainty. Within each phase count, we use intensity-share bins [0, 0.05), [0.05, 0.10), [0.10, 0.20), and [0.20, 1]. We then divide the weak-phase subset into overlap tertiles, independently for each phase count. The two cut points are (0.02273, 0.06274), (0.03164, 0.07547), and (0.03903, 0.08677) for two, three, and four phases, respectively; “high overlap” denotes the upper tertile within each subset. Figure 13 reports weakest-phase recall, and Table 30 reports sample counts and Exact-set@1 for the same groups. Intervals are 95% percentile intervals from 5,000 paired mixture-level bootstrap resamples within each group (seed 20260916).
Results. The largest recall gains over Scalar occur below 5% intensity share: 12.35, 16.89, and 19.75 percentage points for two, three, and four phases. The external baselines also have markedly lower weakest-phase recall, particularly in these low-intensity groups. In four-phase mixtures, the gain over Scalar falls to 2.40 points at 5–10% and 0.40 points at 10–20%. Within the below-5% subset, the advantage increases across overlap tertiles at every phase count. For four phases, weakest-phase recall gains are 13.38, 19.69, and 26.18 points from low to high overlap. In the high-overlap group, Exact-set@1 improves from 37.40% to 64.17%. Absolute recall need not decrease monotonically with overlap; the consistent trend is the larger advantage over Scalar. Defining the weakest phase by minimum mixture weight instead gives recall gains of 11.82, 16.53, and 19.51 points below 5% weight, supporting the same low-intensity trend.
✗ Database matching ▲ XDecomposer ● PhaseMatcher
◆ PhaseDifformer ☐ Scalar
Weakest-phase intensity share (%)
(a) 2 phases

(b) 3 phases
(c) 4 phases
Spectral overlap within intensity share
(d) 2 phases

(e) 3 phases
(f) 4 phases
Figure 13: Weakest-phase identification on PhaseMix-135K. (a–c) Recall by weakest-phase intensity share. (d–f) Recall by overlap tertile among mixtures with weakest-phase share below 5%. Columns correspond to two-, three-, and four-phase mixtures. Points show recall with 95% mixture-bootstrap confidence intervals; some intervals are smaller than the markers. Group sizes appear in Table 30.
Table 30: Exact-set@1 (%) in the groups of Figure 13. Database denotes iterative database matching and PM denotes PhaseMatcher. The two PhaseMatcher variants and database matching use Greedy.
| K | Group | n | Database | PhaseDiffermer | XDecomposer | Scalar | PM |
|---|---|---|---|---|---|---|---|
| (a) Weakest-phase intensity share | |||||||
| 2 | < 5% | 2,688 | 0.26 | 2.42 | 4.32 | 62.39 | 75.37 |
| 5-10% | 2,353 | 2.85 | 8.50 | 18.49 | 85.81 | 88.65 | |
| 10-20% | 4,098 | 17.86 | 11.01 | 26.96 | 87.92 | 90.04 | |
| ≥ 20% | 10,861 | 41.26 | 7.71 | 38.54 | 87.63 | 89.55 | |
| 3 | < 5% | 10,614 | 0.10 | 0.05 | 0.63 | 51.74 | 69.52 |
| 5-10% | 7,150 | 2.73 | 0.11 | 3.86 | 77.69 | 82.21 | |
| 10-20% | 8,573 | 13.82 | 0.51 | 8.92 | 79.66 | 82.33 | |
| ≥ 20% | 3,663 | 29.13 | 0.71 | 12.56 | 79.42 | 81.79 | |
| 4 | < 5% | 23,303 | 0.09 | 0.00 | 0.00 | 40.75 | 61.98 |
| 5-10% | 10,480 | 1.76 | 0.00 | 0.00 | 68.37 | 74.55 | |
| 10-20% | 6,022 | 7.54 | 0.03 | 0.00 | 69.66 | 73.33 | |
| ≥ 20% | 195 | 11.28 | 0.00 | 0.00 | 73.85 | 73.85 | |
| (b) Overlap tertiles within intensity share < 5% | |||||||
| 2 | Low | 896 | 0.00 | 4.35 | 4.46 | 59.15 | 66.96 |
| Mid | 896 | 0.56 | 1.79 | 4.91 | 66.85 | 79.24 | |
| High | 896 | 0.22 | 1.12 | 3.57 | 61.16 | 79.91 | |
| 3 | Low | 3,538 | 0.00 | 0.06 | 0.71 | 51.16 | 63.43 |
| Mid | 3,538 | 0.06 | 0.06 | 0.73 | 56.25 | 72.36 | |
| High | 3,538 | 0.25 | 0.03 | 0.45 | 47.82 | 72.78 | |
| 4 | Low | 7,768 | 0.10 | 0.01 | 0.00 | 39.97 | 55.45 |
| Mid | 7,767 | 0.06 | 0.00 | 0.00 | 44.88 | 66.33 | |
| High | 7,768 | 0.10 | 0.00 | 0.00 | 37.40 | 64.17 | |
D.8 GREEDY INFERENCE EFFICIENCY
We measure Greedy inference on a single RTX 4090 with BF16 mixed precision over all 135,258 candidate records, using 256 test spectra for each phase count from one to four. Table 31 reports mean single-input inference time, excluding model and data loading.
Table 31: Single-GPU Greedy inference time on PhaseMix-135K.
| Phase count | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| Time (s/mixture) | 0.0250 | 0.0401 | 0.0551 | 0.0685 |
D.9 RRUFF CONTRIBUTION EXAMPLES
Figures 14–28 show PhaseMatcher Beam on 15 controlled mixtures constructed from single-phase experimental RRUFF patterns: three two-phase, six three-phase, and six four-phase examples. We retain the original three examples and select 12 more to cover different weak-phase intensity shares and spectral overlaps among mixtures with available atomic coordinates, without using prediction outcomes. Each figure shows the observation, true contributions, and final Beam contributions on the same intensity scale.
Colors, chemical formulas, and library IDs identify phases; crystal drawings use available DIF-file structures. Per-phase MAE and cosine compare predicted and true contributions over the full angular range. We assign zero predictions and cosine zero to missing phases, and compare extra predictions with a zero target (cosine undefined). Captions report the weakest phase's integrated-intensity share and its cosine overlap with the sum of the other true contributions.
PhaseMatcher Beam · 2 phases · RRUFF mixture 956
Observation
Intensity (observation scale)

True contributions
Predicted contributions
ID 544
Rhodizite
MAE: 0.00125
Cosine: 0.9997
ID 462
Nepheline
MAE: 0.00054
Cosine: 0.8519
Figure 14: Two-phase RRUFF-based mixture 956. Weakest-phase share: 3.39%; overlap: 0.108.
PhaseMatcher Beam · 2 phases · RRUFF mixture 1571
Observation
Intensity (observation scale)

True contributions
Predicted contributions
ID 588
Smithsonite
MAE: 0.00067
Cosine: 0.9998
ID 644
Thomsonite-Ca
MAE: 0.00055
Cosine: 0.9977
Figure 15: Two-phase RRUFF-based mixture 1571. Weakest-phase share: 35.31%; overlap: 0.013.
PhaseMatcher Beam · 2 phases · RRUFF mixture 2098
Observation
Intensity (observation scale)

True contributions
Predicted contributions
ID 384
ID 189
Leiteite
MAE: 0.00089
Cosine: 0.9983
Cuyaite
MAE: 0.00106
Cosine: 0.9048
Figure 16: Two-phase RRUFF-based mixture 2098. Weakest-phase share: 43.63%; overlap: 0.481.
PhaseMatcher Beam · 3 phases · RRUFF mixture 2597
Observation
Intensity (observation scale)

True contributions
Predicted contributions
ID 51
Augelite
MAE: 0.00107
Cosine: 0.9978
ID 258
Fluoro-richterite
MAE: 0.00240
Cosine: 0.9980
ID 707
Wendwilsonite
MAE: 0.00102
Cosine: 0.9199
Figure 17: Three-phase RRUFF-based mixture 2597. Weakest-phase share: 11.02%; overlap: 0.286.
PhaseMatcher Beam · 3 phases · RRUFF mixture 2686
Observation
Intensity (observation scale)

True contributions
Predicted contributions
ID 211
ID 406
Mg(CO )
Dolomite
MAE: 0.00077
Cosine: 0.9991
Magnesite
MAE: 0.00044
Cosine: 0.9986
ID 495
Phenakite
MAE: 0.00070
Cosine: 0.9948
Figure 18: Three-phase RRUFF-based mixture 2686. Weakest-phase share: 20.10%; overlap: 0.033.
PhaseMatcher Beam · 3 phases · RRUFF mixture 2912
Observation
Intensity (observation scale)

True contributions
Predicted contributions
ID 3
Aegirine
MAE: 0.00109
Cosine: 0.9997
ID 315
Hemimorphite
MAE: 0.00028
Cosine: 0.9883
ID 712
Witherite
MAE: 0.00026
Cosine: 0.9671
Figure 19: Three-phase RRUFF-based mixture 2912. Weakest-phase share: 2.97%; overlap: 0.081.
PhaseMatcher Beam · 3 phases · RRUFF mixture 3892
Observation
Intensity (observation scale)

True contributions
Predicted contributions
ID 584
Si
Silicon
MAE: 0.00089
Cosine: 0.9834
ID 406
Mg(CO )
Magnesite
MAE: 0.00058
Cosine: 0.9991
ID 189
Cuyaite
MAE: 0.00131
Cosine: 0.9797
Figure 20: Three-phase RRUFF-based mixture 3892. Weakest-phase share: 15.40%; overlap: 0.264.
PhaseMatcher Beam · 3 phases · RRUFF mixture 4009
Observation
Intensity (observation scale)

True contributions
Predicted contributions
ID 433
ID 607
ID 278
Metarossite
MAE: 0.00161
Cosine: 0.9969
Stephanite
MAE: 0.00170
Cosine: 0.9938
Gaylussite
MAE: 0.00030
Cosine: 0.9753
Figure 21: Three-phase RRUFF-based mixture 4009. Weakest-phase share: 2.97%; overlap: 0.122.
PhaseMatcher Beam · 3 phases · RRUFF mixture 4364
Observation
Intensity (observation scale)

True contributions
Predicted contributions
ID 533
ID 309
Pyrosmalite-(Fe)
MAE: 0.00159
Cosine: 0.9990
Hausmannite
MAE: 0.00158
Cosine: 0.9945
ID 173
Cordierite
MAE: 0.00062
Cosine: 0.9957
Figure 22: Three-phase RRUFF-based mixture 4364. Weakest-phase share: 11.74%; overlap: 0.086.
PhaseMatcher Beam · 4 phases · RRUFF mixture 4449
Observation
Intensity (observation scale)

True contributions
Predicted contributions
ID 544
Rhodizite
MAE: 0.00149
Cosine: 0.9977
ID 54
Axinite-(Fe)
MAE: 0.00237
Cosine: 0.9902
ID 448
Monticellite
MAE: 0.00145
Cosine: 0.9904
ID 40
Argentojarosite
MAE: 0.00081
Cosine: 0.9541
Figure 23: Four-phase RRUFF-based mixture 4449. Weakest-phase share: 3.84%; overlap: 0.168.
PhaseMatcher Beam · 4 phases · RRUFF mixture 4845
Observation
Intensity (observation scale)

True contributions
Predicted contributions
ID 565
Ca(WO )
Scheelite
MAE: 0.00150
Cosine: 0.9971
ID 687
Vandermeerscheite
MAE: 0.00262
Cosine: 0.9973
ID 102
Brazilianite
MAE: 0.00102
Cosine: 0.9938
ID 309
Hausmannite
MAE: 0.00320
Cosine: 0.9897
Figure 24: Four-phase RRUFF-based mixture 4845. Weakest-phase share: 7.95%; overlap: 0.077.
PhaseMatcher Beam · 4 phases · RRUFF mixture 5418
Observation
Intensity (observation scale)

True contributions
Predicted contributions
ID 113
Burbankite
MAE: 0.00213
Cosine: 0.9990
ID 381
Legrandite
MAE: 0.00104
Cosine: 0.9728
ID 74
Berndlehmannite
MAE: 0.00057
Cosine: 0.9961
ID 300
Hagstromite
MAE: 0.00098
Cosine: 0.9805
Figure 25: Four-phase RRUFF-based mixture 5418. Weakest-phase share: 9.34%; overlap: 0.112.
PhaseMatcher Beam · 4 phases · RRUFF mixture 5805
Observation
Intensity (observation scale)

True contributions
Predicted contributions
ID 347
ID 40
Inyoite
MAE: 0.00089
Cosine: 0.9986
Argentojarosite
MAE: 0.00100
Cosine: 0.9901
ID 315
Hemimorphite
MAE: 0.00025
Cosine: 0.9940
ID 39
Arfvedsonite
MAE: 0.00006
Cosine: 0.0000
ID 550 (extra) · Riebeckite · □Na₂(Fe²⁺Fe³⁺)Si₈O₂₂(OH)₂
MAE: 0.00060 · Cosine: n/a · Coordinates unavailable
Figure 26: Four-phase RRUFF-based mixture 5805. Weakest-phase share: 0.34%; overlap: 0.080. Beam misses ID 39 and adds ID 550.
PhaseMatcher Beam · 4 phases · RRUFF mixture 5941
Observation
Intensity (observation scale)

True contributions
Predicted contributions
ID 433
ID 182
Metarossite
MAE: 0.00145
Cosine: 0.9976
Cubic zirconia
MAE: 0.00069
Cosine: 0.9984
ID 580
Shattuckite
MAE: 0.00089
Cosine: 0.9955
ID 209
Dioptase
MAE: 0.00024
Cosine: 0.9779
Figure 27: Four-phase RRUFF-based mixture 5941. Weakest-phase share: 2.16%; overlap: 0.071.
PhaseMatcher Beam · 4 phases · RRUFF mixture 5984
Observation
Intensity (observation scale)

True contributions
Predicted contributions
ID 175
Corundum
MAE: 0.00156
Cosine: 0.9981
ID 262
Forsterite
MAE: 0.00249
Cosine: 0.9954
ID 209
Dioptase
MAE: 0.00064
Cosine: 0.9853
ID 544
Rhodizite
MAE: 0.00071
Cosine: 0.9466
Figure 28: Four-phase RRUFF-based mixture 5984. Weakest-phase share: 4.57%; overlap: 0.102.