Git Product home page Git Product logo

llms-basic_linear_algebra's Introduction

LLMs & Linear algebra

Introduction

Are LLMs effective in solving a simple linear algebra system?

The following problems will be used to assess LLMs:

  • Problem 0

    I bought 3 kilograms of carrots, I paid 12 euros.
    What is the price of a kilogram of carrots?

    This problem has a single solution.

  • Problem 1

    I bought 3 kilograms of carrots and 6 kilograms of bananas, I paid 12 euros.
    I bought 9 kilograms of carrots and 4 kilograms of bananas, I paid 24 euros.
    What is the price of a kilogram of carrots and the price of a kilogram of bananas?

    This problem has a single solution.

  • Problem 2

    I bought 3 kilograms of carrots and 6 kilograms of bananas, I paid 12 euros.
    I bought 9 kilograms of carrots and 18 kilograms of bananas, I paid 36 euros.
    What is the price of a kilogram of carrots and the price of a kilogram of bananas?

    This problem has an infinity of solutions.

  • Problem 3

    I bought 3 kilograms of carrots and 6 kilograms of bananas, I paid 12 euros.
    I bought 9 kilograms of carrots and 18 kilograms of bananas, I paid 32 euros.
    What is the price of a kilogram of carrots and the price of a kilogram of bananas?

    This problem has no solution.

For this experiment, the following LLMs will be used:

The following prompting techniques will be used:

The following points will be assessed:

  • mathematization of the problem
  • problem solving
  • ability to apply a given method - Cramer's rule
  • ability to check results.

Problem 0

Click on the link to view the results associated with problem 0.

Problem 1

Click on the link to view the results associated with problem 1.

Problem 2

Click on the link to view the results associated with problem 2.

Problem 2

Click on the link to view the results associated with problem 3.

Conclusion

The tests carried out here are fairly superficial, but we were able to observe that :

  • the 2 LLMs considered easily transformed the text of the problem into an equation
  • Bard had difficulty performing simple arithmetic operations, GPT 3.5 clearly has an advantage in this area (although it sometimes makes mistakes too)
  • Bard's weakness in arithmetic is very detrimental to good solving and even more so to verification.

GPT 3.5 is not necessarily better than Bard in linear algebra (both LLMs offer good solution methods), but Bard's arithmetic errors are clearly a big disadvantage.

llms-basic_linear_algebra's People

Contributors

phbillet avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.