Stop Scraping My Git Forge
gabrielsimmer.com
gabrielsimmer.com
Set up something (heh, maybe even an AI model) to generate plausible but broken fake source code when you're scraped by AI bots.
GIGO
My second thought: Surely no company is stupid enough to train an AI on data that hasn't been checked and verified good by a real human expert.... Then I remember that Google just assumed that Reddit is reliable.
In effect, your attack spam AI will be a transfer learning provider for the scraper AI, and you're giving free training!
Very cool! As someone who wants to see and maybe even build self sustaining rogue AIs inhabiting random niches in the information ecology, it would be cool to see corporate scraper AIs eventually run off their rails because we gave them too much attack spam!
It seems like it'd be better to populate the robots.txt and request that all bots not scrape this site -- as-is they're still pounding away against the firewall and it'd be cleaner if they just went away. If it turns out they don't respect robots.txt, you can escalate from there.
Nobody can be blamed for not having one.
> Corporations stealing, or using work without permission, for their machine learning models has been a discussion for a long while at this point. In general, I side with the creators or artists having their work taken.
I don't get it. How can corporations be stealing anything from an open source project? Further, it seems like several of the repos are based on other people's code. What code of the author's do they have reservations against training AI on?
The code is published using some license that allows some use cases and prohibits other. For example GPL is famous for being viral. Using it to teach a LLM that spits "unlicensed" code is basically laundering copyright.
I can read a book, learn about the concepts, then use or repeat those concepts. The AI can do the same. But is it really "learning"? It may be just spewing out pieces of the content without any understanding. In which case it's a copyright violation, right?
I'll argue that's not enough reason to grant the AI the right to learn from copyrighted materials, because the right to learn is intimately wrapped up in human needs, while AI rights are focused on corporate and societal needs, which are currently being decided.
The human right to learn
You're a human and you need the right to learn from copyrighted material in order to not suffer Ignorance, in order to serve Society, because it's not feasible to charge you a rent for ideas you get from a book, and because it would cause suffering and indignity if we tried to charge you for your own thoughts.
With an AI, it's less clear it needs the right to learn from copyrighted material, because it's not a person that can suffer, and because the scale of its usage of copyrighted materials - and its potential harm to copyright holders - is about 5 orders of magnitude greater than that of any single person, and is potentially greater than the collective impact of human learners.
Let's lay out the reasoning:
1. No AI Suffering (yet). The AI doesn't suffer from ignorance and isn't (yet) a real person. So it needs no personal right to learn.
2. Potential Social Harm. AI could pose a much greater threat to copyright holders than the sum total of all human learners. We'll be weighing this potential in court, and it's currently not clear how the matter will be decided. Copyright holders could be awarded protections against corporations training AIs.
3. Ease Of Accounting. AIs and their training materials can be audited, unlike a human mind. So we have a technical means to restrict the AI's ability to learn from copyrighted materials.
4. No Harm in Accounting. Since the AI is not yet a person, and suffers no indignity or invasion of privacy from being audited, it's safe to audit and regulate the AI's training materials.
In summary it's important to remember that human rights exist because humans need those rights to enjoy life in a dignified way as persons, and because those rights benefit Society.
When we decide the question of AI rights, it's important to remember it's not a person, and any rights it has will be provided on the basis of societal benefit alone. It's not yet clear which AI rights will benefit Society here. It's quite possible that we will strengthen copyrights against unlicensed AI use, at least to some degree beyond the current "free-for-all".
I'll very naively assume that Amazon, OpenAI, Google and others check licenses before feeding data to their models. I'll stop assuming that when one of these companies admit that they don't actually care and it's not profitable for them to respect licenses.
You might insert a "sleeper/activator" pair. The sleeper is a watermark that the AI will recall verbatim. To make it provide the sleeper, we give the AI a special activator prompt.
Demonstrating that your public repo successfully poisoned the AI with a watermark could become a court admissible proof of unauthorized scraping.
For an LLM that would include:
1. Training data
2. Training code and metrics
3. Hyperparameter settings
4. Output weights
Anything less is really just misinterpretation of the nature of open source's provision for studying, modifying, and recompiling the LLM
Tldr; these companies MUST make the LLM into AGPL and provide all necessary codes as described above. Companies that refuse this will be raided by open source copyright trolls, if we're lucky and a little mischievous.
IANAL and this hasn't really been sorted out by the courts at all yet, but you could certainly make an argument that AI generating code based on what it has scraped is a derivative work. I am yet to see an AI bot that outputs licenses and copyright notices with it's generated code.
Was the AI/engineer prompted in a way designed to elicit a close derivative of Open Source work, or is the task context novel and focused on solving a unique problem?
Is the resulting system close in design, architecture and specific snippets? Or is it very different?
I've seen academic AI that writes science papers, quoting and citing Source papers. This is usually done by using RAG to locate papers and extract specific quotes.
Now imagine a rag assisted open source coding system that can pull code from all over GitHub. It may vendor and modify a certain dependency. But it will also keep a copy of the original code's license, as requested by the license. If the AI eventually rewrites that dependency from scratch with a clean room implementation, then it can drop the license.
It's tricky. If a botnet is doing the scraping, the requests will come from different addresses, each of those doing things at a reasonably slow rate as to not alert suspicion.
[1]: https://developer.amazon.com/amazonbot#how-can-i-control-wha...
I also do not trust Google only crawls what is allowed in robots.txt. Maybe they only use the data allowed in public use, but I have no faith that they don't have crawled data in their version of shadow profiles.
I do not trust bigTech at all, and for those that do, I really don't understand why you do.
states
> Amazonbot respects standard robots.txt rules.
IDEA: What you could do is instantly ban anything with "bot" in its agent string, which accesses your site without having probed robots.txt first.
That's how robots.txt could be useful, whether you have one or not. Anything which doesn't even bother fetching it is rude garbage.
There is a lot of really good reasons to not host public snapshots, but primarily when a docker build script includes your site it can get hammered hard.
At some point people have to make a choice to either give something away libre, monetize your time in other ways, or go closed ecosystem.
Amazon servers are usually not "normal" users, and a black-hole of certain IP blocks is highly advisable in some circumstances.
gives
https://webmasters.stackexchange.com/questions/144715/how-do...
as, like, the 3rd result, which would have introduced the author to robots.txt. I don't have a mastodon account to message the author about it directly, and no other contact info is listed, unfortunately.