Research

Current Work

I was deeply involved with task quality for Terminal-Bench, from Terminal-Bench 1 through Terminal-Bench 4.0. I’m now working on task quality for Terminal-Bench-Science, which evaluates AI agents on research workflows across scientific domains.

In Progress

Training coding agents with privileged information. This project injects oracle hints (such as the fix patch) at training time to elicit correct trajectories the model can’t reach unaided, and uses action-level entropy to decide when a teacher should guide the agent versus let it act on its own.

Under Review

One paper is currently under review at ICLR.

Hardening Agent Benchmarks with Adversarial Hacker-Fixer Loops. A method for automatically building exploit-resistant verifiers for agent benchmarks, using adversarial loops of cooperating LLM agents rather than per-task manual patching.

Publications

2026

Scalable Weak-to-Strong Verifier Hardening for Agent Environments C Zeng, Z Zhong, K Zhang, I Bercovich, I Segal, Y Mao, S Saxena, A Raghunathan arXiv preprint arXiv:2610.15924

A fully automatic approach to hardening verifiers so that today’s models can defend agent environments against stronger future models. It isolates the verifier in a sandbox agents cannot modify, then runs a hacker-fixer loop to find and repair the remaining vulnerabilities. Applied to Terminal Bench, KernelBench, and SETA, it substantially reduces attack success, and defenses get stronger as the number of loop iterations grows.

AuraForge: Scaling Security Supervision for Training Coding Agents D Wang, S Zhao, H Sharma, J Wang, AV Duarte, I Bercovich, L Li arXiv preprint arXiv:2610.00850

AuraForge synthesizes and validates executable security tests for training secure coding agents. Its AuraGym dataset contains 679 feature-implementation tasks from 344 real-world repositories across Python, JavaScript, and TypeScript, covering 177 CWE categories. On tasks with human-written security tests, AuraForge generates roughly three times as many tests with an 83.23% lower false-positive rate, and training with its synthesized tests improves both functional correctness and security.

What Makes a Terminal-Bench Task Hard? Separating Genuine Hardness from Fake-Hardness on an Adjudicated Agentic Corpus ELC Lip, B Moraski, T Knappe, L Xiong, S Gharat, A Mari, I Bercovich arXiv preprint arXiv:2609.26826

A task that no model solves is not automatically a hard task. Using a frozen Terminal-Bench 3 production record of 1,081 pull requests, 639 scored tasks, and 28,801 trials, this paper asks what an all-fail task actually certifies. Of the 125 tasks with no honest pass, only 78 survive a validity screen as certified-unsolved. The rest have broken oracles, infrastructure failures, verifier bypasses, or uncertified solvability.

Hack-Verifiable Terminal Bench: Evaluating Reward Hacking in Terminal Tasks A Roth, I Bercovich, Y Efroni arXiv preprint arXiv:2608.22103

Adapts the hack-verifiable environments methodology to Terminal Bench by embedding detectable hacks into tasks, so reward hacking can be identified automatically instead of by human inspection or LLM judges. Measures reward-hacking rates across frontier models and tests whether prompting can prevent both known exploits and ones the prompt does not anticipate.

SWE-Marathon: Can Agents Autonomously Complete Ultra-Long-Horizon Software Work? R Desai, J Hu, J Cabezas, N Harsola, P Shukla, R Ben Chaim, A El Assadi, …, I Bercovich, S Dillmann NeurIPS 2026 ED Track (Poster)

A benchmark of project-scale software tasks that take hours and millions of tokens, designed to measure sustained agent progress and to resist single-test shortcut solutions.

Heuresis: Search Strategies for Autonomous AI Research Agents Across Quality, Diversity and Novelty A Antoniades, D Nathani, R Saha, A Amayuelas, I Bercovich, Z Weng, V Baskaran, K Bhatia, WY Wang NeurIPS 2026 Main Track (Poster)

A framework for studying how different search and quality-diversity strategies affect the ability of autonomous agents to explore and produce genuinely novel machine learning research.

Good Benchmarks Ivan Bercovich arXiv preprint arXiv:2607.12217

Good tasks are correct, solvable, verifiable, well-specified, and hard for interesting reasons. The best tasks describe a real problem an experienced practitioner would recognize, in language a practitioner would use, with tests that verify the outcome rather than the approach.

What Makes a Good Terminal-Agent Benchmark Task: A Guideline for Adversarial, Difficult, and Legible Evaluation Design Ivan Bercovich arXiv preprint arXiv:2604.28093

Most people write benchmark tasks the way they write prompts. They shouldn’t. A prompt is designed to help the agent succeed; a benchmark is designed to find out if it can. Drawn from over a year of contributing to and reviewing Terminal Bench tasks, this guideline argues that good tasks are adversarial, difficult, and legible, and catalogs the failure modes that follow from treating task authoring as prompt authoring.

Terminal Wrench: A Dataset of 331 Reward-Hackable Environments and 3,632 Exploit Trajectories I Bercovich, I Segal, K Zhang, S Saxena, A Raghunathan, Z Zhong arXiv preprint arXiv:2604.17596

A dataset of 331 confirmed reward-hackable terminal-agent benchmark environments with 3,632 exploit trajectories across Claude Opus 4.6, Gemini 3.1 Pro, and GPT-5.4. Catalogs 11 exploit categories from output spoofing to binary hijacking and rootkit-style binary patching. A monitorability study shows detection AUC drops from 0.97 to 0.92 when chain-of-thought reasoning is stripped from trajectories.

HardTestGen: A High-Quality RL Verifier Generation Pipeline for LLM Algorithmic Coding Z He, YM Choi, K Zhang, J Ji, J Zhou, D Xu, I Bercovich, A Zhang, Y Zeng, L Li International Conference on Learning Representations (ICLR) 2026

A pipeline for synthesizing high-quality test cases for algorithmic coding problems, where well-disguised wrong solutions are often caught only by carefully written edge cases. The resulting HardTests dataset covers 26.6k problems, and its tests are 11.22 percentage points more precise than existing ones at verifying LLM-generated code. Using them as the verifier for rejection sampling and reinforcement learning improves code generation.

Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfaces MA Merrill, AG Shaw, N Carlini, B Li, H Raj, I Bercovich, L Shi, JY Shin, et al. International Conference on Learning Representations (ICLR) 2026

A benchmark of 89 hard terminal tasks from real workflows, where frontier models achieve less than 65% success. Tasks span legacy system configuration, research paper reimplementation, and software engineering problems with human-written solutions and comprehensive verification tests.

Terminal-Bench Task Architecture

2025

Agents of change: Self-evolving LLM agents for strategic planning N Belle, D Barnes, A Amayuelas, I Bercovich, XE Wang, W Wang arXiv preprint arXiv:2506.04651

HexMachina, a continual learning multi-agent system for long-horizon strategic planning in adversarial environments. Tested on Settlers of Catan, it learns from scratch and evolves players that outperform human-crafted baselines with 54% win rate by separating environment discovery from strategy refinement.

MessIRve: A large-scale Spanish information retrieval dataset F Valentini, V Cotik, D Furman, I Bercovich, E Altszyler, JM Pérez Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing

A Spanish IR dataset with 730k queries from 20 Spanish-speaking countries sourced from Google autocomplete and Wikipedia documents. Unlike translated datasets, MessIRve captures regional dialectal variations and culturally relevant topics to advance Spanish information retrieval research.

Research Interests

  • Large Language Models & Agents: Self-evolving systems, benchmarking, and strategic planning
  • Code Generation & Testing: Automated test synthesis and quality assessment for LLM-generated code
  • Information Retrieval: Large-scale multilingual datasets and retrieval systems
  • Knowledge Graphs & NLP: Semantic understanding and structured knowledge representation
  • Command Line Interfaces: Agent performance in realistic terminal environments

Industry Experience

Graphiq (2011-2017), Amazon Alexa (2017-2020)

Led the architecture and scaling of Graphiq’s Knowledge Graph, building an ontology of 1.7 billion entities, 285 billion data points, and roughly 1.5 trillion relationships across hundreds of domains. The core technical challenge involved creating automated ETL infrastructure that non-engineers could operate autonomously, integrating over 1,200 data sources while processing 300 million daily updates. What previously took years to ingest and publish was compressed to weeks or minutes.

Built a natural language question-answering system using bottoms-up semantic parsing over the structured Knowledge Graph. By sequentially combining NER, intent extraction, and NLG templating, we translated text queries into database operations with auto-generated visualizations. Through distributed database optimization and automated indexing, maintained 150-200ms response times at 25,000 queries per second. Internal benchmarks showed higher accuracy than Amazon Alexa and Google on standard query batteries.

Graphiq Ontology-Guided Knowledge Refinement and Answering Engine

Academic Background

Ph.D. Studies, Statistics and Applied Probability (2010, unfinished) University of California, Santa Barbara Financial Mathematics

B.S. Electrical Engineering and Mathematics (2005-2009) University of Massachusetts Amherst Summa Cum Laude, GPA 3.95/4.00 Departmental Honors with greatest distinction


Full publication list on Google Scholar.