{'fraction_non_alphanumeric': 0.03468208092485549, 'fraction_numerical': 0.0, 'mean_word_length': 5.2153846153846155, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Long short-term memory based on a reward/punishment strategy for recurrent neural networks

Recurrent neural networks and their variants have received huge success in many difficult tasks, such as handwriting recognition and generation, natural language processing, acoustic modeling of speech, and so on. As a kind of recurrent neural network architectures, the long short-term memory (LSTM) has attracted great attention. Most research works focus on its structures, training algorithms and topology structures. As an improvement to the structure of LSTM, a reward/punishment strategy is developed for LSTM in this paper, which we call RP-LSTM. In RP-LSTM, a reward/punishment (RP) strategy is proposed to evaluate its memory cells' memorization such that it improves its efficiency by forgetting more reasonably. Analysis of properties of the developed RP-LSTM is conducted from the neuroscience aspect. To test the performance of the developed RP-LSTM, comparative simulation studies are conducted on three structures, i.e., LSTM, LSTM with forget gate (LSTM-FG) and RP-LSTM. Simulation results on sentiment analysis model and sequence to sequence model demonstrate that RP-LSTM achieves better performance.