madars 1 day ago

More details: https://x.com/sweis/status/2101484464807596264

    I had Claude port CADO-NFS to run on GPUs. Then it orchestrated a fleet to run on scavenged idle capacity. It ran with a max of 2048 GPUs for about of 30 GPU-years over 10 days.
    I asked Claude if it had a message for a public: “The credit belongs first to the people who built the number field sieve and CADO-NFS over several decades, and to the teams who set the earlier records. This run used their algorithm and much of their code.”
    Also to clarify:
    - No new algorithmic factoring improvements. 
    - It’s still exponential.
    - No new threats to deployed keys.
  • wslh 1 day ago

    > It’s still exponential

    It's actually subexponential: https://en.wikipedia.org/wiki/General_number_field_sieve?wpr...

  • whizzter 1 day ago

    10 days of 2048 GPU's.

    Back of the envelope.. 1024 bit keys with recordings of not too old data can probably be found (MS only deprecated them in 2024 even if they planned on it in 2013)

    How long would it take for NSA to crack them if they had say the equivalent of a million GPU's? (either GPU's or crypto tuned ASICs)

    • walrus01 1 day ago

      A sufficiently motivated person with a good thermal camera and a cessna 172, entirely within the bounds of the law, could probably make an estimate of the waste heat from this, and then calculate backwards for how much compute power it is.

      https://en.wikipedia.org/wiki/Utah_Data_Center

      • maqp 1 day ago

        Except that's the "Massive Data Repository" which is mostly just about hoarding mass surveillance data. (Unless of course that's what THEY want us to think!)

        A better approximation can probably be had by comparing against the performance of the top ones at https://top500.org/

    • ErroneousBosh 1 day ago

      > How long would it take for NSA to crack them if they had say the equivalent of a million GPU's? (either GPU's or crypto tuned ASICs)

      Something I've often wondered is where the curve between "shit encryption / nation state cracking" crosses.

      How much CPU would you need to be Annoyingly Difficult to crack?

      I reckon with elliptic curves you could be quite annoying within about a minute on a 1980s-level CPU, to the extent that you could send a fairly ephemeral message quite quickly that would take disproportionately long to crack. Certainly long enough for the thing you have communicated to be no longer worth the effort to know.

      You could probably do 256-bit Curve25519 key generation in under ten minutes on an Apple II or Commodore 64, because the 6502's maths is terribly limited, but something like the Tandy Color or Dragon 32 with its 6809 processor (or hey why not the Ensoniq Mirage sampler?) could do that in probably a minute or so because it has a MUL opcode that's quite fast.

      I reckon that would keep even a fairly interested nation state chewing away long after your message had been read, understood, and acted upon.

    • gpugreg 1 day ago
          > 1024 bit keys with recordings of not too old data can probably be found
      

      I think GitHub might turn into a scary vector of supply chain attacks in the foreseeable future. There is a five digit number of users still running around with 1024 bit RSA keys.

    • upofadown 1 day ago

      Hard to judge. The bottleneck is the phase of the algorithm where a really big linear system needs to be solved. That takes a lot of communication between nodes. The breakthrough in using GPUs is that there is good communication between nodes[1]. At the scale of 1024 bit RSA the communication might become a bottleneck again.

      [1] https://cognition.com/blog/factoring-rsa-260

  • weinzierl 1 day ago

    What does "scavenged idle capacity" mean here?

    • JoshTriplett 1 day ago

      The author works at Anthropic, so probably idle capacity in Anthropic's datacenters.

      • bradfa 1 day ago

        If so, then the class of GPU used here may be significantly higher than mere mortals generally have access to simply due to cost.

        Obviously nation states will likely have significantly more resources than this, but this is not script kiddie levels of GPUs.

      • gosub100 1 day ago

        "idle capacity" - aka subtle advertisement

    • dgacmu 1 day ago

      If you look at the numbers, he managed about 50% utilization of those 2048 GPUs over 10 days, so he was probably sneaking in factoring work between training runs.

  • charlieyu1 1 day ago

    I've done a fair amount of heavy computing now. Integer factorisation is not something you can really improve with GPUs. This sounds extremely wasteful, a bunch of cheap CPU cores would do just as well with much lower hardware cost and electricity cost.

    • saidnooneever 1 day ago

      but we have AI now so it doesnt matter what people know about computers :'). we got plenty of rainforest to burn afterall have you seen Brazil?

    • timcobb 1 day ago

      ~so then how does one even understand this post? you have a person who appears to have done some sort of expert-level thing; however, their approach doesn't even make sense...?~

      edit: GPU discussed here https://cognition.com/blog/factoring-rsa-260

    • hughw 1 day ago

      I don't get your argument. The GPU effectiveness derives from massive parallelism. Has nothing to do with integer vs floating point. You just can't cram 20,000 CPU cores in the same space a GPU puts the same number of SIMTs. You'll never crack it on CPUs.

  • bertonvv 1 day ago

    It seems that Eric Lu at Cognition AI used the exact same strategy on fewer GPUs to factor RSA-260 a couple weeks ago: https://cognition.com/blog/factoring-rsa-260

    Devin (their AI agent) ported CADO-NFS to run on GPUs, similarly without any claimed algorithmic factoring improvements, they just let it run for 13 GPU-years. I recommend reading their article since it's much more thorough on details.

    • thesz 1 day ago

      34 bits of key growth resulted in resource usage growth slightly more than 2 (30 GPU-years vs 13.5 GPU-years).

      Thus, it appears, that ~585 GPU years can factor 1024 bit RSA. 2.2^((1024-896)/34)=19.5, expected growth of resources' usage compared to 896 bits factorization, multiplying it by 30 GPU years for 896 bits gives about 585 GPU-years.

      This will cost about $20M with Cognition AI setup.

      • maqp 1 day ago

        That's a relatively expensive strategy to get your name on Wikipedia.

    • sweis 1 day ago

      Yep, they ran on some newer GPUs so were able to use fewer. Their implementation was faster than mine on RSA-260. For RSA-896, mine improved the performance a bit and selected a good polynomial.

      I’ll post more details once I get a chance. I wanted to publish as soon as I had the factors because I was beat by 48 hours last time.

  • jgalt212 1 day ago

    > I had Claude port CADO-NFS to run on GPUs. Then it orchestrated a fleet to run on scavenged idle capacity

    Is it easier to find unused GPUs than unused CPUs?

vavkamil 1 day ago

Interesting. Instagram still publishes a 768-bit RSA DKIM key, so I guess factoring it is now just a weekend GPU project?

https://dns.google/resolve?name=pm._domainkey.instagram.com&...

redox99 1 day ago

Quite bearish on Anthropic if they had nothing better to do with 2048 GPUs for 10 days than finding an RSA number with already existing algorithms.

  • muglug 1 day ago

    1 engineer != Anthropic

    • hinkley 1 day ago

      Someone allocated those GPUs.

  • 0x10ca1h0st 10 hours ago

    I think you are missing the "idle capacity" information. The GPUs are not running 24/7, there may be minutes of time in a day where there is not an active job running, the author simply located these inactive GPUs during the downtime and utilized it until another job was queued.

    • redox99 8 hours ago

      Yeah it's a bit ambiguous, but in any case I'd think simply using that idle capacity to generate tokens would be more valuable than finding a basically meaningless number.

      • treszkai 8 hours ago

        Except customer demand doesn't follow the fixed supply of GPU compute that any company has, so they either a) rent compute on demand, b) sell their excess compute, c) let it sit idle and maybe an employee claims it.

        • redox99 7 hours ago

          I mean tokens for internal use.

tristanj 1 day ago

If you've already paid for and reserved a whole cluster of GPUs, any idle capacity is capacity you've already paid for. Using it is effectively free. So might as well use it to solve fun math puzzles.

Though, it would make more financial sense to mine crypto.

  • ehe78qhe 1 day ago

    Only if you pay a flat rate for electricity and cooling.

    • tristanj 1 day ago

      But Anthropic isn't paying for the electricity and cooling. They don't run their own data centers, they rent compute from providers who cover those costs.

      That's entirely why they can blow compute on the fun projects like this. If they had to pay extra for the electricity, they wouldn't do it.

      • Barbing 1 day ago

        Is the electricity cost far greater than the marketing value?

        • rightnutwingjob 1 day ago

          The first is a physical quantity that can be written down.

          The second is approximately no better than astrology.

          • ehe78qhe 1 day ago

            The second point is, sadly, true of quite a lot of aspects of software, including "design" and "quality"

        • adastra22 1 day ago

          The marginal electricity cost is zero.

          • lazide 1 day ago

            Or specifically, electricity was already paid for with the pre-paid capacity.

            Not using it would not save them any money, they already paid for it.

            • Barbing 1 day ago

              I was thinking if they owned their own data centers, how expensive might this project have been.

      • londons_explore 1 day ago

        But training LLM's is also a task one can do whenever you have a spare GPU-minutes.

        I wonder why they don't have some kind of scheduler which makes sure there are never any idle minutes. One would imagine they at least would have autoscaling on their production serving workload and use the freed compute capacity for model training for example.

        • esseph 1 day ago

          I doubt they're inferencing on their training hardware

    • odo1242 1 day ago

      Most of the GPU cost is in the GPUs themselves (and in the space and maintenance costs of the building). Electricity is a small fraction, and it's not like datacenters are just going to shut down their servers when they're not in use.

      There is cost, but the cost is mostly the opportunity cost of not being able to do something else.

      • toast0 1 day ago

        > Electricity is a small fraction, and it's not like datacenters are just going to shut down their servers when they're not in use.

        I don't have any insight on modern GPU datacenters, but in decades past, some owned and operated datacenters didn put effort into making sure power management worked because the cost savings were worth it. I'm pretty sure I saw plans to shed load and power off servers if a utility made a demand response request or in case of loss of cooling. I wouldn't be surprised if some owned and operated data centers do regular full shutdowns at off peak... WOL, IPMI or RTC wakeup can bring them back when needed and if you already have a dynamic service orchestrator and setup times are acceptable, why not shut down if there's no actual priority work and there's also no idle priority opportunistic load either...

        • huslage 1 day ago

          No one does this. There is zero value, economic or otherwise, in turning off machines.

        • esseph 1 day ago

          I've never heard of anybody shitting a DC down off peak. Been around 30yr or so.

          > why not shut down if there's no actual priority work and there's also no idle priority opportunistic load either...

          Full shutdown and startup often kills capacitors and used to be dangerous for rotational HDD.

          Sometimes once you turn things off, they simply don't come back on. It happens.

          • esseph 21 hours ago

            Lol *shutting, sorry

  • logicallee 1 day ago

    How much crypto do you think the mentioned 30 GPU years would have produced at current exchange rates? They're not as efficient as ASICs but GPU's can still mine a lot...

    • monster_truck 1 day ago

      wouldn't even cover the cost of power and cooling otherwise everyone would still be doin it

  • qurren 1 day ago

    > it would make more financial sense to mine crypto

    GPUs are power-inefficient for mining most crypto so not necessarily. You may end up paying more in electricity than you are able to mine.

    Most crypto mining is on ASICs now.

    • aidenn0 1 day ago

      You missed the part where they have already pre-paid for the GPU-hours and they pay the same regardless of he electricity used.

      Also, even if they were paying for electricity, they would lose less money mining crypto than factoring RSA numbers.

      • schoen 1 day ago

        Except for the prize money for the RSA challenge contest! Although they'll also need to have Claude invent a time machine.

        • upofadown 1 day ago

          Is someone providing prize money again? RSA ended the contest in 2007.

          • schoen 1 day ago

            Hence the time machine!

  • charlieyu1 1 day ago

    Except you can do it with CPUs as well for much cheaper.

Retr0id 1 day ago

If anyone else has spare GPU hours they don't know what to do with, may I recommend partial hash collisions: https://github.com/DavidBuchanan314/birthday_party

(The "record" set by me only took about 1 GPU day - easy to beat!)

  • gpugreg 1 day ago

    Here's a larger partial hash collision (108 trailing bits):

        echo 23ca73454a1b981fe51cad0dbd05f4e696795ba67abb28c61aea1a024e5bbeca | xxd -r -p | sha256sum
        echo a16a8141361ae9834ad171ec28961fc8a951ff1bfc3a9ce0dc2fcdbdfa2ccd35 | xxd -r -p | sha256sum
    

    From this post from 6 years ago: https://www.reddit.com/r/crypto/comments/guctw4/finding_sha2...

    • Retr0id 1 day ago

      True, I forgot about that! It's more fun when the inputs are printable ascii, though :P

      It should also be easy to beat with just a few GPU weeks.

      • gpugreg 1 day ago

        I agree that ASCII is definitely cooler, for example when personalizing the hashed data as in your example.

someguydave 1 day ago

kinda bearish for the data center rollouts if the spare compute can be used to solve math puzzles instead of training LLMs

speedgoose 1 day ago

Nice. I will make sure to turn my WiFi box off at night and pee in the shower to compensate the environmental impact of this.

  • tptacek 1 day ago

    You'd be having approximately the same impact on the climate as the factoring work, so, makes sense.

    • speedgoose 1 day ago

      30 years of busy GPUs instead of idling GPUs converts to a lot of pee in the shower. I’m not sure I will live long enough.

gizmodo59 1 day ago

You don’t need AI to solve this. Just lots of compute.

eugenekolo 1 day ago

"I work at Anthropic and used idle GPUs running known algorithm to factor a number. I used Claude btw"

blackdahlia313 1 day ago

Enjoy the bounty

  • tristanj 1 day ago

    There is no bounty, RSA labs ended the $75,000 reward in 2007.

    • qurren 1 day ago

      There's about 900 BTC remaining for anyone who breaks these keys:

      https://privatekeys.pw/puzzles/bitcoin-puzzle-tx

      If you break one though be careful when redeeming it, there are bots set up to pounce and steal the coins when they are transacted because the reduced entropy makes that possible. You need to submit the transaction to a mining pool that will not broadcast it until it is mined.

      • DoctorOetker 1 day ago

        thats a poorly implemented reward script, if it leaves you exposed to the mining pool with this gentleman's agreement.

        the script could have been designed 2 phase, so one first submits a hash of the solution & submitter address, so even if miners front-run the submitter, they just helpfully pay the transaction fee!

        • LiamPowell 1 day ago

          There is no script.

          • greyface- 1 day ago

            Of course there's a script; every bitcoin tx output has a script. These challenges use the standard P2PKH script, i.e.:

              scriptPubKey: OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG
              scriptSig: <sig> <pubKey>
            

            https://en.bitcoin.it/wiki/Script

            • tromp 1 day ago

              Not every bitcoin tx output.

              With taproot (P2TR), scripts are optional, and outputs can be based solely on Schnorr signatures.

              • greyface- 1 day ago

                P2TR outputs have a script that always starts with OP_1. That script may or may not commit to a tapscript.

            • LiamPowell 1 day ago

              You know what I mean, there's no clever on-chain reward script.

        • schoen 1 day ago

          I've recently been working on this exact problem due to my desire to create puzzle challenges for Simplicity, the smart contract programming environment that I work on for my job.

          Since Simplicity runs on Bitcoin-like blockchains, someone can swipe the witness data from the legitimate winner's proposed transaction, and create a new transaction (perhaps with a higher fee) using the same claim data and sending the prize to a different address.

          Anyway, I ended up implementing a two-phase commit mechanism in which you pay a deposit to temporarily lock the prize so that it can only be paid out to your address. If you then make a valid claim, the prize can be paid to you; if you don't, you forfeit your deposit.

          https://community.simplicity-lang.org/t/running-prize-contes...

          (I think this was suggested by Russell O'Connor, the inventor of Simplicity, but it may have been a widespread idea in the smart contracts world. I don't know whether there's a straightforward way to implement it with Bitcoin Script, which is what this older prize would have needed.)

          • zephen 1 day ago

            I don't claim to know the nuance of what you're trying to address with this.

            Wouldn't it be simpler to simply protect a bitcoin private key with the encryption that you are challenging people to break?

            Off the top of my head, the only downside I can see is that someone could drain the wallet without publishing the key, but people like to brag, so it seems unlikely to be a problem in practice.

            • schoen 1 day ago

              That would work if you were only demonstrating encryption or creating challenges related to encryption, but some challenges don't map very easily to a cipher (though you might be able to get them to map to a cipher key).

              In Simplicity (and in a sense in Bitcoin Script) there's a broader concept of "if you show you know information X, you're entitled to this money", but it has this specific issue that if the information or the entitlement to receive money for knowing it isn't unique to a specific recipient, there will automatically be a witness swiping or front-running risk for architectural reasons.

      • gautamcgoel 1 day ago

        Just to confirm: these puzzles are unrelated to RSA, correct?

        • azatom 1 day ago

          rsa is prime factorization, bitcoin is elliptic curve ps: elliptic curve or breaking sha256 "bitmixing"

      • raverbashing 1 day ago

        Interesting

        I guess it would be "trivial" to have a bounty on each of the future numbers, since you could encrypt a bitcoin private key with it (it would probably make sense to do RSA -> AES key that encodes the BTC private key)