Jonas Loos

I’m a PhD student in the Machine Learning Group at TU Berlin and ELIZA, where I try to understand what happens inside generative models.

Currently, I study how fine-tuning changes language model behavior, and how to read out what a model represents at each layer. Before that, I analyzed internal representations of diffusion models.

Papers Published work and theses

  1. 2026NeurIPS Workshop Interpretability as a Science

    KV-Cache Patching: Tracing How and Where Fine-Tuned Behaviors Arise

    Jonas Loos, Oliver Eberle

    Patching the KV cache of a fine-tuned model into its base model can transfer behaviors such as answering in German or emergent misalignment. The effect grows with how much of the cache is patched and concentrates at a few pivotal tokens, like the system prompt and the chat template.

  2. 2025CVPR Workshop EVAL-FoMo-2 · DMLR 2026

    SCAM: A Real-World Typographic Robustness Evaluation for Multimodal Foundation Models

    Justus Westerhoff, Erblina Purelku, Jakob Hackstein, Jonas Loos, Leo Pinetzki, Erik Rodner, Lorenz Hufe

    The largest set of real-world typographic attacks: 1,162 photos of objects with a handwritten note that misleads vision-language models.

  3. 2025ICLR Workshop DeLTa

    Latent Diffusion U-Net Representations Contain Positional Embeddings and Anomalies

    Jonas Loos, Lorenz Linhardt

    The intermediate representations of Stable Diffusion contain a learned positional embedding, high-similarity corner artifacts, and a few anomalous high-norm tokens.

  4. 2024Master’s thesis · TU Berlin

    An Analysis of Representation Similarities in Latent Diffusion Models and Implications for Representation Extraction

    Which image regions does a diffusion model consider similar, and why can this go wrong? The thesis came with an interactive similarity explorer and sdhelper, a library to extract representations from diffusion models.

  5. 2021Biomechanics and Modeling in Mechanobiology

    Spatiotemporal Modeling of First and Second Wave Outbreak Dynamics of COVID-19 in Germany

    Dorothee Lippold, Andreas Kergaßner, Christian Burkhardt, Matthias Kergaßner, Jonas Loos, Sarah Nistler, Paul Steinmann, Dominik Budday, Silvia Budday

    A network model of how COVID-19 spread between the counties of Germany, used to predict local infections and deaths.

Research notes Smaller experiments, replications and write‑ups

  1. 2026Replication

    Can one extract and inject task vectors in language models?

    Take the hidden state from a few-shot prompt and inject it into a zero-shot prompt. For natural-language tasks this recovers 74–115% of the few-shot accuracy; for algorithmic tasks, only 15–28%.

  2. 2026Replication

    Do language models struggle to use representations learned in context?

    Models can form an internal map of a graph from a random walk in their context, but often fail to use it. How you ask matters: prefilling the response with the walk, or giving one example, recovers most of the lost accuracy.

  3. 2026Experiments

    Swapping the positional embedding of a pretrained model

    Replace RoPE with PoPE, or remove it completely, then recalibrate on about 2% of the pretraining budget. PoPE matches RoPE within the training length and stays stable beyond it. Removing RoPE also helps beyond the training length, but does not recover the original perplexity.

  4. 2026Write-up

    How to run Qwen3.8 27B at 30+ tokens/s on a base M5 MacBook

    With tree-based speculative decoding, a 27B model runs at 28 to 61 instead of about 8 tokens per second on a MacBook. The post goes from token-by-token decoding to custom Metal kernels for 4-bit matmul and tree attention.

  5. 2026Interactive demo

    Do the embeddings of a rotating object form a ring?

    Render a turning 3D object, embed every frame with a vision model in the browser, and project the embeddings to 3D. If a model represents the viewpoint smoothly, the frames trace a ring.

Projects Tools, demos and things built for fun