SRShahryar Rahnamayan

Shahryar Rahnamayan

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article

Previous Organizations / Institutes

The organizations / institutes from the scholar's other articles in the past ten years


Shahryar Rahnamayan has a total of 84 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    Deceptive bias measurement in deep learning: Assessing shortcut reliance in TCGA cancer models

    by Farnaz Kheiri, Shahryar Rahnamayan, Masoud Makrehchi

    Machine learning bias is a persistent challenge because it can create unfair outcomes, limit generalization, and reduce trust in real-world applications. A key source of this problem is shortcut learning, where models exploit signals linked to sensitive attributes, such as the data source or collection site, instead of relying on task-relevant features. To address this, we propose the Deceptive Signal metric, a novel quantitative measure designed to assess the extent of a model’s reliance on hidden shortcuts during the learning process. This metric is derived via the Deceptive Bias Detection pipeline, which isolates shortcut dependence by contrasting the model’s behavior under two controlled conditions: (1) Full Exclusion, where a sensitive subgroup is completely removed from training; and (2) Partial Exclusion, where the model has limited access to specific classes within that subgroup. By calculating the behavioral shift between these settings, the Deceptive Signal metric provides a quantitative estimate of the model’s susceptibility to learning task-irrelevant patterns. In experiments with the TCGA histopathology dataset, our metric successfully quantified substantial dependencies on center-specific artifacts in models trained for cancer classification.

  • Open Access

    Post-Training Structure-Agnostic Pruning and Quantization for Efficient Deep Neural Networks

    by Zahra Abdi Reyhan, Shahryar Rahnamayan, Azam Asilian Bidgoli

    Deep neural networks (DNNs) deliver remarkable performance but often suffer from high computational and memory demands, hindering deployment on edge and mobile devices. This paper introduces a post-training, structure-agnostic compression framework that jointly performs weight pruning and quantization using multi-objective evolutionary optimization, without requiring any retraining of the model. While pruning and quantization are individually effective for reducing model size and computational cost, their joint application introduces conflicting effects: aggressive pruning increases sparsity but heightens sensitivity to low-bit quantization, whereas coarse quantization reduces memory usage but may require denser connectivity to preserve accuracy. Balancing these objectives remains challenging. The proposed approach simultaneously optimizes sparsity, bit precision, and accuracy, producing a Pareto front of trade-offs for flexible, resource-aware deployment. Extensive experiments on CIFAR-10 and CIFAR-100 using ResNet-50, ResNet-18, MobileNetV2, and ConvNeXt demonstrate that the proposed method effectively improves the accuracy compression trade-off. Across all evaluated models, the approach achieves high sparsity levels and significant reductions in bit precision while maintaining competitive accuracy. The results indicate that the method provides substantial memory savings without notable degradation in performance, and yields well-defined knee-point solutions compared to standard training. These findings confirm that the proposed framework enables efficient model compression in a purely post-training setting, without the need for retraining. Furthermore, the approach establishes a general, structure-agnostic compression paradigm that facilitates effective deployment of DNNs in resource-constrained environments such as mobile and edge devices.

  • A comparative study on population-based multi-objective feature selection

    by Sevil Zanjani Miyandoab, Shahryar Rahnamayan, Azam Asilian Bidgoli, Masoud Makrehchi


  • Open Access

    Beyond the Pareto Front: Utilizing the Entire Population for Decision-Making in Evolutionary Machine Learning

    by Parastoo Dehnad, Azam Asilian Bidgoli, Shahryar Rahnamayan

    Decision-making plays a pivotal role in data-driven optimization, aiming to achieve optimal results by identifying the most effective combination of input variables. Traditionally, in multi-objective data-driven optimization problems, decision-making relies solely on the Pareto front derived from the training data, as provided by the optimizer. This approach limits consideration to a subset of solutions and often overlooks potentially superior solutions on test set within the optimizer’s final population. What if we include the entire final population in the decision-making process? This paper is the first to systematically explore the potential of utilizing the entire final population, rather than relying solely on the optimization Pareto front, for decision-making in data-driven multi-objective optimization. This novel perspective reveals overlooked yet potentially superior solutions that generalize better to unseen data and help mitigate issues such as overfitting and training-data bias. This paper highlights the use of the entire final population of the optimizer for final decision-making in multi-objective optimization. Using feature selection as a case study, this method is evaluated on two key objectives: minimizing classification error rate and reducing the number of selected features. We compare the proposed test Pareto front, derived from the final population, with traditional test Pareto fronts based on training data. Experiments conducted on fifteen large-scale datasets reveal that some optimal solutions within the entire population are overlooked when focusing solely on the optimization Pareto front. This indicates that the solutions on the optimization Pareto front are not necessarily the optimal solutions for real-world unseen data. There may be additional solutions in the final population yet to be utilized for decision-making.


  • Open Access

    ALFA – Leveraging All Levels of Feature Abstraction for Enhancing the Generalization of Histopathology Image Classification Across Unseen Hospitals

    by Milad Sikaroudi, Maryam Hosseini, Shahryar Rahnamayan, H.R. Tizhoosh

    We propose an exhaustive methodology that leverages all levels of feature abstraction, targeting an enhancement in the generalizability of image classification to unobserved hospitals. Our approach incorporates augmentation-based self-supervision with common distribution shifts in histopathology scenarios serving as the pretext task. This enables us to derive invariant features from training images without relying on training labels, thereby covering different abstraction levels. Moving onto the subsequent abstraction level, we employ a domain alignment module to facilitate further extraction of invariant features across varying training hospitals. To represent the highly specific features of participating hospitals, an encoder is trained to classify hospital labels, independent of their diagnostic labels. The features from each of these encoders are subsequently disentangled to minimize redundancy and segregate the features. This representation, which spans a broad spectrum of semantic information, enables the development of a model demonstrating increased robustness to unseen images from disparate distributions. Experimental results from the PACS dataset (a domain generalization benchmark), a synthetic dataset created by applying histopathology-specific jitters to the MHIST dataset (defining different domains with varied distribution shifts), and a Renal Cell Carcinoma dataset derived from four image repositories from TCGA, collectively indicate that our proposed model is adept at managing varying levels of image granularity. Thus, it shows improved generalizability when faced with new, out-of-distribution hospital images. The code is available at: https://github.com/miladsikaroudi/ALFA.

  • Multi-Objective Coordinate Search Optimization

    by Farzaneh Nikbakhtsarvestani, Azam Asilian Bidgoli, Mehran Ebrahimi, Shahryar Rahnamayan

    Many real-world optimization problems can be modelled with several competing objectives. Most of the time, such optimization problems fall under the category of expensive problems. These are problems in which each fitness evaluation is time-consuming, for example, one fitness call could take hours or even days to compute. The time-consuming process of evaluating the function values or gradient of the objective functions may degrade the running speed of many optimization algorithms. The coordinate search (CS) approach is introduced as a single-objective gradient-free method for addressing large-scale, non-convex, and costly optimization problems. Due to the low computation and memory requirements of the CS algorithm, it can also be efficiently extended to address multi-objective optimization problems. The subject of this study is to develop a CS-based algorithm aimed at computationally expensive multi-objective optimization problems. In order to generate a set of non-dominated solutions, a population is created to apply the CS algorithm on each individual and finally reach an optimized interval. We demonstrate the efficacy of the proposed multi-objective CS method by comparing it with NSGA-II and MOEA/D as one of the well-known multi-objective algorithms on ZDT benchmark functions. Promising results are reported with the assumption of a limited number of fitness evaluations (NFF) which is desired during tackling complex and expensive optimization problems. Another major advantage of the proposed algorithm is that it provides regions of the Pareto front, that using sampling can generate as many Pareto front solutions as needed unlike other common optimization algorithms including NSGA-II.


  • Open Access

    Biased data, biased AI: deep networks predict the acquisition site of TCGA images

    by Taher Dehkharghanian, Azam Asilian Bidgoli, Abtin Riasatian, Pooria Mazaheri, Clinton J. V. Campbell, Liron Pantanowitz, H. R. Tizhoosh, Shahryar Rahnamayan

    Background: Deep learning models applied to healthcare applications including digital pathology have been increasing their scope and importance in recent years. Many of these models have been trained on The Cancer Genome Atlas (TCGA) atlas of digital images, or use it as a validation source. One crucial factor that seems to have been widely ignored is the internal bias that originates from the institutions that contributed WSIs to the TCGA dataset, and its effects on models trained on this dataset.Methods: 8,579 paraffin-embedded, hematoxylin and eosin stained, digital slides were selected from the TCGA dataset. More than 140 medical institutions (acquisition sites) contributed to this dataset. Two deep neural networks (DenseNet121 and KimiaNet were used to extract deep features at 20× magnification. DenseNet was pre-trained on non-medical objects. KimiaNet has the same structure but trained for cancer type classification on TCGA images. The extracted deep features were later used to detect each slide’s acquisition site, and also for slide representation in image search.Results: DenseNet’s deep features could distinguish acquisition sites with 70% accuracy whereas KimiaNet’s deep features could reveal acquisition sites with more than 86% accuracy. These findings suggest that there are acquisition site specific patterns that could be picked up by deep neural networks. It has also been shown that these medically irrelevant patterns can interfere with other applications of deep learning in digital pathology, namely image search.Summary: This study shows that there are acquisition site specific patterns that can be used to identify tissue acquisition sites without any explicit training. Furthermore, it was observed that a model trained for cancer subtype classification has exploited such medically irrelevant patterns to classify cancer types. Digital scanner configuration and noise, tissue stain variation and artifacts, and source site patient demographics are among factors that likely account for the observed bias. Therefore, researchers should be cautious of such bias when using histopathology datasets for developing and training deep networks.


  • Open Access

    Generalization of vision pre-trained models for histopathology

    by Milad Sikaroudi, Maryam Hosseini, Ricardo Gonzalez, Shahryar Rahnamayan, H. R. Tizhoosh

    Out-of-distribution (OOD) generalization, especially for medical setups, is a key challenge in modern machine learning which has only recently received much attention. We investigate how different convolutional pre-trained models perform on OOD test data—that is data from domains that have not been seen during training—on histopathology repositories attributed to different trial sites. Different trial site repositories, pre-trained models, and image transformations are examined as specific aspects of pre-trained models. A comparison is also performed among models trained entirely from scratch (i.e., without pre-training) and models already pre-trained. The OOD performance of pre-trained models on natural images, i.e., (1) vanilla pre-trained ImageNet, (2) semi-supervised learning (SSL), and (3) semi-weakly-supervised learning (SWSL) models pre-trained on IG-1B-Targeted are examined in this study. In addition, the performance of a histopathology model (i.e., KimiaNet) trained on the most comprehensive histopathology dataset, i.e., TCGA, has also been studied. Although the performance of SSL and SWSL pre-trained models are conducive to better OOD performance in comparison to the vanilla ImageNet pre-trained model, the histopathology pre-trained model is still the best in overall. In terms of top-1 accuracy, we demonstrate that diversifying the images in the training using reasonable image transformations is effective to avoid learning shortcuts when the distribution shift is significant. In addition, XAI techniques—which aim to achieve high-quality human-understandable explanations of AI decisions—are leveraged for further investigations.


  • Opposition-Based Computing

    by Mario Ventresca, Shahryar Rahnamayan, Hamid R Tizhoosh

  • Open Access

    Bias reduction in representation of histopathology images using deep feature selection

    by Azam Asilian Bidgoli, Shahryar Rahnamayan, Taher Dehkharghanian, Ali Grami, H.R. Tizhoosh

    Appearing traces of bias in deep networks is a serious reliability issue which can play a significant role in ethics and generalization related concerns. Recent studies report that the deep features extracted from the histopathology images of The Cancer Genome Atlas (TCGA), the largest publicly available archive, are surprisingly able to accurately classify the whole slide images (WSIs) based on their acquisition site while these features are extracted to primarily discriminate cancer types. This is clear evidence that the utilized Deep Neural Networks (DNNs) unexpectedly detect the specific patterns of the source site, i.e, the hospital of origin, rather than histomorphologic patterns, a biased behavior resulting in degraded trust and generalization. This observation motivated us to propose a method to alleviate the destructive impact of hospital bias through a novel feature selection process. To this effect, we have proposed an evolutionary strategy to select a small set of optimal features to not only accurately represent the histological patterns of tissue samples but also to eliminate the features contributing to internal bias toward the institution. The defined objective function for an optimal subset selection of features is to minimize the accuracy of the model to classify the source institutions which is basically defined as a bias indicator. By the conducted experiments, the selected features extracted by the state-of-the-art network trained on TCGA images (i.e., the KimiaNet), considerably decreased the institutional bias, while improving the quality of features to discriminate the cancer types. In addition, the selected features could significantly improve the results of external validation compared to the entire set of features which has been negatively affected by bias. The proposed scheme is a model-independent approach which can be employed when it is possible to define a bias indicator as a participating objective in a feature selection process; even with unknown bias sources.