NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Aleksandar Terzic

IBM Research - Thomas J. Watson Research Center
2 previous affiliations
6Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Aleksandar Terzic focuses on characterizing the fundamental limitations of modern deep neural network models when applied to algorithmic and reasoning tasks. His research integrates principles from computational cognitive science, specifically vector-symbolic architectures (VSA), to expand the reasoning capabilities of foundation models. Currently a predoctoral researcher in the In-Memory Computing lab at IBM Research-Zurich and a doctoral candidate at ETH Zurich, Terzic investigates architectural modifications—including structured state-space models and recurrent transformers—designed to bridge the gap between high-speed sequence modeling and formal logical expressivity.

Research Trajectory

Terzic’s work has evolved from empirical and theoretical critiques of standard Transformer architectures toward the development of novel parametrizations that enable more robust state tracking and algorithmic composition. In 2024, his research highlighted the "compositional gap" in large language models (LLMs), demonstrating that while these models excel at pattern recognition, they struggle to reuse learned primitives to solve complex, multi-step problems. This phase of his work established a baseline for understanding why current scaling laws do not naturally result in improved logical reasoning.

Following these diagnostic studies, Terzic shifted toward architectural innovation, focusing on how recurrence and state-space models (SSMs) can be optimized for reasoning. This trajectory led to the development of the PD-SSM framework in 2025, which addresses the expressivity limitations of diagonal SSMs. By introducing structured sparse transition matrices, he sought to provide models with the ability to emulate finite-state automata (FSA) without the prohibitive computational costs typically associated with unstructured transition matrices.

Most recently, in 2026, Terzic has expanded his focus to include the application of LLMs in complex optimization domains. This work involves scaling Bayesian optimization to large, unstructured discrete spaces by leveraging the prior knowledge within LLMs. Throughout this evolution, a consistent theme in his research has been the pursuit of neuro-symbolic integration, attempting to combine the flexibility of neural networks with the structured, step-by-step processing characteristic of symbolic logic.

Current Directions

Terzic’s current research is concentrated on three primary areas: the expressivity of state-space models, the efficiency of recurrent architectures, and the use of fine-tuned foundation models for high-dimensional search.

A significant portion of his current work involves refining the mathematical foundations of SSMs. While modern SSMs like Mamba offer efficient computation, they often lack the ability to track complex states over long sequences. Terzic’s recent contributions involve designing transition matrices that maintain linear computational scaling while achieving optimal state size and depth for algorithmic tasks. This work is critical for moving beyond simple sequence modeling toward models that can execute formal algorithms.

Additionally, Terzic continues to explore the trade-offs between parallelism and generalization. By investigating recurrent variants of the Transformer, he aims to identify the specific types of recurrence—such as layer-recurrence—that allow models to generalize to sequence lengths beyond those seen during training. This research is particularly relevant for tasks involving regular languages and formal logic, where standard Transformers often fail.

Finally, he is investigating the use of LLMs as surrogate models in Bayesian optimization. By treating the LLM as a probability distribution over potential solutions, his work aims to eliminate the need for expensive acquisition function maximization in discrete spaces, such as protein sequence design or quantum circuit configuration.

Representative Work

In Structured Sparse Transition Matrices to Enable State Tracking in State-Space Models, Terzic proposed PD-SSM, a novel parametrization for transition matrices in state-space models. Standard SSMs often use diagonal matrices for computational efficiency, but this restriction limits their ability to emulate finite-state automata (FSA). Terzic introduced a structured sparse approach, parametrizing the transition matrix as the product of a column one-hot matrix and a complex-valued diagonal matrix. This method allows the model to achieve the expressivity of unstructured models while maintaining the linear computational cost of diagonal SSMs. Theoretically, the model is BIBO-stable and can emulate any N-state FSA with a single layer, significantly outperforming existing SSM variants on state-tracking benchmarks.

Terzic and colleagues developed a framework for scaling Bayesian optimization in Thompson Sampling via Fine-Tuning of LLMs. The proposed algorithm, ToSFiT, addresses the computational bottlenecks of optimizing in large, unstructured discrete spaces where gradients are unavailable. By fine-tuning prompt-conditioned LLMs to directly generate candidates proportional to their probability of being the global optimum, the method bypasses the need for traditional acquisition function maximization. Terzic contributed to a novel regret bound for this variational formulation of Thompson Sampling, demonstrating that the approach matches the strong theoretical guarantees of standard Bayesian optimization while providing superior sample efficiency in tasks like quantum circuit design and protein search.

In Recurrent Transformers Trade-off Parallelism for Length Generalization on Regular Languages, Terzic explored the tension between the parallelizability of Transformers and the sequential reasoning strengths of Recurrent Neural Networks (RNNs). The study identified layer-recurrence as a critical mechanism for enabling Transformers to model regular languages with perfect length generalization. By incorporating chunking mechanisms, the research balanced computational efficiency with the ability to track state across extended sequences. The findings indicated that as chunk sizes increase, the model's ability to generalize to unseen sequence lengths declines, providing a clear characterization of the limits of parallel processing in algorithmic contexts.

Terzic participated in an analysis of the sample inefficiency of modern foundation models in Limits of Transformer Language Models on Learning to Compose Algorithms. The research evaluated the ability of LLaMA, GPT-4, and Gemini to learn compositional discrete tasks by reusing sub-task primitives. The study found that Transformers are remarkably sample-inefficient in these scenarios, often requiring more data to learn a composed task than to learn all its components from scratch. This work provided both empirical evidence and theoretical analysis, grounded in complexity theory, to explain why gradient descent in memorizing feedforward models fails to achieve true logical reuse.

In the area of neuro-symbolic architectures, Terzic contributed to the development of Decoupling Model Depth from Parameter Count through work on differentiable tree machines. In the paper "Terminating Differentiable Tree Experts," the research team advanced models that learn tree operations using Tensor Product Representations. Terzic participated in the investigation of a mixture-of-experts approach that allows the model to maintain a constant parameter count regardless of the number of computational steps. This work also introduced a termination algorithm that enables the model to automatically determine the optimal number of steps for a given task, enhancing the flexibility of neuro-symbolic systems in handling varying problem complexities.

Profile updated

See something wrong? Report a mistake