Manuscript Offprint

arXiv:2610.39009

Assessing feature scorer results on high-dimensional datasets with t-SNE

Bruno Iochins Grisci, Mario Inostroza-Ponta, Márcio Dorn

Abstract

While vast literature on high-dimensional data visualization is available, there are not many works regarding the visualization of feature scorers and their results. Feature scorers are algorithms that assign numerical importance to each feature of multi-dimensional datasets. These importance scores can be used in several applications, such as feature selection, knowledge discovery, and machine learning interpretability. There are several feature scorers to choose from, and often no single metric or ground truth is available to guarantee the quality of their results. In this scenario, visualization can become valuable to support the decision of which method to choose and how good its results are. For this goal, this work presents “weighted t-SNE.” It modifies the relationship between data points in the embedded 2D space to reflect the importance of each dimension of the original datasets as assessed by a feature scorer. This research discusses how to implement weighted t-SNE, proposes the silhouette coefficient as a numerical evaluation of the results, and shows several examples of its use in practice. Synthetic and real-world tabular datasets are used in the experiments together with nine feature scorers, ranging from Mutual Information to neural networks. Each feature scorer produces unique visualizations, and weighted t-SNE can be used to compare and choose the one that better suits a given dataset and task. Weighted t-SNE can also visually show the importance of features learned by machine learning models and help us see how they are organizing the data, increasing their interpretability.

Keywords: Dimensionality reduction; Data visualization; Feature scoring; Machine learning interpretability

*Correspondence to: Federal University of Rio Grande do Sul, Center for Biotechnology, Structural Bioinformatics and Computational Biology Lab - SBCB, Av. Bento Gonçalves 9500, 91501-970, Porto Alegre, RS, Brazil. E-mail addresses: bigrisci@inf.ufrgs.br (B.I. Grisci), mario.inostroza@usach.cl (M. Inostroza-Ponta), mdorn@inf.ufrgs.br (M. Dorn). URLs: https://brunogrisci.github.io/ (B.I. Grisci), https://informatica.usach.cl/academico/mario-inostroza-ponta/ (M. Inostroza-Ponta), https://sbcb.inf.ufrgs.br/ (M. Dorn). ORCID iDs: 0000-0003-4083-5881 (B.I. Grisci), 0000-0003-1295-8972 (M. Inostroza-Ponta), 0000-0001-8534-3480 (M. Dorn).

How to cite: B.I. Grisci, M. Inostroza-Ponta, M. Dorn, Assessing feature scorer results on high-dimensional datasets with t-SNE, Neurocomputing 652 (2025) 130561. https://doi.org/10.1016/j.neucom.2025.130561

Figure

License: © 2025. This manuscript version is made available under the CC-BY-NC-ND 4.0 license https://creativecommons.org/licenses/by-nc-nd/4.0/

1. Introduction

High-dimensional data refers to datasets whose dimensionality is comparable to or even higher than their sample size. It is often present in tables containing information regarding the sciences or business [1]. Some examples are data of genes expression from cancer patients [2, 3], SNPs in forensic science [4], COVID-19 patients' hemogram exams [5-7], astrophysics [8], and sales from e-commerce [9]. One of the key aspects of those large tabular datasets is the presence of dozens to millions of columns, each representing a feature, input, or dimension of the data being studied [10].

Data analyses such as clustering, classification, regression, or outlier detection rely first on the transformation, selection, and removal of features [1]. Each feature represents one attribute of a data sample or instance. Dimensionality reduction and feature selection allow large datasets to become manageable by keeping only the relevant information, making the data more easily understandable, and freeing storage space. Feature scorers are a large and diverse group of algorithms that play a crucial role in this process. They use distinct strategies, metrics, and criteria to determine the importance score of each feature. Once obtained, these scores are numerical values that can be used to filter the data or even for knowledge discovery. Because several machine learning models can output feature importance as well, these scores can even help with machine learning interpretability [10-12]. It is important to note that the feature importance is always concerning a specific task and data, and it should not be assumed that this value will be the same if the context for the feature changes.

Since there are several feature scorers and no single metric guarantees the quality of the results, visualization becomes a valuable tool to help in the method selection and show how good the results are. An inadequate set of scores can harm the subsequent steps of data analysis. Moreover, the visualization of a low-dimensional embedding of the high-dimensional data using methods like the t-Distributed Stochastic Neighbor Embedding (t-SNE) [13] is already an established aspect of exploratory data analysis [1]. Visual cluster analysis often employs these techniques to project the high-dimensional data into 2D scatterplots, assuming that the projection faithfully matches the actual clusters [14].

In this scenario, visualizing the clusters affected by the feature importance scores in a 2D scatterplot would be a valuable tool for comparing feature scorers. The algorithms with better results (a more significant and representative set of scores) would lead to better clusters in the projection. However, due to the challenges of visualizing high-dimensional tabular data and the algorithms being overlooked as a pre-processing step, they are usually applied as a black-box at the beginning of an analysis [15]. In the vast literature on high-dimensional data visualization, few works are interested in displaying the effects of feature scoring [10]. Most of the research interest is in the evaluation of feature selection [16-18] or the use of visualization to allow the user to interact with the selection process [19-21].

To tackle this problem, we propose an extension of t-SNE to visualize the results from feature scoring algorithms: weighted t-SNE. It modifies the relationship between data points to reflect the importance of each dimension. The desired outcome is that relevant features have more influence on the position of the points in the final projection. Weighted t-SNE can be used as an inspection tool to compare and choose feature scorers in different datasets. Additionally, combined with machine learning, it could better represent the patterns learned by the models. Fig. 1 shows an example of this application. In Fig. 1(a), a regular projection is made with t-SNE of a synthetic dataset. After training a neural network to perform regression on this dataset, the importance score of each feature was extracted from the model and used to create the projection shown in Fig. 1(b). It is possible to see how the feature importance learned by the neural network sorted the samples by comparing the two scatterplots. This work focuses on continuous or numerical features, which can also be ordinal or categorical. The requirement for running t-SNE on the data is that it must be meaningful. For instance, a suitable distance measure for the high-dimensional space must exist. This requirement is often not reached if the

Figure

(a) No feature importance

Figure

(b) Feature importance as learned by a neural network

Fig. 1. Comparison between the visualization using weighted t-SNE of a synthetic regression dataset before and after considering the feature importance as learned by a neural network. Each figure is the visualization of the 2D embedding of a regression dataset (negative target values in blue, positive values in red) composed mostly of irrelevant features. On the left is the regular visualization, in which the samples are mixed. On the right, it is possible to visualize how the feature importance learned by a neural network disentangles the samples. This experiment is further detailed in Section 4. Interactive versions of all the plots in this publication are available at https://sbcblab.github.io/wtsne/.

feature types are mixed.

A preliminary version of weighted t-SNE appeared in the research by Grisci et al. [10]. It focused in relevance aggregation, a method for neural network interpretability. In that study, authors used weighted t-SNE to visualize the patterns learned by the networks trained on tabular data. Despite those results showing the potential of this kind of visualization, Grisci et al. [10] only used weighted t-SNE to validate the main method, relevance aggregation. Junior and Lopes [22] and Zhao et al. [23] later used weighted t-SNE to visualize neural network results for absenteeism prediction and to evaluate data transformation techniques on software defect prediction models, respectively. Lu and Yan [24] and Ma et al. [25] also explored the idea of scaling features for t-SNE visualizations, albeit for distinct purposes. The present research presents a thorough description, critical analysis, and discussion of an updated weighted t-SNE, together with a large set of experiments on several datasets and feature scorers.

The remainder of this paper has the following organization. Section 2 presents and discusses feature scorers, related visualization methods, and the silhouette coefficient metric. Section 3 describes the proposed weighted t-SNE. Section 4 details the experiments and results, as well as a discussion on machine learning interpretability. Finally, Section 5 concludes this work.

References (42)

  • An extensively curated microarray database for benchmarking and testing of machine learning approaches in cancer research, Journal of Computational Biology 26 (2019) 376–386
  • Genetics 40 (2019) 74–84
  • applications to resource scarcity scenarios, PeerJ 8 (2020) e9482
  • from simple filters to a new principled real-time classification approach, Monthly Notices of the Royal Astronomical Society 459 (2016) 1104–1123
  • Proceedings of the 34th International Conference on Machine Learning-Volume 70, JMLR. org, Sydney NSW Australia, 2017, pp. 3145–3153
  • An empirical study, IEEE Transactions on Visualization and Computer Graphics 28 (2021) 529–539
  • 2011 IEEE Conference on Visual Analytics Science and Technology (VAST), IEEE, 2011, pp. 111–120
  • 2017 International Conference on Intelligent Computing, Instrumentation and Control Technologies (ICICICT), IEEE, 2017, pp. 660–664
  • Learning relevance models using pattern-based similarity measures, in: 2019 IEEE Conference on Visual Analytics Science and Technology (VAST), IEEE, 2019, pp. 69–80
  • Interactive feature selection for predictive modeling of high dimensional data, IEEE Transactions on Visualization and Computer Graphics 20 (2014) 1614–1623
  • 2022 IEEE-EMBS International Conference on Biomedical and Health Informatics (BHI), IEEE, 2022, pp. 01–04
  • a review on gene selection, IEEE/ACM Transactions on Computational Biology and Bioinformatics 13 (2016) 971–989
  • a review, ACM SIGKDD Explorations Newsletter 6 (2004) 90–105
  • 2018 IEEE Congress on Evolutionary Computation (CEC), IEEE, Rio de Janeiro, Brazil, 2018, pp. 1–8
  • Proceedings of the Eleventh ACM SIGKDD International Conference on Knowledge Discovery in Data Mining, ACM, Chicago Illinois USA, 2005, pp. 801–807
  • 20 years of inherent bias?, Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery (2023) e1523
  • UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction
  • Proceedings
  • Reducing dimensionality while preserving both local and global structure, Neurocomputing 169 (2015) 246–261
  • Chang, Flight state identification of a self-sensing wing via an improved feature selection method and machine learning approaches, Sensors 18 (2018) 1379
  • a graphical aid to the interpretation and validation of cluster analysis, Journal of Computational and Applied Mathematics 20 (1987) 53–65
  • Artificial Intelligence and Statistics, PMLR, 2009, pp. 384–391
  • R. Borgo, C. Turkay (Eds.), Computer Graphics and Visual Computing (CGVC), The Eurographics Association, 2015
  • Combining observations when individuals have different perceptual structures, Psychometrika 34 (1969) 139–165
  • Eckart-Young
  • NIPS 2003 Workshop on Feature Extraction and Feature Selection, volume 253, Whistler, 2003, pp. 1–30
  • Machine learning in Python, Journal of Machine Learning Research 12 (2011) 2825–2830
  • Marin, C. P. Robert, et al., Regularization in regression: comparing Bayesian and frequentist methods in a poorly informative situation, Bayesian Analysis 7 (2012) 477–502
  • J. Van den Bussche, V. Vianu (Eds.), Database Theory — ICDT 2001, Springer, Berlin, Heidelberg, 2001, pp. 420–434
  • a case study with Google Translate, Neural Computing and Applications 32 (2020) 6363–6381
  • Data Mining, Inference, and Prediction, second ed., Springer, New York, NY, USA, 2009, p
  • Müller, W. Samek, On pixel-wise explanations for non-linear classifier decisions by layer-wise relevance propagation, Plos One 10 (2015) 1–46
  • Müller, Methods for interpreting and understanding deep neural networks, Digital Signal Processing 73 (2018) 1–15
  • Tabular data modeling using contextual embeddings, 2020, arXiv preprint arXiv:2012.06678 (opens arXiv in a new tab)
  • Why should I trust you?
  • International Conference on Discovery Science, Springer, 2019, pp. 351–366
  • Supervised dimensionality reduction through local explanations, Machine Learning
  • Visual explanations from deep networks via gradient-based localization, in: Proceedings of the IEEE International Conference on Computer Vision, IEEE, Venice, Italy, 2017, pp. 618–626
  • Advances in Neural Information Processing Systems, NIPS, Long Beach, CA, USA, 2017, pp. 5998–6008
  • C. O'Neill, C. Ye, K. Iyer, J. F. Wu, Disentangling dense embeddings with sparse autoencoders, 2024, arXiv preprint arXiv:2408.00657. (opens arXiv in a new tab)
  • A survey, IEEE Transactions on Neural Networks and Learning Systems
  • Müller, Layer-wise relevance propagation: an overview, in: Explainable AI: Interpreting, Explaining and Visualizing Deep Learning, Springer, Switzerland, 2019, pp. 193–209