Deriving the Scaled-Dot-Function via Maximum Likelihood Estimation and Maximum Entropy Approach

Jiyong Ma
9/14/2025
cs.LGcs.AI

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

In this paper, we present a maximum likelihood estimation approach to determine the value vector in transformer models. We model the sequence of value vectors, key vectors, and the query vector as a sequence of Gaussian distributions. The variance in each Gaussian distribution depends on the time step, the corresponding key vector, and the query vector. The mean value in each Gaussian distribution depends on the time step, and the corresponding value vector. This analysis may offer a new explanation of the scaled-dot-product function or softmax function used in transformer architectures [1]. Another explanation, inspired by [4], is based on the maximum entropy approach in natural language processing [5]. In this approach, a query vector and key vectors are used to derive the feature functions for the maximum entropy model.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ma2025deriving,
  title  = {Deriving the Scaled-Dot-Function via Maximum Likelihood Estimation and Maximum Entropy Approach},
  author = {Jiyong Ma},
  year   = {2025},
  eprint = {2509.12285},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.12285v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.12285.svg)](https://codeofpaper.com/paper/2509.12285)

Discussion