Super interesting work. Do you have thoughts how to leverage this to create a deck builder AI that would also simulate games? The major problem here is that the search space for MTG is amazingly vast. I've seen this effort previously, pretty exciting stuff: https://www.youtube.com/watch?v=Xq4T44EvPvo
> https://www.youtube.com/watch?v=Xq4T44EvPvo Why would he need to write a game simulator from scratch? Surely there are OSS versions which are "good enough" ? (disclosure: not a MtG expert)
Fine-tuning Mistral 7B on Magic the Gathering Draft
81–90 of 101 posts
Re: Fine-tuning Mistral 7B on Magic the Gathering Draft
#82Re: Fine-tuning Mistral 7B on Magic the Gathering Draft
#83It's not the most revolutionary change to our daily lives, but I do genuinely look forward to playing against bots that have interesting play styles for games like Magic: the Gathering. I think this is a clear case where it could drastically improve the ability for the R&D team to come up with and test new mechanics at different levels of play.
Re: Fine-tuning Mistral 7B on Magic the Gathering Draft
#84I was actually just looking into fine-tuning an LLM for Magic: The Gathering this week -- I've been building a small card-similarity browser using semantic embeddings of cards to find functionally or flavorfully similar cards.
I've just been using InstructorXL, but either Instructor doesn't have enough innate knowledge of the game, or else I need to work on better prompts, but so far I've tried 9 different prompts, and none of them seem to perform very well for generating embeddings:
https://github.com/HanClinto/MtgMatrix/blob/main/data/create...
So my next step was to try and download a dataset of similar cards (I have some ideas on this), and I was trying to see if I could use this to do triplet-loss training of a large embedding model or something.
Aaaaand, that's as far as I've gotten. I haven't actually figured out _how_ to hook all of that up, but your post is extremely inspirational for me. Thank you for posting this!!
Re: Fine-tuning Mistral 7B on Magic the Gathering Draft
#85How is the fine tuning actually performed? They have the data of drafts, and a prompt. But what does one do with it, more concretely?
High level it's basically: 1. Generate a lot of text examples that look like this: https://gist.githubusercontent.com/davidhershey/f57d0b19563f... 2. The model is effectively trained to predict the next token based on the previous tokens in each of these examples, which has the side effect here of teaching it to make a draft pick based on the contents of a pack. Nothing too fancy, just next word prediction more or le…
Re: Fine-tuning Mistral 7B on Magic the Gathering Draft
#86I think Yahoo fantasy sports and others in the space are doing amazing work on this idea. I wonder if an LLM is even necessary for this, it’s mostly maths. Analyze past winning decks and made decisions based on performance.
Re: Fine-tuning Mistral 7B on Magic the Gathering Draft
#87I like how it identified that you haven't committed to either white or blue yet. It was aware of deck composition and not just going for the jugular. Keep tuning. It could also be Human-bias because you also played the hand. Have someone else draft against your LLM and then you play it and see if it's the same. Statistically it should match given enough games.
Re: Fine-tuning Mistral 7B on Magic the Gathering Draft
#88Earlier quoted context omitted.
That lines up with my experience- for high-stakes decisions, they rarely give me a great answer. But for low stakes decisions, they do well at giving me a good enough answer. For example, I've been using them to help find gifts for friends and children this month. I don't need the best choice to solve the problem, just a good one.
How much additional calculation occurs in high-stakes decisions by individuals. Also what is the variability in quality of high stakes decisions in humans? I'm guessing LLM decision is rather average, but that the LLM has no easy way of spending the extra time to gather information around said high stakes decisions like a human would.
With high-stakes decisions, you're surrendering the decision-making power to the AI because you don't understand the output well enough to verify it.
Basically, and AI can give ideas but not advise.
Re: Fine-tuning Mistral 7B on Magic the Gathering Draft
#89Super interesting that drafts can be represented with LLMs. The best performing draft AI's I've seen leverage representation learning in some form. See: https://arxiv.org/pdf/2107.04438.pdf
Re: Fine-tuning Mistral 7B on Magic the Gathering Draft
#90I think Yahoo fantasy sports and others in the space are doing amazing work on this idea. I wonder if an LLM is even necessary for this, it’s mostly maths. Analyze past winning decks and made decisions based on performance.
MTGA and MO development team do a lot of work to put card effects into if-then rule, but unfortunately their work is not visible to the players :)