Hermes 4 Technical Report

Ryan Teknium, Roger Jin, Jai Suphavadeeprasit, Dakota Mahan, Jeffrey Quesnelle, Joe Li, Chen Guang, Shannon Sands, Karan MalhotraarXiv 2025 · DOI

Abstract

Hermes 4 is a family of open-weight "hybrid reasoning" models (14B, 70B, and 405B) designed to bridge the gap between deep chain-of-thought reasoners and instruction-following generalists. Utilizing a 19-billion-token synthetic dataset and novel techniques like graph-based data synthesis (DataForge) and length-controlled fine-tuning, Hermes 4 achieves performance parity with frontier proprietary systems while maintaining high contextual fidelity and a neutrally-aligned personality.

Introduction

The current landscape of Large Language Models (LLMs) is bifurcated into two primary paradigms: generalist models, which excel at instruction-following and creative tasks but often rely on "vibes-based" logic, and reasoner models, which utilize inference-time scaling to solve complex STEM problems. However, many frontier models suffer from "policy rigidity," where heavy alignment for safety results in robotic behavior and unnecessary refusals. Hermes 4 addresses this by creating a "neutrally-aligned" generalist capable of deep, self-reflective reasoning without sacrificing the flexibility required for nuanced human interaction.

Methodology

DataForge: Graph-Based Synthesis

A core innovation in the Hermes 4 pipeline is DataForge, a graph-based synthetic data generator. DataForge utilizes a Directed Acyclic Graph (DAG) where each node represents a specific transformation—such as converting a technical article into a conversational format or a creative piece. This modular approach enables complex, multi-stage data synthesis at an unprecedented scale.

Example DataForge workflow illustrating the multi-stage synthesis process from raw data to instruction-answer pairs.

Reinforcement Learning and Rejection Sampling

The team utilized Atropos, an open-source RL environment manager, to perform large-scale rejection sampling. By employing over a thousand task-specific verifiers, the authors generated a vast corpus of verified reasoning trajectories, ensuring that the model learns the process of problem-solving rather than just memorizing final answers.

Two-Stage SFT and Length Control

To address the issue of "infinite reasoning" loops—where smaller models like the 14B variant would exhaust their context windows—the team implemented a specialized second stage of Supervised Fine-Tuning (SFT). This stage trains the model in "counting behavior," teaching it to monitor its token usage and emit a </think> tag to transition to an answer once a 30,000-token "thinking budget" is reached.

Dataset Composition

The Hermes 4 training set comprises approximately 5 million samples, totaling 19 billion tokens. This dataset is split into 3.5 million reasoning samples, characterized by long "thinking traces" (up to 16k tokens), and 1.6 million general instruction-following samples.

Distribution of sample lengths in the Hermes 4 dataset alongside a visualization of the Prompt-Thinking-Answer structure.

Data was sourced from high-quality repositories like DCLM and FineWeb, followed by semantic deduplication using ModernBert embeddings and LLM-based quality filtering. The inclusion of PersonaHub allowed for the generation of diverse synthetic personas, driving variety in instruction types.

Key Results and Insights

Performance Benchmarks

Hermes 4 (405B) demonstrates elite performance across diverse domains, rivaling or exceeding models like DeepSeek-R1 and Qwen3.

  • Mathematics: 96.2 on MATH-500 and 81.9 on AIME’24.
  • Coding: 61.4 on LiveCodeBench (Aug 2024+), outperforming the base Llama 3.1 405B.

Contextual Fidelity and Alignment

Unlike many proprietary models that frequently issue disclaimers or break character, Hermes 4 prioritizes "contextual fidelity." On RefusalBench, Hermes 4 (Reasoning) scored 57.1, indicating a significantly lower tendency to refuse creative or complex prompts compared to GPT-4o (17.67) or Claude 3.5 Sonnet (17). This "neutral alignment" allows the model to interpret fictional or nuanced prompts with higher accuracy.

Conclusion and Future Work

Hermes 4 represents a significant step toward unified hybrid models. While the 14B model required specific length-contraction tuning, the larger 70B and 405B variants showed inherent stability in long-form reasoning. Future research will focus on "thinking efficiency"—maintaining reasoning quality with fewer tokens—and expanding the Atropos environment for even more diverse verifiable tasks.

Summary updated

BibTeX
@misc{teknium2025hermes,
  author = {Ryan Teknium and Roger Jin and Jai Suphavadeeprasit and Dakota Mahan and Jeffrey Quesnelle and Joe Li and Chen Guang and Shannon Sands and Karan Malhotra},
  title = {{Hermes 4 Technical Report}},
  year = {2025},
  eprint = {2508.18255},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.18255},
}
Figure