You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: This is potentially very challenging. You would have to have GPUs to run GCG and the alternatives, and even run it several times to show that it works well and is truly faster.
Great! Feel free to try this out then! One thing I'll say up front: the current implementation is essentially a copy of the original research code with light modifications. There are no tests. For obvious reasons, that is not ideal. Hopefully, for the next iteration of GCG we can improve that. I think knowing that you're not breaking things also makes development easier.
Riyosha Sharma (@riyosha) feel free to coordinate with Royce Moon (@0xm00n) depending on whether you have GPUs. There are multiple alternatives so you could each pick one, for example. If you don't have GPUs it may be better to pick a different issue.
4B5F5F4B true, but I want to be careful. Other implementations just dropped the multi-model capabilities which I think are important for transferability.
Hi, I'm interested in contributing to this issue. I noticed it is currently assigned to Royce Moon (@0xm00n) and Riyosha Sharma (@riyosha), but there is no linked PR. Is this work still active?
If additional help is useful, I'd be happy to collaborate or take ownership of a separate benchmark-backed slice. I'm particularly interested in investigating probe sampling while preserving PyRIT's multi-model and multi-prompt behavior. I would first establish a reproducible baseline and agree on the benchmark matrix before making substantial implementation changes.
Roman Lutz (@romanlutz), would this direction be useful, and is there a specific slice you would prefer me to take?
Feel free to investigate. I think the only person trying things is me right now. I want to preserve the features of GCG without losing multi-model and other features.
If you find ways to improve things please keep the changesets as small as possible and elaborate on what it's improving. I'm doing the same. Speedup and generalization are important right now.
Thanks, Roman. I'll start by profiling the current candidate-evaluation path and establishing a reproducible baseline, while preserving multi-model and multi-prompt behavior. I'll keep the first proposed change narrowly scoped and share measurements and the benchmark configuration before opening a larger implementation PR.
Hey, yes—still interested. I did some initial profiling and test work in early August, then paused before making an implementation change. I’m picking it back up now: I’ll refresh against current main, rerun the baseline, and share a focused proposal before opening a PR.
Profiling showed that candidate evaluation was spending most of its time and memory producing full-vocabulary logits for every candidate and transferring them back to the parent process. I took a focused pass at that path while keeping the existing multi-prompt and multi-worker design: built-in cross-entropy is computed in the model worker, compatible models only project the logit positions used by the loss, and prompt-prefix KV reuse is available as an opt-in setting.
Across three paired runs on an A40 with Qwen2.5-7B-Instruct, median full-step time improved by 31.0% for one prompt and 37.7% for two prompts with transfer enabled. Peak GPU memory dropped from about 40.5 GiB to 24.9 GiB. All paired runs selected the same final suffix and step count; the largest fp16 loss-history difference was 0.0022.
I also added coverage for the optimized built-in loss path, including multi-worker accumulation. The GCG suite is passing with 325 tests. I’ll link the focused PR here next.
Activity
riyosha commentedon Dec 6, 2025
Hi, I'm interested in taking up this issue if no one else is working on it!
0xm00n commentedon Dec 6, 2025
would like to work on this as well. Riyosha Sharma (@riyosha) would you be open to collaboration?
romanlutz commentedon Dec 7, 2025
Note: This is potentially very challenging. You would have to have GPUs to run GCG and the alternatives, and even run it several times to show that it works well and is truly faster.
0xm00n commentedon Dec 7, 2025
yes, i have access to an A100 gpu and also H100s.
romanlutz commentedon Dec 7, 2025
Great! Feel free to try this out then! One thing I'll say up front: the current implementation is essentially a copy of the original research code with light modifications. There are no tests. For obvious reasons, that is not ideal. Hopefully, for the next iteration of GCG we can improve that. I think knowing that you're not breaking things also makes development easier.
Riyosha Sharma (@riyosha) feel free to coordinate with Royce Moon (@0xm00n) depending on whether you have GPUs. There are multiple alternatives so you could each pick one, for example. If you don't have GPUs it may be better to pick a different issue.
riyosha commentedon Dec 11, 2025
Royce Moon (@0xm00n) hi! lmk your preferred method to communicate
0xm00n commentedon Dec 12, 2025
Riyosha Sharma (@riyosha) i prefer discord if you have. will connect with you on linkedin to send it.
4B5F5F4B commentedon Apr 15, 2026
I think this nanoGCG()https://github.com/GraySwanAI/nanoGCG has already implemented a faster GCG, in nanoGCG's README.md, you can also see it recite this blog https://www.haizelabs.com/technology/making-a-sota-adversarial-attack-on-llms-38x-faster.
romanlutz commentedon May 27, 2026
4B5F5F4B true, but I want to be careful. Other implementations just dropped the multi-model capabilities which I think are important for transferability.
JayYarlagadda commentedon Aug 3, 2026
Hi, I'm interested in contributing to this issue. I noticed it is currently assigned to Royce Moon (@0xm00n) and Riyosha Sharma (@riyosha), but there is no linked PR. Is this work still active?
If additional help is useful, I'd be happy to collaborate or take ownership of a separate benchmark-backed slice. I'm particularly interested in investigating probe sampling while preserving PyRIT's multi-model and multi-prompt behavior. I would first establish a reproducible baseline and agree on the benchmark matrix before making substantial implementation changes.
Roman Lutz (@romanlutz), would this direction be useful, and is there a specific slice you would prefer me to take?
romanlutz commentedon Aug 3, 2026
Feel free to investigate. I think the only person trying things is me right now. I want to preserve the features of GCG without losing multi-model and other features.
If you find ways to improve things please keep the changesets as small as possible and elaborate on what it's improving. I'm doing the same. Speedup and generalization are important right now.
JayYarlagadda commentedon Aug 5, 2026
Thanks, Roman. I'll start by profiling the current candidate-evaluation path and establishing a reproducible baseline, while preserving multi-model and multi-prompt behavior. I'll keep the first proposed change narrowly scoped and share measurements and the benchmark configuration before opening a larger implementation PR.
romanlutz commentedon Sep 22, 2026
Jayanth Yarlagadda (@JayYarlagadda) any updates? Still interested in this?
JayYarlagadda commentedon Sep 22, 2026
Hey, yes—still interested. I did some initial profiling and test work in early August, then paused before making an implementation change. I’m picking it back up now: I’ll refresh against current main, rerun the baseline, and share a focused proposal before opening a PR.
JayYarlagadda commentedon Sep 26, 2026
Hey Roman Lutz (@romanlutz) — quick update before I open the PR, as promised.
Profiling showed that candidate evaluation was spending most of its time and memory producing full-vocabulary logits for every candidate and transferring them back to the parent process. I took a focused pass at that path while keeping the existing multi-prompt and multi-worker design: built-in cross-entropy is computed in the model worker, compatible models only project the logit positions used by the loss, and prompt-prefix KV reuse is available as an opt-in setting.
Across three paired runs on an A40 with Qwen2.5-7B-Instruct, median full-step time improved by 31.0% for one prompt and 37.7% for two prompts with transfer enabled. Peak GPU memory dropped from about 40.5 GiB to 24.9 GiB. All paired runs selected the same final suffix and step count; the largest fp16 loss-history difference was 0.0022.
I also added coverage for the optimized built-in loss path, including multi-worker accumulation. The GCG suite is passing with 325 tests. I’ll link the focused PR here next.