# OrangeTree: A Linear and Tree-based Time Series Forecasting Model Supporting Multiple Input and Output Lengths

*Yiqi Tang, Zhichen Lai, Yuxuan Yang, Dalin Zhang, Jinpeng Chen, Gang Chen, Huan Li*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151255) · [OpenReview](https://openreview.net/forum?id=bkKbLYspXv) · [Open on the map](../papers.html#p151255)

Category: [Time Series, PDEs & Probabilistic ML](../pcat/9.md) › [Time Series Forecasting and Modeling](../pgroup/572.md) · Type: new method · Keywords: time series forecasting, multiple input output lengths, tree-based model, linear architecture, benchmark evaluation

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Dynamic and relational architectures › Time Series Forecasting; [Time Series](../areas/time-series.md) › Long-Horizon Forecasting Architectures › Efficient Long-Horizon Forecasting

## Summary
OrangeTree is a linear and tree-based time series forecasting model that handles multiple input and output lengths within a single architecture, achieving state-of-the-art performance.

## Explained to a 5-year-old
We have a new way to predict future numbers in a list. It works like a tree that can look at different parts of the list at once. It picks the important parts and combines them to make predictions. This helps it be fast and accurate even when the list lengths change. It beats other methods in tests.

## Explained to a 5-year-old, longer
Time series forecasting is about guessing what comes next in a sequence of numbers, like stock prices or temperature. Usually, models need the input and output to have the same length, which makes them inflexible. Some tricks like padding or stepping forward one by one can be slow or cause errors. The paper proposes a new architecture that can handle different lengths without these tricks. It uses a tree-like structure to break the data into segments and another tree to rebuild predictions. A special component chooses which parts of the data are most useful and merges them. This design lets the model work with short or long histories and predict short or long futures at the same time. Experiments on several benchmark datasets show it performs better than existing methods. It reduces the error by a small percentage compared to the best previous model. In settings where input and output lengths vary, it matches the accuracy of fixed-length models. The approach also avoids the extra computation and slowdown that other heuristic methods have. The code is publicly available for others to try.

## For a technical reader
The paper addresses the limitation of conventional time series forecasting models that require fixed input and output lengths. It introduces a tree-based encoder and decoder that decouple model parameters from sequence length, allowing flexible handling of multiple lengths. A range weighter and feature fuser dynamically select and combine relevant segments to form optimal contexts for prediction. Experiments on six benchmarks demonstrate state-of-the-art performance, with a 3.4% reduction in MSE and no accuracy loss in multi-length scenarios. The solution is open-sourced and can be integrated into existing pipelines without extensive redesign.

## Problem
Time series forecasting models are typically rigid, requiring fixed input and output lengths, which forces workarounds like padding or autoregression that cause computational redundancy or error accumulation.

## Method
The approach uses a Segment Tree Encoder and an Inverse Tree Decoder to decouple model parameters from sequence lengths, with a Range Weighter and Feature Fuser that dynamically select and combine relevant ranges for forecasting.

## Results
The approach achieves state-of-the-art performance, reducing MSE by 3.4% compared to prior SOTA, and matches the accuracy of length-fixed models in MIOL settings without the usual accuracy degradation and latency increase.

## Contributions
It introduces a unified architecture that decouples model parameters from sequence lengths, enabling flexible handling of multiple input and output lengths, and demonstrates superior performance across diverse benchmarks.

## Research questions this paper is counted under

- [How can we build time series forecasting models that remain accurate, efficient, and robust across non-stationary, multi-periodic, and irregular data conditions?](../q/0.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151255)
