Interpretation of LMR

Discussion of chess software programming and technical issues.

Moderators: hgm, Harvey Williamson, bob

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
brtzsnr
Posts: 426
Joined: Fri Jan 16, 2015 3:02 pm
Contact:

Interpretation of LMR

Post by brtzsnr » Fri May 29, 2015 5:42 pm

I know that LMR was recently discussed in a couple of threads, but I'd like to propose an alternative interpretation of search with LMR.

Let's suppose that LMR is implemented as: reduce search depth of all quiet move by one. A quiet move means is not promotion, capture, check, killer, hash move, etc.

Now an arbitrary path on the search tree has 1 * V + 2 * Q + QS moves where V is the number of violent moves, Q is the number of quiet moves and QS is the number of moves in the quiescence search (all violent). If quiescence search is unbounded then a search with LMR is a search in which all paths contain at most M quiet moves.

Does this makes sense? Has anyone tried limiting search depth by the number of quiet moves instead of number of all moves?

Angrim
Posts: 61
Joined: Mon Jun 25, 2012 8:16 pm
Location: Missoula, MT

Re: Interpretation of LMR

Post by Angrim » Fri May 29, 2015 7:22 pm

I think you would run into a lot of positions where that search would explode badly. Even unbounded qsearch sometimes becomes a problem, adding in checks, promotions, and killers to the list of moves that are always extended would make for remarkable tree growth.

User avatar
hgm
Posts: 22274
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: Interpretation of LMR

Post by hgm » Fri May 29, 2015 8:37 pm

This is equivalent to extending all captures by half a ply, after renormalizing what 'ply' means. The problem is that many captures are very bad, or necessary (but trivial) refutations to non-captures that were very bad. And you would extend all those bad moves, so that the search focusses on nonsense branchess in positions where quiet moves are what the doctor orders.

There also is an inconsistency in what you propose: a reduced move that fails high would in fact become a hash move, except that it was discovered only after the fact. (Perhaps because the hash entry was overwritten.) So it would be inconsistent to keep the reduction, if you don't reduce hash moves.
Last edited by hgm on Fri May 29, 2015 8:41 pm, edited 1 time in total.

Dann Corbit
Posts: 8662
Joined: Wed Mar 08, 2006 7:57 pm
Location: Redmond, WA USA
Contact:

Re: Interpretation of LMR

Post by Dann Corbit » Fri May 29, 2015 8:41 pm

brtzsnr wrote:I know that LMR was recently discussed in a couple of threads, but I'd like to propose an alternative interpretation of search with LMR.

Let's suppose that LMR is implemented as: reduce search depth of all quiet move by one. A quiet move means is not promotion, capture, check, killer, hash move, etc.

Now an arbitrary path on the search tree has 1 * V + 2 * Q + QS moves where V is the number of violent moves, Q is the number of quiet moves and QS is the number of moves in the quiescence search (all violent). If quiescence search is unbounded then a search with LMR is a search in which all paths contain at most M quiet moves.

Does this makes sense? Has anyone tried limiting search depth by the number of quiet moves instead of number of all moves?
Do a search through PGN of games played by high-end opponents.
Most good moves are quiet moves.

There is nothing about a quiet move that makes it less important than a capture.

The objective of pruning should be to spend less time on moves that are not promising (which is what null move, LMR and the like accomplish). I do not think your plan will accomplish that.

User avatar
hgm
Posts: 22274
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: Interpretation of LMR

Post by hgm » Fri May 29, 2015 8:44 pm

Dann Corbit wrote:There is nothing about a quiet move that makes it less important than a capture.
Captures are more forcing, because you have to recapture or lose material. So they are ideal delaying tactics to push threats over the horizon, which is why evaluating them in general requires more depth than for non-captures. (Except that some non-captures also are threats that force an evasion, and those deserve deeper search as well. This is the 'tacticall connected' stuff of Glaurung's LMR.)

Dann Corbit
Posts: 8662
Joined: Wed Mar 08, 2006 7:57 pm
Location: Redmond, WA USA
Contact:

Re: Interpretation of LMR

Post by Dann Corbit » Fri May 29, 2015 9:19 pm

hgm wrote:
Dann Corbit wrote:There is nothing about a quiet move that makes it less important than a capture.
Captures are more forcing, because you have to recapture or lose material. So they are ideal delaying tactics to push threats over the horizon, which is why evaluating them in general requires more depth than for non-captures. (Except that some non-captures also are threats that force an evasion, and those deserve deeper search as well. This is the 'tacticall connected' stuff of Glaurung's LMR.)
Yes, but qsearch takes care of that.

User avatar
hgm
Posts: 22274
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: Interpretation of LMR

Post by hgm » Fri May 29, 2015 9:30 pm

No. In Q-search you can stand pat to turn a blind eye to impending doom. E.g. if a Knight is forking my two Rooks, at d=2 a senseless non-capture would notice that, because the opponent cashes the Rook in the second ply. But if I throw a d=2 search on a capture QxQ, the NxR would make me stand pat Q-vs-R ahead, while the PxQ recapture would make me stand pat with an even score, even though I am still going to lose the exchange.

Engin
Posts: 799
Joined: Mon Jan 05, 2009 6:40 pm
Location: Germany

Re: Interpretation of LMR

Post by Engin » Sat May 30, 2015 6:15 pm

i tried also reduce of bad captures with a slightly success, because most of the bad captures with SEE < 0 are not comes near to alpha.

User avatar
cdani
Posts: 2047
Joined: Sat Jan 18, 2014 9:24 am
Location: Andorra
Contact:

Re: Interpretation of LMR

Post by cdani » Sat May 30, 2015 10:32 pm

Engin wrote:i tried also reduce of bad captures with a slightly success, because most of the bad captures with SEE < 0 are not comes near to alpha.
In Andscacs I reduce them with one when depth > 1.

Engin
Posts: 799
Joined: Mon Jan 05, 2009 6:40 pm
Location: Germany

Re: Interpretation of LMR

Post by Engin » Sun May 31, 2015 12:59 am

can be reduce even more i guess

Post Reply