• wonderingwanderer@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    1
    ·
    2 days ago

    If it’s flagged as “assisted by <LLM>” then it’s easy to identify where that code came from. If a commercial LLM is trained on proprietary code, that’s on the AI company, not on the developer who used the LLM to write code. Unless they can somehow prove that the developer had access to said proprietary code and was able to personally exploit it.

    If AI companies are claiming “fair use,” and it holds up in court, then there’s no way in hell open-source developers should be held accountable when closed-source snippets magically appear in AI-assisted code.

    Granted, I am not a lawyer, and this is not legal advice. I think it’s better to avoid using AI-written code in general. At most use it to generate boilerplate, and maybe add a layer to security audits (not as a replacement for what’s already being done).

    But if an LLM regurgitates closed-source code from its training data, I just can’t see any way how that would be the developer’s fault…

    • sem@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      2
      ·
      1 day ago

      Pretty convenient.

      This is how copyleft code gets laundered into closed source programs.

      All part of the plan.

      • wonderingwanderer@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 day ago

        How would they launder it? Just declare it their own property because a few lines of code look similar? When there’s no established connection between the developers and anyone who has access to the closed-source code?

        That makes no sense. Please tell me that wouldn’t hold up in court.

        • ricecake@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          12 hours ago

          I believe what they’re referring to is the training of models on open source code, which is then used to generate closed source code.
          The break in connection you mention makes it not legally infringement, but now code derived from open source is closed source.

          Because of the untested nature of the situation, it’s unclear how it would unfold, likely hinging on how the request was formed.

          We have similar precedent with reverse engineering, but the non sentient tool doing it makes it complicated.

        • lagoon8622@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          3
          ·
          19 hours ago

          Please tell me that wouldn’t hold up in court.

          First tell us how much money you have. Then we’ll be able to predict whether the courts will find in your favor or not

        • sem@piefed.blahaj.zone
          link
          fedilink
          English
          arrow-up
          2
          ·
          19 hours ago

          First of all, who is going to discover the closed source use of gpl code and create a lawsuit anyway?

          Second, the llm ingests the code, and then spits it back out, with maybe a few changes. That is how it benefits from copyleft code while stripping the license.

          Maybe a human could do the same thing, but it would take much longer.

          • wonderingwanderer@sopuli.xyz
            link
            fedilink
            English
            arrow-up
            1
            ·
            13 hours ago

            Wait, did you just move the goalposts? I thought the issue we were talking about was open-source developers who use LLM-generated code and unwittingly commit changes that contain allegedly closed-source snippets from the LLM’s training data.

            Now you want to talk about LLM training data that uses open-source code, and then closed-source developers commit changes that contain snippets of GPL code? That’s fine. It’s a change of topic, but we can talk about that too.

            Just don’t expect what I said before about the previous topic of discussion to apply to the new topic. If we’re talking about something different now, I get to say different things. That’s how it works.

            • sem@piefed.blahaj.zone
              link
              fedilink
              English
              arrow-up
              1
              ·
              4 hours ago

              I was responding specifically to this part

              But if an LLM regurgitates closed-source code from its training data, I just can’t see any way how that would be the developer’s fault…

              showing what would happen when the llm regurgitates open source code into close source projects.

              Sorry if you didn’t like that.