Yusuf Afifi

Yusuf Afifi

MEng EECS, UC Berkeley

I'm an MEng student in EECS at UC Berkeley. I do research in the Sky Computing Lab on agent efficiency for production workloads, advised by Alvin Cheung, and I'm a research fellow at Future Principle, where I work on RL post-training in prediction market environments.

My work focuses on RL post-training, programmable and efficient agent execution, and optimizing model serving, all toward continual learning.

Before Berkeley I studied Computer Science with a minor in Applied Mathematics at UCL (First Class), and worked at Amazon Prime Video and Angel Lane Partners.

Yusuf Afifi in front of the Golden Gate Bridge

/now

UC Berkeley
MEng in EECS, 2026–2027.
Sky Lab
Research in the Berkeley Sky Computing Lab on agent efficiency for production workloads, advised by Alvin Cheung.
Future Principle
Research fellow working on RL post-training in prediction market environments, using adversarial multi-actor simulation for strategic decision-making.
LoRA-Space
Building LoRA-Space Optimization, a benchmark of frontier models as optimizers in LoRA weight space.
Warply
Building an open-source control plane for AI endpoints: launch, observe, and optimize OpenAI-compatible serving on GPUs.

Also thinking about: inference optimization, RL environments, agent execution.

/publications

  1. System Optimizations for Cost-Efficient Agent Harnesses

    Jongseok Park, Jiaxiang Yu, Eric Zhou, Tony Hong, Sunga Kim, Yusuf Afifi, Ian Wong, Ion Stoica, Alvin Cheung

    Under review at MLSys

    Harness choices such as system prompts and tools barely move task accuracy but can change the cost of an agent run by up to 2.6× on the same model and task. We trace where cost accumulates and build Agency, a harness interposition platform that works with existing harnesses like Claude Code and Codex. Its optimizations cut agent cost by up to 35% without losing accuracy.

    Work done in the Sky Computing Lab. My part: self-context-editing tools and block-level compaction (54% lower cost per run on Oolong).

  2. Do Your Own Research: Learning to Forecast by Learning to Search

    Yusuf Afifi, Artur Kiulian, Anton Polishko, Mykola Khandoga, Hamudi Naanaa, Alina Krasnobrizha

    NeurIPS 2026 Workshop on Foundation Models for Temporal Systems (FMTS)

    RLVR with web search in the loop for prediction market forecasting. An agentic environment built from 2,100+ resolved Polymarket questions, where the model gathers its own evidence behind leak filters; single-epoch GRPO on Qwen3.5-35B-A3B with a Brier-score reward cuts calibration error (ECE) 31% and searches per rollout from 3.8 to 2.25, and outperforms four frontier models, including Claude Opus 4.5, at about 5% of its inference cost.

    Work done at Future Principle.

/selected-projects

  • Agency — Running, profiling, and debugging AI agent workflows

  • Warply — Open-source control plane for AI endpoints

  • ReadingStar — Accessibility karaoke for Windows