TL;DR
SLAI T-Rex introduces a full-stack optimization framework for full-parameter post-training of trillion-parameter Mixture-of-Experts (MoE) models on Ascend SuperPOD hardware. By combining hardware-aware system optimizations with a solver-grounded Continued Pre-Training (CPT) and Supervised Fine-Tuning (SFT) pipeline, the framework achieves a 2.93× improvement in hardware efficiency and sets a new state-of-the-art on complex Operations Research (OR) benchmarks.
What Problem Does This Paper Address?
Post-training trillion-parameter Mixture-of-Experts (MoE) models like DeepSeek-V4 introduces severe system challenges: massive memory pressure, non-overlapped communication overhead (such as All-to-All token dispatch), and highly irregular sparse attention kernels. While most frontier LLM training infrastructure is heavily optimized for NVIDIA CUDA or Google TPU architectures, full-parameter post-training on alternative hardware like Huawei's Ascend 910C NPUs remains significantly underexplored and plagued by low hardware utilization.
Furthermore, applying these massive models to complex, verifiable reasoning domains like Operations Research (OR)—which requires translating natural language into precise, solver-executable code (e.g., Gurobi)—is bottlenecked by data scarcity, brittle semantic mapping, and a lack of structural correctness guarantees.
Methods
The authors present SLAI T-Rex, a hierarchical, full-stack optimization framework consisting of two main pillars:
- System-Level Infrastructure Optimization:
- Expert-Tensor Parallelism (ETP): Decouples parallelism choices between attention (TP=2) and MoE layers (ETP=1) to reduce communication overhead and improve matrix multiplication efficiency.
- AuraKernel: An automated, operations-research-guided agent that optimizes complex AscendC kernels (like sparse attention and normalization) by systematically exploring the tiling search space and cutting redundant global memory traffic.
- Double-buffered Swap Optimizer: Overlaps state transfers with optimizer computation to alleviate memory pressure at the trillion-parameter scale.
- Solver-Grounded OR Post-Training Workflow:
- A two-stage CPT → SFT pipeline. Continued Pre-Training (CPT) infuses domain-specific structural priors, while Supervised Fine-Tuning (SFT) shapes behavioral alignment.
- AI-Assisted Quality Gates: Employs a multi-stage pipeline with an LLM-based Cleaner, an independent Reviewer, and a Gurobi-executable validation gate to filter out structurally incorrect or leaked data.
Datasets
- OR-CPT Synthetic Data: Generated via parameterized optimization instance generators (covering scheduling, routing, supply chain, etc.), verified with Gurobi solvers, and backtranslated into natural language.
- Collected OR Resources: Combines existing benchmarks and datasets like OptMATH, ReSocratic, OptiBench, Text2Opt-Bench, OR-Instruct, NLP4LP, ORQA, and MAMO (~100K samples total for CPT).
- Clean-CoT SFT Dataset: A curated, high-quality dataset of 10K SFT samples across four task categories and three problem representations.
- Evaluation Benchmarks: NL4OPT, OptiBench, Bench4Opt (B4O)-Feasible, and Bench4Opt (B4O)-ORGEval.
Key Insights and Ideas
- Memory and Control, Not Compute, are the Bottlenecks: Detailed profiling revealed that sparse-attention kernels were slow not because of heavy matrix math, but because their irregular, data-dependent access patterns starved the hardware's matrix engines.
- SFT Alone is Insufficient for Deep Reasoning: While SFT aligns the model's output format (e.g., removing markdown fences, matching API schemas), it doesn't fix deep structural errors. CPT initialization is crucial to inject the underlying mathematical and structural priors needed for true model-solver equivalence.
- Data Quality Over Data Quantity: Scaling raw synthetic SFT data from 10K to 50K actually degraded performance due to amplified model noise. Implementing strict, contract-aware cleaning and independent adversarial verification (Cleaner vs. Reviewer) was far more effective than simply scaling dataset size.
Key Results
- Hardware Efficiency: On DeepSeek-V4-Pro (1.6T parameters), the optimized system boosted Model FLOPs Utilization (MFU) from an 11.67% baseline to 34.22%, representing a 2.93× speedup.
- OR Specialization: Built on DeepSeek-V4-Flash, SLAI T-Rex-Flash achieved an average score of 71.81% across four OR benchmarks, outperforming GPT-5.4-Mini (67.83%) and the original DeepSeek-V4-Flash (60.54%).
- Scale-Up Validation: Applying the workflow to the trillion-parameter DeepSeek-V4-Pro raised its average OR score from 70.16% to 77.33% without degrading its general capabilities.
Limitations and Future Work
- Nonlinear Expressions: While the framework significantly improved linear programming modeling, standard cleaning and short chain-of-thought prompts were insufficient to stably solve complex nonlinear terms, ratios, and quadratic constraints in Gurobi.
- Automation of Parallelism: Future work aims to automate the exploration of multi-dimensional parallel configurations using operations-research-based mathematical modeling.
- Reinforcement Learning: The authors plan to extend the post-training workflow toward agentic reinforcement learning (AgenticRL) to further boost reasoning capabilities.
Summary updated