Home › Jobs › Sverige › Postdoc in AI-based formally verified code generation
🇪🇺 Sverige • Permanent

Postdoc in AI-based formally verified code generation

🏢 Kungliga Tekniska högskolan 📍 stockholms kommun 💰 kr400 - kr500 📅 12 November 2026

Job Description

Postdoc in AI-based formally verified code generation

KTH Royal Institute of Technology, School of Electrical Engineering and Computer Science

AI is rapidly becoming the primary author of the world's software. Today's models generate code at a speed no human can match — but how can we trust code we did not write ourselves? Formal verification offers a path to mathematically guaranteed correctness, yet combining it with AI-based code generation raises deep and largely unsolved challenges.

As a postdoctoral researcher, you will tackle this question: how to generate code with AI and formally verify that it does what it should. Your work will combine modern AI/LLM-based code generation with formal methods to produce software that is both fast to create and provably trustworthy.

The position is part of SAFIR (Secure AI for Intelligent Resilience and Confidentiality in the Cloud), a EUR 2.5M collaborative project between KTH, Saab, Nvidia, Ericsson, Red Hat, CanaryBit and RISE, building next‑generation secure and dependable AI for critical domains such as telecom, defence and cloud. You will join the Machine‑Intelligence for Networks and Distributed Systems (MINDS) research group at the Department of Computing and Learning Systems, School of Electrical Engineering and Computer Science (EECS), in an international and dynamic environment with strong academic and industrial collaborations. You will have access to international supercomputing resources and a state‑of‑the‑art in‑house lab equipped with NVIDIA H100 and A100 GPUs and ten NVIDIA RTX Pro 6000 GPUs.

Qualifications

Requirements

  • A doctoral degree or an equivalent foreign degree. This eligibility requirement must be met no later than the time the employment decision is made.
  • Candidate is able to collaborate with other researchers.
  • Candidate is able to carry out work to a large degree in independence.
  • The candidate should be aware of diversity and equal opportunity issues, with specific focus on gender equality.

Preferred qualifications

  • A doctoral degree or an equivalent foreign degree, obtained within the last three years prior to the application deadline.
  • Research expertise in formal verification.
  • Research expertise in AI.

Great emphasis will be placed on personal skills.

Join us at KTH

KTH shapes the future through education, research and innovation. As a leading international technical university, we play an active role in advancing the transition towards a sustainable society. At KTH, you have the opportunity to grow and develop in a creative and dynamic environment, with good working conditions and attractive benefits. Equality, diversity and equal opportunities are essential to quality and form an integral part of KTH’s core values as a university and public authority.

About the employment

The position offered is for, at the most, two years.

It may be the case that a position at KTH is classified as a security‑sensitive role in accordance with the Protective Security Act (2018:585). If this applies to the specific position, a security clearance will be conducted for the applicant in accordance with the same law with the applicant's consent. In such cases, a prerequisite for employment is that the applicant is approved following the security clearance.

We firmly decline all contact with staffing and recruitment agencies and job ad salespersons.

Disclaimer: In case of discrepancy between the Swedish original and the English translation of the job announcement, the Swedish version takes precedence.

#J-18808-Ljbffr

Ready to apply for this position?

Apply directly through the official application portal.