Yassir Akram

ETH Zurich
1 previous affiliation
8Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Yassir Akram focuses on the intersection of theoretical computer science, artificial intelligence, and neuroscience, with a specific emphasis on the mathematical foundations of neural network dynamics and architectural design. His work investigates how brain-inspired principles—such as randomness, modularity, and recurrent processing—can be formalized to improve the efficiency and generalization capabilities of artificial models. Currently, his research explores the mechanisms of compositional generalization and the theoretical properties of attention mechanisms, particularly how standard architectures and training regularizers influence the emergence of structured internal representations.

Research Trajectory

Akram’s research trajectory reflects a transition from studying the geometric properties of neural network optimization landscapes to a more mechanistic and architectural analysis of how complex functions, such as attention and compositional reasoning, emerge during training. His early work in 2022 focused on the high-dimensional geometry of loss surfaces, specifically investigating the permutation invariance of neural networks. This research addressed the question of whether different random initializations lead to functionally distinct solutions or whether they reside within the same "loss valleys." By demonstrating that reordering neurons can align disparate initializations, this work suggested that the starting points of neural training are more structurally similar than previously assumed.

In 2023 and 2024, Akram’s focus shifted toward the functional equivalence of different neural architectures and the role of specific design elements in sequence modeling. He participated in research that bridged the gap between Recurrent Neural Networks (RNNs) and Transformers, showing that modern gated RNNs can exactly implement the self-attention mechanisms that define Transformer performance. This period also marked an investigation into the implicit biases of training algorithms. He contributed to findings showing that common regularizers, such as weight decay, do not merely reduce parameter magnitude but actively shape the rank and structure of attention layers, favoring low-rank solutions in multiplicative parameter interactions.

Most recently, in 2024 and 2025, Akram has concentrated on the problem of compositional generalization—the ability of a model to handle novel combinations of previously learned concepts. This work has moved toward identifying the conditions under which "monolithic" or modular architectures can achieve such generalization. His recent first-author work provides a theoretical and empirical basis for the role of scale in this process, suggesting that increasing model size and data volume allows standard networks to form the linear internal representations necessary for systematic compositionality. Additionally, he has explored the integration of classical algorithmic concepts into deep learning, such as training Transformers to implement randomized algorithms to improve robustness against adversarial inputs.

Current Directions

Akram’s current research is characterized by a dual focus on scaling laws and the formalization of "in-context" learning. He is investigating the limits of Transformers in generalizing compositionally within a single forward pass, particularly in modular multitask settings. A significant portion of his recent work examines the relationship between hypernetworks and attention, treating the attention mechanism as a specialized form of hypernetwork that dynamically generates weights. This line of inquiry aims to unify disparate architectural patterns under a single theoretical framework of dynamic weight generation and modularity.

Furthermore, Akram continues to explore the role of randomness as a design principle, a theme rooted in his affiliation with the Neuro-CSA group at ETH Zürich. This involves studying how stochasticity—often viewed as a deficiency in biological synapses—can be leveraged in artificial systems to solve optimization problems or enhance algorithmic performance in adversarial settings. His work remains grounded in the search for "building blocks" of intelligence that are both biologically plausible and computationally efficient.

Representative Work

In Scale leads to compositional generalization, Akram demonstrates as first author that compositional generalization is not exclusive to specialized modular architectures but can emerge in standard neural networks through scaling. The paper provides a theoretical proof that Multi-Layer Perceptrons (MLPs) are capable of efficiently representing compositional structures. The findings suggest that as models scale in size and training data, they naturally develop linear internal representations of task components, which are essential for handling novel combinations of concepts.

As a primary contributor to Weight decay induces low-rank attention layers, Akram investigated the influence of $L2$-regularization on parameter matrices that interact multiplicatively, a configuration central to the attention layers of Transformers. The research extends previous theoretical results to show that local minima of regularized losses in these settings coincide with global minima of the nuclear norm. This provides a mathematical explanation for why weight decay encourages the emergence of low-rank structures in key-query and value-projection matrices, thereby shaping the functional capacity of the attention mechanism.

Akram participated in the research presented in Gated recurrent neural networks discover attention, which reverse-engineered trained RNNs to understand their relationship with Transformers. The study identifies that two specific design elements—linear recurrent layers and multiplicative gating—allow RNNs to implement linear self-attention. By examining RNNs trained on in-context learning tasks, the work shows that gradient descent naturally discovers these attention-like constructions, suggesting a convergence in the functional solutions found by different sequence-modeling architectures.

In Learning Randomized Algorithms with Transformers, Akram contributed to work demonstrating that Transformer models can be trained to execute randomized algorithms. The study shows that by optimizing against adversarial objectives, Transformers learn to utilize an input random seed to outperform deterministic strategies. This represents a significant step in showing that deep neural networks can acquire complex, non-deterministic algorithmic behaviors through purely data-driven training, particularly in settings where worst-case performance is a critical metric.

The work in Discovering modular solutions that generalize compositionally explores how modular architectures, specifically hypernetworks, can be trained to identify and reuse independent "building blocks" of tasks. Akram contributed to the proof that such architectures achieve compositional generalization if the training data provides sufficient overlap to "glue" different representations together. This research highlights the importance of data distribution in enabling models to generalize to unseen combinations of familiar components.

Earlier in his trajectory, Akram was involved in the study Random initialisations performing above chance and how to find them. This research explored the permutation invariance of neural networks, demonstrating that two different random initializations can be permuted such that they reside in the same loss valley. A key finding of this work was that averaging two such permuted initializations can result in a model that performs significantly better than chance even before training begins, revealing a hidden structural consistency in the initial parameter space of deep networks.

Profile updated

See something wrong? Report a mistake