Pontus Berglund

PONTUS BERGLUND

AI/ML Engineer · MSc in Machine Learning, KTH

My research has focused on how well LLM-based coding agents actually work, and where they break down. As a research intern in Microsoft's Code AI team, I built a benchmark that tests coding agents in some of the largest open-source codebases on GitHub. That work became my master's thesis at KTH Royal Institute of Technology and a paper now under review. More broadly, I'm drawn to AI/ML research wherever it meets real-world problems, from agents and code to generative models.

Currently an AI/ML Engineer in the Stockholm area · Originally from Visby, Gotland

LLM Agents Coding Agents ML on Code Evaluation & Benchmarking

Research

Master's thesis Research Intern, Microsoft Code AI team · 2026

Analysis of Coding Agents in Large Codebases

KTH × Microsoft. Supervised by André Silva (KTH), Siva Sivaraman (Microsoft) and Cooper Nederhood (GitHub). Examiner: Martin Monperrus (KTH).

Coding-agent benchmarks like SWE-bench draw from repositories small enough that much of the code fits in a model's context window, leaving navigation at scale largely untested. During my research internship at Microsoft I built a new benchmark of reproducible tasks from some of the largest open-source repositories on GitHub, evaluated frontier coding agents on it, and analysed their trajectories to find which behaviours separate success from failure. The work is also the basis of a paper currently under review.

Research project KTH × Epidemic Sound · 2025

DeepMMAudio: Depth-Aware Video-to-Audio Generation

In a team of four, on-site at Epidemic Sound, we extended the video-to-audio model MMAudio with depth features to improve audio-visual timing, and trained it from scratch on Google Cloud. The depth-aware model showed modest gains in semantic alignment and temporal synchronisation. The video shows audio generated by our model.

Bachelor's thesis KTH · 2024

Development of Music Shuffle Algorithms for Better User Experience

Supervised by Mira Kajko-Mattsson (KTH). Examiner: Fadil Galjic (KTH).

Why do listeners feel that shuffle is broken when it is random? Through a literature review, a survey and user tests of five custom algorithms, we found that the problem is mostly cognitive: people see patterns in randomness. A good shuffle should therefore spread out songs by the same artist or from the same album. The algorithms live on in the web app reShuffle.

The reShuffle web app

Education

KTH Royal Institute of Technology

2021 – 2026

Civilingenjör (Master of Science in Engineering) in Information and Communication Technology, 300 credits

  • Degrees awarded October 2026: MSc in Engineering (Civilingenjör), MSc in Computer Science and Engineering, and BSc in Technology
  • Specialization: Machine Learning
  • Master's thesis: Analysis of Coding Agents in Large Codebases, written as part of a full-time research internship at Microsoft
  • Bachelor's thesis: Development of Music Shuffle Algorithms for Better User Experience
  • Teaching: Teaching Assistant for ID1021 Algorithms and Data Structures during two course rounds (2023–2024), and tutor for students in preparatory courses in mathematics, programming and technology at Yrkesakademin (2023)
  • Maintained a consistent track record of meeting all deadlines and examination targets, with zero delayed credits
  • Achievements: Awarded seven merit-based scholarships, 2024–2026 (177,000 SEK total)
    2024
    • Stiftelse Hesselgren ur KTH:s allmänna studerandestiftelser för 202424,000 SEK
    • Stiftelsen Ingenjör Ernst Johnsons, HT24 (Fall 2024)24,000 SEK
    2025
    • Stiftelsen Ingenjör Ernst Johnsons, VT25 (Spring 2025)24,000 SEK
    • Stiftelsen Henrik Göranssons Sandviken43,000 SEK
    • Stiftelsen Ingenjör Ernst Johnsons, HT25 (Fall 2025)28,000 SEK
    2026
    • Stiftelsen Ingenjör Ernst Johnsons, VT26 (Spring 2026)24,000 SEK
    • Stiftelse Wawrinsky ur KTH:s allmänna studerandestiftelser för 202410,000 SEK
    Total177,000 SEK

Degree certificates

Singapore University of Technology and Design (SUTD)

Jan 2025 – May 2025

Exchange term: Machine Learning, Deep Learning, Mobile Robotics, Programming Language Concepts

Part of my master's programme at KTH, done during the second semester.

  • Developed my knowledge in Machine Learning, Deep Learning, Robotics, and Programming Language Concepts through up-to-date courses combining theory and practical aspects
  • Collaborated in diverse teams with local and international students
Watch: 50.047 Mobile Robotics course video

Filmed by the professor during my exchange term at SUTD.