Papers
Topics
Authors
Recent
Search
2000 character limit reached

TrinityX: LLM Alignment & Trinification Models

Updated 10 July 2026
  • TrinityX is a modular framework for LLM alignment that integrates a Mixture of Calibrated Experts to balance helpfulness, harmlessness, and honesty.
  • In particle physics, TrinityX denotes a TeV-scale trinification model based on SU(3)³ symmetry, addressing realistic fermion masses, collider constraints, and dark matter.
  • Both usages showcase context-dependent innovation, with calibrated routing in NLP and gauge dynamics in particle physics driving measurable performance and phenomenological insights.

Searching arXiv for papers on "TrinityX" and closely related usages. arxiv.search query: all:"TrinityX" TrinityX is a research term that appears in two distinct technical contexts in the materials considered here. In natural language processing, it denotes a modular alignment framework for LLMs that jointly targets Helpfulness, Harmlessness, and Honesty through a Mixture of Calibrated Experts embedded within the Transformer architecture (Kashyap et al., 10 Sep 2025). In high-energy theory, the same label is applied to a TeV-scale trinification construction based on SU(3)c×SU(3)L×SU(3)RSU(3)_c \times SU(3)_L \times SU(3)_R, analyzed for fermion masses, heavy neutral leptons, LHC signatures, the muon g2g-2 anomaly, monopoles, and exotic fractionally charged states (Raut et al., 2022). This suggests that “TrinityX” functions as a shared name across otherwise unrelated literatures rather than as a single cross-domain framework.

1. Dual usage and research context

The term is used differently across the cited sources.

Usage of “TrinityX” Domain Core formulation
TrinityX LLM alignment Modular HHH alignment with a Mixture of Calibrated Experts in Transformer FFNs
“TrinityX” trinification model BSM particle physics TeV-scale SU(3)c×SU(3)L×SU(3)RSU(3)_c \times SU(3)_L \times SU(3)_R model with two bi-fundamental Higgs multiplets
Related trinification development Dark-matter phenomenology SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R with exact discrete TT parity and vector boson dark matter

In the alignment literature, the motivating problem is that LLMs must satisfy three often-conflicting alignment criteria—Helpfulness, Harmlessness, and Honesty—while fine-tuning or RLHF on one dimension frequently causes “catastrophic forgetting” in the others, and naïve Mixture-of-Experts suffers from unstable, poorly calibrated routing (Kashyap et al., 10 Sep 2025). In the particle-physics usage, the underlying problem is the low-energy realization of trinification at the TeV scale without imposing gauge coupling unification, while retaining a viable Higgs sector, realistic fermion masses, collider consistency, and additional phenomenology such as monopoles and exotic states (Raut et al., 2022).

A related, but distinct, trinification line of work studies SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R supplemented by an exact discrete TT parity, where the lightest TT-odd particle can be a stable vector boson dark-matter candidate (Babu et al., 2021). This situates the physics usage of TrinityX within a broader SU(3)3SU(3)^3 model-building program.

2. TrinityX as an LLM alignment framework

In the NLP usage, TrinityX is a modular alignment framework designed to keep separate expertise for each HHH dimension via lightweight task vectors, integrate them at inference via a Mixture of Calibrated Experts (MoCaE), and enforce stable, well-shaped routing through entropy and KL regularization (Kashyap et al., 10 Sep 2025). The base LLM parameters θ0\theta_0 are frozen, with the paper giving LLaMA-2-7B as an example backbone.

For each alignment objective g2g-20, TrinityX trains a low-rank adapter, or task vector, g2g-21 with g2g-22. This yields an expert set g2g-23 and prevents interference by never merging g2g-24 back into g2g-25. The design goal is modularity without destructive parameter interference.

The framework also computes static weights g2g-26 via cosine or inner-product similarity to a reference task vector and normalizes them as

g2g-27

These weights are later combined with dynamic routing probabilities, so the model does not rely on either static task similarity or per-token gating alone.

This decomposition reflects the paper’s broader claim that existing methods often optimize for individual alignment dimensions in isolation, leading to trade-offs and inconsistent behavior, whereas a calibrated modular mechanism can preserve specialized expertise while still producing a unified output representation (Kashyap et al., 10 Sep 2025).

3. MoCaE architecture, routing, and optimization

The MoCaE module is integrated in every Transformer FFN. At each layer, given hidden state g2g-28 and expert adapters g2g-29, TrinityX computes per-expert routing logits

SU(3)c×SU(3)L×SU(3)RSU(3)_c \times SU(3)_L \times SU(3)_R0

followed by temperature-scaled softmax gating

SU(3)c×SU(3)L×SU(3)RSU(3)_c \times SU(3)_L \times SU(3)_R1

with SU(3)c×SU(3)L×SU(3)RSU(3)_c \times SU(3)_L \times SU(3)_R2 in the reported experiments (Kashyap et al., 10 Sep 2025).

Each expert produces

SU(3)c×SU(3)L×SU(3)RSU(3)_c \times SU(3)_L \times SU(3)_R3

and the combined weight is

SU(3)c×SU(3)L×SU(3)RSU(3)_c \times SU(3)_L \times SU(3)_R4

The aggregated output is

SU(3)c×SU(3)L×SU(3)RSU(3)_c \times SU(3)_L \times SU(3)_R5

after which the calibrated embedding is formed as

SU(3)c×SU(3)L×SU(3)RSU(3)_c \times SU(3)_L \times SU(3)_R6

The paper summarizes the layerwise procedure as: g2g-254

The router SU(3)c×SU(3)L×SU(3)RSU(3)_c \times SU(3)_L \times SU(3)_R7 is implemented as per-expert linear heads SU(3)c×SU(3)L×SU(3)RSU(3)_c \times SU(3)_L \times SU(3)_R8 atop SU(3)c×SU(3)L×SU(3)RSU(3)_c \times SU(3)_L \times SU(3)_R9. To stabilize routing, TrinityX applies two regularizers on SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R0. The entropy term is

SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R1

and the temporal regularizer is

SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R2

The combined per-layer objective is

SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R3

with SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R4 and SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R5 in the experiments. A gating-loss term can also be added:

SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R6

Expert training is independent at first. For datasets SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R7, the reported losses are standard cross-entropy on each dimension:

SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R8

SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R9

TT0

The final joint MoCaE training uses

TT1

The central methodological claim is therefore not merely expert modularity, but calibrated expert mixing. The paper explicitly attributes ablation gains to calibrated routing rather than to expert specialization alone (Kashyap et al., 10 Sep 2025).

4. Evaluation, reported gains, and efficiency

The evaluation uses three standard alignment benchmarks: Alpaca-Small train / Alpaca-Eval test with 805 instructions for Helpfulness, BeaverTails-Train with 27K safe samples and BeaverTails-Test with 3K unsafe samples for Harmlessness, and TruthfulQA split half for train/test and expanded via permutations for Honesty (Kashyap et al., 10 Sep 2025).

The reported metrics are:

  • Win Rate: TT2, higher is better.
  • Safety Score: TT3, lower is better.
  • Truthfulness: TT4, higher is better.
  • Composite Avg: TT5.

On LLaMA-2-7B, the paper reports relative gains over the strongest prior joint-alignment baseline, H³Fusion, of TT6 in win rate, TT7 in safety score, and TT8 in truthfulness. The corresponding absolute results are reported as H³Fusion: TT9, SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R0, SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R1, SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R2, versus TrinityX (full): SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R3, SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R4, SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R5, SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R6 (Kashyap et al., 10 Sep 2025).

The ablation studies identify several sensitivities. Removing MoCaE entirely changes metrics from SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R7, SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R8, and SU(3)C×SU(3)L×SU(3)RSU(3)_C \times SU(3)_L \times SU(3)_R9. Removing entropy or KL regularization leads to less expert diversity, slight overfitting or unstable routing. Increasing the gating-loss weight improves WR but may slightly worsen SS. Varying the temperature TT0 shows that too low a value sharpens TT1, causing over-confidence and a drop in TI.

The efficiency claims are also explicit. Comparing TrinityX to H³Fusion on LLaMA-2-7B under the full pipeline, Table 5 reports inference time per sample changing from TT2 to TT3 seconds, training time from TT4 to TT5 seconds, and memory for TrinityX at approximately TT6 MB, characterized as a TT7 reduction (Kashyap et al., 10 Sep 2025). The explanation given is sparse activation of only a subset of experts per layer and the fact that full fine-tuned models for each objective are never loaded simultaneously.

Cross-model evaluation extends the framework to Mistral-7B, Gemma-7B, and DeepSeek-7B. All three are reported to show similarly large improvements over baselines, with DeepSeek-7B achieving the highest overall Avg at approximately TT8 while maintaining TT9, TT0, and TT1 (Kashyap et al., 10 Sep 2025). This is presented as evidence of backbone-level generalization rather than a model-specific artifact.

5. TrinityX as a TeV-scale trinification model

In the particle-physics usage, TrinityX refers to a trinification model based on

TT2

with electric charge embedded as

TT3

where

TT4

(Raut et al., 2022).

Per generation, the fermion multiplets are

TT5

with

TT6

and

TT7

Here TT8 is a new down-type quark, TT9 and SU(3)3SU(3)^30 are heavy SU(3)3SU(3)^31 doublets, and SU(3)3SU(3)^32 are SM-singlet neutral leptons. The scalar sector contains two bi-fundamentals,

SU(3)3SU(3)^33

The vacuum alignments are given by

SU(3)3SU(3)^34

with electroweak VEVs SU(3)3SU(3)^35 and trinification-breaking VEVs SU(3)3SU(3)^36. The symmetry-breaking chain is

SU(3)3SU(3)^37

The renormalizable Higgs potential contains quadratic terms, a mixing term SU(3)3SU(3)^38, quartics SU(3)3SU(3)^39, and cubic terms θ0\theta_00, with the complete expression given in Eq. (2.21) of the paper. Minimization in the electroweak-preserving limit θ0\theta_01 yields relations such as

θ0\theta_02

The paper further states that 12 Goldstones are eaten by the 12 new gauge bosons (Raut et al., 2022).

Fermion masses arise from the Yukawa Lagrangian

θ0\theta_03

This gives the tree-level charged-fermion mass matrices

θ0\theta_04

θ0\theta_05

For the heavy down-type sector,

θ0\theta_06

A numerical scan of the θ0\theta_07 heavy-quark matrix gives θ0\theta_08; with the lightest new θ0\theta_09 from CMS, the resulting bound is g2g-200 (Raut et al., 2022).

Neutral leptons are massless at tree level. One-loop radiative diagrams generate Majorana masses for g2g-201, while below g2g-202 a tiny g2g-203 is also generated. The full light-neutral mass matrix is reported as

g2g-204

leading, for g2g-205, to

g2g-206

The paper characterizes this as a mixture of radiative type-I and type-II seesaw (Raut et al., 2022).

The collider analysis of the trinification model reports 12 extra vector bosons whose masses are controlled by g2g-207 and g2g-208 once g2g-209 is fixed. Resonant production is treated in the narrow-width approximation,

g2g-210

with

g2g-211

By rescaling ATLAS limits on sequential g2g-212 and g2g-213, the current bound on the trinification-breaking VEV is reported as

g2g-214

(Raut et al., 2022).

The same model is also presented as a possible resolution of the muon g2g-215 anomaly through loops involving heavy charged leptons and new neutral gauge bosons g2g-216. The one-loop contribution is

g2g-217

with

g2g-218

g2g-219

and g2g-220. The numerical fit shown in the paper states that explaining g2g-221 within g2g-222–g2g-223 requires g2g-224–g2g-225 and corresponding g2g-226–g2g-227 with perturbative Yukawas (Raut et al., 2022).

Topological and exotic-sector consequences are equally central. The paper gives

g2g-228

yielding a topologically stable monopole carrying three quanta of Dirac magnetic charge,

g2g-229

with estimated mass

g2g-230

for g2g-231. If fundamentals of g2g-232 are added, the model predicts exotic mesons and baryons with fractional electric charges such as g2g-233 and g2g-234 (Raut et al., 2022).

A related trinification paper studies an exact discrete g2g-235 parity,

g2g-236

within g2g-237, so that the lightest g2g-238-odd particle is absolutely stable (Babu et al., 2021). In that framework, the T-odd neutral gauge-boson mass matrix in the g2g-239 basis leads, in the limit g2g-240, to a light eigenstate mostly g2g-241 with mass

g2g-242

where g2g-243 and g2g-244. The dark-matter analysis gives the relic-density requirement g2g-245, a perturbative bound g2g-246, and collider bounds g2g-247 and g2g-248 for light jets, or g2g-249 for g2g-250-jets (Babu et al., 2021).

Two misconceptions are therefore worth separating. First, TrinityX in LLM alignment and TrinityX in trinification are not the same construct; the sources place them in unrelated methodological and disciplinary contexts. Second, within the physics usage, the minimal two-g2g-251 trinification model and the g2g-252-parity dark-matter construction are related by gauge structure but are not identical implementations. A plausible implication is that “TrinityX” in current literature should be interpreted contextually: in machine learning it designates a calibrated expert-mixture alignment method, whereas in particle physics it denotes or is associated with a class of TeV-scale g2g-253 trinification models with distinctive collider, neutrino, and topological phenomenology.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (3)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to TrinityX.