---
title: DeepSeek-VL2 and TRILLsson Combination
url: https://www.emergentmind.com/topics/deepseek-vl2-and-trillsson-combination
type: topic
---

# DeepSeek-VL2 and TRILLsson Combination

The combination of DeepSeek-VL2 (visual) and TRILLsson (audio) embeddings represents a state-of-the-art approach for multimodal neuro-facial disorder assessment within the DIVINE framework. This architecture leverages hierarchical disentanglement, adaptive fusion with sparse gating, and learnable clinical symptom representations. The approach performs joint prediction of disorder class and severity, handling synchronized speech and facial video inputs to achieve superior results, generalization to single-modality scenarios, and interpretable clinical representations [2601.07014].

## 1. Modal Embedding Extraction: DeepSeek-VL2 and TRILLsson

DIVINE utilizes frozen, pretrained foundation models for both visual and audio modalities to extract robust latent representations of neuro-facial data.

- **DeepSeek-VL2**: The “base” DeepSeek-VL2 vision encoder (with weights frozen during DIVINE training) yields per-clip embeddings $X_v = \mathrm{DS}(v) \in \mathbb{R}^{T_v \times d_v}$, taken from the final block of the vision transformer (prior to MoE gating), with $d_v=768$.
- **TRILLsson**: The distilled TRILLsson encoder (also frozen) produces audio embeddings $X_a = \mathrm{TR}(a) \in \mathbb{R}^{T_a \times d_a}$, sourced from the last hidden states, with $d_a=512$.

These embeddings serve as the basis for subsequent disentanglement and fusion operations.

| Model        | Output Dimension | Extraction Layer                   |
|--------------|-----------------|------------------------------------|
| DeepSeek-VL2 | $d_v=768$       | Final ViT block (pre–MoE gating)   |
| TRILLsson    | $d_a=512$       | Last encoder hidden state          |

## 2. Hierarchical Disentanglement via Two-Level VAEs

DIVINE introduces a dual-stage VAE disentanglement procedure, operating at both local and global levels for each modality.

- **Local-window VAE**: Each input sequence is windowed, and for window $t$ and modality $m \in \{v,a\}$:
  - Posterior parameters: $(\mu_w^m(t), \log \sigma_w^m(t)) = f^w_{\mathrm{enc}}(X'_m[t])$.
  - Latent sample: $z^m_w(t) = \mu_w^m(t) + \exp(\frac{1}{2} \log \sigma_w^m(t)) \odot \epsilon$, $\epsilon \sim \mathcal{N}(0, I)$.
  - Reconstruction: $\hat X'_m[t] = f^w_{\mathrm{dec}}(z^m_w(t))$.
  - Loss: $\mathcal{L}^m_w = \frac{1}{T''} \sum_t \| X'_m[t] - \hat X'_m[t] \|^2 + \mathrm{KL}[\mathcal{N}(\mu_w^m(t), (\sigma_w^m(t))^2) \| \mathcal{N}(0,I)]$.
  - Temporal pooling yields the global vector: $\bar z^m = \frac{1}{T''} \sum_t z^m_w(t)$.

- **Utterance-level VAE**: For each $\bar z^m$, two parallel encoders decompose the latent into:
  - Shared latent ($z^m_s$), with parameters tied across modalities.
  - Private latent ($z^m_p$), modality-specific.
  - The full loss includes reconstruction, $\beta_s$-weighted KL for shared, $\beta_p$-weighted KL for private latents:
    $$
    \mathcal{L}^m_u = \| \bar z^m - f_\mathrm{dec}(z^m_s, z^m_p) \|^2 + \beta_s\,\mathrm{KL}[\mathcal{N}(\mu_s^m, (\sigma_s^m)^2) \| \mathcal{N}(0,I)] + \beta_p\,\mathrm{KL}[\mathcal{N}(\mu_p^m, (\sigma_p^m)^2) \| \mathcal{N}(0,I)]
    $$
    where $\beta_s$, $\beta_p$ are chosen by validation.

This structure disentangles shared and modality-specific sources at multiple temporal scales, enhancing interpretability and generalization for clinical assessments.

## 3. Sparse Gated Fusion and Clinical Token Injection

Following disentanglement, the system adaptively fuses latent spaces and integrates clinical priors.

- **Sparse gated fusion**: For private encodings $z^v_p$, $z^a_p$:
  - Gates: $g_v = \sigma(W_v z^v_p + b_v)$, $g_a = \sigma(W_a z^a_p + b_a)$ (elementwise sigmoid).
  - Fused representation: $h_\mathrm{fused} = g_v \odot z^v_s + g_a \odot z^a_s$.
  - Sparsity is regularized with $\mathcal{L}_\mathrm{sparse} = \|g_v\|_1 + \|g_a\|_1$.

- **Learnable symptom tokens**: The fusion vector is prepended with $K$ learned “symptom tokens” $\{T_1,\ldots,T_K\}$:
  - Sequence: $S = [T_1,\dots,T_K,\,h_\mathrm{fused}]$.
  - A transformer-like dense block produces $H_\mathrm{out}$, with a token-specialization penalty $\mathcal{L}_\mathrm{token}$.

This layered fusion enables interpretability (by relating features to clinical symptom axes) and provides robustness to missing modalities.

## 4. Multitask Prediction and Aggregate Loss

The architecture supports joint diagnosis and severity scoring through multitask output heads.

- **Heads**: Classification and severity, with softmax outputs:
  $$
  \hat y_\mathrm{cls} = \mathrm{softmax}(W_\mathrm{cls} \mathbf{h} + b_\mathrm{cls})
  $$
  $$
  \hat y_\mathrm{sev} = \mathrm{softmax}(W_\mathrm{sev} \mathbf{h} + b_\mathrm{sev})
  $$
  where $\mathbf{h}$ is the output from the fused representation post-dense block.
- **Losses**:
  - Cross-entropy for classification ($\mathcal{L}_\mathrm{cls}$) and severity ($\mathcal{L}_\mathrm{sev}$)
  - Cycle-consistency ($\mathcal{L}_\mathrm{cycle}$) aligns shared latents.
  - Sparse gating and token penalties as above.
  - Full VAE reconstruction and KL objectives.

The total loss is:
$$
\begin{aligned}
\mathcal{L}_\mathrm{total} = \mathcal{L}_\mathrm{cls}
&+ \alpha\,\mathcal{L}_\mathrm{sev}
+ \epsilon\,\left( \mathcal{L}_\mathrm{cycle} + \mathcal{L}_\mathrm{sparse} + \epsilon\,\lambda\,\mathcal{L}_\mathrm{token} \right) \\
&+\sum_{m\in\{v,a\}} \left( \mathcal{L}^m_w + \mathcal{L}^m_u \right)
\end{aligned}
$$
with fixed hyperparameters $\alpha=2$, $\epsilon=0.1$, $\lambda=0.4$.

## 5. Training Protocol and Hyperparameterization

The model is trained and evaluated on the Toronto NeuroFace dataset using subject-wise five-fold cross-validation.

- **Optimization**: Adam optimizer, learning rate $1 \times 10^{-3}$, batch size 32, up to 50 epochs with early stopping.
- **Model size**: Fusion models contain 3.5–6.5M trainable parameters; unimodal variants $\sim$1M.
- **CNN refinement**: Each backbone includes two 1D convolutional blocks and fully connected layers for embedding refinement.
- **Regularization**: Dropout and $L_2$ regularization are applied to output heads as required.

These choices are calibrated for both convergence and robust generalization under full or partial modality input regimes.

## 6. Empirical Performance and Ablative Analyses

The DIVINE framework using DeepSeek-VL2 and TRILLsson embeddings achieves strong performance and demonstrates the impact of each architectural component through extensive ablation studies.

- **Unimodal CNN accuracy (multitask)**:
  - DeepSeek-VL2: 88.94%
  - TRILLsson: 90.51%
- **Naive DS+TR concatenation**: 94.65% accuracy, 93.87% F1
- **Full DIVINE (DS+TR)**: 98.26% accuracy, 97.51% F1

- **Modality-Constrained Regimes**:
  - Audio only: 89.27% / 88.23%
  - Video only: 84.34% / 83.20%
- **Regularization Ablation (DS+TR)**:
  - w/o cycle-consistency: 96.14% / 94.95%
  - w/o sparse gate: 95.83% / 94.21%
  - w/o token loss: 95.62% / 93.89%
- **Bottleneck Ablation**:
  - Flat fusion: 93.87% / 92.10%
  - Single-level VAE: 95.22% / 93.80%
  - Two-level (full) DIVINE: 98.26% / 97.51%

This empirical evidence quantifies the contribution of hierarchical disentanglement, sparse gating, and symptom tokenization relative to baseline encoders and naive fusion.

## 7. Context, Implications, and Outlook

The DIVINE framework, as the first approach to integrate cross-modal disentanglement, adaptive sparse gating, and multitask predictive heads for oro-facial neurological assessment, establishes a new empirical standard for multimodal fusion using DeepSeek-VL2 and TRILLsson representations [2601.07014].

Its design enables:
- Clinical interpretability through explicit shared/private latent decomposition.
- Robustness to missing modalities via sparse gating and multitask heads.
- Superior accuracy and F1 compared to unimodal approaches and simple fusion baselines, particularly in challenging cross-modality clinical settings.

A plausible implication is that this paradigm of multimodal representation disentanglement, dense fusion informed by symptom priors, and multitask learning may extend beyond neuro-facial disorder diagnostics to other clinical, behavioral, or affective computing domains requiring joint modeling of speech and facial data.

Source: https://www.emergentmind.com/topics/deepseek-vl2-and-trillsson-combination