ML and System Approaches for Data Processing Optimization and Long Sequence Modeling