Thomas Palmeira Ferraz
Author directory2026
Observable Patterns Are Not Explanations: A Causal-Geometric Analysis of Latent Reasoning Models
Darpan Aswal | Thomas Palmeira Ferraz | Yongxin Zhou | Maxime Peyrard
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Darpan Aswal | Thomas Palmeira Ferraz | Yongxin Zhou | Maxime Peyrard
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Latent reasoning models (LRMs) replace explicit chain-of-thought with continuous thoughts. Recent work treats observable latent-state patterns, such as BFS-like frontiers and decodable arithmetic computation, as evidence for internal reasoning mechanisms. Evaluating two LRMs (Coconut and CODI) against controls lacking the proposed recurrence or curriculum, we find these patterns also appear in the controls and do not consistently affect behavior. Causal interventions reveal that latent-thought utilization is not binary but graded, scaling with a thought’s causal effect on model behavior. Geometric analyses reveal this effect concentrates in low-dimensional subspaces whose step-wise geometry grows more structured as their behavioral influence increases. Latent thoughts should therefore be treated as hidden computation, not hidden explanation: decodability, attention, or static structure alone cannot establish LRM reasoning mechanisms; that requires matched controls and causal tests.
Retrieval-Augmented LLM Agents: Learning to Learn from Experience
Thomas Palmeira Ferraz | Romain Deffayet | Vassilina Nikoulina | Hervé Déjean | Stéphane Clinchant
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Thomas Palmeira Ferraz | Romain Deffayet | Vassilina Nikoulina | Hervé Déjean | Stéphane Clinchant
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
While large language models (LLMs) have advanced the development of general-purpose agents, robust generalization to unseen tasks remains challenging. Two common approaches are supervised fine-tuning and training-free memory-augmented generation using retrieved experience; yet both have limitations: fine-tuning often fails to extrapolate to new tasks, while experience retrieval often underperforms compared to supervised baselines. In this work, we combine these approaches and study how retrieval-augmented LLM agents can learn to use retrieved trajectories in-context. First, we establish a strong LoRA fine-tuning baseline that outperforms several state-of-the-art agent training pipelines. Second, we analyze key design choices for experience retrieval, including storage, querying, and trajectory selection. We then integrate experience retrieval directly into the fine-tuning process, finding that this substantially improves generalization to unseen tasks. Finally, we show that these gains often persist with imperfect experience and, even when agents reuse their own failed attempts without test-time parameter updates. Overall, our results establish simple episodic retrieval as a strong foundation for agent memory and **retrieval-aware fine-tuning as a practical and effective framework for building agents that learn to learn from experience**. Code and models are made available.
2024
No Argument Left Behind: Overlapping Chunks for Faster Processing of Arbitrarily Long Legal Texts
Israel Fama | Bárbara Bueno | Alexandre Alcoforado | Thomas Palmeira Ferraz | Arnold Moya | Anna Helena Reali Costa
Proceedings of the 15th Brazilian Symposium in Information and Human Language Technology
Israel Fama | Bárbara Bueno | Alexandre Alcoforado | Thomas Palmeira Ferraz | Arnold Moya | Anna Helena Reali Costa
Proceedings of the 15th Brazilian Symposium in Information and Human Language Technology
From Random to Informed Data Selection: A Diversity-Based Approach to Optimize Human Annotation and Few-Shot Learning
Alexandre Alcoforado | Thomas Palmeira Ferraz | Lucas Hideki Okamura | Israel Campos Fama | Arnold Moya Lavado | Bárbara Dias Bueno | Bruno Veloso | Anna Helena Reali Costa
Proceedings of the 16th International Conference on Computational Processing of Portuguese - Vol. 1
Alexandre Alcoforado | Thomas Palmeira Ferraz | Lucas Hideki Okamura | Israel Campos Fama | Arnold Moya Lavado | Bárbara Dias Bueno | Bruno Veloso | Anna Helena Reali Costa
Proceedings of the 16th International Conference on Computational Processing of Portuguese - Vol. 1
LLM Self-Correction with DeCRIM: Decompose, Critique, and Refine for Enhanced Following of Instructions with Multiple Constraints
Thomas Palmeira Ferraz | Kartik Mehta | Yu-Hsiang Lin | Haw-Shiuan Chang | Shereen Oraby | Sijia Liu | Vivek Subramanian | Tagyoung Chung | Mohit Bansal | Nanyun Peng
Findings of the Association for Computational Linguistics: EMNLP 2024
Thomas Palmeira Ferraz | Kartik Mehta | Yu-Hsiang Lin | Haw-Shiuan Chang | Shereen Oraby | Sijia Liu | Vivek Subramanian | Tagyoung Chung | Mohit Bansal | Nanyun Peng
Findings of the Association for Computational Linguistics: EMNLP 2024
Instruction following is a key capability for LLMs. However, recent studies have shown that LLMs often struggle with instructions containing multiple constraints (e.g. a request to create a social media post “in a funny tone” with “no hashtag”). Despite this, most evaluations focus solely on synthetic data. To address this, we introduce RealInstruct, the first benchmark designed to evaluate LLMs’ ability to follow real-world multi-constrained instructions by leveraging queries real users asked AI assistants. We also investigate model-based evaluation as a cost-effective alternative to human annotation for this task. Our findings reveal that even the proprietary GPT-4 model fails to meet at least one constraint on over 21% of instructions, highlighting the limitations of state-of-the-art models. To address the performance gap between open-source and proprietary models, we propose the Decompose, Critique and Refine (DeCRIM) self-correction pipeline, which enhances LLMs’ ability to follow constraints. DeCRIM works by decomposing the original instruction into a list of constraints and using a Critic model to decide when and where the LLM’s response needs refinement. Our results show that DeCRIM improves Mistral’s performance by 7.3% on RealInstruct and 8.0% on IFEval even with weak feedback. Moreover, we demonstrate that with strong feedback, open-source LLMs with DeCRIM can outperform GPT-4 on both benchmarks.
Search
Fix author
Co-authors
- Alexandre Alcoforado 2
- Anna Helena Reali Costa 2
- Darpan Aswal 1
- Mohit Bansal 1
- Bárbara Bueno 1
- Bárbara Dias Bueno 1
- Haw-Shiuan Chang 1
- Tagyoung Chung 1
- Stéphane Clinchant 1
- Romain Deffayet 1
- Hervé Déjean 1
- Israel Fama 1
- Israel Campos Fama 1
- Arnold Moya Lavado 1
- Yu-Hsiang Lin 1
- Sijia Liu 1
- Kartik Mehta 1
- Arnold Moya 1
- Vassilina Nikoulina 1
- Lucas Hideki Okamura 1
- Shereen Oraby 1
- Nanyun Peng 1
- Maxime Peyrard 1
- Vivek Subramanian 1
- Bruno Veloso 1
- Yongxin Zhou 1