Alex Arias and pinch-hitter Roger Kieschnick had RBI singles off Jonathan Papelbon in the top of the ninth inning, then Sergio Romo escaped a bases-loaded jam in the bottom half as the San Francisco Giants beat the Philadelphia Phillies 2-1 Thursday night.