arXiv:2610.17314cs.LGOct 2026

Manuscript Offprint

arXiv:2610.17314

Joint Embedding with Dynamic Integration network (JEDI-net)

Rishav Mukherjee, Jeffrey Ahearn Thompson

Abstract

Deep learning has become the dominant form of machine learning due, in part, to its ability to automatically engineer complex meta features from data. However, even with deep learning, such features can perform erratically due to the presence of unobserved latent factors. Incorporating more explicit latent feature structure into deep learning can improve model performance by allowing the model to alter its behavior based on these inferred latent features. While traditional approaches rely on clustering the original feature space, neural networks often capture such complexity inherently, limiting the benefit of external clustering. Clustering observations by their feature importance profile, rather than raw features, offers a principled way to uncover such latent structures as observations grouped by similar importance patterns may share underlying predictive dynamics. In a prior work, Feature Oriented Representation with Clustering and Explanation (FORCE), we have established that this approach leads to measurable improvement in neural network performance.

In this article, we present JEDI-net (Joint Embedding with Dynamic Integration Network), a unified neural architecture that periodically computes SHAP values during optimization to identify latent subgroups based on similar patterns of feature importance and embeds these subgroups identities directly into the network, allowing predictions to adapt based on an observation's underlying predictive structure. This eliminates the need for separate explainers or attention components, allowing the model to learn and integrate feature importance in a more efficient and interpretable way. We evaluate JEDI-net on three benchmark datasets and show that it consistently matches or surpasses the performance of FORCE, while reducing complexity. By embedding explanation directly into the learning loop, JEDI-net advances a more integrated and scalable approach to deep model interpretation and prediction.

Background

Latent structures in data refer to hidden patterns or relationships within a dataset that are not directly observable but can be inferred from the observed data. Latent structures are crucial for understanding the underlying mechanisms of that generate the observed data and are often studied using methods like clustering and prediction. [1, 2] Capturing such latent unobserved structures to improve the accuracy of predictive models has become an active avenue of deep learning research. Most approaches cluster original features in order to infer latent structures under the assumption that observations with similar feature profiles belong to the same underlying subgroup and may share predictive relationships to the outcome[3-5]. However, owing to the ability of deep learning approaches to automatically engineer meta features, [6], not much can be gained from adding on information from clustering observations in the original feature space. In a previous work, we designed a hybrid method, FORCE (Feature Oriented Representation with Clustering and Explanation) that leverages a flexible clustering mechanism in the space of feature importance values rather than the raw features, in an effort to understand if we could derive information about latent structures in the data and use that to improve neural network performance[7]. The idea behind FORCE is that converting the features into importance scores that are related to the outcome by design, would allow the model to learn and gain insights about the underlying subgroups that may have varying predictive relationships to the outcome of interest. FORCE demonstrated that this approach leads to an improvement in performance of deep learning models applied to a range of different data.

The importance metric of choice used in FORCE was SHapley Additive exPlanations (SHAP). SHAP is a method in explainable AI that leverages Shapley values from cooperative game theory to fairly allocate contributions of individual features to model predictions. SHAP values attribute the change in a model's output to individual features, by considering the contribution of each feature across all possible "coalitions" of features; this ensures a fair distribution of feature importance, making it a powerful tool for explaining complex models[8, 9]. In order to derive the SHAP values we chose to fit each of the datasets using a Gradient Boosting Classifier in lieu of its ability to identify patterns in a wide variety of datasets without making assumptions about the distribution of the data and the ability to account for complex interactions[10]. The absolute SHAP values obtained from this method were used in the network architecture for FORCE in two ways viz. cluster labels derived from clustering observations based on their SHAP profiles and a SHAP-initiated attention layer. These two mechanisms have demonstrated capabilities to improve not just the predictive ability of neural networks but have also led to improved robustness in the overall predictive process.

While FORCE was able to establish the idea that SHAP values can be used to identify outcome related latent structures in the data and using that information does lead to an improvement of overall model performance, there was a considerable amount of computational complexity involved in building an “ensemble” method that used a separate predictive process (i.e the GBC) to retrieve the SHAP values, cluster observations using kernel k-means and then initiate a separate attention mechanism within the network architecture. Thus, in this project we set out to develop an integrated model that derives SHAP values internally and uses them to cluster observations by feature importance, without the overhead of FORCE.

These insights led us to build an architecture, Joint Embedding with Dynamic Integration network (JEDI-net), an integrated framework that uses SHAP values produced by the neural network itself at various stages of training to help the model learn about the latent structures present in the data. In JEDI we eliminated the need for utilizing a separate predictive model before the initiation of the network in order to derive the SHAP values and also a separate attention mechanism. Instead, we incorporate the k-means clustering algorithm within the network architecture. This allows the model to dynamically group observations using their absolute SHAP profiles during model training itself and learn from the evolving process. The use of k-means as a clustering algorithm was made to integrate the information from SHAP values so that they are more accurate and the weights are useful and also to control the complexity of the overall network while still having capabilities to define and group observations based on similarities of the differential impact of features on predictions. JEDI-net uses absolute SHAP values to capture the magnitude of feature influence and encodes cluster assignments as dense embeddings to allow the network to learn and refine meaningful representations of latent subgroups throughout training.