India will bump up spending on the modernisation of its railways in the upcoming federal budget while marginally increasing allocations to road building, two government sources said.