Research Article

Reasoning Across Modalities: A Chain-of-Modality Framework for Forecasting with Structured Data, Temporal Trends, and Strategic Text

Zhangqi Liu*
Brown University, US

* Corresponding author: [email protected]

Abstract

The integration of heterogeneous modalities—specifically structured tabular data, temporal sequences, and domain-specific text—presents significant challenges for predictive modeling. Conventional large language models (LLMs) inherently lack mechanisms to reconcile the semantic and structural disparities among these data types. To bridge this gap, we propose Chain-of-Modality (CoM), a novel prompt engineering framework that enables pretrained LLMs to perform interpretable, sequential reasoning across modalities without requiring architectural modifications. CoM leverages lightweight modality-specific encoders to transform structured attributes and time-series patterns into natural language segments. These segments are semantically ordered (e.g., Structured → Temporal → Textual) and composed with textual inputs to form a cohesive reasoning chain. This design emulates human analytical workflows, preserving modality-specific inductive biases while harnessing LLMs' generative capabilities. Fine-tuned via parameter-efficient methods (LoRA), CoM achieves state-of-the-art performance: it reduces financial volatility prediction error by ↓12.1% (RMSPE) compared to early fusion approaches and improves user behavior classification AUC by ↑3.5% over text-only LLMs. Ablation studies confirm the essential contributions of all modalities and validate the significance of semantic ordering. Our work establishes a foundation for extensible, interpretable multimodal forecasting with minimal engineering overhead.

Keywords: Multimodal Forecasting; Prompt Engineering; Large Language Models; Structured & Temporal Data; Interpretability
Published: August 13, 2025
DOI: 10.54254/2755-2721/2025.25960
Volume: ACE Vol.173
pp. 170-182
Download PDF

References

  1. Xiong, X., Zhang, X., Jiang, W., Liu, T., Liu, Y., & Liu, L. (2024). Lightweight dual-stream SAR-ATR framework based on an attention mechanism-guided heterogeneous graph network. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 1–22.
  2. Liu, Z. (2022, January 20–22). Stock volatility prediction using LightGBM based algorithm. In 2022 International Conference on Big Data, Information and Computer Network (BDICN) (pp. 283–286). IEEE.
  3. APA Huang, J., & Qiu, Y. (2025). LSTM‐Based Time Series Detection of Abnormal Electricity Usage in Smart Meters.
  4. Huang, T., Yi, J., Yu, P., & Xu, X. (2025). Unmasking digital falsehoods: A comparative analysis of llm-based misinformation detection strategies.  arXiv preprint arXiv: 2503.00724.
  5. Yu, D., Liu, L., Wu, S., Li, K., Wang, C., Xie, J., ... & Ji, R. (2025, March). Machine learning optimizes the efficiency of picking and packing in automated warehouse robot systems. In 2025 IEEE International Conference on Electronics, Energy Systems and Power Engineering (EESPE) (pp. 1325-1332). IEEE.
  6. Li, X., Cao, H., Zhang, Z., Hu, J., Jin, Y., & Zhao, Z. (2024). Artistic Neural Style Transfer Algorithms with Activation Smoothing. arXiv preprint arXiv: 2411.08014. 3
  7. Huang, T., Xu, Z., Yu, P., Yi, J., & Xu, X. (2025). A Hybrid Transformer Model for Fake News Detection: Leveraging Bayesian Optimization and Bidirectional Recurrent Unit.  arXiv preprint arXiv: 2502.09097.
  8. Li, X., Wang, X., Qi, Z., Cao, H., Zhang, Z., & Xiang, A. DTSGAN: Learning Dynamic Textures via Spatiotemporal Generative Adversarial Network. Academic Journal of Computing & Information Science, 7(10), 31-40. 3
  9. Li, K., Liu, L., Chen, J., Yu, D., Zhou, X., Li, M., ... & Li, Z. (2024, November). Research on reinforcement learning based warehouse robot navigation algorithm in complex warehouse layout. In 2024 6th International Conference on Artificial Intelligence and Computer Applications (ICAICA) (pp. 296-301). IEEE.
  10. Wang J Y, Tse K T, Li S W. Integrating the effects of climate change using representative concentration pathways into typhoon wind field in Hong Kong [C]//Proceedings of the 8th European African Conference on Wind Engineering. 2022: 20-23.
  11. Tao Y. SQBA: sequential query-based blackbox attack, Fifth International Conference on Artificial Intelligence and Computer Science (AICS 2023). SPIE, 2023, 12803: 721-729.
  12. Tao Y. Meta Learning Enabled Adversarial Defense, 2023 IEEE International Conference on Sensors, Electronics and Computer Engineering (ICSECE). IEEE, 2023: 1326-1330.
  13. Yiyi Tao, Yiling Jia, Nan Wang, and Hongning Wang. 2019. The FacT: Taming Latent Factor Models for Explainability with Factorization Trees. In Proceedings of the 42nd International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR'19). Association for Computing Machinery, New York, NY, USA, 295–304.
  14. Wu, S., Fu, L., Chang, R., Wei, Y., Zhang, Y., Wang, Z., ... & Li, K. (2025). Warehouse Robot Task Scheduling Based on Reinforcement Learning to Maximize Operational Efficiency. Authorea Preprints.
  15. Feng, H., Dai, Y., & Gao, Y. (2025). Personalized Risks and Regulatory Strategies of Large Language Models in Digital Advertising. arXiv preprint arXiv: 2505.04665.
  16. Wang J, Cao S, Tim K T, et al. A novel life-cycle analysis framework to assess the performances of tall buildings considering the climate change [J]. Engineering Structures, 2025, 323: 119258.
  17. Yiyi Tao, Zhuoyue Wang, Hang Zhang, Lun Wang. 2024. NEVLP: Noise-Robust Framework for Efficient Vision-Language Pre-training. arXiv: 2409.09582.
  18. Feng, H., & Gao, Y. (2025). Ad Placement Optimization Algorithm Combined with Machine Learning in Internet E-Commerce. Preprints.
  19. Wang, Z., Zhang, Q., & Cheng, Z. (2025). Application of AI in real-time credit risk detection. Preprints.
  20. Lu, D., Wu, S., & Huang, X. (2025). Research on Personalized Medical Intervention Strategy Generation System based on Group Relative Policy Optimization and Time-Series Data Fusion. arXiv preprint arXiv: 2504.18631.
  21. Wu, S., Huang, X., & Lu, D. (2025). Psychological health knowledge-enhanced LLM-based social network crisis intervention text transfer recognition method. arXiv preprint arXiv: 2504.07983.
  22. Shih, K., Deng, Z., Chen, X., Zhang, Y., & Zhang, L. (2025, May). DST-GFN: A Dual-Stage Transformer Network with Gated Fusion for Pairwise User Preference Prediction in Dialogue Systems. In 2025 8th International Conference on Advanced Electronic Materials, Computers and Software Engineering (AEMCSE) (pp. 715-719). IEEE.
  23. Zhou, Z. (2025). Research on the Application of Intelligent Robots and Software in Multiple Segmentation Scenarios Based on Machine Learning. Available at SSRN 5236930.
  24. Yi, Q., He, Y., Wang, J., Song, X., Qian, S., Zhang, M., ... & Shi, T. (2025). SCORE: Story Coherence and Retrieval Enhancement for AI Narratives. arXiv preprint arXiv: 2503.23512.
  25. Wu, S., & Huang, X. (2025). Psychological Health Prediction Based on the Fusion of Structured and Unstructured Data in EHR: a Case Study of Low-Income Populations. Preprints.
  26. He, Y., Wang, J., Li, K., Wang, Y., Sun, L., Yin, J., ... & Wang, X. (2025). Enhancing Intent Understanding for Ambiguous Prompts through Human-Machine Co-Adaptation. arXiv preprint arXiv: 2501.15167.
  27. Zhang, L., Wang, L., Huang, Y., & Chen, H. (2019). Segmentation of Thoracic Organs at Risk in CT Images Combining Coarse and Fine Network. SegTHOR@ ISBI, 11(16), 2-4.
  28. Huang, T., Cui, Z., Du, C., & Chiang, C. E. (2025). CL-ISR: A Contrastive Learning and Implicit Stance Reasoning Framework for Misleading Text Detection on Social Media. arXiv preprint arXiv: 2506.05107.
  29. Wu, S., Fu, L., Chang, R., Wei, Y., Zhang, Y., Wang, Z., ... & Li, K. (2025). Warehouse Robot Task Scheduling Based on Reinforcement Learning to Maximize Operational Efficiency. Authorea Preprints.
  30. Sun Y, Pargoo NS, Ehsan T, Zhang Z, Ortiz J. VCHAR: Variance-Driven Complex Human Activity Recognition framework with Generative Representation. arXiv preprint arXiv: 2407.03291. 2024 Jul 3.