Ilyass Ouardi

Ilyass Ouardi

M.Sc. Computer Science Student at University of Milan. Researching mechanistic interpretability, representation geometry, and verifiable AI safety.

Research & Projects

Prospective Collaborations & Inquiries

I am actively seeking PhD positions, pre-doctoral fellowships, and lab collaborations starting in 2026/2027. If your research group works on mechanistic interpretability, representation geometry, or verifiable AI safety, I welcome the opportunity to discuss shared research directions.

Contact: ilyassouardi@gmail.comGitHubLinkedInView Curriculum Vitae

I am interested in AI safety and mechanistic interpretability. To me, interpretability is not an academic exercise for its own sake, but a pragmatic tool to make model safety measurable and verifiable on the path toward safe AGI. Right now I am particularly focused on the geometry of representations: how abstract concepts — like refusal and truth — are encoded within a model's activation space. Two questions follow from this:

  • Model biology: whether such concepts conform strictly to single linear directions, or rely instead on higher-dimensional, possibly non-linear manifolds.
  • Applied interpretability: whether representation-level edits — steering, abliteration, concept erasure — are genuinely surgical when evaluated against practical baselines, with off-target side-effects measured as rigorously as the primary behavioral change.
The two are connected, since an intervention built on the wrong picture of the geometry is precisely one whose side-effects go unmeasured.

Ongoing Research & Thesis

The Geometry of Absence, Opposite, and the Activation Manifold in Representation-Level Interventions

Ilyass Ouardi, Elisabetta Rocchetti, Alfio FerraraM.Sc. Thesis / ISLab, University of Milan
Investigating how language models encode the absence of a concept versus its semantic opposite on the internal activation manifold. We evaluate representation-level interventions—including linear concept erasure (INLP, LEACE) and directional activation steering—measuring off-target collateral damage and reasoning degradation alongside targeted behavioral modifications.
M.Sc. Thesis Representation Manifolds Concept Erasure Activation Steering ISLab
In Progress • Pre-print in preparation

Research Papers & Preprints

The Multidimensional Geometry of Truth in LLMs: A Concept-Cone Extension of the Linear Representation Hypothesis

Ilyass OuardiResearch Report / ISLab
Investigates whether propositional truth is mediated by a single linear direction or by a $k$-dimensional concept cone. Adapting Targeted Directional Optimization (TDO) and Targeted Cone Optimization (TCO) from Wollschlager et al. (2025) under causal necessity, sufficiency, and KL-retention losses, we demonstrate that in larger models (e.g. Llama-3, Gemma), a single linear probe fails causal interchange tests, whereas a low-dimensional concept cone ($k=2$) successfully mediates truth judgments while remaining near-orthogonal to naive Difference-in-Means directions.
Mechanistic Interpretability Representation Geometry Concept Cones Causal Mediation nnsight PyTorch

What Does a Heart-Sound Classifier Actually Learn? A Diagnostic Audit on PhysioNet CinC 2016

Ilyass OuardiResearch Report / University of Milan
A diagnostic refutation of shortcut learning in cardiac murmur classification. Demonstrates that CNN phonocardiogram models trained on PhysioNet CinC 2016 exploit recording-site background acoustic artifacts rather than true cardiac pathological signals, causing macro-accuracy to collapse from 0.866 to 0.457 under leave-site-out cross-validation. Proposes an explicit spectral diagnostic filter to catch spurious feature reliance prior to clinical deployment.
Shortcut Learning Diagnostic Audit Audio Pattern Recognition Healthcare AI Safety CNNs

Applied & Open-Source Projects

The Legend Challenge: Embedding Ethical Compliance into LLMs

Ilyass OuardiSecurity of Service-Oriented Architectures
Evaluates regulatory prompting versus narrative exemplars ("champion stories") for debiasing large language models and enforcing normative ethical constraints. Benchmarked systematically on GenderEqGLUE across varying prompt configurations and model scales.
AI Alignment GenderEqGLUE Ethical Compliance Prompt Engineering

RecupGPT & Production Donation Infrastructure

Ilyass Ouardi, Carlo Maria Bellettini (Advisor)B.Sc. Thesis (110/110 cum laude) & Production Deployment
Complete digital donation and logistics management platform built for RECUP APS (Milan food rescue NGO). Deployed production backend with Supabase and integrated an experimental LangChain/LangGraph natural-language-to-SQL conversational agent allowing NGO staff to query logistics and inventory data using natural Italian queries.
LangGraph NL2SQL Supabase B.Sc. Thesis