Advancing Compositional LLM Reasoning with Structured Task Relations in Interactive Multimodal Communications

Xinye Cao, Hongcan Guo, Guoshun Nan, Jiaoyang Cui, Haoting Qian, Yihan Lin, Yilin Peng, Diyang Zhang, Yanzhao Hou, Huici Wu, Xiaofeng Tao, Tony Q. S. Quek

TL;DR

This paper introduces ContextLoRA, a novel method for training a single Large Language Model (LLM) to handle multiple interactive multimodal applications (IMAs) by leveraging structured task relationships. To address the efficiency challenges of deploying such models on edge devices, they also propose ContextGear, a pipeline parallelism strategy for accelerated training.

What Problem Does This Paper Address?

Interactive multimodal applications (IMAs) are becoming increasingly sophisticated, integrating various data types (text, images, audio) to provide personalized user experiences. Existing approaches often rely on training separate LLMs for each specific task or using complex Mixture-of-Experts (MoE) architectures. This leads to a proliferation of models, making deployment on resource-constrained edge devices costly and inefficient. The core challenges are: 1) enabling a single LLM to adapt to diverse IMA objectives and understand the relationships between tasks, and 2) ensuring this LLM is flexible and efficient enough for mobile environments.

Methods

The paper proposes two main innovations:

  • ContextLoRA: This method addresses the first challenge by treating IMAs as a set of related tasks. It constructs a "task dependency graph" to capture the logical relationships between these tasks. The LoRA (Low-Rank Adaptation) parameter matrix of the LLM is then partitioned based on these task dependencies. A novel fine-tuning procedure involving "training," "freezing," and "masking" phases is applied to these partitioned matrices. This allows the LLM to learn to reason across tasks and understand their interdependencies, rather than treating them in isolation. The "frozen ratio" of parameters can be adjusted to control the model's focus on specific tasks or overall outcome.
  • ContextGear: This method tackles the second challenge of efficiency on edge devices. It's a scheduling strategy that employs hybrid pipeline parallelism to accelerate ContextLoRA's training. Devices are divided into two groups: one for training the "trainable" LoRA parameters and another for handling the "frozen" parameters. This strategy optimizes computational and communication costs by strategically grouping devices and tasks, and dynamically adjusting model partitioning and batch size.

Datasets

The authors construct multi-task datasets for three scenarios:

  • Internet of Vehicles (IoV): Based on traffic record images.
  • Intelligent Factories (IF): Using safety helmet images.
  • Smart Cities (SC): Utilizing a custom dataset for road abnormalities.

Each dataset contains Q&A pairs structured to create distinct task dependency graphs. They use 1,200 images per dataset for training and 400 for testing. The fine-tuning is performed on the LLaVA [50] model.

Key Insights and Ideas

  • Structured Task Relations are Key: The core idea is that understanding the relationships between tasks is crucial for effective multi-task learning in IMAs, not just learning each task independently. ContextLoRA explicitly models these relationships.
  • Single LLM for Multiple Tasks: Moving away from multiple specialized LLMs or complex MoE setups towards a single, adaptable LLM is a significant step towards efficiency.
  • Fine-grained Parameter Control: The "freeze, train, mask" approach, combined with the adjustable frozen ratio, offers fine-grained control over how the LLM learns and prioritizes tasks.
  • Pipeline Parallelism for Edge Efficiency: ContextGear's approach to dividing training based on parameter status (trainable vs. frozen) is a clever way to optimize for resource-constrained environments.

Key Results

  • ContextLoRA Performance: ContextLoRA achieves accuracy comparable to multi-task LoRA baselines on root tasks and significantly outperforms original LoRA on subsequent tasks. In some cases, it even surpasses GPT-40. For instance, on Task 4 of the IoV dataset, it reached 93% accuracy, outperforming baselines by a significant margin.
  • Robustness: ContextLoRA demonstrates strong robustness to data pollution, maintaining over 80% accuracy even with 20% poisoned samples, outperforming baselines by at least 5%.
  • ContextGear Efficiency: ContextGear significantly accelerates training time compared to baselines like JoRA and DeepSpeed, showing improvements of up to 22% in distributed systems and over 40% in real-world tests for larger models.
  • Real-world Deployment: The proposed methods were successfully prototyped and demonstrated on a real-world wireless testbed using Jetson AGX Orin devices.

Limitations and Future Work

  • Latency: While ContextLoRA shows promising latency (0.487s/it in simulation, 0.93s/it in real-world for LLaVA 7B), achieving millisecond-level latency for LLMs remains a challenge. The authors plan to explore more lightweight techniques for broader real-time applications.
  • Privacy: The paper acknowledges privacy concerns with distributed training and suggests that combining ContextLoRA with federated learning could be a future direction for privacy preservation.
  • Cyclic Structures: The current task dependency graph does not incorporate cyclic structures, as these are deemed to lead to repetitive training without significant benefit. Iterative processes are suggested to be handled through LLM dialogue.

Summary updated

BibTeX
@article{cao2025advancing,
  author = {Xinye Cao and Hongcan Guo and Guoshun Nan and Jiaoyang Cui and Haoting Qian and Yihan Lin and Yilin Peng and Diyang Zhang and Yanzhao Hou and Huici Wu and Xiaofeng Tao and Tony Q. S. Quek},
  title = {{Advancing Compositional LLM Reasoning with Structured Task Relations in Interactive Multimodal Communications}},
  journal = {IEEE Journal on Selected Areas in Communications},
  year = {2025},
  url = {https://openreview.net/forum?id=BXaQhxXOTj},
}
Figure