TL;DR
TSRouter is a graph-based framework that dynamically selects the optimal modality (text vs. vision) and model (LLM vs. VLM) for time series reasoning queries. By modeling the complex interplay between tasks, queries, and model capabilities through a heterogeneous graph, it achieves 16% to 46% relative performance improvements over existing routing methods while significantly reducing inference costs.
What Problem Does This Paper Address?
Time series reasoning—interpreting sequential data to make decisions or predictions—is a cornerstone of fields ranging from education to astrophysics. Currently, researchers use two main approaches:
- LLM-based: Treating time series as text sequences. This preserves numerical precision but struggles with global patterns and long context windows.
- VLM-based: Converting time series into visual plots. This captures global trends efficiently but loses fine-grained numerical details due to image resolution limits.
The authors observe that no single modality or model size is universally superior. A large model might fail where a small one succeeds, and a vision-based approach might excel at perception while failing at precise forecasting. Existing "routers" typically only choose between models of the same modality. The challenge lies in building a system that can jointly select the best modality-model pair for a specific query, accounting for the nuanced interactions between the task's requirements and the models' unique strengths.
Methods
The authors introduce TSRouter, which treats routing as a candidate scoring problem on a heterogeneous graph.
- Heterogeneous Graph Construction: The framework builds a graph with four node types: Tasks (e.g., forecasting), Queries (the specific question and data summary), Modalities (Text, Vision, or Both), and Models (specific LLMs/VLMs). Edges represent relationships, such as which models support which modalities and which queries belong to which tasks.
- Node Profiling: To enable zero-shot generalization, each node is "profiled" using natural language descriptions (generated by an LLM like GPT-5) that outline capabilities, costs, and requirements. These descriptions are converted into initial features using a text embedding model.
- Heterogeneous Graph Transformer (HGT): TSRouter uses a stack of HGT layers to propagate information across the graph. This allows a query node to "understand" its context by aggregating information from similar queries, its parent task, and available model/modality candidates.
- Candidate Scoring & Cost-Awareness: The system scores each valid (modality, model) pair. A user-defined parameter, $\alpha$, allows the router to balance a trade-off between pure accuracy and inference cost (API pricing), effectively tracing a Pareto frontier for deployment.
Datasets
The authors evaluate TSRouter using:
- TSRBench: A comprehensive benchmark covering 4 main categories (Perception, Reasoning, Prediction, Decision-Making) across 15 subtasks and 4,125 cases.
- Generalization Sets: To test unseen tasks, they used time series imputation from TSQA and correlation prediction from MTBench.
- Model Pool: A diverse set of models including the Qwen3 series (8B to 397B), Llama-3.3-70B, GLM-4.5V, and Kimi-K2.5.
Key Insights and Ideas
- Modality Complementarity: The authors' analysis confirms that vision dominates perception tasks (identifying shapes/trends), while text is essential for prediction tasks requiring numerical precision.
- The "Large Model" Fallacy: Surprisingly, larger models are not always better. Figure 1(b) shows a significant portion of queries (13.7% to 14.6%) are answered correctly only by the smallest model in the pool, while the largest model fails. This highlights the necessity of per-query routing rather than just picking the biggest model.
- Relational Context: By using a graph, TSRouter can leverage "query-query" similarity. If a new query is similar to a past query that was solved best by a specific VLM, the router can learn that association through message passing.
- Zero-Shot Generalization: Because the router learns from natural language descriptions of models and tasks rather than just ID-based labels, it can handle a brand-new model (e.g., a newly released Llama version) just by plugging in its description and cost profile.
Key Results
- Superior Accuracy: TSRouter achieved 51.33% overall accuracy, a relative improvement of 16% to 46% over ten different baselines (including Hybrid LLM and CausalLM).
- Efficiency: TSRouter is remarkably lightweight. It boasts an inference latency of just 3.21 ms per query and uses only 576 MiB of memory, making it orders of magnitude faster and leaner than routers that rely on full LLMs for decision-making (like CausalLM at 910 ms).
- Robust Generalization: When tested on unseen tasks like time series imputation, TSRouter maintained its lead, proving it can identify the "numerical-heavy" nature of imputation and correctly route to text-based LLMs.
- Cost Optimization: By adjusting the cost-preference $\alpha$, TSRouter can reduce total API costs significantly while maintaining higher accuracy than baselines at the same price point.
Limitations and Future Work
- Modality Interference: A case study revealed that providing "Both" modalities (Text + Vision) can sometimes confuse a model, leading to an incorrect answer even when the vision-only input was correct. The authors suggest this "modality interference" is a key area for future model alignment.
- Profile Dependency: While ablation studies showed the system is robust, the quality of the initial LLM-generated node descriptions could potentially influence performance in highly specialized domains.
- Static Graph vs. Dynamic Updates: The current implementation uses a fixed set of training queries in the graph. Future work could explore online graph updates to allow the router to learn from its own successes and failures in real-time.
Summary updated