We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Artificial Intelligence & Machine Learning/Benford's Law in Basic RNN and Long Short‐Term Memory and Their Associations
PeriodicalsArtificial Intelligence & Machine Learning

Benford's Law in Basic RNN and Long Short‐Term Memory and Their Associations

Checking your access to this record.

Abstract & Overview

Benford's Law describes the distribution of numerical patterns, specifically focusing on the frequency of the leading digit in a set of natural numbers. It divides these numbers into nine groups based on their first digit, with the largest category comprising numbers beginning with 1, followed by those starting with 2, and so on. Each neuron within a neural network (NN) is associated with a numerical value called a weight, which is updated according to specific functions. This research examines the Degree of Benford's Law Existence (DBLE) across two language model methodologies: (1) recurrent neural networks (RNNs) and (2) long short‐term memory (LSTM). Additionally, this study investigates whether models with higher performance exhibit a stronger presence of DBLE. Two neural network language models, namely: (1) simple RNN and (2) LSTM, were selected as the subject models for the experiment. Each model is tested with five different optimizers and four different datasets (textual corpora selected from Wikipedia). This results in a total of 20 different configurations for each model. The neuron weights for each configuration were extracted at each epoch, and the following metrics were measured at each epoch: (1) DBLE, (2) training set accuracy, (3) training set error, (4) test set accuracy, and (5) test set error. The results show that the weights in both models, across all optimizers, follow Benford's Law. Additionally, the findings indicate a strong correlation between DBLE and the performance on the training set in both language models. This means that models with higher performance on the training set exhibit a stronger correlation of DBLE.

Cite this record

Farshad Ghassemi Toosi (2025). Benford's Law in Basic RNN and Long Short‐Term Memory and Their Associations. Applied AI Letters, 6(3), e70002. https://doi.org/10.1002/ail2.70002

Copy in another style

Toosi, F. G. (2025). Benford's Law in Basic RNN and Long Short‐Term Memory and Their Associations. Applied AI Letters, 6(3), e70002. https://doi.org/10.1002/ail2.70002
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.