The “minimax-m1” Language Model: A 1 600-Word Profile for the LLM Leaderboard
1. Executive Summary (≈120 words)
minimax-m1 is a 34 B-parameter, decoder-only transformer optimized under the minimax training paradigm—an adversarial procedure that explicitly minimizes the maximum expected loss posed by a battery of challenging perturbations. The model is designed to compete in open LLM leaderboards such as Hugging Face’s Open LLM Leaderboard and Chatbot Arena–style evaluations. By blending a diverse 1.2 T-token corpus, rigorous safety alignment, and innovative inference tricks (dynamic mixture routing + speculative decoding), minimax-m1 achieves state-of-the-art performance in the “<40 B params, fully open-weights” bracket, while maintaining a 4× lower serving cost than many peers. This article unpacks its architecture, training regimen, benchmark scores, deployment guidelines, and future roadmap.
2. Why “Minimax”? (≈130 words)
Traditional next-token cross-entropy training yields models that perform well on average but can fail catastrophically on worst-case inputs (e.g., adversarial instructions, rare out-of-distribution formats). Borrowing from game theory, minimax training reframes language modeling as minimizing the maximum foreseeable loss across a distribution of adversarial objectives. Practically, every batch is accompanied by a “red-team” perturbation pipeline: paraphrase attacks, prompt injections, Jon-style jail-breaks, logic negations, and low-resource language switches. The optimizer then back-propagates through both the vanilla and perturbed sequences, compelling the network to defend its worst-performing tokens. Empirically, this yields:
- Smaller gap between average and 5th-percentile accuracy
- Better robustness to jailbreak attempts
- Smoother fallback behaviour under distribution shift
The “m1” suffix hints at minimax iteration #1; future “m2” and “m3” variants will iterate on this recipe.
3. Architecture Overview (≈150 words)
- Core: 34 B parameters, GPT-NeoX-style decoder
- Context window: 16 384 tokens, enabled by multi-query attention plus dynamic key-value memory caching
- Hidden size: 7 168, Layers: 48, Heads: 56 (head width 128)
- Embedding: 64 128-token vocabulary derived from SentencePiece with BPE-Drop regularization
- Positional encoding: Rotary (RoPE) extended via NTK scaling
- Activation: SwiGLU with attention & MLP dropout at 0.1
- Normalization: RMSNorm pre-activation + scaled residuals
- Regularization:
- λ=0.02 L2 weight decay
- 5 % Mixture of Denoising (“DROP-COPY”)
- 10 % draft tokens for speculative decoding fine-tune
- Precision: Trained in BF16; supports INT4/INT8 AWQ for inference
An auxiliary gating module routes tokens across two sub-expert MLP towers (“reasoning” vs “commonsense”), yielding effective capacity ~42 B without additional latency.
4. Training Data and Pre-processing (≈140 words)
4.1 Corpus Composition
| Domain | Tokens | Notes |
|---|
| English web (C4++ blend) | 450 B | Deduplicated, pre-2019 bias pruning |
| Multilingual news (35 langs) | 250 B | Balanced via temperature = 0.3 sampling |
| Code (GitHub permissive) | 180 B | 20+ languages, over-sampled at 1.5× |
| Scientific papers (arXiv, PubMed) | 140 B | License-compliant subsets |
| Dialog & instruction corpora | 120 B | ShareGPT, Dolly, OpenOrca, custom |
| Synthetic reasoning traces | 60 B | Chain-of-thought generated by GPT-4 |
Total: 1.2 T tokens.
4.2 Red-Team Augmentations
During minimax iterations, ~8 % of tokens are adversarially edited:
- Context window shuffling and insertion
- Emoji obfuscations
- In-language/off-language toggles
- Polarizing or disallowed content triggers
This pipeline surfaces pathological tokens that standard sampling overlooks.
5. Optimization Details (≈120 words)
- Hardware: 512 × A100 80 GB (NVLink) over 45 days
- Optimizer: AdamW (β₁ = 0.9, β₂ = 0.95), weight decay = 0.02
- LR schedule: 3e-4 peak, 16 k warm-up steps, cosine decay to 3e-5 floor
- Batch size: 9.2 M tokens (global)
- Gradient checkpointing + ZeRO-3 with QKV shard
- Loss mix: 80 % cross-entropy, 10 % adversarial CE, 10 % variance-stabilizing KL against the red-team variant
- Checkpoint averaging: last 8 checkpoints (1 epoch)
Compute budget: ≈7.6 e24 FLOPs (fully open-sourced logs & weights).
6. Leaderboard Benchmarks (≈240 words)
The table below summarizes minimax-m1’s released evals on common public suites. All runs use zero-shot or few-shot (≤4) where specified, greedy decoding at T=0, except code tasks (T=0.2, n=40, pass@1).
| Benchmark (Leaderboard Column) | Score | Shot | Rank (≤40 B open models) |
|---|
| MMLU (avg 57 sub-tasks) | 73.2 % | 5 | #1 |
| ARC-Challenge | 83.5 % | 25* | #2 (behind Orca-2-34B) |
| HellaSwag | 91.6 % | 10 | #1 |
| GSM8K (code-aware CheckStep) | 65.4 % | CoT† | #2 |
| HumanEval (pass@1) | 43.8 % | ‑ | #1 |
| TruthfulQA (MC) | 57.0 % | 0 | #1 |
| BIG-bench Hard (subset) | 46.7 % | 3 | #2 |
| Winogrande | 86.1 % | 5 | #1 |
| MT-Bench‡ | 7.30 /10 | ‑ | #2 |
*ARC’s public dev requires 25-shot templates per leaderboard spec.
†Chain-of-thought + self-consistency (n=32).
‡MT-Bench summary from the LMSYS Chatbot Arena harness.
Notably, minimax-m1 jumps +4.8 % on MMLU relative to its closest 34 B peer (Llama-2-34B-HF at 68.4 %), widening the robustness edge under perturbed prompts.
7. Qualitative Evaluation (≈120 words)
Human red-teamers conducted 300+ adversarial sessions:
- 92 % of disallowed-content requests were refused or safe-completed
- 4 % returned partial compliance but with content filtering
- 4 % borderline failures (e.g., stylized self-harm poems)
In a blinded debate test, judges preferred minimax-m1 responses over GPT-3.5-Turbo (0613) 64 % of the time, citing:
- Stronger chain-of-thought transparency (explicit reasoning)
- Fewer hallucinated citations
- Better multilingual coherence (notably Korean & Arabic)
Weaknesses surfaced in highly specialized legal references and extremely long code generation (≥300 LOC).
8. Safety & Alignment (≈140 words)
minimax-m1 integrates a three-tier alignment stack:
- Pre-training filters: blocklists (Hatebase v3, RealToxicityPrompts), optical duplicates, 30 % down-weight for extremist domains.
- Minimax adversarial fine-tune: ~10 B tokens of normative prompts + policy targets (OpenAI, Anthropic, HF RLAIF sets).
- Post-training RLHF: 15 K pairwise preference comparisons by crowdworkers, optimized via Sparse PPO with KL penalty λ = 0.02.
A policy enforcement module during inference leverages a 350 M parameter classifier fine-tuned on 5 M labeled segments; requests scoring risk > 0.4 trigger safe completions.
Open evaluations via LeCun’s Red Team Blitz yield a Harassment/ Hate score of 2.4 / 10 and Self-Harm compliance at 95 %—on par with closed models.
9. Inference & Deployment Guidelines (≈150 words)
9.1 Hardware Footprint
- BF16 / FP16: Needs ≈68 GB VRAM (fits A100 80 GB)
- INT8 AWQ: 36 GB VRAM; GeForce RTX 4090 can serve ≤8 K tokens/s with KV offload
- INT4 GPTQ: 18 GB VRAM (laptop-friendly) but ~8 % MMLU drop
9.2 Recommended Decoding
| Task type | Temperature | Top-p | Max tokens |
|---|
| Factual Q&A | 0.2 | 0.9 | 256 |
| Creative writing | 0.7 | 0.95 | 1 024 |
| Code | 0.15 | 0.92 | 800 |
| Chain-of-thought | 0.5 | 0.95 | 768 |
Enable speculative decoding (draft model = 2.7 B distilled) to shave 35 % latency.
9.3 Deployment License
Weights are released under Apache 2.0 with an Acceptable Use Addendum (AUA) forbidding:
- Biothreat synthesis
- Targeted political persuasion
- Disallowed sexual content of minors
Forks must propagate the AUA.
10. Comparative Analysis (≈180 words)
How does minimax-m1 stack against other open models?
- Llama-2-34B: Comparable parameter size, but
minimax-m1 beats it on MMLU (+4.8 %), HumanEval (+12 %), and TruthfulQA (+9 %). Llama-2 wins slightly on long-form summarization reading comprehension, likely due to longer CoT pre-training.
- Orca-2-34B: Orca-2 edges GSM8K (67 % vs 65 %) but lags in multilingual tasks.
minimax-m1’s adversarial resilience is ~+11 % by refusal accuracy.
- Mistral-7B-Instruct: At 7 B, Mistral is more footprint-efficient but ≈10-15 % lower across the board. A 4-way ensemble of Mistral models can partially bridge the gap at higher inference cost.
- GPT-3.5-Turbo (closed): Despite open-weight status,
minimax-m1 ties or surpasses 3.5 on code, truthfulness, and close-domain reasoning while trailing on summarization coherence.
- GPT-4 (closed): GPT-4 remains the ceiling, especially in strategic planning and complex tool use. However,
minimax-m1 reaches ~78 % of GPT-4’s MMLU at <5 % compute.
Thus, minimax-m1 offers the highest accuracy-per-dollar ratio among sub-40 B open models as of Q4 2023.
11. Limitations (≈110 words)
- Hallucinations: While reduced, still present in 14 % of open-ended generation tasks >400 tokens.
- Legal and medical advice: Not reliably authoritative; disclaimers required.
- Long codebases: Struggles with inter-file dependencies >1 000 lines.
- Domain bias: Despite multilingual training, minority languages like Xhosa, Lao, or Welsh exhibit lower fluency and cultural nuance.
- Computation cost: 34 B parameters may exceed edge devices; quantization helps but degrades certain safety filters.
- Catastrophic forgetting risk: The minimax adversary can over-regularize rare knowledge; fine-tune with caution.
12. Best-Practice Prompting Tips (≈120 words)
- System messages: Provide explicit role + policy reminders, e.g., “You are a meticulous scientific assistant who cites sources.”
- Toolformer style: Encourage function calls with structured JSON to boost extraction accuracy.
- Chain-of-thought: Prefix “Let’s reason step-by-step” plus “Give final answer after ###” to leverage hidden reasoning without leaking it.
- Few-shot mix: Supply positive and negative examples to exploit minimax tuned filters; the model weighs them almost equally.
- Chunking: For 30 K-word documents, feed 12 K sliding windows with “Continuing below =>” sentinel tokens; use the top-p merges to maintain context.
13. Roadmap (≈100 words)
Planned updates for H1 2024:
- minimax-m2 (45 B, MoE-style): 6 experts × 12 B, target 85 % MMLU.
- Instruction++: 1 M human-curated roleplay dialogs, multilingual.
- Civic Alignment Grant: Open red-team platform for crowd-sourced policy refinement.
- Efficiency: FlashAttention-v3 + 128 K context prototype.
- Research: Publish minimax theoretical analysis at ICML 2024.
Community contributions—data cleaning scripts, evaluation harnesses, policy feedback—are welcome under the GitHub umbrella.
14. Conclusion (≈100 words)
minimax-m1 demonstrates that carefully orchestrated minimax training can push open-weight LLMs toward closed-source robustness while retaining transparency and affordability. Its leaderboard-topping scores across MMLU, HellaSwag, and HumanEval showcase technical prowess, and its three-tier safety stack offers a pragmatic template for responsible deployments. Though limitations remain—hallucinations, niche language gaps, large footprint—the model serves as both a powerful production backbone and a fertile research platform. By open-sourcing weights, logs, and evaluation code, the minimax-m1 team invites the community to stress-test, audit, and iterate, propelling the open-model frontier forward.
© 2023 Minimax Labs. Licensed under Apache 2.0 + AUA.