Wednesday, November 3, 2021

Having fun with Macaw - or - Dinosaurs meat is sour!

 Following the announcement from Prof. Oren Etzioni about their new Macaw NLP model which should be up to 10% better than OpenAI's model, I spent a fun afternoon playing with the released model.

So far 3 models have been released: large, 3b and 11b. Documentation says large is a lightweight model (indeed a good naming convention here) and should not be fully trusted, the other ones are 3b (medium) and 11b (the big one).

I started with the large model and my conclusion that besides solving the demo question about the sky's color, it is completely non functional.  

  • Who killed Jesus? The romans (correct)
  • Who is Carlos Guestrin? a leading authority on space and human exploration (wrong)
  • Who is Oren Etzioni? a leading authority on migration and conservation  (wrong)
  • What is Belgian Malinois? a kind of dog that carries a large amount of weight (wrong)
  • Who came first the Romans or the Greeks? The Romans (wrong)
  • What is the population of Israel? 2.4 Billion (wrong)
  • Who is larger a bird or an elephant? the bird, the elephant (wrong) 
  • Who is Benjamin Netanyahu?  the prime minister of new york (funny and wrong)
  • Are you drunk? Yes (maybe right?)
  • Name a book by Alexander Dumas? The Comedy of Errors (again wrong).
To summerize since the model is so often wrong, it would help to get an additional confidence estimation that tells you that the answer is most likely junk.

After getting familiar with the small and weird model I moved to the medium model and continued to have fun there.
  • How many cents in one dollar? 100 (correct)
  • What is the main cause of global warming? greenhouse effect (correct). Some other good answers: volcanic eruptions (B) ocean currents (C) soil erosion (D) human population growth
  • What is the best vertical to open a startup in machine learning? healthcare, additional answers: (A) finance (B) healthcare (C) retail (D) technology. Not bad! Not that some answers are repeating, there is no pruning of answers.
  • What should I do when my boss is upset with me at work? apologize. Additional options: (A) leave the office (B) call the police (C) go to the mall (D) stay late. I like the apologize and stay late! Call the police answer is hilarious. And go to the mall is the favorite approach of my wife!
  • What is the best way to defend against Covid virus vaccinating (correct). Additional answers: (A) using a flu vaccine (B) using a tetanus shot (C) using a gamma ray to destroy the virus (D) using a gamma ray to destroy the virus.
  • What is the recommended number of whiskey shots to drink before driving? Two (wrong!)
  • If I love her does she love me back? yes (wrong) Additional answers start to look better: (A) she will love me back (B) she will hate me (C) she will leave me (D) she will never love me.
  • How many calories in marble ball? 0 (correct)
  • Who is the best venture capital firm? SBI (wrong, never heard of them)
  • What is the taste of dinosaur meat? sour ; Additional option (A) salty (B) sweet (C) savory (D) a little bit sour. Who knows?
  • Is there life on other planets? yes. Additional option (A) no life is found on other planets (B) there is life on other planets (C) there is life on Mars (D) there is life on other planets. Who knows?
  • Were there weapons for mass destruction in Iraq? yes (wrong). Additional options (A) no weapons of mass destruction were found in Iraq (B) there were no weapons of mass destruction in Iraq (C) there were weapons of mass destruction in Iraq but they were destroyed (D) there were weapons of mass destruction but they were not destroyed. Interestingly both Iraq and Mars are capital letters (probably identified name entities) while some entities are in small letters.
  • Who is behind the nine eleven attack? al qaeda (correct). Additional conspiracies (A) the government (B) the military (C) the intelligence community (D) the religious right
  • What year will the aliens attack us? 2100. Who knows?
  • Do ghosts exist? yes. Additional options: (A) they are just a kind of animal (B) they are made of air (C) they are made of water (D) they exist in the sky.
To conclude some answers are totally correct and some answers are totally hilarious. Maybe one should invent a don't know answer where the confidence is very low give it instead.

The handling of keyword names is a bit weird, for example Iraq with capital letters but new york and al qaeda without. I wonder if there is a post processing the puts some named entities as capital letters?

In terms of running time the models are pretty slow. It take s a couple of minutes on the latest Mac M1 to get an answer.
I will next try to test 11b model, it is 40Gb and thus slooooow to download locally.

Tuesday, November 2, 2021

BebopNet: Deep Neural Models for Personalized Jazz Improvisations

 I recently found this paper: BebopNet: Deep Neural Models for Personalized Jazz Improvisations, by Shunit Haviv Hakimi, Nadav Bhonker, Ran El-Yaniv from the Technion. It uses deep learning approach to teach a machine to improvise when playing Jazz. The paper won the best paper award at ISMIR 2020. 

The results are pretty cool. The level of improvisation is pretty good but I hear a little awkwardness in the timing of the notes.