Skip to content

Truncated BPTT #73

Open
Open

Description

@jramapuram

Is it possible to do truncated BPTT currently?
I have a really long time series: 1411889 samples
This overflows when trying to train on any backend.

Activity

  1. Qwlouse commented on Oct 28, 2015

    @Qwlouse
    Collaborator

    We don't have specific support for truncated BPTT currently.
    What you can do is to chunk up your sequence and just treat them as separate sequences. That will loose the internal state between chunks but at least allow you to train. But carrying the internal state precisely for usecase is on our agenda (see #57).

  2. jramapuram commented on Oct 28, 2015

    @jramapuram
    Author

    Yea, I had considered chunking, however as you mentioned the cross-sequence context is lost. I.e. in turn we prevent learning truly 'long-term' dependencies. Looking forward to your solution to #57

  3. jramapuram commented on Mar 26, 2016

    @jramapuram
    Author

    Any news with this?

  4. flukeskywalker commented on Mar 27, 2016

    @flukeskywalker
    Collaborator

    We realized that this was not needed for our current experiments, and so we wouldn't be able to properly test it etc. We didn't finalize how this should be cleanly integrated with everything else, but the lower-level stuff necessary to get and restore context is in place so it should be possible to write a custom SgdStepper which restores context across forward passes with the help of network.get_context()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions