Influence of number of steps back when using truncated backpropagation through time

Jakob

Im currently developing a model for time series prediction using LSTM cells with tensorflow. My model is similar to the ptb_word_lm. It works, but I'm not sure how to understand the number of steps back parameter when using truncated backpropagation through time (the parameter is called num_steps in the example).

As far as I understand, the model parameters are updated after every num_steps steps. But does that also mean that the model does not recognize dependencies that are farther away than num_steps. I think it should because the internal state should capture them. But then which effect has a large/small num_steps value.

Aravind Pilla

The num_steps in the ptb_word_lm example shows the sequence length or the num of words to be processed for predicting the next word.

For example if you have a sentence.

"Widows and orphans occur when the first line of a paragraph is the last line in a column or page, or when the last line of a paragraph is the first line of a new column or page."

If u say num_steps = 5

then you mean for

input = "Widows and orphans occur when"

output = "and orphans occur when the"

i.e given the words ("Widows","and","orphans","occur","when"), you are trying to predict the occurrence of the word ("the").

so, the num_steps actually plays a important role in remembering the larger context(i.e the given words) for predicting the probability of the next word

Hope, this is helpful..

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Backpropagation through time

Backpropagation through time in stateful RNNs

Is there a command for going back a number of steps in a directory, without using cd?

Does the number of subscribers influence the receiving time in MQTT?

Truncated backpropagation in PyTorch (code check)

R: Time values in some columns are truncated in their seconds part when using read_csv

Looping through a list using a range function stops working after a number of steps

Substring function not working when truncated using mysql

Suppress 'file truncated' messages when using tail

Time limit exceeded in a number of steps game

Run time (number of steps) of loops with conditions

Attribute change with variable number of time steps

Why do we need to use a sigmoid function when using backpropagation?

What is the error term in backpropagation through time if I only have one output?

Plotting number of texts through time

Using a constructor to set a number back to 1 when it goes over a certain number or below 0

Step through K combinations algorithm X steps at a time

go back to previous row when iterating through a pandas data frame using for loop

error_log message is truncated when using print_r

tweepy: truncated tweets when using tweet_mode='extended'

String is being truncated when passed in request using jquery ajax post

String or binary data would be truncated when using it in a stored procedure

Tables truncated when using bigquery api (buffer size issue?)

What steps does the system go through when handling an SSH connection?

Count number of occurrences of a value through time

python loop through number of rows at a time

Adding specific points to RoundSlider when using steps

Max pooling backpropagation using Numpy

How to go back through the Jetbrains IDE "first time"