Join us on the Venture Scientist Bootcamp, a full time, 4-month incubator at Mila, built specifically for deep tech founders with elite STEM backgrounds.
Learn how to leverage generative AI to support and improve your productivity at work. The next cohort will take place online on April 28 and 30, 2026, in French.
We use cookies to analyze the browsing and usage of our website and to personalize your experience. You can disable these technologies at any time, but this may limit certain functionalities of the site. Read our Privacy Policy for more information.
Setting cookies
You can enable and disable the types of cookies you wish to accept. However certain choices you make could affect the services offered on our sites (e.g. suggestions, personalised ads, etc.).
Essential cookies
These cookies are necessary for the operation of the site and cannot be deactivated. (Still active)
Analytics cookies
Do you accept the use of cookies to measure the audience of our sites?
Multimedia Player
Do you accept the use of cookies to display and allow you to watch the video content hosted by our partners (YouTube, etc.)?
Karam Ghanem
Alumni
Publications
TapeAgents: a Holistic Framework for Agent Development and Optimization
We present TapeAgents, an agent framework built around a granular, structured log tape of the agent session that also plays the role of the … (see more)session's resumable state. In TapeAgents we leverage tapes to facilitate all stages of the LLM Agent development lifecycle. The agent reasons by processing the tape and the LLM output to produce new thought and action steps and append them to the tape. The environment then reacts to the agent's actions by likewise appending observation steps to the tape. By virtue of this tape-centred design, TapeAgents can provide AI practitioners with holistic end-to-end support. At the development stage, tapes facilitate session persistence, agent auditing, and step-by-step debugging. Post-deployment, one can reuse tapes for evaluation, fine-tuning, and prompt-tuning; crucially, one can adapt tapes from other agents or use revised historical tapes. In this report, we explain the TapeAgents design in detail. We demonstrate possible applications of TapeAgents with several concrete examples of building monolithic agents and multi-agent teams, of optimizing agent prompts and finetuning the agent's LLM. We present tooling prototypes and report a case study where we use TapeAgents to finetune a Llama-3.1-8B form-filling assistant to perform as well as GPT-4o while being orders of magnitude cheaper. Lastly, our comparative analysis shows that TapeAgents's advantages over prior frameworks stem from our novel design of the LLM agent as a resumable, modular state machine with a structured configuration, that generates granular, structured logs and that can transform these logs into training text -- a unique combination of features absent in previous work.
The amygdala nuclei modulate distributed neural circuits that most likely evolved to respond to environmental threats and opportunities. So … (see more)far, the specific role of unique amygdala nuclei in the context processing of salient environmental cues lacks adequate characterization across neural systems and over time. Here, we present amygdala nuclei morphometry and behavioral findings from longitudinal population data (>1400 subjects, age range 40-69 years, sampled 2-3 years apart): the UK Biobank offers exceptionally rich phenotyping along with brain morphology scans. This allows us to quantify how 18 microanatomical amygdala subregions undergo plastic changes in tandem with coupled neural systems and delineating their associated phenome-wide profiles. In the context of population change, the basal, lateral, accessory basal, and paralaminar nuclei change in lockstep with the prefrontal cortex, a region that subserves planning and decision-making. The central, medial and cortical nuclei are structurally coupled with the insular and anterior-cingulate nodes of the salience network, in addition to the MT/V5, basal ganglia, and putamen, areas proposed to represent internal bodily states and mediate attention to environmental cues. The central nucleus and anterior amygdaloid area are longitudinally tied with the inferior parietal lobule, known for a role in bodily awareness and social attention. These population-level amygdala-brain plasticity regimes in turn are linked with unique collections of phenotypes, ranging from social status and employment to sleep habits and risk taking. The obtained structural plasticity findings motivate hypotheses about the specific functions of distinct amygdala nuclei in humans.