Variable Length Sequence Modeling