Afrah Nazar / Research

Research

My research on human and machine cognition, 2024 to now.

  1. Individual report · submitted to the 2027 Regeneron STS

    From Criterion to Verdict: How a Language Model Decides Eligibility for Clinical Trials

    At the 2026 fair I searched all 1,152 attention heads of the open-source model Qwen3-8B and traced a six-head circuit that appears to read the eligibility rule, retrieve the patient’s medications, cross-check them, and integrate the verdict; ablating even one of the six sharply degrades accuracy. My Regeneron STS report, submitted in November 2026, tested what the model relies on: probes reached 68.9% macro-F1 against 51–54% for prompting, and removing the evidence clinicians cited changed 37.6% of their answers.

    2026Regeneron STS report

    Read the project page →

  2. 2nd Place (Software) · Hitachi Science & Engineering Fair · March 2026

    Blackbox to Glassbox: Interpretable Clinical Trial Matching

    I trained lightweight linear probes on Qwen3-8B’s internal activations to verify its eligibility decisions. They were 89.9% accurate on new patients but fell to chance on a trial they had not seen: they had learned a shortcut, which led to the circuit study above.

    2026Hitachi fair · 2nd Place

    Read the project page →

  3. With a classmate · 2025

    Dementia Classifier using Transformers’ Latent Representations

    Can a language model detect dementia from a transcribed picture description? Reading Llama 3.1-8B’s internals did it far better than prompting the very same model (0.88 against 0.55 F1, 0.87 against 0.61 accuracy) across 231 Cookie Theft descriptions from DementiaBank’s Pitt Corpus. Co-authored with a classmate.

    2025With a classmate

    Read the project page →

  4. 4th Place (Biotechnology) · ACSEF · March 2025

    Intelligence Mapping via Neuroplasticity in the Fruit-Fly Connectome

    A human brain has 86 billion neurons and a language model 500 billion parameters, far too many to trace. A fruit fly’s brain is far smaller, and its wiring has been mapped in full. From the FlyWire connectome I rebuilt the fly’s smell circuit as 120 simulated neurons in Brian2, and trained it with reward and punishment: the same connections learned to attract, then repel, then attract again, but never told a strong smell from a weak one.

    2025ACSEF · 4th Place

    Read the project page →

  5. 4th Place (Software) · ACSEF · March 2024

    Evaluating Generative AI for ADHD Screening and Management

    An individual project testing whether language models could be prompted to screen for ADHD; GPT-4 was 70% accurate. 4th Place, Software, at the 2024 Alameda County Science & Engineering Fair.

    2024ACSEF · 4th Place

    Read the project page →

  6. Self-initiated · since 2021 · 4 hrs a week

    How I learn on my own

    Every project here was self-initiated, about four hours a week since 2021. What I did to learn: papers, cold emails, tools and GPU time.

    2021 –Method, not a project

    Read the project page →