Based in Belgrade, Serbian and Croatian/EU citizen

Uroš Savurdić

M.Sc. EECS, University of Belgrade, previously Applied Science Intern at Microsoft

I work on machine learning systems from both ends: building them and testing what they do. I have built retrieval pipelines, evaluation harnesses and containerized services, and I study models with controlled experiments, causal interventions and preregistered analysis.

Most of my work comes down to checking whether a change did anything: LLM evaluation and knowledge-graph QA generation at Microsoft, a study of how post-training changes a model’s internal representations, and performance measurement across CPU, GPU and TPU.

Latest

  1. Paper accepted at TELFOR 2026 from my safety SFT vs DPO study.

  2. Finished the Applied Science internship at Microsoft, working on LLM evaluation, knowledge graphs and multi-hop reasoning.

  3. Gave a talk on attention across computational paradigms at SICAAI, the 5th Serbian International Conference on Applied Artificial Intelligence, in Kragujevac.

  4. Started as Research Collaborator at IPSI Belgrade.

Experience

Experience

Applied science at Microsoft, and an ongoing research collaboration at IPSI Belgrade.

Microsoft, Applied Science Intern

Mar 2026 – Jul 2026
LLMsevaluationknowledge graphsgraph searchmulti-hop reasoning

ResultWhere a graph-based ranker and a surface-level grader agree (65.5% of questions), they matched expert difficulty labels 81.2% of the time, against 64.6% for a hop-count policy on the same questions.

  • Built an end-to-end pipeline turning long enterprise documents into multi-hop QA benchmarks, with schema-free two-pass knowledge-graph extraction, a grounding filter that drops fabricated entities, MCTS and guided-walk graph search, and LLM question generation that keeps the evidence for each answer.
  • Ran a controlled search experiment (three paired seeds, 2,000 evaluations per document and policy) showing that optimizing the learned difficulty proxy with MCTS and guided walks raised the proxy far more than independently graded difficulty.
  • Showed with ablations that removing grounded extraction raised predicted Hard+ difficulty from 35.6% to 87.8% and lowered answerability, while a smaller extraction model made little difference, so the pipeline mattered more than model size.
  • Read the DOCX XML directly to recover 4,317 footnotes the parser had silently dropped across 218 documents. Built cross-chunk entity canonicalization reaching F1 0.97 on 20 DocRED documents in development testing.
When the ranker and the grader agree, they beat hop count. Difficulty of generated multi-hop questions against subject-matter-expert labels, on the 65.5% of questions where both views agree. Hop count is scored on the same share of questions.
0%25%50%75%100%Both views agreeBoth views agree: 81.2% agreement with expert labels at 65.5% coverage81.2%Hop count, same questionsHop count, same questions: 64.6% agreement with expert labels at 65.5% coverage64.6%+16.6 pts

Applied Science internship, Microsoft. Hop count is the standard proxy for multi-hop difficulty. Paired difference 16.6 points, document-bootstrap 95% CI 5.8–28.4.

Table view
ScorerAgreement
Both views agree81.2%
Hop count, same questions64.6%

IPSI Belgrade, Research Collaborator

Feb 2026 – present
with Prof. Veljko Milutinović
  • Working with Prof. Veljko Milutinović on a comparative survey of emerging computing paradigms for AI workloads.
  • Running the literature review and contributing technical review for the survey and an accompanying book.
Projects

Projects

Six projects.

Optimization Methods

Nov – Dec 2025

Backpropagation written from scratch in NumPy and raced against a genetic algorithm, plus 2-opt, simulated annealing and differential evolution.

Research

Research and engineering, in detail

Three projects with the measurements behind them.

Independent researchTELFOR 2026 paperPyTorch, LoRA, TRL

FindingSafety SFT preserved the model's internal harmful–benign contrast and DPO redirected it, even though SFT changed the weights 6.6–6.7× as much.

QuestionFrom the same starting model and the same safety data, how do safety SFT and DPO change what the model represents internally?
SetupQwen2.5-1.5B, two instruction-tuned starts, 4,000 PKU-SafeRLHF pairs, three training runs per recipe, a 654-prompt benchmark labelled by two LLM judges and checked by hand.
ResultDPO removed harmful answers, but over-refused benign prompts that only sound alarming.
  • Compared safety SFT and DPO from matched instruction-tuned starts on the same data, on top of a nine-checkpoint chain (base, SFT, safety SFT, DPO).
  • Across the four analysed layers, DPO's part orthogonal to the original contrast is 0.96–1.71× the original's length, against 0.23–0.43× for SFT. From layer 20 of 28 on it outweighs the part along the original in every DPO run, and the recipes' ranges never overlap across runs.
  • Measured update size on weights, activations and outputs. SFT changed the weights much more than DPO but moved activations and outputs less, and at matched drift and KL, DPO's orthogonal component was already more than twice SFT's.
  • Tested what the redirected component does with activation steering and cross-fitted ablation. Pushing along it cut harmful answers by 14–17 points, compared with 2–4 along the original direction and 1 for a random one.
  • Checked training overlap, prompt source and style with four controls, and validated the LLM judges against the benchmark's labels (κ 0.95) and a blind human check (29 of 30 sampled refusals confirmed).
  • Built the whole pipeline, including LoRA SFT and DPO training, resumable GPU jobs across Kaggle and Colab, generation, two LLM judges plus a regex scorer, activation capture and steering, bootstrap statistics, and provenance files recording where every number came from.
Safety SFT keeps the contrast. DPO turns it. The part of each model’s harmful–benign contrast that is orthogonal to the starting model’s, in units of the starting contrast’s length. From layer 20 on, DPO’s orthogonal part alone is longer than the whole starting contrast.
safety SFTDPO
as long as the starting contrast0.00.51.01.52.0layer 16layer 20layer 24layer 28Safety SFT, layer 16: mean 0.32, runs 0.23–0.42Safety SFT, layer 20: mean 0.32, runs 0.23–0.42Safety SFT, layer 24: mean 0.31, runs 0.23–0.40Safety SFT, layer 28: mean 0.34, runs 0.24–0.43Safety SFTDPO, layer 16: mean 1.17, runs 0.82–1.41DPO, layer 20: mean 1.64, runs 1.43–1.86DPO, layer 24: mean 1.31, runs 1.16–1.46DPO, layer 28: mean 1.29, runs 1.12–1.41DPO

Bands span six training runs per recipe (two starts × three runs). The line is their mean. Qwen2.5-1.5B, final prompt token.

Table view
LayerSafety SFTDPO
160.32 (0.23–0.42)1.17 (0.82–1.41)
200.32 (0.23–0.42)1.64 (1.43–1.86)
240.31 (0.23–0.40)1.31 (1.16–1.46)
280.34 (0.24–0.43)1.29 (1.12–1.41)
DPO removes harmful answers, and over-refuses. WildGuard labels on the benchmark. Safety SFT on the same data leaves harmful answers near the starting level. DPO removes almost all of them but refuses up to half of the benign prompts that only sound alarming.
safety SFTDPOstarting model
Harmful answers to harmful promptsRefusals of benign prompts that sound alarming0%25%50%75%100%Alpaca startsafety SFT: 73–76%safety SFT: 73–76%DPO: 0–2%DPO: 0–2%Starting model: 83%Dolly startsafety SFT: 71–77%safety SFT: 71–77%DPO: 0–1%DPO: 0–1%Starting model: 81%Alpaca startsafety SFT: 2–4%safety SFT: 2–4%DPO: 24–37%DPO: 24–37%Starting model: 0%Dolly startsafety SFT: 2–5%safety SFT: 2–5%DPO: 30–53%DPO: 30–53%Starting model: 1%30–53%

Two starting models, instruction-tuned on Alpaca or Dolly. Bars span three training runs per recipe. Harmful prompts: HarmBench, n=150. Alarming benign prompts: XSTest, n=250.

Table view
MeasureStartSafety SFTDPO
Alpaca start83%73–76%0–2%
Dolly start81%71–77%0–1%
Alpaca start0%2–4%24–37%
Dolly start1%2–5%30–53%
Benchmarking and profilingPyTorch, JAX, NumPy

FindingOne NumPy scalar, a 20× slowdown. Under NumPy 2 a float32 array times a NumPy float64 scalar becomes float64, so the FP32 attention benchmark was measuring FP64 (199 against 4,002 GFLOP/s on the same T4), and scaled_dot_product_attention fell back to its unfused math path. Clean FP32 and FP64 microbenchmarks and PyTorch's own dispatch warnings pinned it down.

  • Benchmarked attention across 12 execution substrates and 17 implementations spanning four computing paradigms, measured where I had the hardware and simulated or modelled analytically for the rest, with each stage profiled for FLOPs, memory traffic and arithmetic intensity.
  • Softmax is 0.4% of attention FLOPs but takes 13–35% of runtime, so it is the main bottleneck across paradigms.
Common-scale comparison: 14 implementations at n=2048, d=256. Roughly seven orders of magnitude separate a TPU from a minimal four-instruction machine. The FLOP count is the same. The execution cost is not.
measured on hardwaresimulator or cost model
10⁻⁴10⁻³10⁻²10⁻¹10⁰10¹10²10³10⁴GFLOP/sTPU, fused (JAX/XLA)TPU, fused (JAX/XLA): 15,772 GFLOP/s (measured)15,772GPU FP16, fused SDPAGPU FP16, fused SDPA: 9,368 GFLOP/s (measured)9,368GPU FP16, decomposedGPU FP16, decomposed: 9,103 GFLOP/s (measured)9,103TPU, decomposed (per-op JIT)TPU, decomposed (per-op JIT): 4,908 GFLOP/s (measured)4,908GPU FP32, decomposedGPU FP32, decomposed: 4,002 GFLOP/s (measured)4,002GPU FP32, fused SDPAGPU FP32, fused SDPA: 2,354 GFLOP/s (measured)2,354Dataflow (Maxeler-style)Dataflow (Maxeler-style): 977 GFLOP/s (modeled)977Optical (photonic MZI)Optical (photonic MZI): 510 GFLOP/s (modeled)510CPU, fused SDPA (PyTorch)CPU, fused SDPA (PyTorch): 71 GFLOP/s (measured)71CPU, decomposed (NumPy)CPU, decomposed (NumPy): 38 GFLOP/s (measured)38GaAs RISC-VGaAs RISC-V: 0.15 GFLOP/s (modeled)0.15IoT edge (ARM M4F)IoT edge (ARM M4F): 0.11 GFLOP/s (modeled)0.11WSN, 64 nodesWSN, 64 nodes: 0.01 GFLOP/s (modeled)0.01Minimal-ISA machineMinimal-ISA machine: 0.0007 GFLOP/s (modeled)0.0007

Blue rows ran on hardware I had access to (CPU, an NVIDIA T4 and a TPU). Orange rows are simulators or analytical cost models. Where the roofline model can be checked against a measurement, it behaves as an upper bound should: 6,592 GFLOP/s for decomposed FP32 GPU against a measured 4,002. Checked against the literature, every model is optimistic, so treat them as order-of-magnitude bounds. This chart shows the 14 implementations that share n=2048, d=256; the chemical, biological and quantum simulators only run at n=32, d=16 and are reported separately.

Table view
ImplementationGFLOP/sSource
TPU, fused (JAX/XLA)15,772measured
GPU FP16, fused SDPA9,368measured
GPU FP16, decomposed9,103measured
TPU, decomposed (per-op JIT)4,908measured
GPU FP32, decomposed4,002measured
GPU FP32, fused SDPA2,354measured
Dataflow (Maxeler-style)977modeled
Optical (photonic MZI)510modeled
CPU, fused SDPA (PyTorch)71measured
CPU, decomposed (NumPy)38measured
GaAs RISC-V0.15modeled
IoT edge (ARM M4F)0.11modeled
WSN, 64 nodes0.01modeled
Minimal-ISA machine0.0007modeled
PyTorch Lightning, FAISS, Sentence-Transformers

FindingContrastive fine-tuning moved MRR@10 from 0.786 to 0.911 on CoSQA, a 16% relative gain.

  • Fine-tuned a bi-encoder (all-MiniLM-L6-v2) with InfoNCE contrastive loss on 20k CoSQA query-code pairs, with NDCG@10 +12.1% and Recall@10 +2.8% over the pretrained baseline.
  • Indexed 550+ code snippets in FAISS for semantic search with cosine similarity.
  • Set up a reproducible training and evaluation pipeline with PyTorch Lightning, AdamW with warmup, Weights & Biases tracking, and a torchmetrics evaluation suite.
Contrastive fine-tuning, measured three ways. The same bi-encoder before and after InfoNCE training on 20k CoSQA query-code pairs.
pretrained baselineafter fine-tuning
0.70.80.91.0MRR@10MRR@10 before: 0.786MRR@10 after: 0.9110.911NDCG@10NDCG@10 before: 0.831NDCG@10 after: 0.9320.932Recall@10Recall@10 before: 0.969Recall@10 after: 0.9960.996

Evaluated with torchmetrics on the held-out split. Recall@10 was already high, so most of the gain is in ranking quality.

Table view
MetricBeforeAfter
MRR@100.7860.911
NDCG@100.8310.932
Recall@100.9690.996
Background

Background

Education, volunteering, skills and awards.

Volunteering

Volunteer with EESTEC, the European EECS student association (34 universities, 4,000+ members), since February 2019. It is where I learned to run teams and teach.

EESTEC, Soft Skills Trainer

Aug 2021 – present
  • Delivered 100+ hours of training on 15+ topics, from leadership to nonviolent communication, to 400+ participants from across Europe.
  • Qualified through a 12-day intensive Training for Trainers, then two years delivering under mentorship before being certified by the EESTEC Training Team in 2023.

EESTEC, Training Team Coordinator, LC Belgrade

Feb 2022 – May 2023
  • Planned the Belgrade branch's soft skills trainings, choosing topics and trainers, and helped organize the educational program for Soft Skills Academy Belgrade, a self-development project open to any student.
  • Mentored around 30 members across two generations. Several went on to Chairperson, fundraising coordinator and international project roles. Supported the branch's HR processes and worked with the board on team development and conflict resolution.

EESTEC, Regionalization Coordinator, then Project Leader

Aug 2019 – Aug 2021
  • Led a 30-member international team through COVID-19 and moved the program's events online, then restructured the project by merging two international teams into one.
  • Ran the Balkan regionalization program, with online regional meetings and an in-person one hosted with LC Skopje, on running a local committee (grants, fundraising, recruitment and HR).

EESTEC, PR Team Leader and Event Organizer

2019
  • Led PR for Job Fair, one of Serbia's largest student career events, handled media outreach and coverage, and reported to the event coordinator.
  • Main organizer of a local student exchange from September to December 2019, and ran the Belgrade branch's social media as PR assistant to the board.
First page of a recommendation letter from the EESTEC international board, on headed paper.Recommendation letterEESTEC International Board, Zürich, August 2025Christa Ward, Chairperson, and Atina Velinovska, Vice Chairperson for Internal AffairsRead it (PDF, 2 pages)

Topics I trainFacilitation and meeting design, feedback and nonviolent communication, emotional intelligence, team dynamics, presentation, strategic and design thinking, problem solving and creativity, training design, learning from experience

Education, skills and recognition

Education

M.Sc. Electrical Engineering & Computer ScienceUniversity of Belgrade, School of Electrical Engineering (ETF). GPA 10/10. Evaluation, system security, optimization
graduated Sep 2024B.Sc. Electrical Engineering & Computer ScienceUniversity of Belgrade, School of Electrical Engineering (ETF). Signal processing, information theory. Thesis: optimizing urban traffic congestion using data-based crowdsourcing systems
Online courseworkTechnical AI Safety (certified) BlueDot Impact, 2026; Full Stack Deep Learning UC Berkeley; CME295: Transformers & Large Language Models Stanford; An Introduction to Statistical Learning Stanford; Machine Learning Workshop Polytechnic University of Madrid, 2019

Technical skills

LanguagesPython, C/C++, SQL
MLPyTorch, Transformers, Hugging Face, TRL, LoRA/PEFT, JAX
EvaluationLLM-as-judge, benchmark construction, multi-hop QA, knowledge graphs, MCTS and graph search
Interpretabilityactivation capture and steering, directional ablation, linear probing, representation geometry
Statisticspreregistration, cross-fitted out-of-fold estimation, bootstrap CIs, McNemar tests
ToolsDocker, AWS, Git, CI/CD, Weights & Biases, FAISS, profiling and benchmarking
SpokenSerbian/Croatian (native), Macedonian (native), English (fluent), Russian and Bulgarian (understood), German (basic)

Awards & talks

AwardEESTECer of the Year, Board of the Association, one recipient per year across a 4,000+ member network (2021)
Award3rd place, National Mathematics Competition, Mathematical Society of Serbia (2017)
AwardBest Student Start-Up Award, Science-Technology Park Belgrade (2022)
PaperU. Savurdić, “Safety SFT Preserves, DPO Redirects: The Harmful–Benign Contrast of a Small LLM.” Accepted at TELFOR 2026, the Telecommunications Forum, Belgrade.
TalkAnalysis of Attention Mechanisms in the Context of Computational Paradigms, presented at the 5th Serbian International Conference on Applied Artificial Intelligence (SICAAI), Kragujevac, May 2026.
Additional recognition (3)
  • Certified Soft Skills Trainer, EESTEC Training Team (2023)
  • 3rd place, Case Study Competition, BEST Belgrade (2018)
  • National silver medal, judo, junior level