Jiawei Liu
Jiawei Liu

I am a researcher at OpenAI, training cyber agents to patch the planet. I've been generally work on agentic alignment / post training since GPT-5.1.

I received my CS PhD at University of Illinois Urbana-Champaign supported by Illinois Innovation Award and Amazon PhD Fellowship. I worked with Lingming Zhang on software engineering and machine learning. My PhD research built early work to evaluate and train coding models, and model synthesis methods to fuzz test AI compilers.

Both during my PhD and now at OpenAI, I've been working to zero out bugs, old and new.

PhD Research

My work (i) automatically finds 300+ critical bugs in ML systems like PyTorch, winning ACM SIGSOFT Distinguished Paper Award and Distinguished Artifact Award, and (ii) builds LLMs and evaluators for code with wide industrial adoptions. My research has been generously supported by Amazon PhD Fellowship, Illinois Innovation Award, Yee Memorial Fellowship, and grants from Amazon and OpenAI.

Selected Research Full list →

Pre-print
SEC-bench Pro: Can Language Models Solve Long-Horizon Software Security Tasks?
arXiv preprint arXiv:2605.26548, 2026
Used by various frontier labs and safety institutions for cyber capability evaluation.
@article{sec2026lee,
  title={{SEC-bench Pro: Can Language Models Solve Long-Horizon Software Security Tasks?}},
  author={Hwiwon Lee and Jiawei Liu and Dongjun Kim and Ziqi Zhang and Chunqiu Steven Xia and Lingming Zhang},
  journal={arXiv preprint arXiv:2605.26548},
  year={2026},
  url={https://sec-bench.github.io/},
}
NeurIPS’25
PurpCode: Reasoning for Safer Code Generation
The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025
🥇 1st Place in Amazon Nova AI Challenge 2025
@inproceedings{liu2025purpcode,
  title={PurpCode: Reasoning for Safer Code Generation},
  author={Jiawei Liu and Nirav Diwan and Zhe Wang and Haoyu Zhai and Xiaona Zhou and Kiet A. Nguyen and Tianjiao Yu and Muntasir Wahed and Yinlin Deng and Hadjer Benkraouda and Yuxiang Wei and LINGMING ZHANG and Ismini Lourentzou and Gang Wang},
  booktitle={The Thirty-ninth Annual Conference on Neural Information Processing Systems},
  year={2025},
  url={https://openreview.net/forum?id=VUoY5kacG5},
}
ISSTA’25
Productively Deploying Emerging Models on Emerging Platforms: A Top-Down Approach for Testing and Debugging
Proc. ACM Softw. Eng. 2 (ISSTA), Jun 2025
@article{feng2025productively,
  author = {Feng, Siyuan and Liu, Jiawei and Lai, Ruihang and Ruan, Charlie and Yu, Yong and Zhang, Lingming and Chen, Tianqi},
  title = {Productively Deploying Emerging Models on Emerging Platforms: A Top-Down Approach for Testing and Debugging},
  year = {2025},
  issue_date = {July 2025},
  publisher = {Association for Computing Machinery},
  address = {New York, NY, USA},
  volume = {2},
  number = {ISSTA},
  url = {https://doi.org/10.1145/3728957},
  doi = {10.1145/3728957},
  journal = {Proc. ACM Softw. Eng.},
  month = jun,
  articleno = {ISSTA080},
  numpages = {23},
  keywords = {Developer Productivity, Machine Learning Systems, Software Testing},
}
ICML’24
Magicoder: Empowering Code Generation with OSS-Instruct
Forty-first International Conference on Machine Learning, 2024
Used by Meta Llama 3.1, Google CodeGemma, and IBM Granite
@inproceedings{wei2023magic,
  title={Magicoder: Empowering Code Generation with {OSS}-Instruct},
  author={Wei, Yuxiang and Wang, Zhe and Liu, Jiawei and Ding, Yifeng and Zhang, Lingming},
  booktitle={Forty-first International Conference on Machine Learning},
  year={2024},
  url={https://openreview.net/forum?id=XUeoOBid3x},
}
Pre-print
StarCoder 2 and The Stack v2: The Next Generation
Anton Lozhkov, Raymond Li, Loubna Ben Allal, Federico Cassano, Joel Lamy-Poirier, Nouamane Tazi, Ao Tang, Dmytro Pykhtar, Jiawei Liu, Yuxiang Wei, and 56 moreAnton Lozhkov, Raymond Li, Loubna Ben Allal, Federico Cassano, Joel Lamy-Poirier, Nouamane Tazi, Ao Tang, Dmytro Pykhtar, Jiawei Liu, Yuxiang Wei, Tianyang Liu, Max Tian, Denis Kocetkov, Arthur Zucker, Younes Belkada, Zijian Wang, Qian Liu, Dmitry Abulkhanov, Indraneil Paul, Zhuang Li, Wen-Ding Li, Megan L. Risdal, Jia Li, Jian Zhu, Terry Yue Zhuo, Evgenii Zheltonozhskii, Nii Osae Osae Dade, Wenhao Yu, Lucas Krauss, Naman Jain, Yixuan Su, Xuanli He, Manan Dey, Edoardo Abati, Yekun Chai, Niklas Muennighoff, Xiangru Tang, Muhtasham Oblokulov, Christopher Akiki, Marc Marone, Chenghao Mou, Mayank Mishra, Alexander Gu, Binyuan Hui, Tri Dao, Armel Zebaze, Olivier Dehaene, Nicolas Patry, Canwen Xu, Julian McAuley, Han Hu, Torsten Scholak, Sébastien Paquet, Jennifer Robinson, Carolyn Jane Anderson, Nicolas Chapados, Mostofa Patwary, Nima Tajbakhsh, Yacine Jernite, Carlos Muñoz Ferrandis, Lingming Zhang, Sean Hughes, Thomas Wolf, Arjun Guha, Leandro von Werra, Harm de Vries
arXiv preprint arXiv:2402.19173, 2024
@article{Lozhkov2024StarCoder2A,
  title={StarCoder 2 and The Stack v2: The Next Generation},
  author={Anton Lozhkov and Raymond Li and Loubna Ben Allal and Federico Cassano and Joel Lamy-Poirier and Nouamane Tazi and Ao Tang and Dmytro Pykhtar and Jiawei Liu and Yuxiang Wei and Tianyang Liu and Max Tian and Denis Kocetkov and Arthur Zucker and Younes Belkada and Zijian Wang and Qian Liu and Dmitry Abulkhanov and Indraneil Paul and Zhuang Li and Wen-Ding Li and Megan L. Risdal and Jia Li and Jian Zhu and Terry Yue Zhuo and Evgenii Zheltonozhskii and Nii Osae Osae Dade and Wenhao Yu and Lucas Krauss and Naman Jain and Yixuan Su and Xuanli He and Manan Dey and Edoardo Abati and Yekun Chai and Niklas Muennighoff and Xiangru Tang and Muhtasham Oblokulov and Christopher Akiki and Marc Marone and Chenghao Mou and Mayank Mishra and Alexander Gu and Binyuan Hui and Tri Dao and Armel Zebaze and Olivier Dehaene and Nicolas Patry and Canwen Xu and Julian McAuley and Han Hu and Torsten Scholak and S{\'e}bastien Paquet and Jennifer Robinson and Carolyn Jane Anderson and Nicolas Chapados and Mostofa Patwary and Nima Tajbakhsh and Yacine Jernite and Carlos Mu{\~n}oz Ferrandis and Lingming Zhang and Sean Hughes and Thomas Wolf and Arjun Guha and Leandro von Werra and Harm de Vries},
  journal={arXiv preprint arXiv:2402.19173},
  year={2024},
}
NeurIPS’23
Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generation
Thirty-seventh Conference on Neural Information Processing Systems, 2023
@inproceedings{liu2023is,
  title={Is Your Code Generated by Chat{GPT} Really Correct? Rigorous Evaluation of Large Language Models for Code Generation},
  author={Jiawei Liu and Chunqiu Steven Xia and Yuyao Wang and Lingming Zhang},
  booktitle={Thirty-seventh Conference on Neural Information Processing Systems},
  year={2023},
  url={https://openreview.net/forum?id=1qvx610Cu7},
}
FSE’23
NeuRI: Diversifying DNN Generation via Inductive Rule Inference
Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering, 2023
🏆 ACM SIGSOFT Distinguished Paper Award
@inproceedings{liu2023neuri,
  title = {NeuRI: Diversifying DNN Generation via Inductive Rule Inference},
  author = {Liu, Jiawei and Peng, Jinjun and Wang, Yuyao and Zhang, Lingming},
  year = {2023},
  isbn = {9798400703270},
  publisher = {Association for Computing Machinery},
  address = {New York, NY, USA},
  url = {https://doi.org/10.1145/3611643.3616337},
  doi = {10.1145/3611643.3616337},
  booktitle = {Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering},
  pages = {657--669},
  numpages = {13},
  location = {San Francisco, CA, USA},
  series = {ESEC/FSE 2023},
}
ASPLOS’23
NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilers
Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, 2023
🏆 Distinguished Artifact Award
@inproceedings{liu2023nnsmith,
  title = {NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilers},
  author = {Liu, Jiawei and Lin, Jinkun and Ruffy, Fabian and Tan, Cheng and Li, Jinyang and Panda, Aurojit and Zhang, Lingming},
  year = {2023},
  isbn = {9781450399166},
  publisher = {Association for Computing Machinery},
  address = {New York, NY, USA},
  url = {https://doi.org/10.1145/3575693.3575707},
  doi = {10.1145/3575693.3575707},
  booktitle = {Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2},
  pages = {530--543},
  numpages = {14},
  keywords = {Deep Learning Compilers, Compiler Testing, Fuzzing},
  location = {Vancouver, BC, Canada},
  series = {ASPLOS 2023},
}

Awards & Honors

Invited Talks