Summa
Md. Asif Uddin
Deep learning researcher — vision, medical imaging, vision-language models, causal inference, bioinformatics and gene sequence analysis
Correlation is cheap. Only an intervention costs anything.
— the author
Dhaka, Bangladesh

Prologue
I spend most of my time trying to understand AI and learn how to build useful AI systems. I work with different models, train and fine-tune them, modify existing architectures, and sometimes build new approaches when a problem needs it. I enjoy taking an idea, understanding how it works, and then trying to apply it to a real problem.
My undergraduate thesis, HierarchiRetina, is one example of this, and it is now under review at the IEEE Journal of Biomedical and Health Informatics, with the preprint on arXiv. It is a cascade that screens retinal photographs for diabetic retinopathy, segments the lesions and vessels, and grades the eye, evaluated end to end so that every case missed at the first step counts as an error. I have worked on the full process, from finding and preparing the data to training and evaluating the models. Getting the data was also a major part of the work. I visited hospitals, contacted researchers and institutions, and went through more than 37 published papers looking for suitable datasets. Most requests were declined, but the authors of FGADR responded and allowed us to use their dataset.
Alongside my thesis, I work with my advisors on different research problems. One project on open-world species recognition has already been completed and submitted for publication. Another project focuses on kidney disease. We are working with CT scan images to develop automated analysis and generate reports from the scans. These projects have helped me understand how AI can be adapted to very different problems and domains.
More recently, I have started working on a problem in computational biology. Instead of only asking which genes are related to Alzheimer’s disease, the work looks at what might happen to a microglial cell when a specific gene is knocked down. We then compare the model’s predictions with experimental CRISPR screens. I find this interesting because it brings together AI, biology, and experimental research.
Next is an MSc in Computer Science and Engineering at BRAC University, starting in Fall 2026. My proposal has already been accepted. I want to continue doing research while also building a career in AI and machine learning. I do not see research and industry as two separate paths. I want to keep learning through research while building AI systems that can solve real problems.
Outside computer science, I have broad interests in philosophy, law, public policy, science, and society. I also love cooking and trying new recipes. I enjoy learning about how ideas shape the way we understand the world, how technology affects people, and how we can use what we learn to build things that are genuinely useful.
Compendium
HierarchiRetina
Diabetic retinopathy screening and grading, evaluated end to end
Rank Radii Transfer as Quantiles
Placing unseen species inside the taxonomy, not in flat clusters
Automated Renal Reporting
The aim: a generator that cannot emit a value it did not measure
HCGT-PG
What would happen if you knocked the gene down
Beyond Multi-Stage Pipelines
Does a clinical-triage cascade earn its complexity? A controlled test on 39 retinal disease targets
Instrumenta propria
Fig. I
HSMoE-AUNet
A microaneurysm is a few dark pixels. A cotton wool spot is a soft pale patch. They do not respond to the same design.
Hierarchical sparse mixture-of-experts attention U-Net on a ConvNeXt-Small encoder, with a different expert set per lesion type. Custom experts: MultiScaleExpert, BrightSpotExpert, EdgeEnhancingExpert, SoftRegionExpert, TextureExpert.
Fig. II
SwinHRUNetPP
Vessel segmentation needs global context and hairline spatial precision at once, and most hybrids trade one away.
A Swin-based high-resolution U-Net++ hybrid, arrived at by rejection rather than by design.
Rejected along the way
- SwinV2-Large
- smp UNet++
- plain SwinUNet
- Lovász loss
- BoundaryLoss
- warm-restart scheduling
- label smoothing
- encoder freezing
Each of these made the result worse.
Fig. III
LG-DRG
A diabetic retinopathy grade is defined by its lesions, and a photograph too poor to read is not a severity grade at all. A grader that only sees pixels can do neither on purpose.
A lesion-guided grader: a ConvNeXt V2-L stream reads the photograph, a light CNN reads the five lesion and vessel masks, and the masks query the image through a gated cross-attention path. Gradability and severity are separate heads, the second ordinal, with its thresholds fitted on out-of-fold predictions. Then tested honestly: in the mask ablation the grade did not use the masks, even with the gate started open, and the paper reports that.
Fig. IV
MultiScaleMANet
Microaneurysms vanish at low resolution and lose context at high resolution.
Three branches — full 512×512 through EfficientNet-B4, four 256×256 patches through a shared EfficientNet-B0, sixteen 128×128 patches through the same encoder — with spatial reassembly and bottleneck fusion. Alignment was proved on paper before implementation.
Fig. V
RichAttentionUNet
A baseline worth trusting has to be one you can account for line by line.
Written from scratch with no pretrained weights: residual conv blocks with SE channel attention, an ASPP multi-scale bottleneck, attention gates in the decoder, deep supervision heads.
Fig. VI
Custom losses
Off-the-shelf losses reward the wrong thing on sparse, bright, or boundary-defined lesions.
DualEdgeBoundaryLoss, OpticDiscSuppressionLoss, SoftBoundaryLoss, probability-weighted RegionCoherenceLoss, an FOV-masked composite loss, clDice.
Axioms
- HierarchiRetina, Stage IIIA number nobody can compare with their own is a report about your hardware, not a result.
- HierarchiRetina, Stage IThe test set is opened once, after the threshold is locked. There is no second first look.
- Renal length, KUB CTMeasure in millimetres, not in slices. The scanner's axes are not the organ's.
- Rank radii, unseen cladesA threshold does not survive a change of population. Its quantile does.
- Taxonomic placement, refusalRefusal is a prediction. A model that cannot decline will place every specimen somewhere.
- HCGT-PG, the estimandWhere measurement is cheap, correlation is free. Only an intervention charges for it.
Elementa
A structured journey through the core mechanisms of modern AI. A course in deep learning, built to be read in order or explored by interest. From foundations and neural networks to bioinformatics and intelligent systems. Each entry is a proposition: a claim, its dependencies, with figures and mathematics.
- Book INeural networksthe perceptron, backpropagation, optimisation, convolution, recurrence, latent variables, graphs
- Book IIFoundationstokenisation, attention, the transformer block
- Book IIIVisionViT, DINOv2, self-supervised visual representation
- Book IVLarge Language Model (LLM)Transformers, attention mechanisms, prompt engineering, fine-tuning.
- Book VVision-language (VLM)contrastive pretraining, fusion, VLM architectures
- Book VICausal inferenceDAGs, interventions, counterfactuals, perturbation
- Book VIIBioinformaticssingle-cell data, gene regulatory networks, perturbation screens
- Book VIIIPracticelosses, training dynamics, evaluation
- Book I · Chapter XIII · Prop. 1A latent-variable model explains each observation by a code it never sees, and its likelihood is an integral over every code.
- Book I · Chapter XIII · Prop. 2The ELBO falls short of the log-evidence by exactly the divergence from the encoder's distribution to the posterior.
- Book I · Chapter XIII · Prop. 3The reparameterisation trick moves the randomness off the path of the gradient.
Marginalia
Reviews of books and models, and notes that did not fit anywhere else.
Instrumentarium
Fig. i
Languages
Python (primary). TypeScript and JavaScript (Next.js, React, React Native). Rust (Tauri). SQL (PostgreSQL). C (coursework level).
Python for the models; TypeScript and Rust for what people use them through.
Fig. ii
Deep learning
PyTorch, timm, torchvision, Hugging Face Transformers, PEFT, segmentation_models_pytorch. Training: mixed precision (bf16/fp16) with GradScaler tuning, AdamW with warm-up and cosine decay, gradient accumulation and clipping, EMA, early stopping on a validation monitor, k-fold CV with resumable per-fold checkpointing. Fine-tuning: LoRA and 4-bit QLoRA on language and vision-language models, frozen-backbone transfer, linear probing against partial and full fine-tuning. Imbalance and calibration: pos_weight, weighted samplers, source-balanced negative sampling, per-class and out-of-fold thresholds tuned on validation only. Inference: test-time augmentation with re-tuned thresholds, probability ensembling with weights chosen on validation. Building blocks: ordinal regression (CORN), mixture-of-experts, cross-attention fusion, attention gates, ASPP, GeM pooling, deep supervision, Grad-CAM. Numerical checks: layer-by-layer equivalence against reference weights, and finding a bf16 softmax that collapsed scores.
Training discipline more than library familiarity.
Fig. iii
Architectures used hands-on
Vision: ConvNeXt V2, Swin Transformer V2, Swin UNETR V2, DINOv2/v3, EfficientNet, and a Vision Transformer built from scratch and verified layer by layer against ViT-Base. Segmentation: U-Net, U-Net++, Attention U-Net, SwinHRUNetPP, HSMoE-AUNet (sparse mixture of heterogeneous experts). Heads and fusion: transformer decoders with learned label queries, gated cross-attention between masks and images, frozen image-text encoders with a trained fusion module. Language and vision-language models: Qwen3-VL-2B fine-tuned with QLoRA, Qwen2.5-7B with QLoRA and Qwen2.5-3B with LoRA; gpt-oss-120b, Qwen2.5 Coder 32B and Qwen2.5 3B served in deployed systems. Retrieval and speech: BGE embeddings, MiniLM cross-encoder reranking, multilingual MiniLM embeddings, Whisper large-v3, Kokoro-82M.
I build, train, modify and evaluate these rather than only reading about them.
Fig. iv
LLMs and retrieval
Serving and inference: vLLM with prefix caching, Ollama, ONNX Runtime, Groq, Cloudflare Workers AI. Retrieval-augmented generation: structure-preserving PDF parsing (pdfplumber), hybrid BM25 and dense retrieval, reciprocal rank fusion, cross-encoder reranking, multilingual embeddings, exact NumPy vector search, incremental re-indexing. Grounding: citations computed from the retrieved passages, quotations verified against the source before display, refusal when the evidence is not there. Speech and OCR in the pipeline: Whisper, Kokoro, Tesseract.
Systems that answer only from what they retrieved, and say so when they cannot.
Fig. v
Medical imaging
Fundus photography, non-contrast CT, NIfTI and DICOM handling, FOV masking with morphological erosion, CLAHE on the green channel, retinal cropping, patch extraction and stitching, lesion-level connected-component evaluation, de-identification, radiologist report parsing.
Most of this is preprocessing nobody writes papers about.
Fig. vi
Evaluation
Classification and grading: QWK, ICC, AUC-ROC, AUC-PR, sensitivity/specificity trade-offs, referral sensitivity. Multi-label: exact match, Jaccard, micro- and macro-F1, macro-AP, detection rate. Segmentation: Dice, IoU, HD95, lesion-level and image-level recall. Clustering: NMI. Retrieval and RAG: Recall@k, MRR, hand-labelled ground truth, verified-quotation rate, refusal on unanswerable questions. Screening: WSS@95%, recall@10%. Statistics: confidence intervals, paired bootstrap with Holm correction, repeated paired seeds. Method: end-to-end evaluation of staged systems with per-stage error attribution, ablations including mask ablation, within-source metrics and source-balanced negatives against dataset shortcuts, baselines computed rather than cited, held-out test discipline and leakage assertions.
Scored the way the system will be used: end to end, per source, against baselines I computed.
Fig. vii
Causal inference and computational biology
Causal graphs and DAGs, d-separation, interventions, counterfactual reasoning, gene perturbation analysis, gene regulatory network inference, multi-omics integration and biomarker discovery.
Currently extending this direction toward single-cell foundation models, genomic sequence models and perturbation-based causal analysis.
Fig. viii
Data
pandas, NumPy, scikit-learn, OpenCV, Pillow, Albumentations, Matplotlib, Seaborn, nbformat. Merging heterogeneous public datasets into one label space while keeping each source's provenance and official split; datasets worked with include EyePACS, APTOS 2019, DDR, IDRiD, Messidor-2, FGADR, RFMiD 1.0 and 2.0, ODIR-5K, iNaturalist, MedMNIST, CIFAR-10 and SYNERGY. Synthetic benchmark generation (2,800 diagrams with 25,698 structural questions); PDF and statute text parsing; citation formats (RIS, MEDLINE, BibTeX) and deduplication.
Ordinary tools, and the unglamorous work of making datasets agree.
Fig. ix
Backend and deployment
FastAPI, REST APIs, SQLAlchemy and Alembic. PostgreSQL with row-level security and full-text search, Prisma, Redis. Authentication with JWT, OIDC sign-in, two-factor sign-in and passkeys. Next.js and React front ends. Docker and Caddy; AWS S3 and CloudFront, Cloudflare Workers and R2, Vercel, Hugging Face Spaces. Testing: pytest, Vitest, Playwright end to end, mypy --strict, CI on every push.
From CSMMS, SANDHI, Winnow and the systems above.
Fig. x
Model familiarity
Beyond the models I have used hands-on, I study current models closely enough to write a note on each: architecture, training objective, scaling behaviour, benchmarks, limitations and practical use. Vision: ViT, ConvNeXt V2, EfficientNet V1 and V2, DINOv2 and DINOv3 (including registers), SAM 3. Multimodal: SigLIP 2, EVA-CLIP 8B and 18B. Medical imaging: nnU-Net, Swin UNETR V2, MedGemma. Language: the Qwen family including Qwen3.8, Llama 3.3 70B and Llama 4, DeepSeek V4, Kimi K3 and K2.6, and sparse mixture-of-experts design. Biology and chemistry: AlphaGenome, Evo 2, Boltz-2, Geneformer, scVI and the STATE virtual-cell model. I do not count familiarity as hands-on experience; the notes are published on asifuddin.com.
I study, compare and reproduce modern models to understand their architecture, training objectives, benchmarks, limitations and where they fit into my own research.
Fig. xi
READING
I love reading books and research papers. My current reading is centered on machine learning, causality and computational biology. Key books include The Book of Why, Causality: Models, Reasoning, and Inference, Causal Inference in Statistics: A Primer, and Elements of Causal Inference: Foundations and Learning Algorithms. The reading is not separate from the research work. It is mainly about understanding what can be inferred from data, where the assumptions enter, and how interventions can provide stronger evidence than observation alone.
I read research papers and technical books to build the theoretical foundation behind the models and methods I use, especially in machine learning, causality and computational biology.
Fig. xii
Other
Git and GitHub Actions, Jupyter and Colab, LaTeX, lex/yacc, WebAssembly toolchains (Pyodide, clang), CUDA-level debugging.
One machine, a great deal of patience.
Not yet: SQL, propensity score methods, Mendelian randomization.
Chronicle
Fall 2026 —
BRAC University, Dhaka
MSc, Computer Science and Engineering.
Thesis proposal accepted: HCGT-PG. Supervisor: Dr. Badhan Das.
Fall 2021 – Summer 2026
BRAC University, Dhaka
BSc, Computer Science and Engineering.
Thesis: HierarchiRetina, supervised by Rafeed Rahman; not publicly released; the work is now under review at IEEE JBHI, with a preprint on arXiv. Coursework in machine learning, deep learning, compilers, theory of computation, DBMS, operating systems, algorithms and software engineering.
2020
Uttara High School and College, Dhaka
Higher Secondary Certificate.
Science.
2018
Ullapara Merchant Pilot High School, Sirajganj
Secondary School Certificate.
Science.
Courseworkmachine learning, deep learning, compilers, Python, theory of computation, DBMS, operating systems, algorithms, software engineering.
Appendix
Systems work: where models stop being isolated learners and become architectures. The chapters above concern what a model learns; these concern how intelligence is assembled across vision, language models, vision-language models, and retrieval through model architecture, multimodal integration, retrieval pipelines, reranking, inference, and evaluation. The discipline is no longer only about learning representations, but about designing systems that can perceive, retrieve, reason, and answer. Each project below opens its own page.
- ResearchLensEvidence-grounded literature retrievalA research assistant over 106 indexed papers that answers only from passages it actually retrieved, cites them, and refuses when the evidence is not there. Grounding is enforced in code rather than requested of the model, and it runs locally with no API key.Read the project
- LocalScholarA private, laptop-scale research assistantBuilt because two scoping reviews needed more PDFs than any hosted chatbot would take. A permanent library on the laptop that answers across every paper at once, grounds each claim in a page you can open, refuses what it cannot answer, and sends nothing off the machine.Read the project
- Criminal Law Q&A AssistantAnswers on Bangladesh criminal law, grounded in the statute and checked against itAsk about Bangladesh criminal law in English or Bangla, by text, voice or photo, and get an answer drawn from the statute itself. Every quotation is checked against the source before it is shown, every citation says when its section last changed, and questions the law does not answer are declined.Read the project
- PRISMA-LocalScreening a systematic review on your own hardwareScreening a systematic review means ranking thousands of records without missing one, often on data that cannot leave the institution. Small open models fine-tuned to score each record in a single token, an honest result against two baselines, and a precision bug that hid inside a good AUC.Read the project
- Vi-GraphDiagram images turned into editable, queryable graphsTurns a picture of a diagram into an editable, queryable graph. A fine-tuned Qwen3-VL-2B lifts graph similarity from 0.581 to 0.740 on 500 held-out diagrams, and the page reports the classical OCR pipeline that ties it, and why the model struggles on the densest diagrams.Read the project
- Glass-Box ViTA Vision Transformer rebuilt from scratch and verified layer by layer against a pretrained ViT-BaseA Vision Transformer rebuilt from basic PyTorch layers and proved to be the same function as a pretrained ViT-Base: all 100 intermediate stages match exactly, with a maximum difference of 0.0, on CPU and GPU. Then used to measure which design choices actually matter.Read the project
- WinnowA free, self-hostable platform for systematic reviewsA free, open-source platform that runs a whole systematic review on a server the lab owns: search exports in, PRISMA 2020 diagram out. Security is enforced in the database, and every performance figure was written as a budget first, then measured on 100,000-record reviews.Read the project
- SANDHI Research LabA public website, member workspace and administration in one applicationA research lab's public website, member workspace and administration in one application, built from first commit to production in fourteen days. Invitation-only accounts, mandatory two-factor sign-in, and fast on free tiers even though every page renders on demand.Read the project
- SANDHI appThe research lab's Android app, a second client of the website rather than a second systemThe Android app of SANDHI Research Lab: the research map, projects, papers, people and news for anyone, and two-factor sign-in for members. It has no backend of its own. It reads the website's API under the same permission rules as the site's pages, so the app and the site never disagree. Released on 18 October 2026 as a signed 57 MB APK.Read the project
- PreporaExam prep for the GRE, IELTS and AI/ML interviews that marks practice only against verified answersA self-study site for the GRE, IELTS and AI/ML engineering interviews, live since 1 December 2026, with accounts by invitation. One rule shapes it: practice is marked only against an answer that has passed two independent checks, each written to a ledger. 676 verified GRE questions and 137 IELTS, more than 1,700 automated tests, and $0 a month to host.Read the project
- LucyAn AI desktop companion that runs entirely on the MacA 3D anime-style companion who lives on the Mac's screen, talks in a natural voice and listens when you say her name, with no account and no network needed. Speech recognition, voice and model all run on the machine, and Rust owns every network call.Read the project
- Officina AIAn execution tracer for Python, C and Java, with a tutor that explains the traceWrite a program, press Trace, and step through what it actually did, forwards and back, in Python, C or Java, in the browser. The trace comes from running the program, never from a model; a tutor then explains any step from the recorded facts.Read the project
- OfficinaA notebook that compiles and runs Python, C, C++ and Java in the browserA notebook that compiles and runs Python, C, C++ and Java in the browser and nowhere else. C and C++ are compiled for real by clang built to WebAssembly, Python runs with the network removed, and nothing you write is uploaded.Read the project
- MONAIThe metric that hid the failuresA silent bug in MONAI, the library most medical segmentation work is built on: a prediction that missed entirely was dropped from the HD95 average instead of being scored. Found, traced to torch.quantile, fixed with twelve regression tests, and merged upstream on 6 October 2026.Read the project
- CSMMSCampus Student Management and Marketplace SystemThe backend of a campus marketplace and student services system: a filtered, paginated item API, image upload to S3 delivered through CloudFront, and service impact metrics computed live.Read the project
- Food Expiry PredictionCNN and Random Forest models that estimate when food will spoilPredicting when fruit, vegetables and packaged food will expire, to cut food waste. A CNN judges freshness from photographs, while Random Forest and MLP models weigh temperature, humidity and how long the food has been stored.Read the project
- Compiler symbol tableScoped name lookup for a lex and yacc/bison front endA scoped symbol table for a compiler front end in lex and yacc/bison, where function parameters land inside their function's scope and every if and for block gets its own. Portable across macOS and Linux.Read the project