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

Ankit Vani

Royal Bank of Canada
8 previous affiliations
10Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Ankit Vani focuses on representation learning, with a specific emphasis on Compositional Reasoning in Vision Language Models, systematic generalization, and the emergence of structured internal representations in neural networks. His work investigates how architectural priors and training dynamics—such as selective attention and iterative learning—can be leveraged to improve the robustness and interpretability of foundation models. Currently a Machine Learning Researcher at RBC Borealis, his research trajectory spans from early investigations into multi-label text classification to recent developments in vision-language encoders and the mechanics of neural network forgetting.

Research Trajectory

Vani’s early research, conducted during his graduate studies at New York University and early collaborations, centered on structured output spaces and active learning. In 2015, he participated in developing semi-automated systems for Categorising videos using a personalised category catalogue, utilizing active learning to manage noise in large-scale agricultural video libraries. By 2017, his focus shifted toward the internal structure of recurrent architectures. In Grounded Recurrent Neural Networks, he proposed a method to explicitly tie specific dimensions of a model's hidden state to individual labels, improving data efficiency and interpretability in multi-label classification tasks like medical coding.

During the middle phase of his research, Vani explored the intersection of information theory and geometry. This period was characterized by an interest in Distribution Alignment via Optimal Transport and the development of metrics that account for the underlying structure of data distributions. This work led to the proposal of GAIT: A Geometric Approach to Information Theory, which introduced geometry-aware entropy and divergence measures. These tools were designed to overcome the "geometrically blind" nature of traditional metrics like KL divergence by incorporating symbol similarity, showing particular utility in training generative models and performing Statistical Inference via Hilbert Space Distribution Embeddings. Concurrently, he contributed to research on Patch Matching as Parallelized Convolutional Operations, addressing fundamental bottlenecks in computer vision tasks such as texture transfer and video tracking.

As a doctoral researcher at Mila, Vani’s work evolved to address the "compositional generalization gap"—the discrepancy between a model's performance on familiar versus novel combinations of concepts. In 2021, he investigated how principles from cognitive science, specifically iterated learning, could be applied to neural module networks. In Iterated learning for emergent systematicity in VQA, he demonstrated that treating model layouts as an emergent language and subjecting them to transmission bottlenecks can force the emergence of systematic, compositional structures without requiring gold-standard supervision. This interest in compositionality extended to Large Language Models (LLMs), where he led research on On the Compositional Generalization Gap of In-Context Learning, analyzing how scaling and pre-training data (such as code) influence a model's ability to handle out-of-distribution semantic structures.

In the final stages of his PhD and transitioning into his current role, Vani has focused on the dynamics of learning and the role of attention in vision-language tasks. He co-developed the "forget-and-relearn" paradigm in Fortuitous Forgetting in Connectionist Networks, arguing that selective forgetting of undesirable information can actually improve the reinforcement of consistently useful features. His most recent work addresses the architectural limitations of transformers in vision tasks. In SPARO: Selective Attention for Robust and Compositional Transformer Encodings for Vision, he introduced a read-out mechanism that partitions encodings to mimic human selective attention, aiming to resolve the "bag-of-words" behavior often seen in models like CLIP. He has also participated in collaborative work on Simplicial Embeddings in Self-Supervised Learning and Downstream Classification, which utilizes group sparsity to improve generalization, and RLTime: Reinforcement Learning-Based Feature Attribution for Interpretable Time Series Models, which applies reinforcement learning to the problem of discrete feature attribution in temporal data.

Current Directions

Vani’s current work at RBC Borealis focuses on building foundation models with enhanced representation learning capabilities. He continues to investigate how to bridge the gap between Unifying Spatial Localization and Semantic Concept Interpretation, particularly in the context of vision-language models that must understand complex relational structures. His research remains grounded in the pursuit of systematic generalization, seeking to move beyond simple pattern matching toward models that can robustly compose and re-compose learned concepts in novel environments. This includes ongoing exploration into the training dynamics of large-scale models and the development of architectural priors that encourage disentangled and interpretable representations.

Representative Work

Grounded Recurrent Neural Networks

This work addresses the challenge of multi-label text classification in domains where interpretability and data efficiency are critical. Vani proposed Grounded Recurrent Neural Networks (GRNNs), which introduce a "grounding" mechanism that maps specific dimensions of the RNN's hidden state to individual labels. By applying a semi-diagonal weight constraint, the model ensures that the information relevant to a specific label is localized within the architecture. This approach allows the model to scale linearly with the number of labels and provides a built-in mechanism for explaining model predictions, which is particularly valuable for complex tasks such as clinical coding in healthcare.

GAIT: A Geometric Approach to Information Theory

In this paper, Vani and his collaborators advocate for a transition toward Geometric Distributional Learning via Optimal Transport. They introduce GAIT, a framework that redefines fundamental information-theoretic concepts—such as entropy and divergence—to account for the similarities between symbols in an alphabet. Drawing on concepts from theoretical ecology, the proposed GAIT divergence offers a closed-form expression that is computationally efficient while maintaining performance comparable to Wasserstein-based methods. The work demonstrates the versatility of this geometric approach across multiple domains, including the training of generative models and the evaluation of distributional similarity.

Iterated learning for emergent systematicity in VQA

This research investigates the lack of systematicity in neural module networks when they are required to learn both modules and layouts jointly. Vani proposes using iterated learning—a theory of language evolution—to provide an explicit pressure for compositionality. By treating the layouts as an emergent language that must be passed through a bottleneck to subsequent "generations" of models, the framework encourages the development of structured, reusable components. Experiments on Visual Question Answering (VQA) tasks demonstrate that this approach allows models to generalize to new combinations of concepts more effectively than standard joint training methods.

On the Compositional Generalization Gap of In-Context Learning

Focusing on the in-context learning (ICL) capabilities of Large Language Models, this study quantifies the performance gap between in-distribution and out-of-distribution semantic parsing tasks. Vani examines how this "compositional generalization gap" behaves as models are scaled in terms of parameters and training data. The findings reveal that while the gap persists, it consistently shrinks with scale, particularly for models that have been pre-trained on code. This work provides critical insights into the limitations of current LLMs in understanding novel combinations of known concepts and suggests that pre-training distributions play a vital role in fostering compositional abilities.

Fortuitous Forgetting in Connectionist Networks

This paper challenges the conventional view of forgetting as a purely negative phenomenon in machine learning. Vani and his co-authors introduce the "forget-and-relearn" paradigm, suggesting that intentional, selective forgetting can be a powerful tool for shaping learning trajectories. By removing undesirable information—such as model biases or noise—the relearning step can more effectively reinforce features that are consistently useful across different conditions. The framework unifies several existing iterative training algorithms and provides a theoretical basis for understanding why certain "forgetting" dynamics lead to better generalization in both image classification and language emergence.

SPARO: Selective Attention for Robust and Compositional Transformer Encodings for Vision

Addressing the failure of standard vision transformers to demonstrate robust compositionality, Vani proposes SPARO (Selective Attention for Robust and Compositional Transformer Encodings). The core of this work is a read-out mechanism that partitions transformer encodings into separate components, each of which attends to individual concepts independently. This architectural prior is inspired by human perception, which focuses on task-relevant aspects while ignoring distractions. By forcing the model to attend separately over concepts, SPARO improves the robustness of vision-language encoders like CLIP and DINO, particularly in scenarios involving complex compositions and environmental noise.

Profile updated

See something wrong? Report a mistake