---
title: ChatGLM Family of Models
url: https://www.emergentmind.com/topics/chatglm-family-of-models
type: topic
---

# ChatGLM Family of Models

Data-Diverse Drafts (DDD) comprise a principled collection of algorithmic methodologies aimed at maximizing the diversity of models, hypotheses, or data subsets in modern machine learning. Central to their design is the use of epistemic diversity—whether among distilled network drafts, predictive hypotheses, or sampled summaries—to enhance robustness, uncertainty quantification, and fairness. DDD methods are featured in epistemic uncertainty estimation for large language models (LLMs), learning from underspecified data in distribution shift scenarios, and fairness-aware data summarization. Core techniques include strategically partitioned training data, mutual information-based regularization, and constrained determinantal point processes.

## 1. Theoretical Rationale for Data-Diverse Drafts

The DDD paradigm targets the amplification of model or hypothesis diversity to address fundamental sources of uncertainty and brittleness in machine learning. For token-level epistemic uncertainty in LLMs, the diversity of predictive distributions within an ensemble (quantified by Jensen–Shannon divergence, JSD) constitutes the principal "variance proxy" in bias–variance decompositions:

\[
\mathop{\mathbb{E}}_{k}\!\left[\mathrm{KL}\big(q_k \Vert p_T\big)\right] = \underbrace{\frac{1}{K}\sum_{k=1}^K \mathrm{KL}\big(q_k\Vert q_{mix}\big)}_{\text{Variance Proxy (JSD)}} + \underbrace{\mathrm{KL}\big(q_{mix}\Vert p_T\big)}_{\text{Bias Proxy}}
\]

Here, $q_k$ denotes the predictive distribution of the $k$-th draft, $q_{mix}$ the uniform mixture, and $p_T$ the teacher/target model. Purely initialization- or noise-based diversity is quickly destroyed by standard distillation; DDD circumvents this via distinct data partitioning for draft training, thereby maximizing the ensemble's JSD and improving uncertainty quantification [2602.01956].

In distribution shift and underspecification settings, DDD-inspired methods such as DivDis select structurally distinct hypotheses (predictive functions) conditioned to be source-consistent but maximally disagree on target (unlabeled) data, enabling discovery of solutions robust to spurious correlations [2202.03418].

## 2. Algorithmic Implementations in DDD Frameworks

### DDD for Uncertainty-Aware LLM Distillation

The DDD method partitions a teacher-generated dataset $D$ into $S$ disjoint subsets. An ensemble of $K = S \cdot M$ drafts is created, each draft $q_{s,m}$ distilled solely on its assigned partition $D_s$:

1. **Partitioning:** $D = D_1 \cup \cdots \cup D_S$, $D_{s} \cap D_{s'} = \emptyset$
2. **Draft Training:** Each draft $q_{s,m}$ is trained (e.g., with LoRA) using Online Stochastic Distillation, optimizing:

   \[
   \min_{\phi} \mathop{\mathbb{E}}_{x \sim D_s} \mathop{\mathbb{E}}_{\theta \sim \pi_T} \left[ \mathrm{KL}\left(p_\theta(\cdot|x) \Vert q_{s,m}(\cdot|x; \phi)\right)\right]
   \]

3. **Aggregation:** The diversity of the resulting ensemble is quantified by JSD; the mixture approximates the Bayesian model average [2602.01956].

### DDD in the Diversify-and-Disambiguate (DivDis) Setting

For distributional robustness, DivDis implements DDD as follows:

- **Diversification:** $N$ network heads parameterized by shared $\theta$ are optimized to minimize cross-entropy loss on source-labelled data and maximize predictive mutual information loss on target-unlabeled inputs:

   \[
   \text{Objective:}\quad \sum_{i=1}^N L_{xent}(f_i) + \lambda_1 \sum_{i<j} L_{MI}(f_i, f_j) + \lambda_2 \sum_{i=1}^N L_{reg}(f_i)
   \]
   where $L_{MI}$ enforces low pairwise mutual information on target predictions [2202.03418].

- **Disambiguation:** A small number of labeled target samples identify the function (head) with minimum target risk, typically by querying points of maximal head disagreement and selecting by empirical accuracy.

### DDD via Fair and Diverse Subset Selection

Determinantal Point Processes (DPPs), enhanced by groupwise constraints, instantiate DDD for fair summarization:

- **Probabilistic Model:** For $X$ partitioned into $p$ sensitive groups $X_j$, fair summary $S$ (with $|S \cap X_j| = k_j$) is sampled from the Partition DPP:
  \[
  q^*(S) \propto \det(V_S V_S^\top),\quad S \in \mathcal{B} = \left\{ S : |S \cap X_j| = k_j\ \forall j \right\}
  \]
- **Sampling Algorithm:** Algorithmic efficiency is achieved via a Sample-and-Project routine under $\beta$-balance assumptions [1802.04023].

## 3. Theoretical Guarantees and Analytical Metrics

The bias–variance decomposition underpins DDD for LLMs, providing explicit quantification of gains:

\[
\mathrm{RMSE}(\mathrm{DDD}) = 0.2036\ (<\ 0.3029\ \text{for MiniLLM})
\]
indicating up to $37\%$ reduction in error for epistemic uncertainty compared to diverse initialization or noise-injected baselines [2602.01956]. Data partitioning directly impacts the JSD-based variance proxy, with additional ablation showing marginal further improvement for more partitions.

For DPP-based DDD, the Sample-and-Project algorithm meets the approximation bound:

\[
\tilde{q}(S) \leq \eta_k \beta^{2k} q^*(S)
\]
where $\beta$ quantifies partition balance, and $\eta_k$ is a combinatorial term; geometric diversity loss remains negligible compared to unconstrained sampling.

In DivDis, theory demonstrates that a minimal set of target-labeled queries suffices for confident head selection, with the number of required queries bounded in terms of the risk gap between top heads.

## 4. Empirical Performance and Benchmarks

Table: Selected Empirical Gains

| Domain                  | Baseline (Metric)         | DDD/DivDis/Partition DPP (Metric)      | Reference        |
|-------------------------|--------------------------|-----------------------------------------|------------------|
| Uncertainty (8B→3B)     | RMSE=0.3266 (Baseline)   | 0.2036 (DDD)                            | [2602.01956]     |
| OOD Accuracy (Waterbirds-CC) | 7% (ERM), 47% (Group DRO) | 82% (DivDis $m$=16 labels)         | [2202.03418]     |
| Subset Diversity (CelebA)    | Highest ($k$-DPP)          | ~equal ($P$-DPP), perfect fairness     | [1802.04023]     |
| Hallucination AUROC     | 0.7823 (TokUR)           | 0.7839 (DDD, 6×3B+1×3B drafts)         | [2602.01956]     |

On GSM8K (arithmetic reasoning), DDD yields state-of-the-art epistemic uncertainty estimation and matches the AUROC of compute-heavy full-ensemble baselines at 0.58× FLOPs. In complete-correlation vision and language tasks (Waterbirds, CelebA, MultiNLI), DivDis outperforms classical ERM and group-robust objectives, often by large margins, with minimal additional target labeled supervision [2202.03418]. For fair data summarization, Partition DPPs enforce strict group proportions with negligible geometric diversity loss [1802.04023].

## 5. Limitations and Contextual Boundaries

While DDD maximizes ensemble diversity and quantifies epistemic uncertainty effectively, the improvements are conditioned on the partitioning regime and sufficiency of data diversity—if subpopulations are not well represented in the data splits, gains in variance proxy and robustness diminish. Standard distillation or fine-tuning without DDD can result in near-degenerate diversity (JSD near zero), leading to underestimation of epistemic risk. In fairness-driven summarization, the price of group constraints is theoretically a multiplicative factor in the sampling distribution, but observed trade-off is empirically minimal [1802.04023].

## 6. Extensions and Interdisciplinary Relevance

The DDD framework is extensible across supervised, semi-supervised, and unsupervised tasks. It interfaces with active learning (label-efficient disambiguation), out-of-distribution robustness, model interpretability (via head-level feature attribution), and fairness in automated data curation. For LLM inference, DDD integrates naturally with scalable distillation and draft-ensemble pipelines, while for fairness, it advances kernel-geometric approaches to ensure subgroup representation. The general principle—explicit maximization of epistemic or geometric diversity under operational constraints—offers a unifying design axis in modern robust and responsible ML practice.

---

Principal references: [2602.01956], [2202.03418], [1802.04023].

Source: https://www.emergentmind.com/topics/chatglm-family-of-models