Mattia Opper

Meta (United States) · University of Edinburgh
6 previous affiliations
    • Research Scientist · Since 2026
    • Research Scientist (Contract via Magnit) · 2025–2026
    • Current
    • Doctor of Philosophy - PhD, Natural Language Processing / Machine Learning · 2022–2026
    • Master's degree, Speech and Language Processing · 2020–2021
    • Research Intern (Deep Learning Group) · 2025
    • Researcher (Contract via Aston Carter) · 2024–2025
    • Research Intern (Deep Learning Group) · 2024
  • EDINA2022–2025
    • Machine Learning Engineer · 2022–2025
  • Popoulos Analytics2023–2024
    • Research Scientist · 2023–2024
    • Undergrad student · 2016–2020
7Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Mattia Opper focuses on representation learning, the integration of explicit hierarchical structures into neural architectures, and the mechanistic analysis of transformer models. His work explores how inductive biases can improve compositional generalization and reasoning in natural language processing. Recently, he has investigated the limitations of self-attention mechanisms and developed methods to enhance length generalization in sequence modeling.

Research Trajectory

Mattia Opper’s research trajectory is defined by a consistent focus on moving beyond flat, linear sequence modeling to incorporate structured, hierarchical reasoning into machine learning architectures. During his doctoral studies at the University of Edinburgh and through collaborative work with Microsoft Research, his publications have systematically addressed the limitations of standard neural networks in capturing the compositional nature of language.

In 2023, Opper’s work centered on embedding explicit structural priors into representation learning, engaging deeply with the area of Unsupervised Induction of Latent Hierarchical Structures. As first author, he introduced StrAE: Autoencoding for Pre-Trained Embeddings using Explicit Structure. This research presented a Structured Autoencoder framework designed to learn multi-level representations by strictly adhering to explicit structural inputs. By utilizing a novel contrastive objective over tree-structured representations, the work demonstrated that the resulting performance gains were directly attributable to the informativeness of the provided structure. The paper also introduced a variant, Self-StrAE, which utilized a localized-merge algorithm to allow the model to define its own compositions, outperforming baselines that lacked explicit hierarchical mechanisms. This early work aligned with broader themes such as Bidirectional Information Flow in Tree Structured Neural Networks, emphasizing the necessity of structured computation in natural language processing.

In 2024, Opper participated in collaborative research targeting the persistent challenge of compositional generalization in neural networks. He was a co-author on Compositional Generalization Across Distributional Shifts with Sparse Tree Operations, which investigated unified neurosymbolic systems. The project developed the Sparse Differentiable Tree Machine (sDTM), a model capable of performing symbolic tree operations directly within a neural network's vector space. By employing a sparse representation, the architecture achieved strong compositional generalization while requiring significantly fewer parameters and less memory than previous hybrid neurosymbolic approaches.

By 2025, Opper’s research advanced along two complementary tracks: designing ultra-efficient structured architectures and diagnosing the fundamental limitations of transformer models. Advancing the research direction of Hierarchical Inductive Biases for Sequence Modeling, he led the development of Banyan: Improved Representation Learning with Explicit Structure. Banyan was introduced as an ultra-lightweight model that leverages "entangled trees" to learn high-quality semantic representations. Remarkably parameter-efficient, the model utilizes only 14 non-embedding parameters, demonstrating that explicit hierarchical structures can allow highly constrained models to rival or outperform massive transformers in low-resource settings.

Simultaneously, Opper has conducted detailed analytical work on the failure modes of standard self-attention. In TRA: Better Length Generalisation with Threshold Relative Attention, he and his co-authors investigated why transformers struggle with length generalization on fundamental tasks like flip-flop language modeling. The paper identified two compounding failures: the inability of self-attention to fully filter out irrelevant information, and the tendency of learned positional biases to unintentionally up-weight irrelevant keys when distances fall out of distribution. To mitigate these issues, the work proposed Threshold Relative Attention (TRA), a novel mechanism designed to correct these specific attention glitches. Furthering this analytical thread, Opper also contributed to Mechanisms of Symbol Processing in Transformers, a collaborative effort that constructed a fully mechanistically-explainable transformer capable of inferring and reasoning over latent syntactic structure during in-context learning.

Current Directions

The most recent papers in the evidence indicate that Opper’s current work is focused on the intersection of mechanistic interpretability and architecture design. A primary direction involves understanding exactly how and why dominant architectures like transformers fail at basic reasoning and length generalization tasks. By isolating specific mechanical flaws—such as the mismanagement of out-of-distribution positional distances and the failure to suppress irrelevant context—recent work seeks to design targeted architectural interventions, such as threshold-based attention mechanisms, that enforce more robust reasoning.

A parallel ongoing focus is the continued development of parameter-efficient models that natively process hierarchical data. Recent work investigates how explicit structural priors, such as entangled trees, can be used to bypass the need for massive scale and extensive pre-training. By forcing models to operate over structured representations rather than flat sequences, this research aims to achieve human-like compositional generalization and efficient representation learning in highly constrained, low-resource environments.

Profile updated

See something wrong? Report a mistake