Muhammad Saram Hassan

Muhammad Saram Hassan

AI/ML Researcher | Mechanistic Interpretability & Model Compression | BS CS @ LUMS

Based in: Lahore, PakistanCurrently: Research Intern, SRI InternationalExperience: 5 years

Hire me

Final-year CS student at LUMS with a research focus on LLM evaluation, mechanistic interpretability, and model compression. Published author (EMNLP Findings 2025) and SRI International research intern developing frameworks for conceptual understanding in LLMs. Expert in the full ML stack, from fine-tuning and compression to distributed systems and data pipelines.

Experience

Research Intern

SRI InternationalMenlo Park, CA (Remote)internshipAug 2025 – Present

Summary

Developing a model-agnostic evaluation framework combining behavioral consistency analysis and representational geometry.

What I did

  • Conducting large-scale reproduction of 'Potemkin Understanding' across 7 LLMs, identifying critical methodological fragilities.
  • Implementing activation steering strategies (definition-addition vs. difference-based) on Llama-3.2-3B.
  • Analyzing cross-lingual contradiction hypotheses using CKA-based geometric stability.

Results

  • Developed the Concept Coherence Metric (CCM) to unify five fragmented evaluation silos: behavioral consistency, internal representation, causal intervention, robustness, and domain-specific semantics.
  • Introduced the Latent Direction Score (LDS) using Sparse Autoencoders to causally improve concept application via activation steering (+4.38pp in Classify tasks).
  • Identified up to 31% variance in Potemkin scores across runs, surfacing significant stochastic instability in current conceptual understanding benchmarks.
  • Verified computational reproducibility of Procedure 1 from Mancoridis et al. (ICML 2025) with max absolute deviation of 0.006.
  • Manuscript submitted to ACM REP 2026.
  • Identified judge sensitivity as a major confounder in LLM evaluation pipelines.
LLMsCentered Kernel Alignment (CKA)Sparse AutoencodersActivation SteeringMechanistic InterpretabilityTransformer Layers

Research Assistant

Security & Privacy Lab, LUMSLahore, PakistanworkJul 2025 – Present

Summary

Robustness of Web Agents in the Wild: Adversarial Influence on Autonomous Agents. Supervised by: Dr. Fareed Zaffar (Associate Professor, LUMS) and Dr. Taha Khan (CMU CyLab)

What I did

  • Leading an SoK on vulnerabilities in autonomous web agents, distinguishing agentic risks from traditional crawler exploits.
  • Architecting a synthetic adversarial HTML testbed with attack primitives like MCP poisoning and CSS obfuscation.
  • Developing a behavioral fingerprinting framework analyzing HTTP headers and DOM traversal to detect LLM agent traffic.

Results

  • Authored a full Systematization of Knowledge (SoK) paper on prompt injection threats in LLM-powered agents.
  • Developed a novel 12-class attack taxonomy based on semantic channels (e.g., RAG poisoning, tool-mediated hijacking, obfuscated HTML).
  • Identified the 'reasoning gap': stronger models like Claude 3.7 are immune to direct injection but highly vulnerable to memory injection (55.1% ASR).
  • Discovered that LLM browsers bypass robots.txt while masquerading as human users, triggering programmatic ad-auctions.
  • Synthesized empirical findings across 12+ major benchmarks including WASP, Mind the Web, and AgentDojo.
LLM AgentsAdversarial HTMLDOM ManipulationHTTP FingerprintingPrompt InjectionAI Safety

Teaching Assistant

LUMSworkAug 2023 – Present

Summary

Assisting students and leading tutorials for core CS courses.

What I did

  • Conducted weekly office hours for 300+ students in Discrete Mathematics (CS-210).
  • Led tutorials and lab sessions for Computational Problem Solving (CS-100).
  • Developed supplementary problem sets and graded research projects.
Discrete MathematicsComputational ThinkingMentorship

Skills

Technical

Pandas
Matplotlib
LLMs
NumPy
PythonPython
PyTorchPyTorch
Seaborn
Scikit-Learn
C/C++C/C++
HuggingFace
GitGit
Systems Programming
Model Compression
Mechanistic Interpretability
Knowledge Distillation
WordPress
Linux/BashLinux/Bash
OpenCVOpenCV
LangChain
Unity (C#)
TensorFlowTensorFlow
FigmaFigma
GoGo
Federated Learning
Node.jsNode.js
DockerDocker
JAX
ReactReact

Languages

Punjabi
English
Urdu
French
Persian

Projects

Voice AI for Regional Languages

Team Leadprofessional
Led a cross-functional team of 100+ students in partnership with Uplift AI to collect and curate 35,000+ regional language speech samples (Urdu, Punjabi, Siraiki) with regional accent recognition. Designed quality control and preprocessing pipelines ensuring 95%+ transcription accuracy.
Voice AIData CurationPreprocessing Pipelines

Evaluating Architectural Bias and Generalization in Vision Models

academic
Analyzed inductive biases (shape, texture, color, locality) across ResNet-50, ViT, and CLIP. Found ViT dominates on scrambled images due to global attention, while CLIP shows best shape generalization. Found ResNet-50 has the strongest color bias.
PyTorchCNNsViTsCLIPInductive Bias

Chrono Savior — 2D Time-Travel Adventure Game

Lead Developerpersonal
Developed a time-travel-themed 2D game combining shooter, action, and adventure genres with a team of 4; designed core mechanics including player movement, space combat, and time-based abilities. Implemented game modes (Infinite Mode, Space Travel, Ground Combat) and advanced UI for seamless navigation, pause/resume, and performance optimization.
UnityC#

LLM Password Generation: Security, Usability & Policy Compliance

Researcher (Collaboration with CMU CyLab)academic
Evaluating LLM-generated passwords across security (entropy, dictionary resistance), usability (memorability), and policy compliance. Analyzing model size, temperature, and prompting strategies on generation quality. Investigating failure modes: policy violation patterns and hallucination rates.
LLMsSecurity AnalysisPrompt EngineeringPython

Raft-Based Fault-Tolerant Distributed Key-Value Store

Developerpersonal
Implemented a complete Raft consensus module in Go featuring leader election, log replication, and log compaction. Validated system safety and liveness across 3-node and 5-node clusters, achieving a 14/15 test pass rate (184.6s total runtime). Identified a specific safety edge case in the 'Figure 8 Unreliable' chaos test while successfully passing high-stress scenarios like 'Backup' and 'Persist'.
GoRaft ConsensusDistributed SystemsRPC

Reproducing "Potemkin Understanding in Large Language Models"

Lead Researcher (Reproduction)academic
Large-scale reproduction and extension of benchmark-based claims about conceptual understanding across 7 LLMs and 32 concepts. Verified computational reproducibility of Procedure 1 from Mancoridis et al. (ICML 2025) and identified four critical sources of methodological fragility, including stochastic instability (up to 31% variance) and self-judging circularity.
PythonOpenAI APIAnthropic APIAutomated Evaluation PipelinesStatistical Robustness Testing

Federated Learning Under Data Heterogeneity

academic
Analyzed Federated Learning under data heterogeneity using Dirichlet distribution (alpha in {0.1, 0.5, 2.0}) to control label skew. Implemented and compared FedAvg, SCAFFOLD, and FedGH algorithms, identifying convergence-speed vs. accuracy tradeoffs.
PythonFederated LearningSCAFFOLDFedAvgFedGH

Knowledge Distillation: Feature Alignment & Contrastive Representations

academic
Compared four distillation methods (Logit Matching, CRD, Hints/FitNets) for a VGG-11 student. Hints (FitNets) achieved 61.3% accuracy, approaching the teacher ceiling. Established KL divergence as a reliable proxy for distillation quality.
PyTorchKnowledge DistillationFitNetsCRDGradCAM

Model Compression via Structured and Unstructured Pruning

Developeracademic
Applied L2-norm unstructured and channel-wise structured pruning to VGG-16, achieving 65.9% post-fine-tuning accuracy (+7.5% lift). Conducted layer-wise sensitivity analysis and implemented PTQ/QAT across multiple bit-widths (FP16, INT8, INT4) using torchao.
PyTorchVGG16PruningQuantization (PTQ/QAT)torchao

Deep Unfolding for Robust Neural Network Design

academic
Applied algorithm unrolling (ISTA to LISTA) for sparse signal recovery, accelerating convergence while maintaining theoretical guarantees. Integrated Robust PCA (RPCA) for foreground-background segmentation in noisy datasets.
PythonDeep UnfoldingISTA/LISTASparse RecoveryRPCA

Systems Programming: Shell, Malloc & GC

academic
Developed core systems programming components in C, including a command-line interpreter (Shell) with pipes and I/O redirection, a custom memory allocator with First/Best/Worst Fit strategies, and a mark-and-sweep garbage collector. Implemented IPC using fork/exec/wait.
CSystems ProgrammingIPCGarbage CollectionMultithreading

Education

Bachelor of Science

Lahore University of Management Sciences (LUMS)Computer ScienceGPA 3.67 / 4Aug 2022 – May 2026

Coursework

Advanced Topics in MLFoundations of Generative AIDeep LearningHuman-Computer InteractionDistributed SystemsOperating Systems

Societies & activities

Dean's Honor List (2022-2025)

A-Levels

International School Lahore (ISL)Mathematics, Further Mathematics, Physics, Chemistry, Computer ScienceAug 2021 – May 2022

Thesis. SAT: 1530 (800 Math, 730 EBRW) | 100% Merit Scholarship

Societies & activities

President, ISL Robotics SocietyVice President, Student Council

O-Levels

Lahore Grammar School Johar Town Senior Boys Campus14 Subjects (10 A*s, 4 As)Aug 2017 – May 2021

Societies & activities

School ValedictorianStudent Council PresidentHead Boy & Senior Prefect

Recognition

Awards

100% Merit Scholarship

International School Lahore2021

Awarded for A-Levels

4th Place Globally — NSS International Space Settlement Contest

NSS International Space Settlement Contest2021

Out of 1600+ international teams.

1st Place (Gold Medal) — International Kangaroo Linguistics Contest

International Kangaroo Linguistics Contest2021

Gold Medal among 3000+ competitors worldwide.

Silver Medal — International Youth Mathematical Championship (IYMC)

International Youth Mathematical Championship (IYMC)2020

Among 12,500+ participants across 98 countries.

Bronze Medal — International Astronomy Astrophysicists Contest

International Astronomy Astrophysicists Contest

Among 4700+ students.

Honorable Mention (Top 30) — CERN Beamline for Schools (BL4S)

CERN

Only Pakistani Team in Top 30 with Honorable Mention out of 1600+ international teams.

15th Globally — International Academic Marathon

International Academic Marathon

15th globally in the Mathematics category.

Shortlisted — IOI & International Philosophy Olympiad

Pakistan National Teams

Shortlisted for the national teams in Informatics and Philosophy.

Dean's Honor List

LUMS

Academic excellence award for years 2022–2025

Top 25 — Pakistan National Mathematics Talent Contest (NMTC)

HEC

HEC Pakistan.

Certifications

TOEFL iBT: 116/120

ETS

Patents & publications

Understanding or Imitation? Auditing Conceptual Understanding and Reasoning in Large Language Models

publication2026

Large-scale reproduction and extension of Mancoridis et al. (ICML 2025); identifies four sources of methodological fragility and demonstrates that reasoning models reduce Potemkin rates.

Data Doping or True Intelligence? Evaluating the Transferability of Injected Knowledge in LLMs

publicationarXiv:2505.171402025

Demonstrates that comprehension-intensive SFT tasks yield substantially higher knowledge retention than token-mapping tasks across 5 model families. Confirmed scaling laws for knowledge retention.

With Essa Jan, Moiz Ali, Fareed Zaffar, Yasir Zaki

Read it

Governance & advisory

Project Head, Social Outreach Program

LUMS Entrepreneurial Society (LES)other2024

Built an Excel-based Strategic Business Management simulation deployed to 500+ students at the LUMS Young Leaders Entrepreneurs Summit.

Impact

  • Updated LES role with business simulation impact.

Research & Design Executive

LUMS SPADESother2024

Team lead for 6 students on Pakistan’s first student-made propellant rocket targeting 1 km altitude. Overseeing Avionics, Propellants, and Design subsystems.

Impact

  • Updated SPADES R&D role with propellant rocket project.

Director Observatory

LUMS SPADESother2023

Revamped the LUMS observatory by repairing a Celestron 6SE AVX mount; organized 5+ interactive astronomy workshops.

Impact

  • Updated SPADES Observatory role with repair and workshop details.

Founder

Nergis Mavalvala Astronomy Society — LGS Johar Townother

Established Pakistan’s first high school observatory; fundraised and led acquisition of telescopes valued at PKR 1.5 million.

Impact

  • Added Nergis Mavalvala Astronomy Society role.

Founder & President

ISL Robotics Societyother2021 – 2022

Founded and led the society from scratch; introduced LEGO and Arduino programs to 250+ students; coached teams to 12+ national competitions, winning 7+ contests.

Impact

  • Updated ISL Robotics role with student count and win metrics.

Social impact & activities

Volunteer Teacher

The Citizens’ Foundation Outreachvolunteer

Developed STEM curriculum; taught web development and Arduino to 60+ underprivileged female students.

Impact

  • Outreach reached 2000+ students.

Lead Teacher & Project Coordinator

Harsukh School of Knowledge and Artsvolunteer

Developed a robotics curriculum for the Aga Khan Middle School Programme; taught 50+ students Arduino and LEGO EV3.

Core Team Member & Director IT

Next Generation Pakistanvolunteer2020 – 2022

Fundraised for Trans Health Club with Project Pehchaan; led COVID-19 response reaching 400+ families.

Co-Lead, Climate Classrooms

Climate Impact PKvolunteer2019 – 2022

Devised mobilization campaign with 11+ educational seminars; delivered Smog Action demands to Pakistan’s Ministry of Climate.

Fundamentals of Machine Learning

LUMS Science School & UpliftAIworkshop

Designed and taught a curriculum covering supervised/unsupervised learning, neural networks, and practical ML applications to 100+ students.

What drives the work

Motivations

  • Advancing AI safety through interpretability and robustness research.
  • Bridging the gap between theoretical ML and production-quality systems.
  • Mentoring the next generation of engineers and researchers.

Objectives

  • Seeking global AI/ML research or engineering roles focusing on mechanistic interpretability, model robustness, and systems thinking.

Principles

  • Empirical Rigor
  • Systems Thinking
  • Collaborative Research
  • Educational Outreach
Hire MuhammadReach out about a role, a contract or a conversation.For recruiters

Muhammad's twin is AI, it can make mistakes.