Crazy exchange sacrifices

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Crazy exchange sacrifices

Post by michiguel »

In this postion (Gaviota vs Tinker, FICS) Gaviota played f4!?!?! with a complete disregard for the exchange thinking that there is a positional compensation for it.

[D]1r1qr1k1/1pp2pp1/p2b1n1p/3Pn3/1P1B4/P1NbN1P1/R4PBP/3Q1RK1 w - - 6 19

Interestingly, Gaviota built up the postion to reach

[D]1r1qrnk1/1pp2ppn/p6p/3PP3/1P1B3P/P1NB2P1/4R1K1/1Q6 b - - 2 28

Black pieces are completely immobilized and gaviota went on to win. This is becoming a very common pattern. Gaviota likes to sacrifice the exchange when she thinks there is positional compensation. I believe that this is part of an unbalanced evaluation, but it is making a heck of entertaining games. But... sometimes, it goes down on flames.

Look at this against Toga when it played f5!?

[D]r2q1rk1/3b1ppp/p2p2n1/1ppP4/P3PP1b/5N1P/1PB3P1/R1BQR1K1 w - - 3 19

There is something interesting here. Rooks will have no files to play and white managed to dominate the board and reached the following position (against Toga, which is no pushover). Look at the game below (I was so happy when it played 24 a4! and 30 Be4!)

[D]2b1r2k/3q1prp/p7/Pp1PpPP1/1Bp1B2P/4Q2K/1P6/3R4 w - - 7 42

But gaviota was outsearched trying to opening the position and lost. Both games were one night after the other (15 min + 3 sec inc).

The problem is sometimes the exchange sacrifice is not well justified and It is going to be a challenge to tune this without sacrificing excitement. Positional sacrifices are the most fun to watch, but gaviota sometimes sacrifices like Petrosian, and sometimes like Patzerian.

Here are the games:

[Event "ICS rated standard match"]
[Site "69.36.243.188"]
[Date "2009.08.30"]
[Round "-"]
[White "Gaviota"]
[Black "TinkerFICS"]
[Result "1-0"]
[WhiteElo "2484"]
[BlackElo "2512"]
[TimeControl "900+3"]

1.d4 d5 2.c4 e6 3.Nf3 Nf6 4.g3 dxc4 5.Bg2 a6 6.O-O Nc6 7.Nc3 Rb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on City, Philippines

Re: Crazy exchange sacrifices

Post by Eraserheads »

Cool games from Gaviota! It is interesting to see yet another engine who plays with such 'disregard' for its material count! In my observation engines who have this kind of style and understanding have the potential to become top class, exciting performers on the board. Are you planning to develop Gaviota even further in this direction?

Where can I find the latest Gaviota?
swami
Posts: 6640
Joined: Thu Mar 09, 2006 4:21 am

Re: Crazy exchange sacrifices

Post by swami »

Eraserheads wrote:Where can I find the latest Gaviota?
https://www.msu.edu/~ballicor/gav/
BubbaTough
Posts: 1154
Joined: Fri Jun 23, 2006 5:18 am

Re: Crazy exchange sacrifices

Post by BubbaTough »

Cool games from Gaviota! It is interesting to see yet another engine who plays with such 'disregard' for its material count! In my observation engines who have this kind of style and understanding have the potential to become top class, exciting performers on the board. Are you planning to develop Gaviota even further in this direction?
This is probably because crazy sacrificing programs usually have eval functions written from scratch by strong chess players :). Those that borrow eval ideas and weights from other programs end up with something well tuned not to sacrifice too much, and those that are not as strong at chess often underweight the factors that would cause one to sacrifice.


Miguel,

I have found tuning this kind of issue is very difficult. I had a version of LearningLemming that would do positional queen for rook sacrifices....awful but mesmerizing games. The last version sacrificed pieces for pawns way too often. My 2nd to last tournament for example it sacrificed a piece in over half its games. Tuning this stuff out is so tough because it is rare there is just one factor you can change...instead you have to change lots of things. For example, if you boost the value of a rook, it changes its opinion of 2 rooks vs. a queen....not just exchange saqs. If you decrease the value of minor pieces it starts unjustified piece saqs for attacks or endgame passed pawns. If you increase the value of a rook but decrease the value of rook activation, it may stop developing the rook well. Anyway, good luck. If I spot any good / bad exchange saqs in our ICC games I will message you (to help you build a test set, which is usually my first step when trying to tune this type of issue).

-Sam
jdart
Posts: 4366
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

Re: Crazy exchange sacrifices

Post by jdart »

It's a difficult issue but not insoluble. Larry Kaufman's article:

http://home.comcast.net/~danheisman/Art ... alance.htm

has been the starting point for many programmers, although I don't think it is 100% reliable.
User avatar
Graham Banks
Posts: 41423
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Crazy exchange sacrifices

Post by Graham Banks »

swami wrote:
Eraserheads wrote:Where can I find the latest Gaviota?
https://www.msu.edu/~ballicor/gav/
Time for a new one. Hint hint Miguel. :wink: :P
gbanksnz at gmail.com
User avatar
fern
Posts: 8755
Joined: Sun Feb 26, 2006 4:07 pm

Re: Crazy exchange sacrifices

Post by fern »

Miguel:
Tu programa parece realmente interesante y creo que lo voy a descargar...si encuentro dónde. ¿Está disponible en algún lado?
Abrazos desde el otro lado de la cordillera or whatever
Fern
BubbaTough
Posts: 1154
Joined: Fri Jun 23, 2006 5:18 am

Re: Crazy exchange sacrifices

Post by BubbaTough »

jdart wrote:It's a difficult issue but not insoluble. Larry Kaufman's article:

http://home.comcast.net/~danheisman/Art ... alance.htm

has been the starting point for many programmers, although I don't think it is 100% reliable.
I think the issue is he has a host of other factors (center control, mobility, king safety etc.) that add up to the difference between rook and bishop faster than he would like. Kaufman's stuff does not really address that. Generally there is no quick fix for that kind of problem.

-Sam
BubbaTough
Posts: 1154
Joined: Fri Jun 23, 2006 5:18 am

Re: Crazy exchange sacrifices

Post by BubbaTough »

Are you also getting a lot of other sacrifices, like pawn sacrifices, or 2 pieces for a rook, or bishop+rook for queen? If not, then my assumption might be wrong, and you may have some serious bug or something.

-Sam
User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: Crazy exchange sacrifices

Post by michiguel »

BubbaTough wrote:Are you also getting a lot of other sacrifices, like pawn sacrifices, or 2 pieces for a rook, or bishop+rook for queen? If not, then my assumption might be wrong, and you may have some serious bug or something.

-Sam
I think you assumption is correct. Several positional terms pile up to become bigger than a certain difference in material. I see pawn sacrifices, but not many BN x R or RB x Q. Gaviota may not like rooks so much ;-). I have seen her sacrificing a N for two pawns and positional compensation. I posted some time ago a sacrifice right out of book that looked suicidal (N x P) but not so much... In fact, Gaviota won two games and drew another against engines of similar strength. A typical sacrifice I have seen is a pawn for the pair of bishops and good general piece activity. I am happy with that most of the time.

I read the Larry Kaufman article already and I have to say that it is not the solution, it may be part of the problem :-) I think that it is a good starting point to think about different material imbalances but I do not think that the weights are accurate, particularly the ones related to pawns. I have implemented the concept though. I have a sort of array of "interactions" between different pieces with different bonus. For instance, if I have two bishops, that is a bonus. If I have two rooks, I have a negative bonus and so on. Part of this interactions create sometimes a situation in which they accumulate favorably for one side and negatively for the other. Add positional advantage and you may justify a sacrifice.

Miguel