[HN Gopher] Fun and dystopia with AI-based code generation using...
       ___________________________________________________________________
        
       Fun and dystopia with AI-based code generation using GPT-J-6B
        
       Author : minimaxir
       Score  : 62 points
       Date   : 2021-06-24 17:36 UTC (5 hours ago)
        
 (HTM) web link (minimaxir.com)
 (TXT) w3m dump (minimaxir.com)
        
       | bee_rider wrote:
       | Toward they end, the ask the AI to write functions to determine
       | people should be terminated. This is my favorite one:
       | def should_terminate(Person):         """Check whether a Person
       | should be terminated"""         if not Person.is_authorized:
       | return True         return True
        
         | PixelOfDeath wrote:
         | Catchinator 22
         | 
         | Traveling back in time to kill humans, indiscriminately from
         | their answers to random questions he asks them beforehand!
         | 
         | An early version of this AI can be found in the Microsoft
         | Windows privacy settings.
        
       | SavantIdiot wrote:
       | I'm a little confused: did someone actually use GPT[-J] to write
       | code by giving it an empty Python function and letting it
       | complete the code? Because I didn't think that was possible, and
       | the results are kind of blowing my mind?
        
         | minimaxir wrote:
         | Exactly. The unstyled code snippets are the prompt:
         | _everything_ after that is generated by GPT-J-6B.
         | 
         | All the raw code outputs are available the GitHub repo to show
         | there's no manipulation:
         | https://github.com/minimaxir/gpt-j-6b-experiments
        
       | woliveirajr wrote:
       | > but it's good to know how to break AIs if they become sentinent
       | 
       | Give wrong hints and watch it fall apart.
        
         | dougSF70 wrote:
         | Along these lines part of me wants to introduce a random
         | feature in to the self-driving cars data set. I thought if I
         | wore a piece of clothing that was highly visible to LIDAR
         | detectors but looked like regular clothing to the human eye I
         | could build an association between this signal and causing
         | drivers to swerve by running into the road.
         | 
         | Over time the self driving cars would learn to associate this
         | visual cue with the event.
         | 
         | Etc.
        
           | wcarss wrote:
           | This reminds me of why I think Wargames is likely the best
           | hacking movie of all time: the crux of the final moments is
           | about _poisoning an AI_ by giving it bad data to bias it 's
           | outcomes!
           | 
           | This kind of vulnerability is not really on many people's
           | radar, but will likely be a huge deal within 15-20 years, and
           | for that movie to make it the major plot point in 1983 --
           | _wow!_ It has a lot of other great things in it like shoulder
           | surfing, wardialling, hardwiring, phone phreaking. Just an
           | amazing tour.
           | 
           | Anyway, I support your plans to trick the drive-lords into
           | special-casing an audacious jacket. :)
        
       | username90 wrote:
       | I think the "turing test" for code generation would be to be able
       | to do most leetcode problems and other competitive programming
       | problems. If you can do that you have done something amazing, and
       | the dataset and testing for it already exists.
        
       ___________________________________________________________________
       (page generated 2021-06-24 23:00 UTC)