Manuscript Offprint

arXiv:2609.02947

Privacy-Preserving Heterogeneous Multi-LLM Federated Inference for Cognitive Diagnosis

Yagna Manasa Boyapati, Chong Yu, Tianyu Jiang, Justin Zhan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Significant challenges remain in AI-driven educational systems in balancing privacy preservation with accurate cognitive diagnosis. In order to overcome this, we propose a federated inference framework in which several commercial LLM APIs collaborate without requiring access to raw student data or proprietary model internals. Using multiple federated entities, such as LLaMA-3.3-70B, GPT-4o-mini, and Claude-3-Haiku, our framework builds upon the heterogeneous multi-LLM architecture. The predictions generated by these entities are combined with ε\varepsilon-local differential privacy by adding Laplace noise locally to each entity's prediction output before aggregation, while residual-based aggregation mitigates model heterogeneity. Our approach is predicated on an honest-but-curious trust paradigm in which API providers are presumed not to abuse submitted queries, and our differential privacy mechanism shields the published diagnostic results from external inference. We conduct rigorous privacy–utility analysis showing strong privacy guarantees with minimal accuracy loss, and extensive real-world evaluations across three educational benchmarks confirm the framework's practical usability and cross-domain generalizability.

1 Introduction

The growing application of artificial intelligence in education has created unparalleled opportunities for individualized and adaptive learning, but it also raises significant challenges related to data privacy and the accuracy of diagnostic feedback for end users—namely, students (Wang et al., 2022; Liu, 2021). Cognitive Diagnosis Models (CDMs), which infer a student's mastery of specific concepts or skills, are foundational components of intelligent tutoring systems and adaptive learning environments (Wang et al., 2020; Tatsuoka, 1983). Despite their promise, two critical challenges limit the widespread deployment of CDM-based systems.

Traditional CDM approaches rely on the centralized processing of sensitive student data, raising serious privacy concerns. When learning institutions aggregate detailed information about students' learning patterns and trajectories on a central server, the risk of data leakage, unauthorized access, or misuse increases substantially (Stephanie et al., 2022; Hu et al., 2020). Regulatory pressures, such as GDPR and FERPA (European Parliament and Council, 2016; U.S. Department of Education, 2014), have heightened awareness of these issues and underscore the need for privacy-preserving solutions that can support the full range of cognitive diagnosis tasks.

Although Federated Learning (FL) enables collaborative model training without centralizing raw data (Elhussein, 2025), and Differential Privacy (DP) provides strong guarantees for protecting individual-level information (Xin et al., 2024; Fu et al., 2026), no existing work integrates these techniques into LLMs to address privacy concerns in CDM-based systems. The current LLM-based cognitive diagnosis approaches typically rely on a single language model to evaluate students' knowledge states. While large language models show great promise in educational applications (Dong et al., 2025; Chen et al., 2025), single-model approaches are limited in robustness, adaptability, and diagnostic reliability. Prior work highlights the strengths of GPT-4 (Achiam et al., 2023), Claude (Anthropic, 2024), and LLaMA (Touvron et al., 2023) across mathematical reasoning, linguistic understanding, and pattern recognition (Wang et al., 2025). However, these studies evaluate models independently, without leveraging collaborative inference across heterogeneous LLMs.

Furthermore, privacy-preserving use of LLMs in federated learning has only recently been explored (Chen et al., 2024; Tran et al., 2025), and no existing work investigates multi-LLM collaboration for cognitive diagnosis under privacy constraints.

Figure

Figure 1: Privacy-preserving heterogeneous multi-LLM federated framework with differentially private aggregation.

To address these challenges, we propose the first privacy-preserving heterogeneous multi-LLM federated inference framework for cognitive diagnosis. As illustrated in Figure 1, LLaMA-3.3-70B (via Groq API) (Groq, 2024), GPT-4o-mini (Achiam et al., 2023), and Claude-3-Haiku (Anthropic, 2024) serve as federated participants that collaboratively infer student knowledge states. By leveraging the complementary strengths of each model, our heterogeneous design eliminates the need for centralized training while simultaneously improving privacy, scalability, and robustness in real-world educational deployments.

We extend the paradigm of federated inference to heterogeneous multi-LLM architectures, where each model independently predicts knowledge states and contributes a complementary diagnostic perspective (Liu and Dong, 2024). Unlike traditional FL methods, which aggregate model parameters or gradients and assume homogeneous models (McMahan et al., 2017; Elhussein, 2025), our framework operates entirely at the prediction level: LLM models are frozen and only accessible via black-box APIs, with only their output predictions shared and aggregated. This prediction-level, federated inference approach leverages model heterogeneity to yield more robust global cognitive assessments. Privacy-preserving aggregation uses Laplace mechanisms (Dwork et al., 2006; Lin et al., 2023; Liu et al., 2025), with calibrated noise applied locally at each entity's prediction output before aggregation, enabling institutions to use multiple commercial LLM APIs without exposing raw student data, a concern highlighted in blockchain-enabled FL studies (Jia et al., 2021). We evaluate on three state-of-the-art benchmarks. Results show strong generalization across educational domains, with tight privacy guarantees and minimal utility loss, consistent with recent advances in DP-

FL using Laplacian noise (Liang et al., 2024) and heterogeneous DP mechanisms (Lin et al., 2023).

It is critical to highlight that our privacy system uses an honest-but-curious trust model at the aggregate layer. Our ε\varepsilon-local differential privacy mechanism protects published knowledge-state diagnostic vectors from re-identification or membership inference by external parties accessing the outputs. It does not prevent data collection by commercial API providers (GPT-4o-mini, Claude-3-Haiku, and LLaMA-3.3-70B via Groq), which may log submitted queries in accordance with their respective policies. In Section 3.3, we describe mitigating options for deployments that require full end-to-end privacy, such as locally hosted open-source models and prompt data minimization.

Our key contributions are: (1) a novel, provider-agnostic federated inference framework coordinating commercial LLM APIs without access to proprietary model internals or training data; (2) a heterogeneous multi-LLM architecture treating LLaMA, GPT-4, and Claude as independent federated entities for cognitive diagnosis with locally protected student data; (3) rigorous privacy-utility analysis showing strong privacy preservation with minimal utility loss under ε\varepsilon-local differential privacy; and (4) extensive evaluation on three educational benchmarks validating practical implementability and cross-domain generalizability. Our code and experimental resources are publicly available at https://github.com/manasa2107/privacy-federated-llm-cognitive-diagnosis.

References (12)