End-Cloud Collaboration Framework for Advanced AI Customer Service in E-commerce

Liangyu Teng, Yang Liu, Jing Liu, Liang Song

Abstract

Deploying Large Language Models (LLMs) for e-commerce customer service involves balancing model intelligence, operational costs, and data privacy. This paper presents the End-Cloud Collaboration (ECC) framework, which pairs a cloud-based "teacher" model (Gemini 1.5 Pro) with an on-device "student" model (ChatGLM3-6B). By utilizing a novel online evolutive learning strategy, the framework allows the smaller model to improve continuously through cloud-guided pseudo-labels and real-time user feedback. Our evaluation of various Parameter-Efficient Fine-Tuning (PEFT) techniques shows that Low-Rank Adaptation (LoRA) provides the most effective balance of performance and convergence speed, enabling high-quality, low-latency customer service interactions.

1. Introduction

The integration of Large Language Models (LLMs) into e-commerce customer service has revolutionized user interaction. However, a significant engineering dilemma persists. Cloud-based models like GPT-4 or Gemini offer immense reasoning capabilities but suffer from high latency, significant operational costs, and potential privacy risks. Conversely, on-device models provide fast, private interactions but often lack the domain-specific knowledge and complex reasoning required for sophisticated e-commerce queries.

To bridge this gap, we propose the End-Cloud Collaboration (ECC) framework. This approach moves the primary interaction to the "edge" while strategically utilizing the cloud as a knowledge reservoir and training supervisor.

2. The End-Cloud Collaboration (ECC) Framework

The ECC framework is structured around a teacher-student architecture designed to optimize both performance and resource utilization.

2.1 The Training Phase

The initial phase involves knowledge distillation from the cloud to the edge. Gemini 1.5 Pro, acting as the teacher, generates high-quality, domain-specific datasets. Through few-shot prompt engineering, the teacher model is instructed to simulate e-commerce agent behavior, covering diverse scenarios from shipping inquiries to discount rule interpretations. This synthetic data, combined with existing corpora, is used to fine-tune the student model, ChatGLM3-6B, making it capable of running on consumer-grade hardware.

2.2 Inference and Evolution

During live deployment, the system follows a dual-track inference process. When a user submits a query, the end-device model generates a response. An automated scoring system evaluates the response quality using metrics from SimBERT and RocketQA. If the quality falls below a predefined threshold, the query is escalated to the cloud model. The cloud's superior response serves two purposes: providing an immediate high-quality answer to the user and acting as a "pseudo-label" for local fine-tuning.

3. Online Evolutive Learning

A core innovation of the ECC framework is "online evolutive learning." This strategy allows the student model to evolve based on real-time interactions without compromising privacy. Because the fine-tuning occurs locally on the user's device using the cloud-provided pseudo-labels and user feedback, the system learns personalized preferences and handles recurring domain-specific queries with increasing proficiency over time.

4. Experimental Methodology

4.1 Datasets

The framework was evaluated using two large-scale Chinese e-commerce datasets:

  • Taobao E-commerce Dialogue Corpus (ECD): Comprising 1 million session-response pairs.
  • Jing Dong Dialogue Corpus (JDDC): Featuring over 1 million multi-turn dialogues focused on after-sales support.
  • Synthetic Data: 500 high-quality QA pairs generated by Gemini 1.5 Pro to address specific e-commerce logic gaps.

4.2 Fine-Tuning Techniques

We compared three Parameter-Efficient Fine-Tuning (PEFT) methods to optimize the ChatGLM3-6B model:

  • Prefix-Tuning: Adding trainable prefix vectors to the input.
  • P-Tuning v2: An optimized version of prompt tuning.
  • LoRA (Low-Rank Adaptation): Injecting trainable low-rank matrices into the Transformer layers.

5. Results and Performance Analysis

The experimental results highlight the efficacy of the ECC approach:

  • Superiority of LoRA: Among the PEFT methods, LoRA demonstrated the fastest convergence and the highest performance. It significantly improved the model's ability to generate "e-commerce style" responses compared to the base ChatGLM3-6B.
  • Quantifiable Gains: Automated evaluations showed that the LoRA-tuned model achieved similarity scores of approximately 0.84 for simple greetings and 0.70 for complex delivery complaints. This represents a near-doubling of performance in complex categories over the un-tuned base model.
  • Operational Efficiency: The framework successfully processed the majority of standard queries locally with near-instantaneous response times, reserving cloud resources for high-reasoning tasks.

6. Conclusion and Future Work

The ECC framework provides a scalable solution for deploying advanced AI in e-commerce. By balancing the strengths of cloud and edge computing, it ensures high-quality service while protecting user privacy and reducing latency.

Future research will focus on expanding the framework to handle multimodal inputs, such as images of damaged products or voice queries. Additionally, we aim to explore multi-agent collaboration, where specialized models handle distinct aspects of the e-commerce ecosystem, such as logistics, finance, and technical support.

Reference: Teng, L., Liu, Y., Liu, J., & Song, L. (2024). End-Cloud Collaboration Framework for Advanced AI Customer Service in E-commerce. arXiv:2410.07122v1.

Summary updated

BibTeX
@inproceedings{teng2024end,
  author = {Liangyu Teng and Yang Liu and Jing Liu and Liang Song},
  title = {{End-Cloud Collaboration Framework for Advanced AI Customer Service in E-commerce}},
  booktitle = {WF-IoT},
  year = {2024},
  doi = {10.1109/wf-iot62078.2024.10811144},
}
Figure