Entropy Regularizing Activation: Boosting Continuous Control, Large Language Models, and Image Classification with Activation as Entropy Constraints

Zilin Kang, Chonghua Liao, Tingqiang Xu, Huazhe Xu

In machine learning, "entropy" serves as a crucial proxy for uncertainty and exploration. In Reinforcement Learning (RL), high entropy prevents agents from converging prematurely on sub-optimal actions. In Large Language Models (LLMs), it prevents "entropy collapse"—a common failure mode where models become repetitive and lose reasoning diversity during alignment.

Traditionally, researchers handle this by adding an entropy bonus to the loss function. However, this "invasive" approach distorts the optimization landscape, forcing the model to balance two potentially conflicting goals: maximizing reward and maximizing entropy. In LLMs, this balance is notoriously unstable.

To address this, researchers have introduced Entropy Regularizing Activation (ERA), a novel paradigm that enforces entropy constraints directly through the model's architecture rather than its loss function. By applying a mathematically grounded activation function to the final output layer, ERA guarantees a minimum level of exploration and diversity across RL, LLM alignment, and image classification with negligible computational overhead.

The ERA Solution: From Loss to Activation

The core innovation of ERA is moving the entropy constraint from the loss function to the activation function. Instead of penalizing low entropy during optimization, ERA transforms the network's raw outputs (logits or distribution parameters) through a specialized function before they are used for sampling. This ensures the resulting distribution structurally satisfies a minimum entropy bound.

The authors adapt this paradigm for different domains:

  • Continuous Control: For Gaussian policies (common in robotics), ERA uses a softmax-based transformation on the standard deviation ($\sigma$). Unlike previous methods that scale all dimensions uniformly, ERA allows the model to intelligently allocate its "uncertainty budget" to specific dimensions that need more exploration.
  • Discrete Spaces (Vision): ERA applies a transformation to logits using an approximation of the inverse Lambert W function. This effectively "smooths" the softmax output to ensure the model never becomes overconfident, acting as a more flexible alternative to label smoothing.
  • LLM Alignment: The authors propose an adaptive variant for LLMs. It monitors the entropy of "forking tokens" (the most uncertain parts of a response) and sharpens or flattens the distribution during training to maintain a stable "entropy floor."

Experimental Validation and Key Results

The authors validated ERA across an impressive breadth of benchmarks, demonstrating its plug-and-play nature and high efficiency. All performance gains were achieved with a computational overhead of less than 7%, making ERA highly practical for production environments.

Performance comparison across LLMs, RL, and Image Classification

LLM Reasoning

ERA was tested on Qwen2.5-Math (7B and 1.5B) using math-heavy benchmarks like AIME '24/'25, AMC '23, MATH500, Minerva, and OlympiadBench. ERA boosted the average score of Qwen2.5-Math-7B across six benchmarks by 11.6%. Most notably, it achieved a staggering 70.7% relative improvement on the difficult AIME '25 benchmark compared to standard GRPO.

Continuous Control (Robotics/RL)

Tested on the challenging HumanoidBench, DeepMind Control Suite, and standard MuJoCo Gym environments, ERA proved highly effective. It improved performance by over 30% compared to strong baselines like SAC and PPO. It successfully accelerated learning speed and reached higher asymptotic performance across the board.

Image Classification

Using a ResNet-50 backbone on the gold-standard ImageNet and CIFAR-10 datasets, ERA enhanced ImageNet top-1 accuracy by 0.69%. It outperformed traditional regularization techniques like Dropout and Label Smoothing.

Key Insights

  • Decoupling is Key: By handling entropy at the architectural level, the optimizer can focus 100% on the primary task (e.g., getting the right math answer or maximizing robotic reward). This leads to a much cleaner optimization path.
  • Dimension-Aware Exploration: In high-dimensional tasks like controlling a humanoid robot, not all joints need the same amount of exploration. ERA’s softmax mechanism allows the model to learn a "structured exploration strategy," which is far superior to uniform scaling.
  • Stability via Truncation: Combining ERA with Truncated Gaussian distributions is significantly more stable than the standard "Tanh-squashed" Gaussian policies used in algorithms like Soft Actor-Critic (SAC).

Limitations and Future Work

The authors acknowledge that their approach is currently centered on the Maximum Entropy (MaxEnt) RL framework. While effective, maximizing entropy isn't always the optimal strategy for every possible task—some scenarios might require even more specialized constraints.

Looking ahead, the authors suggest adapting ERA for diffusion models and flow-based generative models, where structured diversity is equally critical but currently difficult to enforce. They also aim to explore how ERA might assist in even larger-scale LLM training beyond the 7B parameter range.

Summary updated

BibTeX
@inproceedings{kang2026entropy,
  author = {Zilin Kang and Chonghua Liao and Tingqiang Xu and Huazhe Xu},
  title = {{Entropy Regularizing Activation: Boosting Continuous Control, Large Language Models, and Image Classification with Activation as Entropy Constraints}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=Cqdsw3yteP},
}
Figure