By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: New Regularization-Free Energy Function for Transformer Analysis | HackerNoon
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > New Regularization-Free Energy Function for Transformer Analysis | HackerNoon
Computing

New Regularization-Free Energy Function for Transformer Analysis | HackerNoon

News Room
Last updated: 2025/06/22 at 10:00 PM
News Room Published 22 June 2025
Share
SHARE

Table of Links

Abstract and 1 Introduction

2 Related Work

3 Model and 3.1 Associative memories

3.2 Transformer blocks

4 A New Energy Function

4.1 The layered structure

5 Cross-Entropy Loss

6 Empirical Results and 6.1 Empirical evaluation of the radius

6.2 Training GPT-2

6.3 Training Vanilla Transformers

7 Conclusion and Acknowledgments

Appendix A. Deferred Tables

Appendix B. Some Properties of the Energy Functions

Appendix C. Deferred Proofs from Section 5

Appendix D. Transformer Details: Using GPT-2 as an Example

References

7 Conclusion

We model transformer-based networks with associative memory and study the cross-entropy loss with respect to model and data sizes. By proposing a new energy function in Eq. 5, which does not rely on additional regularization terms as is common in modern continuous Hopfield networks, we demonstrate that the proposed energy function corresponds to a nearest neighbor search across patterns memorized during training. We then construct a global energy function for the layered structure of the transformer models using the majorization-minimization technique.

In practice, we have observed that the majority of transformer models tend to achieve a cross-entropy loss of approximately 2.2. The optimal balance between model and data sizes, however, is often determined by the collective expertise of practitioners. Additionally, the performance of these models can be compromised by both early and delayed stopping.

We believe the current paper represents an important step towards understanding the convergence and generalization behaviors of large transformer models. It provides insights into the theoretically optimal cross-entropy loss, which can inform both budgetary planning and model termination strategies.

Acknowledgments

The author thanks Dr. Yongqi Xu for stimulating discussions and practical assistance with the experiments.

Authors:

(1) Xueyan Niu, Theory Laboratory, Central Research Institute, 2012 Laboratories, Huawei Technologies Co., Ltd.;

(2) Bo Bai baibo ([email protected]);

(3) Lei Deng ([email protected]);

(4) Wei Han ([email protected]).


This paper is available on arxiv under CC BY-NC-ND 4.0 DEED license.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Grab a GE Smart Scale for $10 off ahead of Prime Day
Next Article Couchbase agrees to be acquired by private equity firm Haveli for $1.5B – News
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Douyin releases first fine-dining guide in challenge to rival Meituan · TechNode
Computing
Samsung reveals Exynos 2500, the chip behind its leaked Flip 7 shakeup
News
The Largest Camera Ever Built Releases Its First Images of the Cosmos
Gadget
Huawei secures top five spot in global R&D investment ranking · TechNode
Computing

You Might also Like

Computing

Douyin releases first fine-dining guide in challenge to rival Meituan · TechNode

1 Min Read
Computing

Huawei secures top five spot in global R&D investment ranking · TechNode

4 Min Read
Computing

The Ultimate Guide to Creating a Brand Marketing Plan

29 Min Read
Computing

ByteDance reportedly earns $110 billion in 2023 · TechNode

1 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?