MCP
EH

Eric Hambro

22 papers in the library · Same-name authors told apart using DBLP

Papers

22
Know When To Stop: A Study of Semantic Drift in Text Generation
Ava SpataruEric HambroElena VoitaNicola Cancedda
In this work, we explicitly show that modern LLMs tend to generate correct facts first, then “drift away” and generate incorrect facts later: this was occasionally observed but never properly measured. We develop a semantic drift score that measures the degree of separation between correct and incorrect facts in generated texts and confirm our hypothesis when generating Wikipedia-style biographies. This correct-then-incorrect generation pattern suggests that factual accuracy can be improved by knowing when to stop generation. Therefore, we explore the trade-off between information quantity and factual accuracy for several early stopping methods and manage to improve factuality by a large margin. We further show that reranking with semantic similarity can further improve these results, both compared to the baseline and when combined with early stopping. Finally, we try calling external API to bring the model back to the right generation path, but do not get positive results. Overall, our methods generalize and can be applied to any long-form text generation to produce more reliable information, by balancing trade-offs between factual accuracy, information quantity and computational cost.
ACL AnthologyACL Anthology · June 2024
0
Teaching Large Language Models to Reason with Reinforcement Learning
Alexander HavrillaYuqing DuSharath Chandra RaparthyChristoforos NalmpantisJane Dwivedi-YuEric HambroSainbayar SukhbaatarRoberta Raileanu
This paper compares reinforcement learning algorithms for improving LLM reasoning, using sparse and dense rewards from heuristics or a learned reward model, with initializations from pretrained or supervised fine-tuned (SFT) models. It finds Expert Iteration consistently achieves the highest task accuracy, with PPO and Return-Conditioned RL close behind, and its sample complexity is similar to PPO, around $10^6$ samples. The authors show RL training fails to explore beyond SFT-generated solutions, and while SFT trades off maj@1 against pass@96, RL improves both simultaneously, with implications for RLHF.
OpenReviewOpenReview · · May 31, 2024
0
Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Prompts
Mikayel SamvelyanSharath Chandra RaparthyAndrei LupuEric HambroAram H. MarkosyanManish BhattYuning MaoMinqi JiangJack Parker-HolderJakob Nicolaus FoersterTim RocktäschelRoberta Raileanu
Rainbow Teaming is a black-box method that generates diverse, effective adversarial prompts for large language models by framing prompt generation as a quality-diversity problem solved via open-ended search. Tested on safety tasks across LLMs such as Llama 2 and Llama 3, it achieved attack success rates exceeding 90%, produced highly transferable prompts, and improved model safety through fine-tuning on synthetic data without harming general performance. Its versatility was further shown in question answering and cybersecurity.
OpenReviewOpenReview · · May 13, 2024
0
Know When To Stop: A Study of Semantic Drift in Text Generation
Ava SpataruEric HambroElena VoitaNicola Cancedda
This paper shows that large language models generate correct facts first and then stray into incorrect facts during long-form text generation. The authors introduce a semantic drift score to quantify this pattern and confirm it in Wikipedia-style biographies. They then apply early stopping and reranking based on semantic similarity to improve factual accuracy by balancing information quantity against correctness, demonstrating a generalizable approach for more reliable generation.
arXivarXiv · · April 8, 2024
0
44
Teaching Large Language Models to Reason with Reinforcement Learning
Alex HavrillaYuqing DuSharath Chandra RaparthyChristoforos NalmpantisJane Dwivedi-YuMaksym ZhuravinskyiEric HambroSainbayar SukhbaatarRoberta Raileanu
This paper investigates multiple reinforcement learning algorithms (Expert Iteration, PPO, and Return-Conditioned RL) for improving large language model reasoning. On reasoning tasks, all algorithms perform comparably, with Expert Iteration often best, requiring at most ~10^6 samples to converge from a pretrained checkpoint. The authors find that models fail to explore significantly beyond supervised fine-tuning (SFT) solutions during RL, and that RL training improves both maj@1 and pass@96 metrics, whereas SFT involves a trade-off between them.
arXivarXiv · · March 7, 2024
0
216
Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Prompts
Mikayel SamvelyanSharath Chandra RaparthyAndrei LupuEric HambroAram H. MarkosyanManish BhattYuning MaoMinqi JiangJack Parker-HolderJakob FoersterTim RocktäschelRoberta Raileanu
Rainbow Teaming is a black-box method that frames adversarial prompt generation as a quality-diversity problem, using open-ended search to produce prompts that are both effective and diverse. Applied to the safety domain, it achieves over 90% attack success on Llama 2 and Llama 3 models, revealing hundreds of effective adversarial prompts that are highly transferable. Fine-tuning with synthetic data generated by the method improves safety without sacrificing general performance, and the approach extends to question answering and cybersecurity.
arXivarXiv · · February 26, 2024
0
299
Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Prompts
Mikayel SamvelyanSharath Chandra RaparthyAndrei LupuEric HambroAram H. MarkosyanManish BhattYuning MaoMinqi JiangJack Parker-HolderJakob Nicolaus FoersterTim RocktäschelRoberta Raileanu
Rainbow Teaming is proposed to generate a diverse set of effective adversarial prompts for large language models. It frames adversarial prompt generation as a quality-diversity problem and uses open-ended search. Empirically, it reveals model limitations in domains such as safety, question answering, and cybersecurity. Fine-tuning on synthetic data from Rainbow Teaming improves the safety of state-of-the-art LLMs without harming other capabilities, enabling open-ended self-improvement.
OpenReviewOpenReview · · February 15, 2024
0
GLoRe: When, Where, and How to Improve LLM Reasoning via Global and Local Refinements
Alex HavrillaSharath RaparthyChristoforus NalmpantisJane Dwivedi-YuMaksym ZhuravinskyiEric HambroRoberta Raileanu
This paper introduces Stepwise Outcome-based Reward Models (SORMs), trained on synthetic data to approximate the expected future reward of the optimal policy $V^{\star}$ by predicting final-answer correctness over multiple samplings of the current policy. SORMs more accurately detect incorrect reasoning steps than standard ORMs, enabling better refinement decisions. The authors combine global refinements (rewriting the whole solution) and local refinements (using a SORM critique to locate the first error), with ORM reranking, improving a LLaMA-2 13B model's GSM8K accuracy from 53% to 65% under greedy decoding.
arXivarXiv · · February 13, 2024
0
134
GLoRe: When, Where, and How to Improve LLM Reasoning via Global and Local Refinements
Alexander HavrillaSharath Chandra RaparthyChristoforos NalmpantisJane Dwivedi-YuMaksym ZhuravinskyiEric HambroRoberta Raileanu
This paper introduces Stepwise ORMs (SORMs), trained solely on synthetic data to approximate the optimal policy's expected future reward, $V^{\star}$, for detecting incorrect reasoning steps more accurately than ORMs. Using SORM critiques, the authors train global refinement models (question and draft input) and local refinement models (adding error-location critique). Combining both with the ORM as a reranker outperforms either alone and a best-of-three baseline, improving a LLaMA-2 13B model's GSM8K accuracy from 53% to 65% under greedy sampling.
OpenReviewOpenReview · · February 1, 2024
0
Generalization to New Sequential Decision Making Tasks with In-Context Learning
Sharath Chandra RaparthyEric HambroRobert KirkMikael HenaffRoberta Raileanu
This paper shows that naively applying transformers to sequential decision making does not yield in-context learning of new tasks. The authors demonstrate that training on sequences of trajectories with certain distributional properties enables such learning, and find that larger model/dataset sizes, task diversity, environment stochasticity, and trajectory burstiness improve generalization to out-of-distribution tasks. With large diverse offline datasets, their model learns new MiniHack and Procgen tasks from only a few demonstrations without weight updates.
OpenReviewOpenReview · · February 1, 2024
0
Generalization to New Sequential Decision Making Tasks with In-Context Learning
Sharath Chandra RaparthyEric HambroRobert KirkMikael HenaffRoberta Raileanu
Naive transformers fail to learn new sequential decision-making tasks from a few demonstrations via in-context learning. Training on sequences of trajectories that have high task diversity, environment stochasticity, and trajectory burstiness enables in-context learning of novel decision-making tasks without weight updates. Larger models, larger datasets, and these distributional properties improve generalization to new out-of-distribution tasks, as shown on MiniHack and Procgen.
arXivarXiv · · December 6, 2023
0
58
Understanding the Effects of RLHF on LLM Generalisation and Diversity
Robert KirkIshita MedirattaChristoforos NalmpantisJelena LuketinaEric HambroEdward GrefenstetteRoberta Raileanu
This paper analyzes how each stage of RLHF (SFT, reward modeling, and RLHF) affects out-of-distribution (OOD) generalization and output diversity in LLMs. Across two base models on summarization and instruction-following tasks, RLHF achieves better OOD generalization than SFT, especially under larger distribution shifts. However, RLHF substantially reduces output diversity compared to SFT, revealing a tradeoff between generalization and diversity in current fine-tuning methods.
arXivarXiv · · October 10, 2023
0
552
Understanding the Effects of RLHF on LLM Generalisation and Diversity
Robert KirkIshita MedirattaChristoforos NalmpantisJelena LuketinaEric HambroEdward GrefenstetteRoberta Raileanu
This paper analyzes how each RLHF stage—supervised fine-tuning (SFT), reward modeling, and RLHF—affects out-of-distribution generalization (OOD) and output diversity across two base models on summarization and instruction-following tasks. It finds RLHF generalizes better than SFT, especially under larger distribution shifts, but significantly reduces output diversity, revealing a tradeoff that guides method selection and motivates further research.
OpenReviewOpenReview · · October 3, 2023
0
Learning to Solve New sequential decision-making Tasks with In-Context Learning
Sharath Chandra RaparthyEric HambroRobert KirkMikael HenaffRoberta Raileanu
The authors address few-shot generalization for sequential decision-making agents. They show that a naive transformer application fails, but training on sequences of trajectories with specific distributional properties enables in-context learning of new tasks. Larger models and datasets, greater task diversity, environment stochasticity, and trajectory burstiness improve out-of-distribution generalization from few demonstrations. They validate these findings by generalizing to unseen MiniHack and Procgen tasks via in-context learning from a handful of expert demonstrations per task.
OpenReviewOpenReview · September 29, 2023
0
Learning to Solve New sequential decision-making Tasks with In-Context Learning
Sharath Chandra RaparthyEric HambroRobert KirkMikael HenaffRoberta Raileanu
This paper studies when transformers achieve few-shot in-context learning for new sequential decision-making tasks. Using an illustrative example, it shows naive transformer use fails in this setting. It then demonstrates that training on sequences of trajectories with particular distributional properties enables learning new tasks from just a handful of expert demonstrations. Larger model and dataset sizes, greater task diversity, environment stochasticity, and trajectory burstiness all improve in-context generalization, enabling success on unseen MiniHack and Procgen tasks.
OpenReviewOpenReview · September 22, 2023
0
Understanding the Effects of RLHF on LLM Generalisation and Diversity
Robert KirkIshita MedirattaChristoforos NalmpantisJelena LuketinaEric HambroEdward GrefenstetteRoberta Raileanu
This paper analyzes how each stage of RLHF—SFT, reward modeling, and RLHF itself—affects out-of-distribution (OOD) generalization and output diversity in LLMs. Across two base models on summarization and instruction-following tasks, RLHF improves OOD generalization over SFT, especially under larger distribution shifts, but significantly reduces output diversity, revealing a tradeoff. The findings guide method selection by application and highlight the need for research to improve this tradeoff.
OpenReviewOpenReview · · September 22, 2023
0
Toolformer: Language Models Can Teach Themselves to Use Tools
Timo SchickJane Dwivedi-YuRoberto DessiRoberta RaileanuMaria LomeliEric HambroLuke ZettlemoyerNicola CanceddaThomas Scialom
Toolformer trains language models to self-supervise the use of external tools, deciding which API to call, when, with what arguments, and how to integrate results into future token prediction. Requiring only a few demonstrations per API, it integrates tools like a calculator, Q&A system, search engine, translator, and calendar. This substantially improves zero-shot performance on downstream tasks, often rivaling larger models, without sacrificing core language-modeling ability.
OpenReviewOpenReview · · May 10, 2023
0
LLaMA: Open and Efficient Foundation Language Models
Hugo TouvronThibaut LavrilGautier IzacardXavier MartinetMarie-Anne LachauxTimothée LacroixBaptiste RozièreNaman GoyalEric HambroFaisal AzharAurelien RodriguezArmand Joulin  +2
LLaMA introduces a series of foundation language models from 7B to 65B parameters, trained exclusively on publicly available datasets. The central contribution is demonstrating that state-of-the-art performance can be achieved without proprietary data: LLaMA-13B outperforms GPT-3 (175B) on most benchmarks, and LLaMA-65B matches Chinchilla-70B and PaLM-540B. All models are released to the research community.
arXivarXiv · · February 27, 2023
0
31k+
Dungeons and Data: A Large-Scale NetHack Dataset
Eric HambroRoberta RaileanuDanielle RothermelVegard MellaTim RocktäschelHeinrich KüttlerNaila Murray
The NetHack Learning Dataset (NLD) provides 10 billion state transitions from 1.5 million human NetHack trajectories (2009–2020) and 3 billion state-action-score transitions from 100,000 symbolic-bot trajectories (NetHack Challenge 2021). It is designed to be fast-running and highly scalable, enabling research on sequential decision-making. Evaluations of online RL, offline RL, and learning from demonstrations show that current methods require significant advances to leverage such large-scale datasets effectively.
arXivarXiv · · November 1, 2022
0
31
Insights From the NeurIPS 2021 NetHack Challenge
Eric HambroSharada MohantyDmitrii BabaevMinwoo ByeonDipam ChakrabortyEdward GrefenstetteMinqi JiangDaejin JoAnssi KanervistoJongmin KimSungwoong KimRobert Kirk  +17
The NeurIPS 2021 NetHack Challenge tasked participants with developing agents to win the dungeon-crawler game NetHack via the NetHack Learning Environment. The challenge produced diverse approaches that significantly surpassed previous best results. A key finding is that symbolic AI bots currently outperform deep reinforcement learning by a large margin on NetHack. However, no agent approached winning the game, confirming NetHack's value as a long-term benchmark for AI research.
arXivarXiv · · March 22, 2022
0
34
MiniHack the Planet: A Sandbox for Open-Ended Reinforcement Learning Research
Mikayel SamvelyanRobert KirkVitaly KurinJack Parker-HolderMinqi JiangEric HambroFabio PetroniHeinrich KüttlerEdward GrefenstetteTim Rocktäschel
MiniHack is a sandbox framework for open-ended reinforcement learning research that leverages the full set of entities and environment dynamics from the grid-based video game NetHack. It allows researchers to easily design novel RL environments ranging from simple rooms to complex procedurally generated worlds, using either a human-readable description language or a simple Python interface. The framework provides a convenient one-stop shop for RL experiments, including various tasks and baselines, and can wrap existing benchmarks to add additional complexity.
arXivarXiv · · September 27, 2021
0
181
GPflux: A Library for Deep Gaussian Processes
Vincent DutordoirHugh SalimbeniEric HambroJohn McLeodFelix LeibfriedArtem ArtemevMark van der WilkJames HensmanMarc P. DeisenrothST John
GPflux is a Python library for deep Gaussian processes (DGPs) built on Keras and GPflow, providing state-of-the-art DGP algorithms and modular building blocks for implementing novel Bayesian hierarchical models. It fills the gap of an actively maintained, open-sourced, and extendable library for DGP research, enabling practitioners to combine Bayesian and standard neural network layers within a single coherent framework by leveraging the Keras ecosystem.
arXivarXiv · · April 12, 2021
0
45
Frequent collaborators
Roberta Raileanu (17)
Sharath Chandra Raparthy (10)
Robert Kirk (9)
Christoforos Nalmpantis (6)
Tim Rocktäschel (6)
Jane Dwivedi-Yu (5)
Mikayel Samvelyan (5)
Minqi Jiang (5)
Jack Parker-Holder (5)
Edward Grefenstette (5)
Mikael Henaff (4)
Nicola Cancedda (3)