Dis-GEN: Integrating Discrimination in Generation
- Dis-GEN is a cross-domain research motif wherein discriminative signals are integrated directly into the generative process across various fields.
- In recommender systems, the DIG formulation unifies ranking and retrieval by learning semantic IDs through residual quantization and end-to-end training.
- In materials science and multimodal tasks, Dis-GEN models use specialized representations, such as symmetry-aware Wyckoff encoding and diffusion frameworks, to satisfy domain-specific constraints.
Dis-GEN is a label used in several distinct research settings rather than a single canonical method. In recommender systems, DIG—short for “Discrimination Is Generation”—redefines retrieval and ranking as the same optimization problem solved at different granularities, and learns Semantic IDs inside a discriminative ranker through end-to-end training. In materials science, “Dis-GEN” denotes a variational autoencoder for disordered inorganic crystal structure generation that operates on a symmetry-aware Wyckoff representation and explicitly models partial occupancies and vacancies. In adjacent multimodal work, DiffDis is explicitly described as a Dis-GEN model because it unifies image generation and image–text discrimination inside one diffusion framework (Wang et al., 14 May 2026, Petersen et al., 24 Jul 2025, Huang et al., 2023).
1. Terminological scope
In current usage, “Dis-GEN” is best understood as a family of field-specific formulations linked by a common idea: a discriminative signal is not treated as external to generation, but is incorporated into the generative representation or generation space itself.
| Usage | Research area | Defining formulation |
|---|---|---|
| DIG / “Discrimination Is Generation” | Recommender systems | The tokenizer is embedded inside a discriminative ranking model, and the ranker naturally becomes a retrieval model |
| Dis-GEN | Crystal generation | A generative model for disordered inorganic crystals based on an empirical equivariant representation |
| DiffDis as a Dis-GEN model | Vision–language diffusion | A single diffusion framework jointly handles text-to-image generation and image–text discrimination |
This distribution of usages suggests that “Dis-GEN” functions less as a standardized technical term than as a recurring research motif: generation is reformulated so that discrimination, ranking, or symmetry constraints are internal to the generative mechanism rather than appended after the fact.
2. “Discrimination Is Generation” in recommender systems
In DIG, the central problem is generative recommendation with Semantic IDs (SIDs). An item is mapped to a discrete token sequence,
where is the item set, is the codebook vocabulary, and is the code length. These SIDs define the generation space: a generative model produces tokens in and thereby selects items indirectly. DIG departs from earlier pipelines by arguing that the tokenizer should not be trained independently with retrieval objectives, because personalization signals are otherwise decoupled from SID construction (Wang et al., 14 May 2026).
The paper’s core claim is that ranking and retrieval are the same argmax problem at different granularities. Ranking operates in item space,
while generative retrieval operates in token space,
If the mapping is learned appropriately, then ranking over items and ranking over their SIDs become two views of the same optimization. On this view, SIDs are not merely an indexing device; they are the bridge between item space and token space.
DIG instantiates this perspective by embedding a residual quantization tokenizer inside a high-capacity discriminative ranker, specifically a DIN+DCNv2+MoE “Mixer.” The result of one training run is both a ranking model operating in item space and a retrieval model operating in token space. Items are represented by static features , users by 0, context by 1, and user–item cross features by 2. The ranker predicts
3
while retrieval at prefix depth 4 predicts
5
A defining design choice is the decoupling between codebook vectors 6, used for assignment and reconstruction, and SID embeddings 7, used for scoring. Residual quantization assigns
8
with 9, while the prefix SID representation is
0
This separation allows codebooks to remain fine-grained for addressing and indexing, while SID embeddings absorb the discriminative signal that ranking supplies.
3. Tokenizer learning, u2i-to-u2t distillation, and unified retrieval–ranking
DIG organizes features through a three-way taxonomy. Type-I features are item-intrinsic static features 1, encoded into SIDs and used for offline SID lookup. Type-II features are request-level features 2, not encoded into SIDs but used as conditioning at training and inference. Type-III features are structurally lossy cross features 3, the user–item statistics that carry much of ranking’s personalization power. These cannot be encoded into static SIDs, so DIG aggregates them into bucket-level token statistics 4 during training and approximates them at inference with an MLP5.
For items assigned to the same bucket 6 at layer 7 in batch 8, DIG defines
9
At inference time, direct aggregation is unavailable because the model is searching over token prefixes rather than known items. DIG therefore distills these statistics into
0
with supervision
1
This is the mechanism by which user–item cross features shape codebook boundaries during training and are approximately restored at token level during retrieval.
The full objective is
2
where 3 is ranking BCE, 4 is layer-wise retrieval BCE, 5 is the commitment/alignment loss,
6
and 7 is the semantic reconstruction loss,
8
Inference proceeds by beam search in SID space. At each layer 9, each prefix is extended with all 0 candidate tokens, scored by the shared Mixer using the SID prefix and 1, and pruned to the top 2 prefixes. Completed SIDs are then mapped to items through the offline SID-to-item inverted index.
Empirically, DIG is evaluated on KuaiRec-Small, KuaiRec-Big, Taobao Ad, Meituan-Large, and Meituan-Small. On retrieval, it outperforms the best reported baseline, ETEGRec, across all five datasets. On Taobao, Recall@10 improves from 3 to 4 and NDCG@10 from 5 to 6; on Meituan-Small, Recall@10 improves from 7 to 8 and NDCG@10 from 9 to 0. Ranking AUC also improves relative to the same model trained rank-only: on Taobao, 1; on Meituan-Small, 2. The retrieval-path AUC remains below ranking AUC, with gaps such as 3 on Taobao and 4 on Meituan-Large, and the paper relates larger gaps to more complex u2i features that are harder for MLP5 to approximate (Wang et al., 14 May 2026).
4. Dis-GEN for disordered crystal structure generation
In materials science, Dis-GEN is a generative model for crystalline inorganic materials with compositional disorder. The target objects are not ideal ordered crystals, but structures in which one or more Wyckoff sites have partial occupancy, mixed species, or vacancies. For a site 6, the occupancy can take the form
7
and with vacancies included,
8
The model is introduced because most crystal generators assume ordered structures with one atom per site and therefore cannot directly represent mixed occupancy at the average-structure level (Petersen et al., 24 Jul 2025).
Dis-GEN addresses this with an empirical equivariant representation derived from crystallography. Each crystal is encoded as a pair 9. The matrix 0 has one column per Wyckoff site and rows encoding partial occupancies, Wyckoff multiplicity, a binary disordered-site indicator, fractional coordinates, and Wyckoff letter. Because structures contain variable numbers of sites, 1 is zero-padded to a fixed maximum number of columns, with padding indicators included so that real and padded sites are distinguishable. The vector 2 contains the six lattice parameters 3 followed by a 230-dimensional one-hot encoding of the space group.
The model is a VAE. A CNN branch encodes 4, an MLP branch encodes 5, and the concatenated representation parameterizes
6
with reparameterized sampling
7
A symmetric decoder reconstructs 8 and 9. The training objective is
0
using cross-entropy for categorical outputs, MSE for fractional coordinates and partial occupancies, and MAE in practice for lattice parameters. The reported coefficients are 1, 2, 3, 4, 5, 6, 7, and 8.
Training data are drawn from the ICSD. The raw database contains about 9 entries, of which 0 are reported as disordered, 1 as ordered, and 2 as infeasible to parse. After filtering out P1, structures with atomic number 3, more than 9 Wyckoff sites, multiplicity 4, more than 6 disordered Wyckoff sites, more than 6 atom types on a Wyckoff site, and “atomic charge state as partial occupancy,” the final dataset contains 5 structures, of which 6 have at least one partially occupied Wyckoff site and 7 do not.
5. Symmetry preservation, generation workflow, and empirical performance
A central requirement of Dis-GEN is symmetry consistency. Since the decoder predicts space group, Wyckoff letters, and multiplicities, the reconstructed structure can be checked against crystallographic tables. The resulting symmetry-matching accuracy (SMA) is defined as the fraction of reconstructed sites for which the predicted multiplicity and Wyckoff letter are consistent with the predicted space group. On the test set, the model reports lattice-parameter MAEs of 8 Å for 9 and 0 degrees for 1, space-group accuracy of 2, disordered-site-indicator accuracy of 3, and SMA of 4. For disordered Wyckoff sites, partial occupancy MAE is about 5, multiplicity accuracy is 6, Wyckoff-letter accuracy is 7, and fractional-coordinate MAE is 8. For ordered sites, species occupancy accuracy is 9, multiplicity accuracy 00, Wyckoff-letter accuracy 01, and fractional-coordinate MAE 02 (Petersen et al., 24 Jul 2025).
Generation proceeds by sampling the latent space after VAE training. The paper compares three latent samplers on 03 generated samples: a multivariate Gaussian, a Gaussian mixture model, and a kernel density estimator (KDE) fitted to training latents. KDE performs best. Its generation error pass rate is 04, SMA is 05, validity under a 06 Å minimum interatomic distance criterion is 07, and SMACT-based charge neutrality is 08. By contrast, the Gaussian and GMM samplers show severe degradation in SMA, at 09 and 10 respectively. This indicates that staying close to the empirical latent manifold is important for preserving the learned symmetry structure.
The reconstruction pipeline includes explicit crystallographic post-processing. Generated structures are decoded into lattice parameters, space group, and Wyckoff-site descriptions; symmetry-inconsistent or unphysical outputs are discarded; fractional coordinates are refined with PyXtal to the nearest valid Wyckoff position; and final structures are filtered by validity and charge-neutrality heuristics. The paper also describes conditional generation by latent optimization against target composition and symmetry constraints. In a Zn–V–O case study, this procedure fills composition regions underrepresented in Materials Project data, including disordered candidates. Subsequent evaluation with a MACE force field and supercell sampling places most generated phases above the convex hull. The paper attributes this to the absence of property-conditioned training and to the broader difficulty of evaluating disordered phases, which require large supercells and many sampled configurations. Limitations listed explicitly include restriction to compositional disorder on Wyckoff sites, exclusion of very complex structures, dependence on filtered ICSD coverage, modest charge-neutrality rates, and the absence of finite-temperature disorder modeling.
6. Related uses and broader research landscape
A broader “Dis-GEN” concept appears in vision–language diffusion. DiffDis asks whether a powerful text-to-image diffusion generator can be turned into a cross-modal Dis-GEN model that both generates high-quality images from text and discriminates image–text semantics within a single diffusion framework and single architecture. It keeps a latent diffusion generator for text-conditional image synthesis, reformulates image–text discrimination as a diffusion process over text embeddings conditioned on the image, and shares the same image encoder and latent UNet backbone across the two tasks. Under full pretraining from Stable Diffusion, the paper reports both better generation and better discrimination than separate baselines, including an average 11 improvement in ImageNet zero-shot accuracy over discriminative-only training and a 12 FID improvement over generative-only training in the from-scratch comparison (Huang et al., 2023).
The name also appears in graph representation learning as DISGEN, “a model-agnostic framework designed to disentangle size factors from graph representations.” In that usage, the problem is size generalization in graph neural networks: training on relatively small graphs and testing on significantly larger ones. DISGEN introduces size- and task-invariant augmentations together with a decoupling loss based on the residual of the optimal linear map between hidden size-related and task-related representations, and the paper reports gains of up to 13 on real-world datasets (Huang et al., 2024).
In biomedical informatics, INDIGENA uses “Dis-GEN” to denote the disease–gene association prediction problem: for a disease described by phenotypes, rank genes by their likelihood of association. That paper’s method is inductive rather than transductive, using graph-projected phenotype ontologies and phenotype-embedding aggregation rather than disease-node embeddings, and reports that ConvKB-D with Graph 4 and BMA reaches approximately MR 14, H@100 15, and AUC 16 in the inductive setting (Zhapa-Camacho et al., 1 Feb 2026).
Taken together, these usages indicate that “Dis-GEN” is presently a cross-domain naming pattern rather than a single method family. Its recurring theme is the relocation of a discriminative, structural, or relational constraint into the representational core of a generative or ranking process, but the concrete formalism depends entirely on the field: SIDs and beam search in recommendation, Wyckoff-site occupancy tensors in crystallography, diffusion over embeddings in multimodal modeling, disentangled nuisance factors in graph learning, and ontology-driven ranking in disease–gene prediction.